DimensionFormatMixin is a mixin containing rules that can be used by other designs.
We do not use it alone; instead, it is used to add the rules to other designs. Presently there are 2 UI designs that use this mixin (see below).
Parameter Rules
dimFormat: | Dimension format |
Example: | 'architectural'; |
Choices: | 'architectural','engineering','decimal' |
dimPrecision: | Dimension precision. Specify the number of decimals to round off to. |
Example: | 2; |
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'; |
dimUnits: | Changes dimensions from english to metric. |
Example: | "english" |
Choices: | "default","english","metric" |
Mixins
None
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
dimFormat |
string |
"decimal" |
Format |
Cached Lookup |
dimPrecision |
integer |
3 |
Format |
Cached |
dimPrefix |
string |
"" |
Text |
Cached |
dimSuffix |
string |
"" |
Text |
Cached |
dimUnits |
string |
"default" |
Format |
Cached |
UI Designs that use the DimensionFormatMixin:
1.RadialDimension
2.DiametralDimension