new TextBox(options)
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Mixes In:
- ColorMixin
- Source:
Extends
- VisualStim
Members
(private, readonly) _defaultLetterHeightMap
This map associates units to default letter height.
- Source:
(private, readonly) _defaultSizeMap
This map associates units to default sizes.
- Source:
(protected) _getDefaultLetterHeight
Get the default letter height given the stimulus' units.
- Source:
(private) _getTextInputOptions
Get the TextInput options applied to the PIXI.TextInput.
- Source:
(private) _updateIfNeeded
Update the stimulus, if necessary.
- Source:
- To Do:
-
- take size into account
setSize
Setter for the size attribute.
- Source:
Methods
(protected) _estimateBoundingBox()
Estimate the bounding box.
- Source:
(protected) _getAnchor() → {Array.<number>}
Convert the anchor attribute into numerical values.
- Source:
Returns:
- the anchor, as an array of numbers in [0,1]
- Type
- Array.<number>