module:Rectangle
module:Rectangle
Basic rectangle

Constructor
#
new module:Rectangle(positionDefinition, widthopt, heightopt, optionsopt)
Parameters:
Name |
Type |
Attributes |
Default |
Description |
positionDefinition |
PositionDefinition
|
|
|
Position in space |
width |
Number
|
<optional>
|
0
|
Horizontal size |
height |
Number
|
<optional>
|
0
|
Vertical size |
options |
ComponentOptions
|
<optional>
|
|
Drawing options |
Extends
Members
#
(static) origins :RectangleOrigins
#
height :Number
#
width :Number
Methods
#
(static) from(definition) → {Rectangle}
Parameters:
Name |
Type |
Description |
definition |
Object
|
Rectangle definition |
#
trace(path) → {Rectangle}
Parameters:
Name |
Type |
Description |
path |
path
|
Drawing context |
Type Definitions
#
RectangleOrigins
Properties
Name |
Type |
Description |
topLeft |
String
|
|
topRight |
String
|
|
topCenter |
String
|
|
center |
String
|
|
centerLeft |
String
|
|
centerRight |
String
|
|
bottomLeft |
String
|
|
bottomRight |
String
|
|
bottomCenter |
String
|
|