@awayjs/renderer
Version:
Renderer for AwayJS
43 lines (42 loc) • 2 kB
JavaScript
/**
* The LineScaleMode class provides values for the <code>scaleMode</code>
* parameter in the <code>Graphics.lineStyle()</code> method.
*/
export var LineScaleMode;
(function (LineScaleMode) {
/**
* With this setting used as the <code>scaleMode</code> parameter of the
* <code>lineStyle()</code> method, the thickness of the line scales
* <i>only</i> vertically. For example, consider the following circles, drawn
* with a one-pixel line, and each with the <code>scaleMode</code> parameter
* set to <code>LineScaleMode.VERTICAL</code>. The circle on the left is
* scaled only vertically, and the circle on the right is scaled both
* vertically and horizontally.
*/
LineScaleMode[LineScaleMode["HORIZONTAL"] = 0] = "HORIZONTAL";
/**
* With this setting used as the <code>scaleMode</code> parameter of the
* <code>lineStyle()</code> method, the thickness of the line never scales.
*/
LineScaleMode[LineScaleMode["NONE"] = 1] = "NONE";
/**
* With this setting used as the <code>scaleMode</code> parameter of the
* <code>lineStyle()</code> method, the thickness of the line always scales
* when the object is scaled(the default).
*/
LineScaleMode[LineScaleMode["NORMAL"] = 2] = "NORMAL";
/**
* With this setting used as the <code>scaleMode</code> parameter of the
* <code>lineStyle()</code> method, the thickness of the line scales
* <i>only</i> horizontally. For example, consider the following circles,
* drawn with a one-pixel line, and each with the <code>scaleMode</code>
* parameter set to <code>LineScaleMode.HORIZONTAL</code>. The circle on the
* left is scaled only horizontally, and the circle on the right is scaled
* both vertically and horizontally.
*/
LineScaleMode[LineScaleMode["VERTICAL"] = 3] = "VERTICAL";
/**
*
*/
LineScaleMode[LineScaleMode["HAIRLINE"] = 4] = "HAIRLINE";
})(LineScaleMode || (LineScaleMode = {}));