Function: draw()
Draw the given objects on the canvas.
The format of the array of objects must adhere to the description provided in MemoryModel.drawAll.
Param
The array of objects to be drawn: this could be passed as an actual JavaScript array of objects (a single snapshot), or as a JSON file containing the object array. This array of objects may also include the user-defined style configuration. It can also be a list of snapshots, where each snapshot is an array of objects. See the demo files and style.md file for details.
Param
The configuration (display settings) defined by the user.
This is also the place to define sort_by ("height" or "id") for the object space.
Call Signature
draw(
objects,configuration):MemoryModel[]
Defined in: user_functions.ts:7
Parameters
objects
string | object[][]
configuration
Partial<DisplaySettings>
Returns
MemoryModel[]
Call Signature
draw(
objects,configuration):MemoryModel
Defined in: user_functions.ts:11
Parameters
objects
string | object[]
configuration
Partial<DisplaySettings>
Returns
MemoryModel