UNPKG

igniteui-webcomponents-charts

Version:

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

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