Description
PaperSizeMixin 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 1 UI design that use this mixin (see below).
Parameter Rules and Non-Parameter Rules
PaperSize: | Enter the string value for the paper size. |
Example: | 'Letter (8.50 x 11.00 Inches)'; |
| for(i=0;i<this.StandardPaperSizes.length;i++){ |
| n = this.StandardPaperSizes[i][0]; |
| l = this.StandardPaperSizes[i][1]; |
| w = this.StandardPaperSizes[i][2]; |
| text = n + " (" + l.toFixed(2) + " x " + w.toFixed(2) + " Inches)"; |
| out.push({width:w,height:l,text:text}); |
| text = n + " (" + w.toFixed(2) + " x " + l.toFixed(2) + " Inches)"; |
| out.push({width:l,height:w,text:text}); |
Formula: | [["Letter",8.5,11.0], |
Formula: | return function(paperSizeName) { |
| for (i=0;i<this.PossiblePaperSizes.length;i++) { |
| testName = this.PossiblePaperSizes[i].text; |
| if (testName===paperSizeName) { |
| height=this.PossiblePaperSizes[i].height; |
Formula: | return function(paperSizeName) { |
| for (i=0;i<this.PossiblePaperSizes.length;i++) { |
| testName = this.PossiblePaperSizes[i].text; |
| if (testName===paperSizeName) { |
| width=this.PossiblePaperSizes[i].width; |
Mixins
None
RULE NAME
|
TYPE
|
DEFAULTS
|
CATEGORY
|
FLAGS
|
PaperSize
|
string
|
'Letter (8.50 x 11.00 Inches)'
|
Inputs
|
Cached
Parameter
|
PossiblePaperSizes
|
array
|
Formula
|
Inputs
|
Cached
|
StandardPaperSizes
|
array
|
Formula
|
Inputs
|
Cached
|
getHeightFromName
|
any
|
Formula
|
|
Cached
|
getWidthFromName
|
any
|
Formula
|
|
Cached
|
UI Designs that use the DimensionTextMixin:
1.DrawingSheetMixin