UNPKG

igniteui-webcomponents-charts

Version:

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

87 lines (86 loc) 3.64 kB
import { IgcDataAnnotationShapeLayerComponent } from "./igc-data-annotation-shape-layer-component"; import { DataAnnotationSliceLayer } from "./DataAnnotationSliceLayer"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents an annotation layer that renders vertical or horizontal slices/lines at values mapped to AnnotationValueMemberPath property * horizontal slices/lines when TargetAxis is set to Y-axis * vertical slices/lines when TargetAxis is set to X-axis */ export let IgcDataAnnotationSliceLayerComponent = /*@__PURE__*/ (() => { class IgcDataAnnotationSliceLayerComponent extends IgcDataAnnotationShapeLayerComponent { createImplementation() { return new DataAnnotationSliceLayer(); } /** * @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 (IgcDataAnnotationSliceLayerComponent._observedAttributesIgcDataAnnotationSliceLayerComponent == null) { let names = getAllPropertyNames(IgcDataAnnotationSliceLayerComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcDataAnnotationSliceLayerComponent._observedAttributesIgcDataAnnotationSliceLayerComponent = names; } return IgcDataAnnotationSliceLayerComponent._observedAttributesIgcDataAnnotationSliceLayerComponent; } static register() { if (!IgcDataAnnotationSliceLayerComponent._isElementRegistered) { IgcDataAnnotationSliceLayerComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcDataAnnotationSliceLayerComponent.htmlTagName, IgcDataAnnotationSliceLayerComponent); } } /** * Gets or sets name of data column with values used to position annotations. */ get annotationValueMemberPath() { return this.i.afr; } set annotationValueMemberPath(v) { this.i.afr = v; } /** * Gets or sets mapping custom label on axis annotations. */ get annotationLabelMemberPath() { return this.i.afo; } set annotationLabelMemberPath(v) { this.i.afo = v; } } IgcDataAnnotationSliceLayerComponent._observedAttributesIgcDataAnnotationSliceLayerComponent = null; IgcDataAnnotationSliceLayerComponent.htmlTagName = "igc-data-annotation-slice-layer"; IgcDataAnnotationSliceLayerComponent._isElementRegistered = false; return IgcDataAnnotationSliceLayerComponent; })();