UNPKG

igniteui-webcomponents-charts

Version:

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

95 lines (94 loc) 3.75 kB
import { __extends } from "tslib"; import { IgcSplineFragmentBaseComponent } from "./igc-spline-fragment-base-component"; import { SplineFragment } from "./SplineFragment"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents one part of a StackedSplineSeries. */ export var IgcSplineFragmentComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcSplineFragmentComponent, _super); function IgcSplineFragmentComponent() { return _super.call(this) || this; } IgcSplineFragmentComponent.prototype.createImplementation = function () { return new SplineFragment(); }; Object.defineProperty(IgcSplineFragmentComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcSplineFragmentComponent.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(); } }; IgcSplineFragmentComponent.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(IgcSplineFragmentComponent, "observedAttributes", { get: function () { if (IgcSplineFragmentComponent._observedAttributesIgcSplineFragmentComponent == null) { var names = getAllPropertyNames(IgcSplineFragmentComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcSplineFragmentComponent._observedAttributesIgcSplineFragmentComponent = names; } return IgcSplineFragmentComponent._observedAttributesIgcSplineFragmentComponent; }, enumerable: false, configurable: true }); IgcSplineFragmentComponent.register = function () { if (!IgcSplineFragmentComponent._isElementRegistered) { IgcSplineFragmentComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcSplineFragmentComponent.htmlTagName, IgcSplineFragmentComponent); } }; Object.defineProperty(IgcSplineFragmentComponent.prototype, "isSpline", { /** * Gets whether the current series shows a spline shape. */ get: function () { return this.i.f3; }, enumerable: false, configurable: true }); Object.defineProperty(IgcSplineFragmentComponent.prototype, "isAreaOrLine", { /** * Gets whether the current series shows an area or line shape. */ get: function () { return this.i.ey; }, enumerable: false, configurable: true }); IgcSplineFragmentComponent._observedAttributesIgcSplineFragmentComponent = null; IgcSplineFragmentComponent.htmlTagName = "igc-spline-fragment"; IgcSplineFragmentComponent._isElementRegistered = false; return IgcSplineFragmentComponent; }(IgcSplineFragmentBaseComponent));