DOMDrawable¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery/blob/main/js/display/drawables/DOMDrawable.js for the most up-to-date information.
Overview¶
DOM renderer for DOM nodes.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class DOMDrawable¶
Constructor¶
new DOMDrawable( renderer, instance )¶
Instance Methods¶
initialize( renderer, instance )¶
@param {number} renderer @param {Instance} instance
updateDOM()¶
Updates our DOM element so that its appearance matches our node's representation. @protected
This implements part of the DOMSelfDrawable required API for subtypes.
dispose()¶
Disposes the drawable. @public @override
Source Code¶
See the source for DOMDrawable.js in the scenery repository.