UNPKG

igniteui-webcomponents-charts

Version:

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

155 lines (154 loc) 6.15 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 */ export 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.aho; }, set: function (v) { this.i.aho = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationSliceLayerComponent.prototype, "annotationLabelMemberPath", { /** * Gets or sets mapping custom label on axis annotations. */ get: function () { return this.i.ahl; }, set: function (v) { this.i.ahl = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationSliceLayerComponent.prototype, "annotationBadgeEnabledMemberPath", { /** * Gets or sets a member path for visibility of the badge annotations on an axis. */ get: function () { return this.i.ahc; }, set: function (v) { this.i.ahc = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationSliceLayerComponent.prototype, "annotationBadgeBackgroundMemberPath", { /** * Gets or sets a member path for background of the badge annotations on an axis. */ get: function () { return this.i.ag9; }, set: function (v) { this.i.ag9 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationSliceLayerComponent.prototype, "annotationBadgeOutlineMemberPath", { /** * Gets or sets a member path for outline of the badge annotations on an axis. */ get: function () { return this.i.ahi; }, set: function (v) { this.i.ahi = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationSliceLayerComponent.prototype, "annotationBadgeImageMemberPath", { /** * Gets or sets a member path for image of the badge annotations on an axis. */ get: function () { return this.i.ahf; }, set: function (v) { this.i.ahf = v; }, enumerable: false, configurable: true }); IgcDataAnnotationSliceLayerComponent._observedAttributesIgcDataAnnotationSliceLayerComponent = null; IgcDataAnnotationSliceLayerComponent.htmlTagName = "igc-data-annotation-slice-layer"; IgcDataAnnotationSliceLayerComponent._isElementRegistered = false; return IgcDataAnnotationSliceLayerComponent; }(IgcDataAnnotationShapeLayerComponent));