UNPKG

igniteui-react-charts

Version:

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

143 lines (142 loc) 4.71 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { ShapeSeriesBase } from "./ShapeSeriesBase"; import { StyleSelector } from "./StyleSelector"; import { DependencyProperty } from "igniteui-react-core"; import { Style } from "igniteui-react-core"; import { markType, markDep, typeCast } from "igniteui-react-core"; import { ShapeSeriesViewBase } from "./ShapeSeriesViewBase"; import { ChartSelection } from "./ChartSelection"; import { List$1 } from "igniteui-react-core"; import { PropertyMetadata } from "igniteui-react-core"; import { Defaults } from "./Defaults"; import { Path } from "igniteui-react-core"; import { stringIsNullOrEmpty } from "igniteui-react-core"; /** * @hidden */ export let ScatterPolylineSeries = /*@__PURE__*/ (() => { class ScatterPolylineSeries extends ShapeSeriesBase { bk() { return new ScatterPolylineSeries(); } get_fr() { return true; } constructor() { super(); this.ab = ScatterPolylineSeries.$; } ct() { return new ScatterPolylineSeriesView(this); } get_x2() { return false; } q1(a) { super.q1(a); this.z9 = a; } get_x8() { return false; } ra(a, b, c, d) { super.ra(a, b, c, d); switch (b) { case ScatterPolylineSeries.$$p[0]: this.z9.c2(this.aaf); this.rs(false); this.ql(); break; case ScatterPolylineSeries.$$p[1]: this.z9.c3(this.aaa); this.rs(false); this.ql(); break; } } zp(a) { let b = a; b.c2(this.aaf); b.c3(this.aaa); super.zp(a); } a2(a, b) { let c = this.z9.c7(a, b, true); if (c != null) { return c.dataContext; } return super.a2(a, b); } ak(a, b) { let c = new List$1(ChartSelection.$, 0); this.p4(a, c, b); return c.toArray(); } p4(a, b, c) { this.zh(a, b, c); } } ScatterPolylineSeries.$t = /*@__PURE__*/ markType(ScatterPolylineSeries, 'ScatterPolylineSeries', ShapeSeriesBase.$); ScatterPolylineSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, ScatterPolylineSeries, 'raisePropertyChanged', ['ShapeStyle:aaf:aad', [Style.$, null], 'ShapeStyleSelector:aaa:aae', [StyleSelector.$, null]]); return ScatterPolylineSeries; })(); /** * @hidden */ export let ScatterPolylineSeriesView = /*@__PURE__*/ (() => { class ScatterPolylineSeriesView extends ShapeSeriesViewBase { constructor(a) { super(a); } ax() { super.ax(); if (!this.r) { this.ca.jp = Defaults.aa; } } c9(a, b) { return this.da(a, b, false); } cq(a, b, c) { super.cq(a, b, c); ShapeSeriesViewBase.cp(this, a, b); } co(a, b) { let c = typeCast(Path.$, a); if (c == null) { return; } c.an = b; } af(a) { let b = super.af(a); b._fill = null; return b; } ae(a) { let b = super.ae(a); b._fill = null; return b; } cf(a) { return a.width >= this.ca.yp || a.height >= this.ca.yp; } getDefaultTooltipTemplate() { let a = "<div class='ui-chart-default-tooltip-content'><span"; let b = this.f.ba.a$u(this.f); if (!stringIsNullOrEmpty(b)) { a += " style='color:" + b + "'"; } a += ">" + this.ca.title + "</span><br/>"; a += "</div>"; return a; } } ScatterPolylineSeriesView.$t = /*@__PURE__*/ markType(ScatterPolylineSeriesView, 'ScatterPolylineSeriesView', ShapeSeriesViewBase.$); return ScatterPolylineSeriesView; })();