UNPKG

igniteui-webcomponents-charts

Version:

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

88 lines (87 loc) 3.5 kB
import { __extends } from "tslib"; import { IgcHorizontalAnchoredCategorySeriesComponent } from "./igc-horizontal-anchored-category-series-component"; import { PointSeries } from "./PointSeries"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent point series. * * You can use the `PointSeries` plot a value along a category or date. */ var IgcPointSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcPointSeriesComponent, _super); function IgcPointSeriesComponent() { return _super.call(this) || this; } IgcPointSeriesComponent.prototype.createImplementation = function () { return new PointSeries(); }; Object.defineProperty(IgcPointSeriesComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcPointSeriesComponent.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(); } }; IgcPointSeriesComponent.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(IgcPointSeriesComponent, "observedAttributes", { get: function () { if (IgcPointSeriesComponent._observedAttributesIgcPointSeriesComponent == null) { var names = getAllPropertyNames(IgcPointSeriesComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcPointSeriesComponent._observedAttributesIgcPointSeriesComponent = names; } return IgcPointSeriesComponent._observedAttributesIgcPointSeriesComponent; }, enumerable: false, configurable: true }); IgcPointSeriesComponent.register = function () { if (!IgcPointSeriesComponent._isElementRegistered) { IgcPointSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcPointSeriesComponent.htmlTagName, IgcPointSeriesComponent); } }; Object.defineProperty(IgcPointSeriesComponent.prototype, "hasOnlyMarkers", { /** * Gets whether the series has only marker as visuals */ get: function () { return this.i.ek; }, enumerable: false, configurable: true }); IgcPointSeriesComponent._observedAttributesIgcPointSeriesComponent = null; IgcPointSeriesComponent.htmlTagName = "igc-point-series"; IgcPointSeriesComponent._isElementRegistered = false; return IgcPointSeriesComponent; }(IgcHorizontalAnchoredCategorySeriesComponent)); export { IgcPointSeriesComponent };