igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
137 lines (136 loc) • 4.04 kB
JavaScript
/*
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-angular-core";
import { Style } from "igniteui-angular-core";
import { markType, markDep, typeCast } from "igniteui-angular-core";
import { ShapeSeriesViewBase } from "./ShapeSeriesViewBase";
import { ChartSelection } from "./ChartSelection";
import { List$1 } from "igniteui-angular-core";
import { PropertyMetadata } from "igniteui-angular-core";
import { Defaults } from "./Defaults";
import { Path } from "igniteui-angular-core";
import { stringIsNullOrEmpty } from "igniteui-angular-core";
/**
* @hidden
*/
export class ScatterPolylineSeries extends ShapeSeriesBase {
static { this.$t = markType(ScatterPolylineSeries, 'ScatterPolylineSeries', ShapeSeriesBase.$); }
bk() {
return new ScatterPolylineSeries();
}
get_fv() {
return true;
}
constructor() {
super();
this.ab = ScatterPolylineSeries.$;
}
ct() {
return new ScatterPolylineSeriesView(this);
}
get_yn() {
return false;
}
rj(a) {
super.rj(a);
this.aau = a;
}
get_yt() {
return false;
}
rs(a, b, c, d) {
super.rs(a, b, c, d);
switch (b) {
case ScatterPolylineSeries.$$p[0]:
this.aau.db(this.aa0);
this.sa(false);
this.q2();
break;
case ScatterPolylineSeries.$$p[1]:
this.aau.dc(this.aav);
this.sa(false);
this.q2();
break;
}
}
aaa(a) {
let b = a;
b.db(this.aa0);
b.dc(this.aav);
super.aaa(a);
}
a2(a, b) {
let c = this.aau.df(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.qk(a, c, b);
return c.toArray();
}
qk(a, b, c) {
this.z2(a, b, c);
}
static { this.$$p = markDep(DependencyProperty, PropertyMetadata, ScatterPolylineSeries, 'raisePropertyChanged', ['ShapeStyle:aa0:aay', [Style.$, null], 'ShapeStyleSelector:aav:aaz', [StyleSelector.$, null]]); }
}
/**
* @hidden
*/
export class ScatterPolylineSeriesView extends ShapeSeriesViewBase {
static { this.$t = markType(ScatterPolylineSeriesView, 'ScatterPolylineSeriesView', ShapeSeriesViewBase.$); }
constructor(a) {
super(a);
}
a4() {
super.a4();
if (!this.t) {
this.cj.j0 = Defaults.an;
}
}
dj(a, b) {
return this.di(a, b, false);
}
cz(a, b, c) {
super.cz(a, b, c);
ShapeSeriesViewBase.cy(this, a, b);
}
cx(a, b) {
let c = typeCast(Path.$, a);
if (c == null) {
return;
}
c.an = b;
}
ak(a) {
let b = super.ak(a);
b._fill = null;
return b;
}
aj(a) {
let b = super.aj(a);
b._fill = null;
return b;
}
co(a) {
return a.width >= this.cj.za || a.height >= this.cj.za;
}
getDefaultTooltipTemplate() {
let a = "<div class='ui-chart-default-tooltip-content'><span";
let b = this.f.ba.a$v(this.f);
if (!stringIsNullOrEmpty(b)) {
a += " style='color:" + b + "'";
}
a += ">" + this.cj.title + "</span><br/>";
a += "</div>";
return a;
}
}