colorTypeColor — color to apply to element (is passed as the
'u_color' uniform to the fragment shader)
touchboolean | OBJ_Touch — true, number or
TypeParsablePoint will set the element as touchable. If number, then
element touch volume is the scaled actual volume in x, y, and z. For
example, if 2, then the touchable volume is twice the actual volume. If
TypeParsablePoint then the x, y, and z scales can be set independantly
(false)
moveboolean | OBJ_ElementMove — setting this to anything but
false will set the element as movable. Use OBJ_ElementMove to customize
the movement options
dimColorTypeColor — RGBA is used when vertex colors are from a
uniform, otherwise just the alpha channel is used.
scenariosOBJ_Scenarios — Define
position/transform/rotation/scale/color scenarios tied to the element
sceneOBJ_Scene | Scene — Give the element a custom scene that is independant
of the figure scene. For example, use this to create a 3D object in a 2D
figure.
Options object for any FigureElementPrimitive.
These properties are available when defining any FigureElementPrimitive.
namestring— name of figure elementpositionTypeParsablePoint — position overridestransformtranslationtransformTypeParsableTransform — transform to apply to elementcolorTypeColor — color to apply to element (is passed as the 'u_color' uniform to the fragment shader)touchboolean| OBJ_Touch —true,numberorTypeParsablePointwill set the element as touchable. Ifnumber, then element touch volume is the scaled actual volume in x, y, and z. For example, if2, then the touchable volume is twice the actual volume. IfTypeParsablePointthen the x, y, and z scales can be set independantly (false)moveboolean| OBJ_ElementMove — setting this to anything butfalsewill set the element as movable. UseOBJ_ElementMoveto customize the movement optionsdimColorTypeColor — RGBA is used when vertex colors are from a uniform, otherwise just the alpha channel is used.defaultColorTypeColorscenariosOBJ_Scenarios — Define position/transform/rotation/scale/color scenarios tied to the elementsceneOBJ_Scene | Scene — Give the element a custom scene that is independant of the figure scene. For example, use this to create a 3D object in a 2D figure.