Constructor
new Aspect(width, height)
- Description:
- Create an aspect
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
width |
number |
<optional> |
0
|
Width |
height |
number |
<optional> |
0
|
Height |
Parameters:
Name | Type | Description |
---|---|---|
width |
number | Width of aspect |
height |
number | Height of aspect |
Methods
center() → {Point}
- Description:
- Get center of aspect
- Source:
Returns:
Center point of this aspect
- Type
- Point
height(value)
- Description:
- Set height
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Height value |
height() → {number}
- Description:
- Get height
- Source:
Returns:
Height value
- Type
- number
heightCenter() → {number}
- Description:
- Get center of height
- Source:
Returns:
Center of height
- Type
- number
offset() → {Point}
- Description:
- Get offset
- Source:
Returns:
Aspect offset
- Type
- Point
width(value)
- Description:
- Set width
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Width value |
width() → {number}
- Description:
- Get width
- Source:
Returns:
Width value
- Type
- number
widthCenter() → {number}
- Description:
- Get center of width
- Source:
Returns:
Center of with
- Type
- number