SVGGroup¶
Overview¶
Poolable wrapper for SVG <group> elements. We store state and add listeners directly to the corresponding Node, so that we can set dirty flags and smartly update only things that have changed. This takes a load off of SVGBlock.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class SVGGroup¶
Constructor¶
new SVGGroup( block, instance, parent )¶
Instance Methods¶
initialize( block, instance, parent )¶
@param {SVGBlock} block @param {Block} instance @param {SVGGroup|null} parent
addSelfDrawable( drawable )¶
@param {SelfDrawable} drawable
removeSelfDrawable( drawable )¶
@param {SelfDrawable} drawable
addChildGroup( group )¶
@param {SVGGroup} group
removeChildGroup( group )¶
@param {SVGGroup} group
markDirty()¶
markOrderDirty()¶
markTransformDirty()¶
onFilterChange()¶
onVisibleChange()¶
onClipChange()¶
update()¶
isReleasable()¶
@returns {boolean}
dispose()¶
Releases references @public
toString()¶
Returns a string form of this object @public
@returns {string}
Static Methods¶
addDrawable( block, drawable )¶
@param {SVGBlock} block @param {Drawable} drawable
removeDrawable( block, drawable )¶
@param {SVGBlock} block @param {Drawable} drawable
ensureGroupsToInstance( block, instance )¶
@param {SVGBlock} block @param {Instance} instance @returns {SVGGroup}
releaseGroupsToInstance( block, instance )¶
@param {SVGBlock} block @param {Instance} instance
Source Code¶
See the source for SVGGroup.js in the scenery repository.