Skip to content

DOMDrawable

Overview

DOM renderer for DOM nodes.

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

Class DOMDrawable

import { DOMDrawable } from 'scenerystack/scenery';

Constructor

new DOMDrawable( renderer, instance )

Instance Methods

initialize( renderer, instance )

@public @override

@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.