UNPKG

igniteui-webcomponents-charts

Version:

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

144 lines (143 loc) 5.49 kB
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 */ export let IgcDataAnnotationRangeLayerComponent = /*@__PURE__*/ (() => { class IgcDataAnnotationRangeLayerComponent extends IgcDataAnnotationShapeLayerComponent { /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } connectedCallback() { if (super["connectedCallback"]) { super["connectedCallback"](); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } } disconnectedCallback() { if (super["disconnectedCallback"]) { super["disconnectedCallback"](); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } } static get observedAttributes() { if (IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent == null) { let names = getAllPropertyNames(IgcDataAnnotationRangeLayerComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent = names; } return IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent; } /** * Gets or sets the text color used for displaying the start annotation label. */ get startLabelTextColor() { return brushToString(this.i.af9); } set startLabelTextColor(v) { this.i.af9 = stringToBrush(v); this._a("startLabelTextColor", brushToString(this.i.af9)); } /** * Gets or sets the background used for displaying the start annotation label. */ get startLabelBackground() { return brushToString(this.i.af7); } set startLabelBackground(v) { this.i.af7 = stringToBrush(v); this._a("startLabelBackground", brushToString(this.i.af7)); } /** * Gets or sets the border color used for displaying Start annotation label. */ get startLabelBorderColor() { return brushToString(this.i.af8); } set startLabelBorderColor(v) { this.i.af8 = stringToBrush(v); this._a("startLabelBorderColor", brushToString(this.i.af8)); } /** * Gets or sets the text color used for displaying the end annotation label. */ get endLabelTextColor() { return brushToString(this.i.af6); } set endLabelTextColor(v) { this.i.af6 = stringToBrush(v); this._a("endLabelTextColor", brushToString(this.i.af6)); } /** * Gets or sets the background used for displaying the end annotation label. */ get endLabelBackground() { return brushToString(this.i.af4); } set endLabelBackground(v) { this.i.af4 = stringToBrush(v); this._a("endLabelBackground", brushToString(this.i.af4)); } /** * Gets or sets the border used for displaying the end annotation label. */ get endLabelBorderColor() { return brushToString(this.i.af5); } set endLabelBorderColor(v) { this.i.af5 = stringToBrush(v); this._a("endLabelBorderColor", brushToString(this.i.af5)); } /** * Gets or sets the text color used for displaying the center annotation label. */ get centerLabelTextColor() { return brushToString(this.i.af3); } set centerLabelTextColor(v) { this.i.af3 = stringToBrush(v); this._a("centerLabelTextColor", brushToString(this.i.af3)); } /** * Gets or sets the background used for displaying the center annotation label. */ get centerLabelBackground() { return brushToString(this.i.af1); } set centerLabelBackground(v) { this.i.af1 = stringToBrush(v); this._a("centerLabelBackground", brushToString(this.i.af1)); } /** * Gets or sets the border color used for displaying the center annotation label. */ get centerLabelBorderColor() { return brushToString(this.i.af2); } set centerLabelBorderColor(v) { this.i.af2 = stringToBrush(v); this._a("centerLabelBorderColor", brushToString(this.i.af2)); } } IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent = null; return IgcDataAnnotationRangeLayerComponent; })();