Constructor
new module:Square(positionDefinition, size, optionsopt)
Square constructor
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
positionDefinition | PositionDefinition | Top-left corner | |
size | Number | Side's length | |
options | ComponentOptions | <optional> | Drawing options |
- Source
Extends
Members
height
Set height (also set width)
- Overrides
- Source
height
Get height
- Overrides
- Source
size
Set this square's size
- Source
size
Get this square's size
- Source
width
Set width (also set height)
- Overrides
- Source
width
Get width
- Overrides
- Source
Methods
(static) from(definition) → {Square}
Parameters:
Name | Type | Description |
---|---|---|
definition | Object | Square definition |
- Source
Returns:
- Type:
- Square