UNPKG

igniteui-webcomponents-charts

Version:

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

104 lines (103 loc) 4.51 kB
import { __extends } from "tslib"; 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 */ var IgcDataAnnotationSliceLayerComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcDataAnnotationSliceLayerComponent, _super); function IgcDataAnnotationSliceLayerComponent() { return _super.call(this) || this; } IgcDataAnnotationSliceLayerComponent.prototype.createImplementation = function () { return new DataAnnotationSliceLayer(); }; Object.defineProperty(IgcDataAnnotationSliceLayerComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcDataAnnotationSliceLayerComponent.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(); } }; IgcDataAnnotationSliceLayerComponent.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(IgcDataAnnotationSliceLayerComponent, "observedAttributes", { get: function () { if (IgcDataAnnotationSliceLayerComponent._observedAttributesIgcDataAnnotationSliceLayerComponent == null) { var names = getAllPropertyNames(IgcDataAnnotationSliceLayerComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcDataAnnotationSliceLayerComponent._observedAttributesIgcDataAnnotationSliceLayerComponent = names; } return IgcDataAnnotationSliceLayerComponent._observedAttributesIgcDataAnnotationSliceLayerComponent; }, enumerable: false, configurable: true }); IgcDataAnnotationSliceLayerComponent.register = function () { if (!IgcDataAnnotationSliceLayerComponent._isElementRegistered) { IgcDataAnnotationSliceLayerComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcDataAnnotationSliceLayerComponent.htmlTagName, IgcDataAnnotationSliceLayerComponent); } }; Object.defineProperty(IgcDataAnnotationSliceLayerComponent.prototype, "annotationValueMemberPath", { /** * Gets or sets name of data column with values used to position annotations. */ get: function () { return this.i.afr; }, set: function (v) { this.i.afr = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationSliceLayerComponent.prototype, "annotationLabelMemberPath", { /** * Gets or sets mapping custom label on axis annotations. */ get: function () { return this.i.afo; }, set: function (v) { this.i.afo = v; }, enumerable: false, configurable: true }); IgcDataAnnotationSliceLayerComponent._observedAttributesIgcDataAnnotationSliceLayerComponent = null; IgcDataAnnotationSliceLayerComponent.htmlTagName = "igc-data-annotation-slice-layer"; IgcDataAnnotationSliceLayerComponent._isElementRegistered = false; return IgcDataAnnotationSliceLayerComponent; }(IgcDataAnnotationShapeLayerComponent)); export { IgcDataAnnotationSliceLayerComponent };