UNPKG

igniteui-webcomponents-charts

Version:

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

75 lines (74 loc) 3.08 kB
import { __extends } from "tslib"; import { IgcLegendBaseComponent } from "./igc-legend-base-component"; import { ScaleLegend } from "./ScaleLegend"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a legend that indicates the size and the color scale for a collection of series. */ export var IgcScaleLegendComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcScaleLegendComponent, _super); function IgcScaleLegendComponent() { return _super.call(this) || this; } IgcScaleLegendComponent.prototype.createImplementation = function () { return new ScaleLegend(); }; Object.defineProperty(IgcScaleLegendComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcScaleLegendComponent.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(); } }; IgcScaleLegendComponent.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(IgcScaleLegendComponent, "observedAttributes", { get: function () { if (IgcScaleLegendComponent._observedAttributesIgcScaleLegendComponent == null) { var names = getAllPropertyNames(IgcScaleLegendComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcScaleLegendComponent._observedAttributesIgcScaleLegendComponent = names; } return IgcScaleLegendComponent._observedAttributesIgcScaleLegendComponent; }, enumerable: false, configurable: true }); IgcScaleLegendComponent.register = function () { if (!IgcScaleLegendComponent._isElementRegistered) { IgcScaleLegendComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcScaleLegendComponent.htmlTagName, IgcScaleLegendComponent); } }; IgcScaleLegendComponent._observedAttributesIgcScaleLegendComponent = null; IgcScaleLegendComponent.htmlTagName = "igc-scale-legend"; IgcScaleLegendComponent._isElementRegistered = false; return IgcScaleLegendComponent; }(IgcLegendBaseComponent));