UNPKG

igniteui-webcomponents-charts

Version:

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

80 lines (79 loc) 3.62 kB
import { __extends } from "tslib"; import { IgcDataAnnotationPointLayerComponent } from "./igc-data-annotation-point-layer-component"; import { DataAnnotationLineLayer } from "./DataAnnotationLineLayer"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents an annotation layer that renders lines at locations of x/y values mapped to these properties: * StartValueXMemberPath * StartValueYMemberPath * EndValueXMemberPath * EndValueYMemberPath */ var IgcDataAnnotationLineLayerComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcDataAnnotationLineLayerComponent, _super); function IgcDataAnnotationLineLayerComponent() { return _super.call(this) || this; } IgcDataAnnotationLineLayerComponent.prototype.createImplementation = function () { return new DataAnnotationLineLayer(); }; Object.defineProperty(IgcDataAnnotationLineLayerComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcDataAnnotationLineLayerComponent.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(); } }; IgcDataAnnotationLineLayerComponent.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(IgcDataAnnotationLineLayerComponent, "observedAttributes", { get: function () { if (IgcDataAnnotationLineLayerComponent._observedAttributesIgcDataAnnotationLineLayerComponent == null) { var names = getAllPropertyNames(IgcDataAnnotationLineLayerComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcDataAnnotationLineLayerComponent._observedAttributesIgcDataAnnotationLineLayerComponent = names; } return IgcDataAnnotationLineLayerComponent._observedAttributesIgcDataAnnotationLineLayerComponent; }, enumerable: false, configurable: true }); IgcDataAnnotationLineLayerComponent.register = function () { if (!IgcDataAnnotationLineLayerComponent._isElementRegistered) { IgcDataAnnotationLineLayerComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcDataAnnotationLineLayerComponent.htmlTagName, IgcDataAnnotationLineLayerComponent); } }; IgcDataAnnotationLineLayerComponent._observedAttributesIgcDataAnnotationLineLayerComponent = null; IgcDataAnnotationLineLayerComponent.htmlTagName = "igc-data-annotation-line-layer"; IgcDataAnnotationLineLayerComponent._isElementRegistered = false; return IgcDataAnnotationLineLayerComponent; }(IgcDataAnnotationPointLayerComponent)); export { IgcDataAnnotationLineLayerComponent };