UNPKG

igniteui-webcomponents-charts

Version:

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

105 lines (104 loc) 4.58 kB
import { __extends } from "tslib"; import { BrushSelectionMode_$type } from "./BrushSelectionMode"; import { IgcBrushScaleComponent } from "./igc-brush-scale-component"; import { CustomPaletteBrushScale } from "./CustomPaletteBrushScale"; import { getAllPropertyNames, toSpinal, ensureEnum, enumToString, brushToString } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a brush scale that uses index-based brush selection mode. */ var IgcCustomPaletteBrushScaleComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcCustomPaletteBrushScaleComponent, _super); function IgcCustomPaletteBrushScaleComponent() { return _super.call(this) || this; } IgcCustomPaletteBrushScaleComponent.prototype.createImplementation = function () { return new CustomPaletteBrushScale(); }; Object.defineProperty(IgcCustomPaletteBrushScaleComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcCustomPaletteBrushScaleComponent.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(); } }; IgcCustomPaletteBrushScaleComponent.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(IgcCustomPaletteBrushScaleComponent, "observedAttributes", { get: function () { if (IgcCustomPaletteBrushScaleComponent._observedAttributesIgcCustomPaletteBrushScaleComponent == null) { var names = getAllPropertyNames(IgcCustomPaletteBrushScaleComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcCustomPaletteBrushScaleComponent._observedAttributesIgcCustomPaletteBrushScaleComponent = names; } return IgcCustomPaletteBrushScaleComponent._observedAttributesIgcCustomPaletteBrushScaleComponent; }, enumerable: false, configurable: true }); IgcCustomPaletteBrushScaleComponent.register = function () { if (!IgcCustomPaletteBrushScaleComponent._isElementRegistered) { IgcCustomPaletteBrushScaleComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcCustomPaletteBrushScaleComponent.htmlTagName, IgcCustomPaletteBrushScaleComponent); } }; Object.defineProperty(IgcCustomPaletteBrushScaleComponent.prototype, "brushSelectionMode", { /** * Gets or sets the brush selection mode. */ get: function () { return this.i.brushSelectionMode; }, set: function (v) { this.i.brushSelectionMode = ensureEnum(BrushSelectionMode_$type, v); this._a("brushSelectionMode", enumToString(BrushSelectionMode_$type, this.i.brushSelectionMode)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcCustomPaletteBrushScaleComponent.prototype, "isReady", { /** * Checks if this scale is ready for useage with a series */ get: function () { return this.i.isReady; }, enumerable: false, configurable: true }); IgcCustomPaletteBrushScaleComponent.prototype.getBrush1 = function (index, total) { var iv = this.i.getBrush1(index, total); return brushToString(iv); }; IgcCustomPaletteBrushScaleComponent._observedAttributesIgcCustomPaletteBrushScaleComponent = null; IgcCustomPaletteBrushScaleComponent.htmlTagName = "igc-custom-palette-brush-scale"; IgcCustomPaletteBrushScaleComponent._isElementRegistered = false; return IgcCustomPaletteBrushScaleComponent; }(IgcBrushScaleComponent)); export { IgcCustomPaletteBrushScaleComponent };