new ModelRectangle( [p_config])
Parameters:
| Name | Type | Argument | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
p_config |
Object |
<optional> |
Properties
|
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
x |
number | the x position of the rectangle |
y |
number | the y position of the rectangle |
width |
number | the width of the rectangle |
height |
number | the height of the rectangle |
Methods
-
reset()
-
Resets the model to its config values.
- Source: