Skip to content

RectangleSVGDrawable

Overview

SVG drawable for Rectangle nodes.

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

Class RectangleSVGDrawable

import { RectangleSVGDrawable } from 'scenerystack/scenery';

Instance Methods

initialize( renderer, instance )

@public @override

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

updateSVGSelf()

Updates the SVG elements so that they will appear like the current node's representation. @protected

Implements the interface for SVGSelfDrawable (and is called from the SVGSelfDrawable's update).

Source Code

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