Skip to content

RichTextNode

Overview

A leaf node element in the RichText, which will display a Node (e.g. with the nodes or tags feature)

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

Class RichTextNode

import { RichTextNode } from 'scenerystack/scenery';

Constructor

new RichTextNode( content : Node )

Instance Methods

initialize( content : Node ) : this

clean()

Cleans references that could cause memory leaks (as those things may contain other references).

fitsIn( widthAvailable : number ) : boolean

Whether this leaf will fit in the specified amount of space

freeToPool()

Instance Properties

leftSpacing

(readonly)

rightSpacing

(readonly)

Static Properties

pool : Pool

(readonly)

Source Code

See the source for RichTextNode.ts in the scenery repository.