12345678910111213141516171819202122232425262728293031323334 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.SPen = void 0;
- var _1 = require("./");
- var SPen = (function () {
- function SPen(color, lineWidth) {
- this.color = _1.SColor.Black;
- this.lineWidth = 1;
- this.lineCapStyle = _1.SLineCapStyle.Butt;
- this.lineJoinStyle = _1.SLineJoinStyle.Miter;
- this.miterLimit = 10;
- this.lineDash = null;
- this.dashOffset = 0;
- if (color == undefined) {
- return;
- }
- if (color instanceof SPen) {
- this.color = new _1.SColor(color.color);
- this.lineWidth = color.lineWidth;
- this.lineCapStyle = color.lineCapStyle;
- this.lineJoinStyle = color.lineJoinStyle;
- this.miterLimit = color.miterLimit;
- this.dashOffset = color.dashOffset;
- this.lineDash =
- color.lineDash != null ? color.lineDash.slice() : null;
- }
- else {
- this.color = new _1.SColor(color);
- this.lineWidth = lineWidth != undefined ? lineWidth : 1;
- }
- }
- return SPen;
- }());
- exports.SPen = SPen;
|