Constructor
new module:Heart(positionDefinition, radius, optionsopt)
Heart constructor
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
positionDefinition | PositionDefinition | Position of the center of the heart | |
radius | Number | radius The distance from center of heart | |
options | ComponentOptions | <optional> | Drawing options |
- Source
Extends
Members
radius :Number
Type:
- Number
- Source
Methods
(static) from(definition) → {Heart}
Parameters:
Name | Type | Description |
---|---|---|
definition | Object | Heart definition |
- Source
Returns:
- Type:
- Heart
trace(path) → {Heart}
Draw the Heart
Parameters:
Name | Type | Description |
---|---|---|
path | Path2D | Drawing context |
- Overrides
- Source
Returns:
Itself
- Type:
- Heart