LetterKeyNode¶
Overview¶
LetterKeyNode is a TextKeyNode with layout and spacing defaults that look best for a single letter. A letter key is square and that looks best for a single character.
@author Jesse Greenberg (PhET Interactive Simulations)
Class LetterKeyNode¶
Constructor¶
new LetterKeyNode( letter : string | TReadOnlyProperty<string>, providedOptions? : LetterKeyNodeOptions )¶
Instance Methods¶
Static Methods¶
a( providedOptions? : LetterKeyNodeOptions ) : KeyNode¶
Static factory methods for specific letter key strings.¶
c( providedOptions? : LetterKeyNodeOptions ) : KeyNode¶
d( providedOptions? : LetterKeyNodeOptions ) : KeyNode¶
l( providedOptions? : LetterKeyNodeOptions ) : KeyNode¶
r( providedOptions? : LetterKeyNodeOptions ) : KeyNode¶
s( providedOptions? : LetterKeyNodeOptions ) : KeyNode¶
w( providedOptions? : LetterKeyNodeOptions ) : KeyNode¶
one( providedOptions? : LetterKeyNodeOptions ) : KeyNode¶
two( providedOptions? : LetterKeyNodeOptions ) : KeyNode¶
three( providedOptions? : LetterKeyNodeOptions ) : KeyNode¶
Type LetterKeyNodeOptions¶
StrictOmit<TextKeyNodeOptions, "forceSquareKey">
Source Code¶
See the source for LetterKeyNode.ts in the scenery-phet repository.