SpanNode¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/bamboo/blob/main/js/SpanNode.ts for the most up-to-date information.
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.