htmlIdstring — HTML div tag id to tie figure to ("figureOneContainer")
sceneTypeParsableRect | OBJ_Scene — define 2D or 3D scene. 3D
can be orthographic or perspective projection, and include camera position
and lighting definition. A 2D scene can be defined using left, right,
bottom and top, or the short hand rectangle definition.
colorTypeColor — default shape color ([0, 0, 0, 1])
atlasScalenumber — scale factor for GL text atlas texture
resolution relative to 1:1 pixel mapping (2)
onWebGLUnavailable() => void — callback fired once during
construction if the browser cannot provide a WebGL context (e.g. context
limit reached on resource-constrained hardware). The figure will still be
created but nothing will render. For runtime context loss, subscribe to
the contextLost / contextRestored notifications instead.
Figure options object
htmlIdstring— HTMLdivtagidto tie figure to ("figureOneContainer")sceneTypeParsableRect | OBJ_Scene — define 2D or 3D scene. 3D can be orthographic or perspective projection, and include camera position and lighting definition. A 2D scene can be defined usingleft,right,bottomandtop, or the short hand rectangle definition.colorTypeColor — default shape color ([0, 0, 0, 1])fontOBJ_Font — default shape font ({ family: 'Helvetica, size: 0.2, style: 'normal', weight: 'normal' })lineWidthnumber— default shape line widthlengthnumber— default shape primary dimensionbackgroundColornumber— background color for the figure. Use [r, g, b, 1] for opaque and [0, 0, 0, 0] for transparent.antialiasboolean— enable WebGL anti-aliasing (true)atlasScalenumber— scale factor for GL text atlas texture resolution relative to 1:1 pixel mapping (2)onWebGLUnavailable() => void— callback fired once during construction if the browser cannot provide a WebGL context (e.g. context limit reached on resource-constrained hardware). The figure will still be created but nothing will render. For runtime context loss, subscribe to thecontextLost/contextRestorednotifications instead.