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