UNPKG

igniteui-webcomponents-charts

Version:

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

125 lines (124 loc) 5.04 kB
import { __extends } from "tslib"; import { IgcStyle } from "igniteui-webcomponents-core"; import { IgcShapeSeriesBaseComponent } from "./igc-shape-series-base-component"; import { ScatterPolylineSeries } from "./ScatterPolylineSeries"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Series class used for displaying multiple polylines for datasources which contain multiple lists of points. */ export var IgcScatterPolylineSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcScatterPolylineSeriesComponent, _super); function IgcScatterPolylineSeriesComponent() { return _super.call(this) || this; } IgcScatterPolylineSeriesComponent.prototype.createImplementation = function () { return new ScatterPolylineSeries(); }; Object.defineProperty(IgcScatterPolylineSeriesComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcScatterPolylineSeriesComponent.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(); } }; IgcScatterPolylineSeriesComponent.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(IgcScatterPolylineSeriesComponent, "observedAttributes", { get: function () { if (IgcScatterPolylineSeriesComponent._observedAttributesIgcScatterPolylineSeriesComponent == null) { var names = getAllPropertyNames(IgcScatterPolylineSeriesComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcScatterPolylineSeriesComponent._observedAttributesIgcScatterPolylineSeriesComponent = names; } return IgcScatterPolylineSeriesComponent._observedAttributesIgcScatterPolylineSeriesComponent; }, enumerable: false, configurable: true }); IgcScatterPolylineSeriesComponent.register = function () { if (!IgcScatterPolylineSeriesComponent._isElementRegistered) { IgcScatterPolylineSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcScatterPolylineSeriesComponent.htmlTagName, IgcScatterPolylineSeriesComponent); } }; Object.defineProperty(IgcScatterPolylineSeriesComponent.prototype, "isPolyline", { /** * Gets whether the current series shows a polyline shape. */ get: function () { return this.i.fu; }, enumerable: false, configurable: true }); Object.defineProperty(IgcScatterPolylineSeriesComponent.prototype, "shapeStyle", { /** * The default style to apply to all Shapes in the series. */ get: function () { var r = this.i.aay; if (r == null) { return null; } if (!r.externalObject) { var e = new IgcStyle(); if (r.$type) { e._implementation = r; } else { if (e.i.setNativeElement) { e.i.setNativeElement(r); } } r.externalObject = e; } return r.externalObject; }, set: function (v) { v == null ? this.i.aay = null : this.i.aay = v.i; }, enumerable: false, configurable: true }); IgcScatterPolylineSeriesComponent.prototype.findByName = function (name) { var baseResult = _super.prototype.findByName.call(this, name); if (baseResult) { return baseResult; } if (this.shapeStyle && this.shapeStyle.name && this.shapeStyle.name == name) { return this.shapeStyle; } return null; }; IgcScatterPolylineSeriesComponent._observedAttributesIgcScatterPolylineSeriesComponent = null; IgcScatterPolylineSeriesComponent.htmlTagName = "igc-scatter-polyline-series"; IgcScatterPolylineSeriesComponent._isElementRegistered = false; return IgcScatterPolylineSeriesComponent; }(IgcShapeSeriesBaseComponent));