Skip to content

NumberKeyNode

Overview

NumberKeyNode looks like a keyboard key with a single letter. See LetterKeyNode for implementation details. This is a useful type to separate out usages for numbers in case we need to tweak all of them in the future.

@author Michael Kauzmann (PhET Interactive Simulations)

Class NumberKeyNode

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

Constructor

new NumberKeyNode( value : number, providedOptions? : NumberKeyNodeOptions )

Instance Methods

Type NumberKeyNodeOptions

import type { NumberKeyNodeOptions } from 'scenerystack/scenery-phet';

LetterKeyNodeOptions

Source Code

See the source for NumberKeyNode.ts in the scenery-phet repository.