UNPKG

igniteui-webcomponents-charts

Version:

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

107 lines (106 loc) 4.09 kB
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"; let IgcScatterPolylineSeriesComponent = /*@__PURE__*/ (() => { class IgcScatterPolylineSeriesComponent extends IgcShapeSeriesBaseComponent { createImplementation() { return new ScatterPolylineSeries(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } connectedCallback() { if (super["connectedCallback"]) { super["connectedCallback"](); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } } disconnectedCallback() { if (super["disconnectedCallback"]) { super["disconnectedCallback"](); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } } static get observedAttributes() { if (IgcScatterPolylineSeriesComponent._observedAttributesIgcScatterPolylineSeriesComponent == null) { let names = getAllPropertyNames(IgcScatterPolylineSeriesComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcScatterPolylineSeriesComponent._observedAttributesIgcScatterPolylineSeriesComponent = names; } return IgcScatterPolylineSeriesComponent._observedAttributesIgcScatterPolylineSeriesComponent; } static register() { if (!IgcScatterPolylineSeriesComponent._isElementRegistered) { IgcScatterPolylineSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcScatterPolylineSeriesComponent.htmlTagName, IgcScatterPolylineSeriesComponent); } } /** * Gets whether the current series shows a polyline shape. */ get isPolyline() { return this.i.fu; } /** * The default style to apply to all Shapes in the series. */ get shapeStyle() { const r = this.i.aay; if (r == null) { return null; } if (!r.externalObject) { let 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 shapeStyle(v) { v == null ? this.i.aay = null : this.i.aay = v.i; } findByName(name) { var baseResult = super.findByName(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; })(); export { IgcScatterPolylineSeriesComponent };