Skip to content

TextDOMDrawable

Overview

DOM drawable for Text nodes.

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

Class TextDOMDrawable

import { TextDOMDrawable } from 'scenerystack/scenery';

Constructor

new TextDOMDrawable( 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 TextDOMDrawable.js in the scenery repository.