igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
62 lines (61 loc) • 1.72 kB
JavaScript
import { IgrStyle } from "igniteui-react-core";
import { IgrShapeSeriesBase } from "./igr-shape-series-base";
import { ScatterPolylineSeries } from "./ScatterPolylineSeries";
/**
* Series class used for displaying multiple polylines for datasources which contain multiple lists of points.
*/
export class IgrScatterPolylineSeries extends IgrShapeSeriesBase {
createImplementation() {
return new ScatterPolylineSeries();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor(props) {
super(props);
}
/**
* Gets whether the current series shows a polyline shape.
*/
get isPolyline() {
return this.i.fs;
}
/**
* The default style to apply to all Shapes in the series.
*/
get shapeStyle() {
const r = this.i.aao;
if (r == null) {
return null;
}
if (!r.externalObject) {
let e = new IgrStyle();
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.aao = null : this.i.aao = 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;
}
}