Skip to content

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

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.