new Position(value)
Creating a Position. The default value for Position will be 'middle-center'.
Name | Type | Description |
---|---|---|
value |
String | Object |
A string describing the position or
an object. The object properties will depend on the position type.
NOTE: see examples above.
|
Members
-
on
-
Get or set where this position is relative to. Values: 'canvas' or 'map'.
-
pointPoint
-
Get the x/y values for the position as a point.
-
xNumber
-
Get the x value for the position.
-
yNumber
-
Get the y value for the position.
Methods
-
toString(){String}
-
Return the class name as a string.
Returns:
Type Description String - 'Position'