all files / smithchart/utils/ utils.js

100% Statements 139/139
91.07% Branches 51/56
97.92% Functions 47/48
100% Lines 133/133
18 statements, 7 functions, 29 branches Ignored     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208              107×                             14×                     14×                 3651× 3651× 3651× 3651×                 3680×     250×                     3477× 3477× 3477× 3477× 3477×         265× 265×             27505× 27505×            
/* istanbul ignore next */ 
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
/* istanbul ignore next */ 
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
define(["require", "exports", "@syncfusion/ej2-base"], function (require, exports, ej2_base_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var SmithchartFont = (function (_super) {
        __extends(SmithchartFont, _super);
        function SmithchartFont() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('Segoe UI')
        ], SmithchartFont.prototype, "fontFamily", void 0);
        __decorate([
            ej2_base_1.Property('Normal')
        ], SmithchartFont.prototype, "fontStyle", void 0);
        __decorate([
            ej2_base_1.Property('Regular')
        ], SmithchartFont.prototype, "fontWeight", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], SmithchartFont.prototype, "color", void 0);
        __decorate([
            ej2_base_1.Property('12px')
        ], SmithchartFont.prototype, "size", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], SmithchartFont.prototype, "opacity", void 0);
        return SmithchartFont;
    }(ej2_base_1.ChildProperty));
    exports.SmithchartFont = SmithchartFont;
    var SmithchartMargin = (function (_super) {
        __extends(SmithchartMargin, _super);
        function SmithchartMargin() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(ej2_base_1.Browser.isDevice ? 5 : 10)
        ], SmithchartMargin.prototype, "top", void 0);
        __decorate([
            ej2_base_1.Property(ej2_base_1.Browser.isDevice ? 5 : 10)
        ], SmithchartMargin.prototype, "bottom", void 0);
        __decorate([
            ej2_base_1.Property(ej2_base_1.Browser.isDevice ? 5 : 10)
        ], SmithchartMargin.prototype, "right", void 0);
        __decorate([
            ej2_base_1.Property(ej2_base_1.Browser.isDevice ? 5 : 10)
        ], SmithchartMargin.prototype, "left", void 0);
        return SmithchartMargin;
    }(ej2_base_1.ChildProperty));
    exports.SmithchartMargin = SmithchartMargin;
    var SmithchartBorder = (function (_super) {
        __extends(SmithchartBorder, _super);
        function SmithchartBorder() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(0)
        ], SmithchartBorder.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], SmithchartBorder.prototype, "opacity", void 0);
        __decorate([
            ej2_base_1.Property('transparent')
        ], SmithchartBorder.prototype, "color", void 0);
        return SmithchartBorder;
    }(ej2_base_1.ChildProperty));
    exports.SmithchartBorder = SmithchartBorder;
    var SmithchartRect = (function () {
        function SmithchartRect(x, y, width, height) {
            this.x = x;
            this.y = y;
            this.width = width;
            this.height = height;
        }
        return SmithchartRect;
    }());
    exports.SmithchartRect = SmithchartRect;
    var LabelCollection = (function () {
        function LabelCollection() {
        }
        return LabelCollection;
    }());
    exports.LabelCollection = LabelCollection;
    var LegendSeries = (function () {
        function LegendSeries() {
        }
        return LegendSeries;
    }());
    exports.LegendSeries = LegendSeries;
    var LabelRegion = (function () {
        function LabelRegion() {
        }
        return LabelRegion;
    }());
    exports.LabelRegion = LabelRegion;
    var HorizontalLabelCollection = (function (_super) {
        __extends(HorizontalLabelCollection, _super);
        function HorizontalLabelCollection() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        return HorizontalLabelCollection;
    }(LabelCollection));
    exports.HorizontalLabelCollection = HorizontalLabelCollection;
    var RadialLabelCollections = (function (_super) {
        __extends(RadialLabelCollections, _super);
        function RadialLabelCollections() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        return RadialLabelCollections;
    }(HorizontalLabelCollection));
    exports.RadialLabelCollections = RadialLabelCollections;
    var LineSegment = (function () {
        function LineSegment() {
        }
        return LineSegment;
    }());
    exports.LineSegment = LineSegment;
    var PointRegion = (function () {
        function PointRegion() {
        }
        return PointRegion;
    }());
    exports.PointRegion = PointRegion;
    var Point = (function () {
        function Point() {
        }
        return Point;
    }());
    exports.Point = Point;
    var ClosestPoint = (function () {
        function ClosestPoint() {
        }
        return ClosestPoint;
    }());
    exports.ClosestPoint = ClosestPoint;
    var MarkerOptions = (function () {
        function MarkerOptions(id, fill, borderColor, borderWidth, opacity) {
            this.id = id;
            this.fill = fill;
            this.borderColor = borderColor;
            this.borderWidth = borderWidth;
            this.opacity = opacity;
        }
        return MarkerOptions;
    }());
    exports.MarkerOptions = MarkerOptions;
    var SmithchartLabelPosition = (function () {
        function SmithchartLabelPosition() {
        }
        return SmithchartLabelPosition;
    }());
    exports.SmithchartLabelPosition = SmithchartLabelPosition;
    var Direction = (function () {
        function Direction() {
            this.counterclockwise = 0;
            this.clockwise = 1;
        }
        return Direction;
    }());
    exports.Direction = Direction;
    var DataLabelTextOptions = (function () {
        function DataLabelTextOptions() {
        }
        return DataLabelTextOptions;
    }());
    exports.DataLabelTextOptions = DataLabelTextOptions;
    var LabelOption = (function () {
        function LabelOption() {
        }
        return LabelOption;
    }());
    exports.LabelOption = LabelOption;
    var SmithchartSize = (function () {
        function SmithchartSize(width, height) {
            this.width = width;
            this.height = height;
        }
        return SmithchartSize;
    }());
    exports.SmithchartSize = SmithchartSize;
    var GridArcPoints = (function () {
        function GridArcPoints() {
        }
        return GridArcPoints;
    }());
    exports.GridArcPoints = GridArcPoints;
});