ShapeSpec
Source: GLShape.ts
GLShape style specification
Instance Fields
callback: Func
Click handler receiving (shape, viewer, event, container, intersections). Intersections are sorted nearest first.
clickable: boolean
if true, user can click on object to trigger callback
color: ColorSpec | Array
Either a single color for the whole object or an array specifying the color at each vertex (CustomShapeSpec).
contextMenuEnabled: boolean
if true, user can right-click or long press to trigger callback
frame: number
if set, only display in this frame of an animation
hidden: boolean
if true, do not display object
hover_callback: Func
Hover handler receiving (shape, viewer, event, container, intersections).
hoverable: boolean
if true, user can hover on object to trigger callback
linewidth: number
width of line for wireframe rendering No longer supported by most browsers
opacity: number
Opacity between 0 (invisible) and 1 (opaque), default 1.
side: number
Visible faces: FrontSide, BackSide, or DoubleSide (default).
unhover_callback: Func
Unhover handler with the hover arguments; event and intersections can be undefined when hover is cleared.
voldata: VolumeData
Volumetric data sampled at vertices for coloring, together with volscheme.
volscheme: GradientType
Gradient for mapping sampled volume values to vertex colors.
wireframe: boolean
draw as wireframe, not surface