GLShape style specification
- Source
Members#
callback :Func#
function to call on click
Type:
- Func
- Source
clickable :boolean#
if true, user can click on object to trigger callback
Type:
- boolean
- Source
color :ColorSpec|Array#
Either a single color for the whole object or an array specifying the color at each vertex (CustomShapeSpec
).
Type:
- ColorSpec |
Array
- Source
contextMenuEnabled :boolean#
if true, user can right-click or long press to trigger callback
Type:
- boolean
- Source
frame :number#
if set, only display in this frame of an animation
Type:
- number
- Source
hidden :boolean#
if true, do not display object
Type:
- boolean
- Source
hover_callback :Func#
hover callback
Type:
- Func
- Source
hoverable :boolean#
if true, user can hover on object to trigger callback
Type:
- boolean
- Source
linewidth :number#
width of line for wireframe rendering No longer supported by most browsers
Type:
- number
- Source
opacity :number#
transparency, between 0 (invisible) and 1 (opaque)
Type:
- number
- Source
unhover_callback :Func#
unhover callback
Type:
- Func
- Source
wireframe :boolean#
draw as wireframe, not surface
Type:
- boolean
- Source