Skip to content

CanvasSelfDrawable

Overview

TODO docs https://github.com/phetsims/scenery/issues/1581 note paintCanvas() required, and other implementation-specific details

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

Class CanvasSelfDrawable

import { CanvasSelfDrawable } from 'scenerystack/scenery';

Instance Methods

initialize( renderer, instance )

@public

@param {number} renderer @param {Instance} instance

markTransformDirty()

@public

markPaintDirty()

General flag set on the state, which we forward directly to the drawable's paint flag @public

updateSelfVisibility()

@public @override

dispose()

Releases references @public @override

Source Code

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