DimTextMixin is a mixin containing rules that can be used by other designs—but see Note, below.
We do not use it alone, we use it to add the rules to other designs. NOTE: presently there are no UI designs that use this mixin (see below).
Although this mixin is not mixed into LinearDimension, LinearDimension has these same rules and formulas.
Parameter Rules
textAlignment: | Dimension text alignment. |
Example: | 'horizontal'; |
Choices: | 'horizontal', 'vertical', 'aligned' |
textHeight: | Text height. |
Example: | 0.125; |
textLocation: | Location of the dimension text. |
Example: | 'auto'; |
Choices: | 'auto','inside','outside' |
textPlacement: | Text placement in relationship to the dimension lines. |
Example: | 'centered'; |
Choices: | 'centered','above','below' |
textSide: | Used only when textLocation is set to or determined to be "outside". |
Example: | 'toside'; |
Choices: | 'toside','fromside' |
dimPrefix: | This will put text or a symbol in front of the dimension. |
Example: | String.fromCharCode(0x2014); |
dimSuffix: | This will put text or a symbol at the back of the dimension. |
Example: | '-vertical'; |
isDimTextMultiline: | Dimension text multi line. Not working at this writing. |
Example: | false |
showTextBorder: | If set to true, will display a tight border around the dimension text. |
Example: | true; |
Mixins
None
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
textAlignment |
string |
'horizontal' |
Inputs |
Cached |
textHeight |
number |
0.125; |
Inputs |
Cached Lookup |
textLocation |
string |
'auto' |
Inputs |
Cached |
textPlacement |
string |
'centered' |
Inputs |
Cached |
textSide |
string |
'toside' |
Inputs |
Cached |
dimPrefix |
string |
'' |
Text |
Cached |
dimSuffix |
string |
'' |
Text |
Cached |
isDimTextMultiline |
boolean |
false |
Text |
Cached |
showTextBorder |
boolean |
false |
Text |
Cached Lookup |
UI Designs that use the DimensionTextMixin:
Although this mixin is not mixed into LinearDimension, LinearDimension has these same rules and formulas.