UNPKG

igniteui-webcomponents-charts

Version:

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

76 lines (75 loc) 3 kB
import { __extends } from "tslib"; import { IgcHorizontalAnchoredCategorySeriesComponent } from "./igc-horizontal-anchored-category-series-component"; import { getAllPropertyNames, toSpinal, toPoint, fromPoint } from "igniteui-webcomponents-core"; /** * Represents one part of a stacked series. */ export var IgcFragmentBaseComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcFragmentBaseComponent, _super); function IgcFragmentBaseComponent() { return _super.call(this) || this; } Object.defineProperty(IgcFragmentBaseComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcFragmentBaseComponent.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(); } }; IgcFragmentBaseComponent.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(IgcFragmentBaseComponent, "observedAttributes", { get: function () { if (IgcFragmentBaseComponent._observedAttributesIgcFragmentBaseComponent == null) { var names = getAllPropertyNames(IgcFragmentBaseComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcFragmentBaseComponent._observedAttributesIgcFragmentBaseComponent = names; } return IgcFragmentBaseComponent._observedAttributesIgcFragmentBaseComponent; }, enumerable: false, configurable: true }); Object.defineProperty(IgcFragmentBaseComponent.prototype, "isFragment", { /** * Gets whether the current series is a stack fragment. */ get: function () { return this.i.isFragment; }, enumerable: false, configurable: true }); IgcFragmentBaseComponent.prototype.getSeriesValuePosition = function (world, useInterpolation, skipUnknowns) { var iv = this.i.ww(toPoint(world), useInterpolation, skipUnknowns); return fromPoint(iv); }; IgcFragmentBaseComponent._observedAttributesIgcFragmentBaseComponent = null; return IgcFragmentBaseComponent; }(IgcHorizontalAnchoredCategorySeriesComponent));