Skip to content

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

import { SpanNode } from 'scenerystack/bamboo';

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

import type { SpanNodeOptions } from 'scenerystack/bamboo';

Source Code

See the source for SpanNode.ts in the bamboo repository.