Skip to content

RectangleStatefulDrawable

Overview

A trait for drawables for Rectangle that need to store state about what the current display is currently showing, so that updates to the Rectangle will only be made on attributes that specifically changed (and no change will be necessary for an attribute that changed back to its original/currently-displayed value). Generally, this is used for DOM and SVG drawables.

This will also mix in PaintableStatefulDrawable

@author Jonathan Olson <jonathan.olson@colorado.edu>

Source Code

See the source for RectangleStatefulDrawable.js in the scenery repository.