UNPKG

igniteui-webcomponents-charts

Version:

Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.

189 lines (188 loc) 7.31 kB
import { __extends } from "tslib"; import { IgcDataAnnotationShapeLayerComponent } from "./igc-data-annotation-shape-layer-component"; import { getAllPropertyNames, toSpinal, brushToString, stringToBrush } from "igniteui-webcomponents-core"; /** * Represents a base of annotation layers that render from start/end range */ var IgcDataAnnotationRangeLayerComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcDataAnnotationRangeLayerComponent, _super); function IgcDataAnnotationRangeLayerComponent() { return _super.call(this) || this; } Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcDataAnnotationRangeLayerComponent.prototype.connectedCallback = function () { if (_super.prototype["connectedCallback"]) { _super.prototype["connectedCallback"].call(this); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } }; IgcDataAnnotationRangeLayerComponent.prototype.disconnectedCallback = function () { if (_super.prototype["disconnectedCallback"]) { _super.prototype["disconnectedCallback"].call(this); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } }; Object.defineProperty(IgcDataAnnotationRangeLayerComponent, "observedAttributes", { get: function () { if (IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent == null) { var names = getAllPropertyNames(IgcDataAnnotationRangeLayerComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent = names; } return IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "startLabelTextColor", { /** * Gets or sets the text color used for displaying the start annotation label. */ get: function () { return brushToString(this.i.af9); }, set: function (v) { this.i.af9 = stringToBrush(v); this._a("startLabelTextColor", brushToString(this.i.af9)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "startLabelBackground", { /** * Gets or sets the background used for displaying the start annotation label. */ get: function () { return brushToString(this.i.af7); }, set: function (v) { this.i.af7 = stringToBrush(v); this._a("startLabelBackground", brushToString(this.i.af7)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "startLabelBorderColor", { /** * Gets or sets the border color used for displaying Start annotation label. */ get: function () { return brushToString(this.i.af8); }, set: function (v) { this.i.af8 = stringToBrush(v); this._a("startLabelBorderColor", brushToString(this.i.af8)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "endLabelTextColor", { /** * Gets or sets the text color used for displaying the end annotation label. */ get: function () { return brushToString(this.i.af6); }, set: function (v) { this.i.af6 = stringToBrush(v); this._a("endLabelTextColor", brushToString(this.i.af6)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "endLabelBackground", { /** * Gets or sets the background used for displaying the end annotation label. */ get: function () { return brushToString(this.i.af4); }, set: function (v) { this.i.af4 = stringToBrush(v); this._a("endLabelBackground", brushToString(this.i.af4)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "endLabelBorderColor", { /** * Gets or sets the border used for displaying the end annotation label. */ get: function () { return brushToString(this.i.af5); }, set: function (v) { this.i.af5 = stringToBrush(v); this._a("endLabelBorderColor", brushToString(this.i.af5)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "centerLabelTextColor", { /** * Gets or sets the text color used for displaying the center annotation label. */ get: function () { return brushToString(this.i.af3); }, set: function (v) { this.i.af3 = stringToBrush(v); this._a("centerLabelTextColor", brushToString(this.i.af3)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "centerLabelBackground", { /** * Gets or sets the background used for displaying the center annotation label. */ get: function () { return brushToString(this.i.af1); }, set: function (v) { this.i.af1 = stringToBrush(v); this._a("centerLabelBackground", brushToString(this.i.af1)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "centerLabelBorderColor", { /** * Gets or sets the border color used for displaying the center annotation label. */ get: function () { return brushToString(this.i.af2); }, set: function (v) { this.i.af2 = stringToBrush(v); this._a("centerLabelBorderColor", brushToString(this.i.af2)); }, enumerable: false, configurable: true }); IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent = null; return IgcDataAnnotationRangeLayerComponent; }(IgcDataAnnotationShapeLayerComponent)); export { IgcDataAnnotationRangeLayerComponent };