all files / linear-gauge/model/ base.js

100% Statements 92/92
100% Branches 51/51
100% Functions 19/19
100% Lines 86/86
16 statements, 6 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            67×                             17×                     77×             17×                                         17×                                 17×                                    
/* istanbul ignore next */ 
var __extends = (this && this.__extends) || (function () {
    var 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 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 Font = (function (_super) {
        __extends(Font, _super);
        function Font() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('16px')
        ], Font.prototype, "size", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], Font.prototype, "color", void 0);
        __decorate([
            ej2_base_1.Property('Segoe UI')
        ], Font.prototype, "fontFamily", void 0);
        __decorate([
            ej2_base_1.Property('Regular')
        ], Font.prototype, "fontWeight", void 0);
        __decorate([
            ej2_base_1.Property('Normal')
        ], Font.prototype, "fontStyle", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], Font.prototype, "opacity", void 0);
        return Font;
    }(ej2_base_1.ChildProperty));
    exports.Font = Font;
    var Margin = (function (_super) {
        __extends(Margin, _super);
        function Margin() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(10)
        ], Margin.prototype, "left", void 0);
        __decorate([
            ej2_base_1.Property(10)
        ], Margin.prototype, "right", void 0);
        __decorate([
            ej2_base_1.Property(10)
        ], Margin.prototype, "top", void 0);
        __decorate([
            ej2_base_1.Property(10)
        ], Margin.prototype, "bottom", void 0);
        return Margin;
    }(ej2_base_1.ChildProperty));
    exports.Margin = Margin;
    var Border = (function (_super) {
        __extends(Border, _super);
        function Border() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(null)
        ], Border.prototype, "color", void 0);
        __decorate([
            ej2_base_1.Property(0)
        ], Border.prototype, "width", void 0);
        return Border;
    }(ej2_base_1.ChildProperty));
    exports.Border = Border;
    var Annotation = (function (_super) {
        __extends(Annotation, _super);
        function Annotation() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('')
        ], Annotation.prototype, "content", void 0);
        __decorate([
            ej2_base_1.Property(0)
        ], Annotation.prototype, "x", void 0);
        __decorate([
            ej2_base_1.Property(0)
        ], Annotation.prototype, "y", void 0);
        __decorate([
            ej2_base_1.Property('None')
        ], Annotation.prototype, "verticalAlignment", void 0);
        __decorate([
            ej2_base_1.Property('None')
        ], Annotation.prototype, "horizontalAlignment", void 0);
        __decorate([
            ej2_base_1.Property('-1')
        ], Annotation.prototype, "zIndex", void 0);
        __decorate([
            ej2_base_1.Complex({ size: '12px', color: null }, Font)
        ], Annotation.prototype, "font", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], Annotation.prototype, "axisIndex", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], Annotation.prototype, "axisValue", void 0);
        return Annotation;
    }(ej2_base_1.ChildProperty));
    exports.Annotation = Annotation;
    var Container = (function (_super) {
        __extends(Container, _super);
        function Container() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('Normal')
        ], Container.prototype, "type", void 0);
        __decorate([
            ej2_base_1.Property(0)
        ], Container.prototype, "height", void 0);
        __decorate([
            ej2_base_1.Property(0)
        ], Container.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property(10)
        ], Container.prototype, "roundedCornerRadius", void 0);
        __decorate([
            ej2_base_1.Property('transparent')
        ], Container.prototype, "backgroundColor", void 0);
        __decorate([
            ej2_base_1.Complex({ width: 1, color: '#bfbfbf' }, Border)
        ], Container.prototype, "border", void 0);
        __decorate([
            ej2_base_1.Property(0)
        ], Container.prototype, "offset", void 0);
        return Container;
    }(ej2_base_1.ChildProperty));
    exports.Container = Container;
    var TooltipSettings = (function (_super) {
        __extends(TooltipSettings, _super);
        function TooltipSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(false)
        ], TooltipSettings.prototype, "enable", void 0);
        __decorate([
            ej2_base_1.Property('#000000')
        ], TooltipSettings.prototype, "fill", void 0);
        __decorate([
            ej2_base_1.Complex({ color: '#ffffff', size: '13px' }, Font)
        ], TooltipSettings.prototype, "textStyle", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], TooltipSettings.prototype, "format", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], TooltipSettings.prototype, "template", void 0);
        __decorate([
            ej2_base_1.Property(true)
        ], TooltipSettings.prototype, "enableAnimation", void 0);
        __decorate([
            ej2_base_1.Complex({}, Border)
        ], TooltipSettings.prototype, "border", void 0);
        return TooltipSettings;
    }(ej2_base_1.ChildProperty));
    exports.TooltipSettings = TooltipSettings;
});