all files / smithchart/legend/ legend.js

100% Statements 90/90
100% Branches 51/51
100% Functions 20/20
100% Lines 84/84
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              10×                                     10×             10×                 14×             14×                                                                            
/* 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 LegendTitle = (function (_super) {
        __extends(LegendTitle, _super);
        function LegendTitle() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(true)
        ], LegendTitle.prototype, "visible", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], LegendTitle.prototype, "text", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], LegendTitle.prototype, "description", void 0);
        __decorate([
            ej2_base_1.Property('Center')
        ], LegendTitle.prototype, "textAlignment", void 0);
        __decorate([
            ej2_base_1.Complex({ fontFamily: null, size: null, fontStyle: null, fontWeight: null, color: null }, utils_1.SmithchartFont)
        ], LegendTitle.prototype, "textStyle", void 0);
        return LegendTitle;
    }(ej2_base_1.ChildProperty));
    exports.LegendTitle = LegendTitle;
    var LegendLocation = (function (_super) {
        __extends(LegendLocation, _super);
        function LegendLocation() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(0)
        ], LegendLocation.prototype, "x", void 0);
        __decorate([
            ej2_base_1.Property(0)
        ], LegendLocation.prototype, "y", void 0);
        return LegendLocation;
    }(ej2_base_1.ChildProperty));
    exports.LegendLocation = LegendLocation;
    var LegendItemStyleBorder = (function (_super) {
        __extends(LegendItemStyleBorder, _super);
        function LegendItemStyleBorder() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(1)
        ], LegendItemStyleBorder.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], LegendItemStyleBorder.prototype, "color", void 0);
        return LegendItemStyleBorder;
    }(ej2_base_1.ChildProperty));
    exports.LegendItemStyleBorder = LegendItemStyleBorder;
    var LegendItemStyle = (function (_super) {
        __extends(LegendItemStyle, _super);
        function LegendItemStyle() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(10)
        ], LegendItemStyle.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property(10)
        ], LegendItemStyle.prototype, "height", void 0);
        __decorate([
            ej2_base_1.Complex({}, LegendItemStyleBorder)
        ], LegendItemStyle.prototype, "border", void 0);
        return LegendItemStyle;
    }(ej2_base_1.ChildProperty));
    exports.LegendItemStyle = LegendItemStyle;
    var LegendBorder = (function (_super) {
        __extends(LegendBorder, _super);
        function LegendBorder() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(1)
        ], LegendBorder.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], LegendBorder.prototype, "color", void 0);
        return LegendBorder;
    }(ej2_base_1.ChildProperty));
    exports.LegendBorder = LegendBorder;
    var SmithchartLegendSettings = (function (_super) {
        __extends(SmithchartLegendSettings, _super);
        function SmithchartLegendSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(false)
        ], SmithchartLegendSettings.prototype, "visible", void 0);
        __decorate([
            ej2_base_1.Property('bottom')
        ], SmithchartLegendSettings.prototype, "position", void 0);
        __decorate([
            ej2_base_1.Property('Center')
        ], SmithchartLegendSettings.prototype, "alignment", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], SmithchartLegendSettings.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], SmithchartLegendSettings.prototype, "height", void 0);
        __decorate([
            ej2_base_1.Property('circle')
        ], SmithchartLegendSettings.prototype, "shape", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], SmithchartLegendSettings.prototype, "rowCount", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], SmithchartLegendSettings.prototype, "columnCount", void 0);
        __decorate([
            ej2_base_1.Property(8)
        ], SmithchartLegendSettings.prototype, "itemPadding", void 0);
        __decorate([
            ej2_base_1.Property(5)
        ], SmithchartLegendSettings.prototype, "shapePadding", void 0);
        __decorate([
            ej2_base_1.Property('')
        ], SmithchartLegendSettings.prototype, "description", void 0);
        __decorate([
            ej2_base_1.Property(true)
        ], SmithchartLegendSettings.prototype, "toggleVisibility", void 0);
        __decorate([
            ej2_base_1.Complex({}, LegendTitle)
        ], SmithchartLegendSettings.prototype, "title", void 0);
        __decorate([
            ej2_base_1.Complex({}, LegendLocation)
        ], SmithchartLegendSettings.prototype, "location", void 0);
        __decorate([
            ej2_base_1.Complex({}, LegendItemStyle)
        ], SmithchartLegendSettings.prototype, "itemStyle", void 0);
        __decorate([
            ej2_base_1.Complex({}, LegendBorder)
        ], SmithchartLegendSettings.prototype, "border", void 0);
        __decorate([
            ej2_base_1.Complex({ fontFamily: null, size: null, fontStyle: null, fontWeight: null, color: null }, utils_1.SmithchartFont)
        ], SmithchartLegendSettings.prototype, "textStyle", void 0);
        return SmithchartLegendSettings;
    }(ej2_base_1.ChildProperty));
    exports.SmithchartLegendSettings = SmithchartLegendSettings;
});