Class: Canvas

(protected) Canvas(id, config)

Class representing a MathCell display output cell. Used by MathModel only.

Constructor

(protected) new Canvas(id, config)

Parameters:
Name Type Description
id string
config renderConfig
Source:

Classes

Canvas

Methods

add(objs) → {this}

Add graphics object to the buffer.
Parameters:
Name Type Description
objs Array.<Geometry>
Source:
Returns:
Type
this

clear() → {this}

Clear the buffer of all graphics objects.
Source:
Returns:
Type
this

configure(config) → {this}

Set display configuration properties.
Parameters:
Name Type Description
config renderConfig
Source:
Returns:
Type
this

show() → {this}

Draw the current set of graphics to the screen.
Source:
Returns:
Type
this