Constructor
new Position()
- Description:
- Create a Position object
- Source:
Properties:
Name | Type | Description |
---|---|---|
origin |
Point | Origin X & Y coordinates for an object's position |
start |
Point | Origin start X & Y coordinates for a Line object's position |
end |
Point | Origin end X & Y coordinates for a Line object's position |
distance |
number | Distance from origin to destination |
direction |
number | Direction to move towards destination; in degrees |
rotation |
number | Amount object (including canvas) has been rotated |
aspect |
Aspect | Original aspect value(s) for a rectangular object |
controlPoints |
ControlPoints | Original control point values for a Line object |
fontSize |
number | Original fontSize value for a Text object |
master |
clObject | Master object |
Methods
aspect(value)
- Description:
- Set aspect
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Aspect of object |
aspect() → {number}
- Description:
- Get aspect
- Source:
Returns:
Aspect of object
- Type
- number
controlPoints(value)
- Description:
- Set controlPoints
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Array.<number> | ControlPoints of object |
controlPoints() → {Array.<number>}
- Description:
- Get controlPoints
- Source:
Returns:
ControlPoints of object
- Type
- Array.<number>
direction(value)
- Description:
- Set direction
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Direction in degrees |
direction() → {number}
- Description:
- Get direction
- Source:
Returns:
Direction in degrees
- Type
- number
distance(value)
- Description:
- Set distance
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Distance from origin to destination |
distance() → {number}
- Description:
- Get distance
- Source:
Returns:
Distance from origin to destination
- Type
- number
end(value)
- Description:
- Set end
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | End of object |
end() → {number}
- Description:
- Get end
- Source:
Returns:
End of object
- Type
- number
endDirection(value)
- Description:
- Set endDirection
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | EndDirection of object |
endDirection() → {number}
- Description:
- Get endDirection
- Source:
Returns:
EndDirection of object
- Type
- number
endDistance(value)
- Description:
- Set endDistance
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | EndDistance of object |
endDistance() → {number}
- Description:
- Get endDistance
- Source:
Returns:
EndDistance of object
- Type
- number
fill(value)
- Description:
- Set fill
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Fill of object |
fill() → {number}
- Description:
- Get fill
- Source:
Returns:
Fill of object
- Type
- number
fontSize(value)
- Description:
- Set fontSize
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | FontSize of object |
fontSize() → {number}
- Description:
- Get fontSize
- Source:
Returns:
FontSize of object
- Type
- number
height(value)
- Description:
- Set height
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Height of object |
height() → {number}
- Description:
- Get height
- Source:
Returns:
Height of object
- Type
- number
master(value)
- Description:
- Set master object
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
value |
clObject | Canvas Lab object |
master() → {clObject}
- Description:
- Get master object
- Source:
- See:
Returns:
Master Canvas Lab object
- Type
- clObject
origin(value)
- Description:
- Set origin
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Point | X & Y coordinates |
origin() → {Point}
- Description:
- Get origin
- Source:
Returns:
X & Y coordinates
- Type
- Point
rotation(value)
- Description:
- Set rotation
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Direction in degrees |
rotation() → {number}
- Description:
- Get rotation
- Source:
Returns:
Direction in degrees
- Type
- number
start(value)
- Description:
- Set start
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Start of object |
start() → {number}
- Description:
- Get start
- Source:
Returns:
Start of object
- Type
- number
startDirection(value)
- Description:
- Set startDirection
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | StartDirection of object |
startDirection() → {number}
- Description:
- Get startDirection
- Source:
Returns:
StartDirection of object
- Type
- number
startDistance(value)
- Description:
- Set startDistance
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | StartDistance of object |
startDistance() → {number}
- Description:
- Get startDistance
- Source:
Returns:
StartDistance of object
- Type
- number
stroke(value)
- Description:
- Set stroke
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Stroke of object |
stroke() → {number}
- Description:
- Get stroke
- Source:
Returns:
Stroke of object
- Type
- number
width(value)
- Description:
- Set width
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Width of object |
width() → {number}
- Description:
- Get width
- Source:
Returns:
Width of object
- Type
- number