UNPKG

igniteui-webcomponents-charts

Version:

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

100 lines (99 loc) 4.02 kB
import { __extends } from "tslib"; import { IgcScatterBaseComponent } from "./igc-scatter-base-component"; import { ScatterSplineSeries } from "./ScatterSplineSeries"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent scatter spline series */ var IgcScatterSplineSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcScatterSplineSeriesComponent, _super); function IgcScatterSplineSeriesComponent() { return _super.call(this) || this; } IgcScatterSplineSeriesComponent.prototype.createImplementation = function () { return new ScatterSplineSeries(); }; Object.defineProperty(IgcScatterSplineSeriesComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcScatterSplineSeriesComponent.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(); } }; IgcScatterSplineSeriesComponent.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(IgcScatterSplineSeriesComponent, "observedAttributes", { get: function () { if (IgcScatterSplineSeriesComponent._observedAttributesIgcScatterSplineSeriesComponent == null) { var names = getAllPropertyNames(IgcScatterSplineSeriesComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcScatterSplineSeriesComponent._observedAttributesIgcScatterSplineSeriesComponent = names; } return IgcScatterSplineSeriesComponent._observedAttributesIgcScatterSplineSeriesComponent; }, enumerable: false, configurable: true }); IgcScatterSplineSeriesComponent.register = function () { if (!IgcScatterSplineSeriesComponent._isElementRegistered) { IgcScatterSplineSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcScatterSplineSeriesComponent.htmlTagName, IgcScatterSplineSeriesComponent); } }; Object.defineProperty(IgcScatterSplineSeriesComponent.prototype, "isSpline", { /** * Gets whether the current series shows a spline shape. */ get: function () { return this.i.f1; }, enumerable: false, configurable: true }); Object.defineProperty(IgcScatterSplineSeriesComponent.prototype, "stiffness", { /** * Gets or sets the Stiffness property. */ get: function () { return this.i.act; }, set: function (v) { this.i.act = +v; this._a("stiffness", this.i.act); }, enumerable: false, configurable: true }); IgcScatterSplineSeriesComponent._observedAttributesIgcScatterSplineSeriesComponent = null; IgcScatterSplineSeriesComponent.htmlTagName = "igc-scatter-spline-series"; IgcScatterSplineSeriesComponent._isElementRegistered = false; return IgcScatterSplineSeriesComponent; }(IgcScatterBaseComponent)); export { IgcScatterSplineSeriesComponent };