SpanNode¶
Overview¶
SpanNode shows a double-headed arrow pointing to parallel bars, and a text label. It is shown under a chart to indicate the distance between gridlines.
@author Sam Reid (PhET Interactive Simulations)
Class SpanNode¶
Constructor¶
new SpanNode( chartTransform : ChartTransform, axisOrientation : Orientation, delta : number, labelNode : Node, providedOptions? : SpanNodeOptions )¶
Instance Methods¶
setDelta( delta : number )¶
Sets delta and updates. @param delta - in model coordinates
dispose()¶
Type SpanNodeOptions¶
- color?: string | Color
- outerLineLength?: number
- arrowNodeOptions?: StrictOmit<ArrowNodeOptions, "stroke">
- & StrictOmit<FlowBoxOptions, "children" | "orientation">
Source Code¶
See the source for SpanNode.ts in the bamboo repository.