UNPKG

igniteui-webcomponents-charts

Version:

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

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