DOMBlock¶
Overview¶
DOM Drawable wrapper for another DOM Drawable. Used so that we can have our own independent siblings, generally as part of a Backbone's layers/blocks.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class DOMBlock¶
Constructor¶
new DOMBlock( display, domDrawable )¶
Instance Methods¶
initialize( display, domDrawable )¶
@param {Display} display @param {Drawable} domDrawable @returns {DOMBlock} - For chaining
update()¶
Updates the DOM appearance of this drawable (whether by preparing/calling draw calls, DOM element updates, etc.) @public @override
@returns {boolean} - Whether the update should continue (if false, further updates in supertype steps should not be done).
dispose()¶
Releases references @public @override
markDirtyDrawable( drawable )¶
@param {Drawable} drawable
addDrawable( drawable )¶
Adds a drawable to this block. @public @override
@param {Drawable} drawable
removeDrawable( drawable )¶
Removes a drawable from this block. @public @override
@param {Drawable} drawable
Source Code¶
See the source for DOMBlock.js in the scenery repository.