all files / smithchart/series/ series.js

100% Statements 115/115
100% Branches 57/57
100% Functions 24/24
100% Lines 109/109
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 209 210 211 212 213 214 215 216 217 218 219 220 221 222                          15×                                                             15×                                 15×                                         27×                                                                    
/* 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", "../utils/utils"], function (require, exports, ej2_base_1, utils_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var SeriesTooltipBorder = (function (_super) {
        __extends(SeriesTooltipBorder, _super);
        function SeriesTooltipBorder() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(1)
        ], SeriesTooltipBorder.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], SeriesTooltipBorder.prototype, "color", void 0);
        return SeriesTooltipBorder;
    }(ej2_base_1.ChildProperty));
    exports.SeriesTooltipBorder = SeriesTooltipBorder;
    var SeriesTooltip = (function (_super) {
        __extends(SeriesTooltip, _super);
        function SeriesTooltip() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(false)
        ], SeriesTooltip.prototype, "visible", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], SeriesTooltip.prototype, "fill", void 0);
        __decorate([
            ej2_base_1.Property(0.75)
        ], SeriesTooltip.prototype, "opacity", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], SeriesTooltip.prototype, "template", void 0);
        __decorate([
            ej2_base_1.Complex({}, SeriesTooltipBorder)
        ], SeriesTooltip.prototype, "border", void 0);
        return SeriesTooltip;
    }(ej2_base_1.ChildProperty));
    exports.SeriesTooltip = SeriesTooltip;
    var SeriesMarkerBorder = (function (_super) {
        __extends(SeriesMarkerBorder, _super);
        function SeriesMarkerBorder() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(3)
        ], SeriesMarkerBorder.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property('white')
        ], SeriesMarkerBorder.prototype, "color", void 0);
        return SeriesMarkerBorder;
    }(ej2_base_1.ChildProperty));
    exports.SeriesMarkerBorder = SeriesMarkerBorder;
    var SeriesMarkerDataLabelBorder = (function (_super) {
        __extends(SeriesMarkerDataLabelBorder, _super);
        function SeriesMarkerDataLabelBorder() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(0.1)
        ], SeriesMarkerDataLabelBorder.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property('white')
        ], SeriesMarkerDataLabelBorder.prototype, "color", void 0);
        return SeriesMarkerDataLabelBorder;
    }(ej2_base_1.ChildProperty));
    exports.SeriesMarkerDataLabelBorder = SeriesMarkerDataLabelBorder;
    var SeriesMarkerDataLabelConnectorLine = (function (_super) {
        __extends(SeriesMarkerDataLabelConnectorLine, _super);
        function SeriesMarkerDataLabelConnectorLine() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(1)
        ], SeriesMarkerDataLabelConnectorLine.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], SeriesMarkerDataLabelConnectorLine.prototype, "color", void 0);
        return SeriesMarkerDataLabelConnectorLine;
    }(ej2_base_1.ChildProperty));
    exports.SeriesMarkerDataLabelConnectorLine = SeriesMarkerDataLabelConnectorLine;
    var SeriesMarkerDataLabel = (function (_super) {
        __extends(SeriesMarkerDataLabel, _super);
        function SeriesMarkerDataLabel() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(false)
        ], SeriesMarkerDataLabel.prototype, "visible", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], SeriesMarkerDataLabel.prototype, "template", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], SeriesMarkerDataLabel.prototype, "fill", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], SeriesMarkerDataLabel.prototype, "opacity", void 0);
        __decorate([
            ej2_base_1.Complex({}, SeriesMarkerDataLabelBorder)
        ], SeriesMarkerDataLabel.prototype, "border", void 0);
        __decorate([
            ej2_base_1.Complex({}, SeriesMarkerDataLabelConnectorLine)
        ], SeriesMarkerDataLabel.prototype, "connectorLine", void 0);
        __decorate([
            ej2_base_1.Complex({ fontFamily: null, size: null, fontStyle: null, fontWeight: null, color: null }, utils_1.SmithchartFont)
        ], SeriesMarkerDataLabel.prototype, "textStyle", void 0);
        return SeriesMarkerDataLabel;
    }(ej2_base_1.ChildProperty));
    exports.SeriesMarkerDataLabel = SeriesMarkerDataLabel;
    var SeriesMarker = (function (_super) {
        __extends(SeriesMarker, _super);
        function SeriesMarker() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(false)
        ], SeriesMarker.prototype, "visible", void 0);
        __decorate([
            ej2_base_1.Property('circle')
        ], SeriesMarker.prototype, "shape", void 0);
        __decorate([
            ej2_base_1.Property(6)
        ], SeriesMarker.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property(6)
        ], SeriesMarker.prototype, "height", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], SeriesMarker.prototype, "imageUrl", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], SeriesMarker.prototype, "fill", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], SeriesMarker.prototype, "opacity", void 0);
        __decorate([
            ej2_base_1.Complex({}, SeriesMarkerBorder)
        ], SeriesMarker.prototype, "border", void 0);
        __decorate([
            ej2_base_1.Complex({}, SeriesMarkerDataLabel)
        ], SeriesMarker.prototype, "dataLabel", void 0);
        return SeriesMarker;
    }(ej2_base_1.ChildProperty));
    exports.SeriesMarker = SeriesMarker;
    var SmithchartSeries = (function (_super) {
        __extends(SmithchartSeries, _super);
        function SmithchartSeries() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('visible')
        ], SmithchartSeries.prototype, "visibility", void 0);
        __decorate([
            ej2_base_1.Property([])
        ], SmithchartSeries.prototype, "points", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], SmithchartSeries.prototype, "resistance", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], SmithchartSeries.prototype, "reactance", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], SmithchartSeries.prototype, "tooltipMappingName", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], SmithchartSeries.prototype, "dataSource", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], SmithchartSeries.prototype, "name", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], SmithchartSeries.prototype, "fill", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], SmithchartSeries.prototype, "enableAnimation", void 0);
        __decorate([
            ej2_base_1.Property('2000ms')
        ], SmithchartSeries.prototype, "animationDuration", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], SmithchartSeries.prototype, "enableSmartLabels", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], SmithchartSeries.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], SmithchartSeries.prototype, "opacity", void 0);
        __decorate([
            ej2_base_1.Complex({}, SeriesMarker)
        ], SmithchartSeries.prototype, "marker", void 0);
        __decorate([
            ej2_base_1.Complex({}, SeriesTooltip)
        ], SmithchartSeries.prototype, "tooltip", void 0);
        return SmithchartSeries;
    }(ej2_base_1.ChildProperty));
    exports.SmithchartSeries = SmithchartSeries;
});