Skip to content

ChartRectangle

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

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.