Skip to content

PropertyFractionNode

Overview

Displays a fraction based on a numerator/denominator Property pair.

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

Class PropertyFractionNode

import { PropertyFractionNode } from 'scenerystack/scenery-phet';

Constructor

new PropertyFractionNode( numeratorProperty, denominatorProperty, options )

Instance Methods

updateFromProperties()

Updates our display based on our Property values. @private

dispose()

Releases references. @public @override

Source Code

See the source for PropertyFractionNode.js in the scenery-phet repository.