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
(protected) _getDefaultLetterHeight
Get the default letter height given the stimulus' units.
- Source:
(protected) _getDefaultWrapWidth
Get the default wrap width given the stimulus' units.
- 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:
setColor
Setter for the color attribute.
- Source:
Methods
(protected) _estimateBoundingBox()
Estimate the bounding box.
- Source:
(protected) getBoundingBox(tightopt) → {Array.<number>}
Get the bounding gox.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
tight |
boolean |
<optional> |
false | whether or not to fit as closely as possible to the text |
- Source:
Returns:
- the bounding box, in the units of this TextStim
- Type
- Array.<number>