all files / chart/model/ chart-base.js

100% Statements 125/125
100% Branches 54/54
100% Functions 22/22
100% Lines 119/119
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 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262              845×                                             1299×                 118×                             81×                                                                                                     37×                                     1844×                                                
/* 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", "../../common/model/base"], function (require, exports, ej2_base_1, base_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var ChartAnnotationSettings = (function (_super) {
        __extends(ChartAnnotationSettings, _super);
        function ChartAnnotationSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('0')
        ], ChartAnnotationSettings.prototype, "x", void 0);
        __decorate([
            ej2_base_1.Property('0')
        ], ChartAnnotationSettings.prototype, "y", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], ChartAnnotationSettings.prototype, "content", void 0);
        __decorate([
            ej2_base_1.Property('Center')
        ], ChartAnnotationSettings.prototype, "horizontalAlignment", void 0);
        __decorate([
            ej2_base_1.Property('Pixel')
        ], ChartAnnotationSettings.prototype, "coordinateUnits", void 0);
        __decorate([
            ej2_base_1.Property('Chart')
        ], ChartAnnotationSettings.prototype, "region", void 0);
        __decorate([
            ej2_base_1.Property('Middle')
        ], ChartAnnotationSettings.prototype, "verticalAlignment", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], ChartAnnotationSettings.prototype, "xAxisName", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], ChartAnnotationSettings.prototype, "yAxisName", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], ChartAnnotationSettings.prototype, "description", void 0);
        return ChartAnnotationSettings;
    }(ej2_base_1.ChildProperty));
    exports.ChartAnnotationSettings = ChartAnnotationSettings;
    var LabelBorder = (function (_super) {
        __extends(LabelBorder, _super);
        function LabelBorder() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('')
        ], LabelBorder.prototype, "color", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], LabelBorder.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property('Rectangle')
        ], LabelBorder.prototype, "type", void 0);
        return LabelBorder;
    }(ej2_base_1.ChildProperty));
    exports.LabelBorder = LabelBorder;
    var MultiLevelCategories = (function (_super) {
        __extends(MultiLevelCategories, _super);
        function MultiLevelCategories() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(null)
        ], MultiLevelCategories.prototype, "start", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], MultiLevelCategories.prototype, "end", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], MultiLevelCategories.prototype, "text", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], MultiLevelCategories.prototype, "maximumTextWidth", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], MultiLevelCategories.prototype, "customAttributes", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], MultiLevelCategories.prototype, "type", void 0);
        return MultiLevelCategories;
    }(ej2_base_1.ChildProperty));
    exports.MultiLevelCategories = MultiLevelCategories;
    var StripLineSettings = (function (_super) {
        __extends(StripLineSettings, _super);
        function StripLineSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(true)
        ], StripLineSettings.prototype, "visible", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], StripLineSettings.prototype, "startFromAxis", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StripLineSettings.prototype, "start", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StripLineSettings.prototype, "end", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StripLineSettings.prototype, "size", void 0);
        __decorate([
            ej2_base_1.Property('#808080')
        ], StripLineSettings.prototype, "color", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StripLineSettings.prototype, "dashArray", void 0);
        __decorate([
            ej2_base_1.Property('Auto')
        ], StripLineSettings.prototype, "sizeType", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], StripLineSettings.prototype, "isRepeat", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StripLineSettings.prototype, "repeatEvery", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StripLineSettings.prototype, "repeatUntil", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], StripLineSettings.prototype, "isSegmented", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StripLineSettings.prototype, "segmentStart", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StripLineSettings.prototype, "segmentEnd", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StripLineSettings.prototype, "segmentAxisName", void 0);
        __decorate([
            ej2_base_1.Complex({ color: 'transparent', width: 1 }, base_1.Border)
        ], StripLineSettings.prototype, "border", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], StripLineSettings.prototype, "text", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StripLineSettings.prototype, "rotation", void 0);
        __decorate([
            ej2_base_1.Property('Middle')
        ], StripLineSettings.prototype, "horizontalAlignment", void 0);
        __decorate([
            ej2_base_1.Property('Middle')
        ], StripLineSettings.prototype, "verticalAlignment", void 0);
        __decorate([
            ej2_base_1.Complex({ size: '12px', color: null, fontStyle: 'Normal', fontWeight: '400', fontFamily: null }, base_1.Font)
        ], StripLineSettings.prototype, "textStyle", void 0);
        __decorate([
            ej2_base_1.Property('Behind')
        ], StripLineSettings.prototype, "zIndex", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], StripLineSettings.prototype, "opacity", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], StripLineSettings.prototype, "imageUrl", void 0);
        return StripLineSettings;
    }(ej2_base_1.ChildProperty));
    exports.StripLineSettings = StripLineSettings;
    var MultiLevelLabels = (function (_super) {
        __extends(MultiLevelLabels, _super);
        function MultiLevelLabels() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('Center')
        ], MultiLevelLabels.prototype, "alignment", void 0);
        __decorate([
            ej2_base_1.Property('Wrap')
        ], MultiLevelLabels.prototype, "overflow", void 0);
        __decorate([
            ej2_base_1.Complex({ fontFamily: null, size: '12px', fontStyle: 'Normal', fontWeight: '400', color: null }, base_1.Font)
        ], MultiLevelLabels.prototype, "textStyle", void 0);
        __decorate([
            ej2_base_1.Complex({ color: null, width: 1, type: 'Rectangle' }, LabelBorder)
        ], MultiLevelLabels.prototype, "border", void 0);
        __decorate([
            ej2_base_1.Collection([], MultiLevelCategories)
        ], MultiLevelLabels.prototype, "categories", void 0);
        return MultiLevelLabels;
    }(ej2_base_1.ChildProperty));
    exports.MultiLevelLabels = MultiLevelLabels;
    var ScrollbarSettingsRange = (function (_super) {
        __extends(ScrollbarSettingsRange, _super);
        function ScrollbarSettingsRange() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(null)
        ], ScrollbarSettingsRange.prototype, "minimum", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], ScrollbarSettingsRange.prototype, "maximum", void 0);
        return ScrollbarSettingsRange;
    }(ej2_base_1.ChildProperty));
    exports.ScrollbarSettingsRange = ScrollbarSettingsRange;
    var ScrollbarSettings = (function (_super) {
        __extends(ScrollbarSettings, _super);
        function ScrollbarSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(false)
        ], ScrollbarSettings.prototype, "enable", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], ScrollbarSettings.prototype, "pointsLength", void 0);
        __decorate([
            ej2_base_1.Complex({}, ScrollbarSettingsRange)
        ], ScrollbarSettings.prototype, "range", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], ScrollbarSettings.prototype, "trackColor", void 0);
        __decorate([
            ej2_base_1.Property(0)
        ], ScrollbarSettings.prototype, "scrollbarRadius", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], ScrollbarSettings.prototype, "scrollbarColor", void 0);
        __decorate([
            ej2_base_1.Property(0)
        ], ScrollbarSettings.prototype, "trackRadius", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], ScrollbarSettings.prototype, "gripColor", void 0);
        __decorate([
            ej2_base_1.Property(16)
        ], ScrollbarSettings.prototype, "height", void 0);
        __decorate([
            ej2_base_1.Property(true)
        ], ScrollbarSettings.prototype, "enableZoom", void 0);
        return ScrollbarSettings;
    }(ej2_base_1.ChildProperty));
    exports.ScrollbarSettings = ScrollbarSettings;
});