ShapeSpec

GLShape style specification

Members

callback :Func

function to call on click

Type:
  • Func

clickable :boolean

if true, user can click on object to trigger callback

Type:
  • boolean

color :ColorSpec|Array

Either a single color for the whole object or an array specifying the color at each vertex (CustomShapeSpec).

Type:

frame :number

if set, only display in this frame of an animation

Type:
  • number

hidden :boolean

if true, do not display object

Type:
  • boolean

hover_callback :Func

hover callback

Type:
  • Func

hoverable :boolean

if true, user can hover on object to trigger callback

Type:
  • boolean

linewidth :number

width of line for wireframe rendering No longer supported by most browsers

Type:
  • number

opacity :number

transparency, between 0 (invisible) and 1 (opaque)

Type:
  • number

unhover_callback :Func

unhover callback

Type:
  • Func

wireframe :boolean

draw as wireframe, not surface

Type:
  • boolean