Skip to content

TickMarkSet

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/TickMarkSet.ts for the most up-to-date information.

Overview

Shows tick marks within or next to a chart.

@author Sam Reid (PhET Interactive Simulations)

Class TickMarkSet

import { TickMarkSet } from 'scenerystack/bamboo';

Constructor

new TickMarkSet( chartTransform : ChartTransform, axisOrientation : Orientation, spacing : number, providedOptions? : TickMarkSetOptions )

Instance Methods

setSpacing( spacing : number )

getSpacing() : number

update()

(protected)

dispose()

getSpacingBorders() : Range

Static Properties

DEFAULT_EXTENT

(readonly)

Type TickMarkSetOptions

import type { TickMarkSetOptions } from 'scenerystack/bamboo';
  • value?: number
  • edge?: null | "min" | "max"
  • origin?: number
  • skipCoordinates?: number[]
  • lineWidth?: number
  • extent?: number
  • clippingType?: ClippingType
    determines whether the rounding is lenient, see ChartTransform
  • & PathOptions

Source Code

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