Constructor
(protected) new Canvas(id, config)
Parameters:
Name | Type | Description |
---|---|---|
id |
string | |
config |
renderConfig |
Classes
Methods
add(objs) → {this}
Add graphics object to the buffer.
Parameters:
Name | Type | Description |
---|---|---|
objs |
Array.<Geometry> |
Returns:
- Type
- this
clear() → {this}
Clear the buffer of all graphics objects.
Returns:
- Type
- this
configure(config) → {this}
Set display configuration properties.
Parameters:
Name | Type | Description |
---|---|---|
config |
renderConfig |
Returns:
- Type
- this
show() → {this}
Draw the current set of graphics to the screen.
Returns:
- Type
- this