ArrowSpec
Extends: ShapeSpec
Source: GLShape.ts
Arrow 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
Overrides: ShapeSpec#color
color
contextMenuEnabled: boolean
Inherited from ShapeSpec#contextMenuEnabled
if true, user can right-click or long press to trigger callback
dir: XYZ
Direction vector, supplied as {x, y, z} or a Vector3. It is multiplied by length and added to start instead of using end.
end: XYZ
ending position
frame: number
Inherited from ShapeSpec#frame
if set, only display in this frame of an animation
hidden: boolean
Overrides: ShapeSpec#hidden
hidden
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
length: number
Scale applied to dir; equals the arrow length when dir is a unit vector.
linewidth: number
Inherited from ShapeSpec#linewidth
width of line for wireframe rendering No longer supported by most browsers
mid: number
relative position of arrow base (0.618034 default)
midpos: number
position of arrow base in length units, if negative positioned from end instead of start. Overrides mid.
opacity: number
Inherited from ShapeSpec#opacity
Opacity between 0 (invisible) and 1 (opaque), default 1.
radius: number
radius (default 0.1A)
radiusRatio: number
ratio of arrow base to cylinder (1.618034 default)
side: number
Inherited from ShapeSpec#side
Visible faces: FrontSide, BackSide, or DoubleSide (default).
start: XYZ
starting position
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