class TextMetrics extends Object
The TextMetrics interface represents the dimension of a text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
MDN
- Annotations
- @JSType() @native() @JSGlobal()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TextMetrics
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new TextMetrics()
Value Members
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
valueOf(): Any
- Definition Classes
- Object
-
var
width: Double
Is a double giving the calculated width of a segment of inline text in CSS pixels.
Is a double giving the calculated width of a segment of inline text in CSS pixels. It takes into account the current font of the context.
MDN