Skip to content

NumberKeyNode

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery-phet/blob/main/js/keyboard/NumberKeyNode.ts for the most up-to-date information.

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.