DimensionTextMixin 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 3 UI designs that use this mixin (see below).
Parameter Rules
dimTextCenter: | This rule has a default formula that calculates the best text center point. |
Example: | p<-5, -0.625, -0.5>; |
textAlignment: | Direction of the dimension text. |
Example: | "horizontal"; |
Choices: | ["horizontal","vertical","aligned"] |
textAlignmentChoices: | Text alignment choices. |
Example: | ["horizontal","vertical","aligned"]; |
textLocation: | Text location in relationship to the extension lines. |
Example: | "auto"; |
Choices: | ["auto","inside","outside","useLocation"]; |
textPlacementChoices: | Text placement choices. |
Example: | ["auto","inside","outside","useLocation"]; |
Mixins
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
dimTextCenter |
point |
formula calculates the best point. |
Text |
Cached |
textAlignment |
string |
this.textAlignmentChoices[1] |
Text |
Cached |
textAlignmentChoices |
array |
["horizontal","aligned"] |
Text |
Cached |
textLocation |
string |
"auto" |
Text |
Cached |
textPlacementChoices |
array |
["centered", "above", "below"] |
Text |
Cached |
UI Designs that use the DimensionFormatMixin:
1.AngularDimension
2.DiametralDimension
3.RadialDimension