Skip to content

ChartRectangle

Overview

Shows the background and border for a chart, and updates when the chart dimensions change. This is also often used for clipping via myChartRectangle.getShape()

@author Sam Reid (PhET Interactive Simulations)

Class ChartRectangle

import { ChartRectangle } from 'scenerystack/bamboo';

Constructor

new ChartRectangle( chartTransform : ChartTransform, options? : ChartRectangleOptions )

Instance Methods

dispose()

Type ChartRectangleOptions

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

RectangleOptions

Source Code

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