new TextStim(options)
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Mixes In:
- ColorMixin
- Source:
- To Do:
-
- vertical alignment, and orientation are currently NOT implemented
Extends
- VisualStim
Members
(private, readonly) _defaultLetterHeightMap
This map associates units to default letter height.
- Source:
(private, readonly) _defaultLetterHeightMap
This map associates units to default wrap width.
- Source:
(protected) _getDefaultLetterHeight
Get the default letter height given the stimulus' units.
- Source:
(protected) _getDefaultWrapWidth
Get the default wrap width given the stimulus' units.
- Source:
(private) _getTextStyle
Get the PIXI Text Style applied to the PIXI.Text
- Source:
getTextMetrics
Get the metrics estimated for the text and style.
Note: getTextMetrics does not require the PIXI representation of the stimulus to be instantiated,
unlike getSize().
- Source:
Methods
(protected) _estimateBoundingBox()
Estimate the bounding box.
- Source:
(private) _getAnchor() → {Array.<number>}
Convert the alignment attributes into an anchor.
- Source:
Returns:
- the anchor
- Type
- Array.<number>
(private) _updateIfNeeded()
Update the stimulus, if necessary.
- Source: