igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
1,572 lines • 214 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 { __extends, __values } from "tslib";
import { Base, INotifyPropertyChanged_$type, BaseError, PropertyChangedEventArgs, runOn, delegateCombine, delegateRemove, Delegate_$type, fromEnum, String_$type, EnumUtil, enumGetBox, typeCast, markType, TypeRegistrar, getInstanceType } from "igniteui-react-core";
import { IDataLegendTarget_$type } from "igniteui-react-core";
import { IToolbarTarget_$type } from "igniteui-react-core";
import { IDomainChartLike_$type } from "./IDomainChartLike";
import { ArrayExtension } from "igniteui-react-core";
import { List$1 } from "igniteui-react-core";
import { Brush } from "igniteui-react-core";
import { XamDataChart } from "./XamDataChart";
import { DataSeriesType_$type } from "igniteui-react-core";
import { MarkerType_$type } from "./MarkerType";
import { Color } from "igniteui-react-core";
import { ColorUtil } from "igniteui-react-core";
import { IDomainChartToolbarProvider_$type } from "./IDomainChartToolbarProvider";
import { DVContainer } from "igniteui-react-core";
import { DataToolTipLayerGroupingMode_$type } from "igniteui-react-core";
import { DataTooltipGroupedPositionX_$type } from "igniteui-react-core";
import { DataTooltipGroupedPositionY_$type } from "igniteui-react-core";
import { DataAbbreviationMode_$type } from "igniteui-react-core";
import { DataLegendValueMode_$type } from "igniteui-react-core";
import { Thickness } from "igniteui-react-core";
import { DataLegendHeaderDateMode_$type } from "igniteui-react-core";
import { DataLegendHeaderTimeMode_$type } from "igniteui-react-core";
import { DataLegendSummaryType_$type } from "igniteui-react-core";
import { LegendItemBadgeShape_$type } from "igniteui-react-core";
import { DataLegendUnitsMode_$type } from "igniteui-react-core";
import { DataLegendLabelMode_$type } from "igniteui-react-core";
import { ChartSortDescriptionCollection } from "./ChartSortDescriptionCollection";
import { FilterExpressionCollection } from "igniteui-react-core";
import { ChartSummaryDescriptionCollection } from "./ChartSummaryDescriptionCollection";
import { SeriesSelectionMode_$type } from "./SeriesSelectionMode";
import { SeriesSelectionBehavior_$type } from "./SeriesSelectionBehavior";
import { ChartSelectedItemCollection } from "./ChartSelectedItemCollection";
import { SortGroupParser } from "igniteui-react-core";
import { FilterExpressionParsingHelper } from "igniteui-react-core";
import { FilterStringErrorsParsingEventArgs } from "./FilterStringErrorsParsingEventArgs";
import { SummaryParser } from "igniteui-react-core";
import { BrushCollection } from "igniteui-react-core";
import { SeriesHighlightedValuesDisplayMode_$type } from "igniteui-react-core";
import { Visibility_$type } from "igniteui-react-core";
import { Rect } from "igniteui-react-core";
import { HorizontalAlignment_$type } from "igniteui-react-core";
import { UnknownValuePlotting_$type } from "igniteui-react-core";
import { SeriesOutlineMode_$type } from "./SeriesOutlineMode";
import { MarkerOutlineMode_$type } from "./MarkerOutlineMode";
import { MarkerFillMode_$type } from "./MarkerFillMode";
import { MarkerAutomaticBehavior_$type } from "./MarkerAutomaticBehavior";
import { TrendLineType_$type } from "igniteui-react-core";
import { TrendLineTypeCollection } from "./TrendLineTypeCollection";
import { ComputedPlotAreaMarginMode_$type } from "./ComputedPlotAreaMarginMode";
import { SeriesPlotAreaMarginHorizontalMode_$type } from "./SeriesPlotAreaMarginHorizontalMode";
import { SeriesPlotAreaMarginVerticalMode_$type } from "./SeriesPlotAreaMarginVerticalMode";
import { SeriesHighlightingMode_$type } from "./SeriesHighlightingMode";
import { SeriesHighlightingBehavior_$type } from "./SeriesHighlightingBehavior";
import { LegendHighlightingMode_$type } from "./LegendHighlightingMode";
import { LegendItemBadgeMode_$type } from "igniteui-react-core";
import { ToolTipType_$type } from "./ToolTipType";
import { CrosshairsDisplayMode_$type } from "./CrosshairsDisplayMode";
import { CalloutCollisionMode_$type } from "igniteui-react-core";
import { SeriesViewerScrollbarMode_$type } from "./SeriesViewerScrollbarMode";
import { SeriesViewerHorizontalScrollbarPosition_$type } from "./SeriesViewerHorizontalScrollbarPosition";
import { SeriesViewerVerticalScrollbarPosition_$type } from "./SeriesViewerVerticalScrollbarPosition";
import { Defaults } from "./Defaults";
import { Series } from "./Series";
import { CaptureImageSettings } from "igniteui-react-core";
import { Dictionary$2 } from "igniteui-react-core";
import { DataSeries } from "igniteui-react-core";
import { ICommandStateChangedListener_$type } from "igniteui-react-core";
import { DeviceUtils } from "igniteui-react-core";
import { ObservableCollection$1 } from "igniteui-react-core";
import { DataSeriesAdapter } from "igniteui-react-core";
import { ChartSortDescription } from "./ChartSortDescription";
import { ChartSummaryDescription } from "./ChartSummaryDescription";
import { Random } from "igniteui-react-core";
import { ValueLayerValueMode_$type } from "./ValueLayerValueMode";
import { ObservableColorCollection } from "igniteui-react-core";
import { BrushCollectionUtil } from "igniteui-react-core";
import { IToolbarContextAccessor_$type } from "igniteui-react-core";
import { HashSet$1 } from "igniteui-react-core";
import { ChartSeriesEventArgs } from "./ChartSeriesEventArgs";
import { DomainChartSeriesPointerEventArgs } from "./DomainChartSeriesPointerEventArgs";
import { DomainChartPlotAreaPointerEventArgs } from "./DomainChartPlotAreaPointerEventArgs";
import { BrushUtil } from "igniteui-react-core";
import { IUnknownValuePlotting_$type } from "igniteui-react-core";
import { ITrendLineSeries_$type } from "./ITrendLineSeries";
import { IDataSource_$type } from "igniteui-react-core";
import { isNaN_ } from "igniteui-react-core";
import { stringIsNullOrEmpty, stringEmpty, stringStartsWith } from "igniteui-react-core";
/**
* @hidden
*/
var DomainChart = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(DomainChart, _super);
function DomainChart() {
var _this = _super.call(this) || this;
_this.l8 = null;
_this.l5 = null;
_this.h0 = null;
_this.ix = NaN;
_this.l4 = null;
_this.ja = 0;
_this.jb = 0;
_this.jc = 0;
_this.i9 = 0;
_this.i5 = 0;
_this.i7 = 0;
_this.i6 = 0;
_this.i4 = 0;
_this.yp = null;
_this.yq = null;
_this.iu = NaN;
_this.jd = NaN;
_this.i3 = NaN;
_this.ie = NaN;
_this.lj = 0;
_this.et = null;
_this.le = 300;
_this.lh = 300;
_this.lc = 300;
_this.k3 = null;
_this.hj = false;
_this.ck = null;
_this.m5 = null;
_this.m7 = null;
_this.eh = null;
_this.f3 = false;
_this.fj = null;
_this.f7 = false;
_this.f6 = false;
_this.h4 = null;
_this.propertyChanged = null;
_this.seriesDataChanged = null;
_this.li = 0;
_this.hc = false;
_this.hb = false;
_this.hv = new Dictionary$2(String_$type, DataSeries.$, 0);
_this.cd = null;
_this.hq = false;
_this.hz = null;
_this.ch = null;
_this.f9 = false;
_this.ci = null;
_this._commandCompleted = null;
_this._invalidateActions = null;
_this.hw = null;
_this.hx = new List$1(ICommandStateChangedListener_$type, 0);
_this.by = 0;
_this.ik = NaN;
_this.il = NaN;
_this.ii = DeviceUtils.g(10);
_this.ij = DeviceUtils.g(10);
_this.bu = 0;
_this.bw = 0;
_this.fz = true;
_this.e = null;
_this.b = null;
_this.d = null;
_this.a = null;
_this.bc = 0;
_this.k8 = -1;
_this.k9 = -1;
_this.bs = 0;
_this.mv = stringEmpty();
_this.f0 = true;
_this.mw = null;
_this.f = null;
_this.z8 = new Thickness(0, DeviceUtils.g(5));
_this.f1 = true;
_this.mx = "N/A";
_this.f2 = false;
_this.z9 = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(2), DeviceUtils.g(0));
_this.yi = null;
_this.e5 = null;
_this.mp = null;
_this.c = null;
_this.mo = stringEmpty();
_this.bi = 0;
_this.bk = 0;
_this.mq = null;
_this.ya = null;
_this.z2 = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0));
_this.z1 = new Thickness(0, DeviceUtils.g(5));
_this.fy = true;
_this.ex = null;
_this.x9 = null;
_this.z0 = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0));
_this.zz = new Thickness(0, DeviceUtils.g(5));
_this.fx = false;
_this.ew = null;
_this.yd = null;
_this.e0 = null;
_this.bo = 0;
_this.ms = null;
_this.z5 = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0));
_this.z4 = new Thickness(0, DeviceUtils.g(5));
_this.yf = null;
_this.e2 = null;
_this.mr = null;
_this.yc = null;
_this.ez = null;
_this.mt = null;
_this.ye = null;
_this.e1 = null;
_this.zy = new Thickness(0, DeviceUtils.g(0));
_this.cq = 0;
_this.bq = 0;
_this.mu = null;
_this.yh = null;
_this.z7 = new Thickness(0, DeviceUtils.g(0));
_this.e4 = null;
_this.z6 = new Thickness(0, DeviceUtils.g(0));
_this.yg = null;
_this.e3 = null;
_this.bm = 0;
_this.yb = null;
_this.z3 = new Thickness(1, DeviceUtils.g(8), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0));
_this.ey = null;
_this.seriesAdded = null;
_this.seriesRemoved = null;
_this.seriesPointerEnter = null;
_this.seriesPointerLeave = null;
_this.seriesPointerMove = null;
_this.seriesPointerDown = null;
_this.seriesPointerUp = null;
_this.seriesClick = null;
_this.plotAreaPointerEnter = null;
_this.plotAreaPointerLeave = null;
_this.plotAreaPointerMove = null;
_this.plotAreaPointerDown = null;
_this.plotAreaPointerUp = null;
_this.calloutStyleUpdating = null;
_this.calloutRenderStyleUpdating = null;
_this.selectedSeriesItemsChanged = null;
_this.focusedSeriesItemsChanged = null;
_this.h3 = null;
_this.fi = null;
_this.fm = false;
_this.hu = new Dictionary$2(String_$type, Base.$, 0);
_this.hy = new List$1(String_$type, 0);
_this.ax = null;
_this.at = null;
_this.as = null;
_this.ej = null;
_this.ek = null;
_this.a5 = null;
_this.er = null;
_this.es = null;
_this.aw = null;
_this.av = null;
_this.au = null;
_this.em = null;
_this.el = null;
_this.a4 = null;
_this.dw = 0;
_this.dv = 0;
_this.yo = null;
_this.yl = null;
_this.dt = 0;
_this.an = new ChartSelectedItemCollection();
_this.am = new ChartSelectedItemCollection();
_this.m2 = null;
_this.my = null;
_this.m0 = null;
_this.mz = null;
_this.m1 = null;
_this.filterStringErrorsParsing = null;
_this.m3 = null;
_this.l3 = null;
_this.l1 = null;
_this.l2 = null;
_this.l0 = null;
_this.h = null;
_this.g = null;
_this.r = null;
_this.u = null;
_this.p = null;
_this.q = null;
_this.cf = null;
_this.f8 = true;
_this.gb = true;
_this.ge = false;
_this.gg = false;
_this.dg = 1;
_this.ga = false;
_this.aam = 0;
_this.aan = 0;
_this.zv = new Rect(0, 0, 0, 1, 1);
_this.m6 = null;
_this.m4 = null;
_this.xu = 1;
_this.xt = 1;
_this.ee = 0;
_this.i2 = NaN;
_this.i8 = NaN;
_this.dm = 0;
_this.cy = 0;
_this.cw = 0;
_this.iv = NaN;
_this.iw = NaN;
_this.c4 = null;
_this.cu = 4;
_this.s = null;
_this.t = null;
_this.lf = 400;
_this.id = NaN;
_this.fl = false;
_this.v = null;
_this.eb = 0;
_this.je = DeviceUtils.g(1.5);
_this.ed = null;
_this.gh = false;
_this.fk = true;
_this.iz = NaN;
_this.i1 = NaN;
_this.i0 = NaN;
_this.iy = NaN;
_this.ld = 200;
_this.lb = 200;
_this.lg = 200;
_this.a8 = 0;
_this.dp = 0;
_this.dr = 0;
_this.dk = 0;
_this.di = 0;
_this.cm = 0;
_this.cr = 0;
_this.co = 0;
_this.lk = 7;
_this.d9 = 4;
_this.bb = 0;
_this.fw = false;
_this.x8 = null;
_this.ih = NaN;
_this.x7 = null;
_this.ft = true;
_this.fv = false;
_this.fu = false;
_this.x3 = null;
_this.x5 = null;
_this.x4 = null;
_this.x6 = null;
_this.k6 = -1;
_this.k7 = -1;
_this.gd = false;
_this.gf = true;
_this.f4 = false;
_this.yj = null;
_this.yk = null;
_this.la = -1;
_this.fn = false;
_this.fs = false;
_this.fo = false;
_this.gi = true;
_this.ag = 0;
_this.fq = false;
_this.fr = false;
_this.fp = false;
_this.ig = NaN;
_this.xx = null;
_this.x1 = null;
_this.x2 = null;
_this.x0 = null;
_this.xy = null;
_this.xz = null;
_this.k5 = -1;
_this.h8 = null;
_this.ai = null;
_this.mm = null;
_this.mn = null;
_this.ml = "CalloutLabel";
_this.mk = "CalloutContent";
_this.ev = null;
_this.eg = null;
_this.w = null;
_this.jf = NaN;
_this.gc = false;
_this.d1 = 0;
_this.d2 = 0;
_this.dz = 0;
_this.d7 = 0;
_this.ym = null;
_this.yn = null;
_this.ir = NaN;
_this.iq = NaN;
_this.im = NaN;
_this.io = NaN;
_this.ip = NaN;
_this.it = NaN;
_this.is = NaN;
_this.f5 = true;
_this.yr = null;
_this.ys = null;
_this.jj = NaN;
_this.ji = NaN;
_this.jg = NaN;
_this.jm = NaN;
_this.jh = NaN;
_this.jl = NaN;
_this.jk = NaN;
_this.gj = true;
_this.jo = NaN;
_this.jn = NaN;
_this.jq = NaN;
_this.jp = NaN;
_this.h3 = new List$1(Delegate_$type, 0);
_this.vq();
_this.u3();
return _this;
}
DomainChart.prototype.provideContainer = function (a) {
if (a == null) {
this.v7(function (b) {
b.destroy();
b.provideContainer(null);
});
return;
}
var b = this.l8;
this.l8 = a;
if (this.fi != null && this.l8 != null && b == null) {
this.l8.setTimeout(this.fi, 0);
this.fi = null;
}
var c = ((function () {
var $ret = new XamDataChart();
$ret.fc = true;
return $ret;
})());
c.jn = this;
c.dc.b4(a);
this.dataChart = c;
this.vr();
};
DomainChart.prototype.destroy = function () {
this.f6 = true;
this.provideContainer(null);
};
DomainChart.prototype.vr = function () {
if (this.dataChart == null) {
return;
}
var a = this.dataChart.dc.j.e();
this.z = a.a;
this.ad = a.f;
this.ab = a.b;
this.ac = a.c;
this.af = a.g;
this.ju = Defaults.crosshairLineThickness;
this.vs();
};
DomainChart.prototype.vs = function () {
};
DomainChart.prototype.vo = function (a) {
if (a == null) {
return;
}
a.iq = this.ko;
a.io = this.km;
a.ip = this.kn;
a.im = this.kl;
a.wf = this.zr;
a.ij = this.kh;
a.il = this.kj;
a.ik = this.ki;
a.ii = this.kg;
a.we = this.zq;
if (!isNaN_(this.j9)) {
a.ic = this.j9;
}
};
DomainChart.prototype.vl = function () {
};
DomainChart.prototype.vu = function (a, b) {
a.ke = this.ly;
a.de = this.eu;
};
DomainChart.prototype.wn = function (a, b, c) {
var _this = this;
switch (a) {
case "TitleTopMargin":
if (this.dataChart != null) {
this.dataChart.iq = this.ko;
}
break;
case "TitleLeftMargin":
if (this.dataChart != null) {
this.dataChart.io = this.km;
}
break;
case "PixelScalingRatio":
if (this.dataChart != null) {
this.v7(function (d) { return d.ic = _this.j9; });
}
break;
case "TitleRightMargin":
if (this.dataChart != null) {
this.dataChart.ip = this.kn;
}
break;
case "TitleBottomMargin":
if (this.dataChart != null) {
this.dataChart.im = this.kl;
}
break;
case "TitleTextColor":
if (this.dataChart != null) {
this.dataChart.wf = this.zr;
}
break;
case "SubtitleLeftMargin":
if (this.dataChart != null) {
this.dataChart.ij = this.kh;
}
break;
case "SubtitleTopMargin":
if (this.dataChart != null) {
this.dataChart.il = this.kj;
}
break;
case "SubtitleRightMargin":
if (this.dataChart != null) {
this.dataChart.ik = this.ki;
}
break;
case "SubtitleBottomMargin":
if (this.dataChart != null) {
this.dataChart.ii = this.kg;
}
break;
case "SubtitleTextColor":
if (this.dataChart != null) {
this.dataChart.we = this.zq;
}
break;
case "LeftMargin":
if (this.dataChart != null) {
this.dataChart.ib = this.j6;
}
break;
case "TopMargin":
if (this.dataChart != null) {
this.dataChart.ir = this.kp;
}
break;
case "RightMargin":
if (this.dataChart != null) {
this.dataChart.ih = this.kf;
}
break;
case "BottomMargin":
if (this.dataChart != null) {
this.dataChart.hw = this.js;
}
break;
case "TransitionDuration":
this.vh(function (d) { return d.ke = _this.ly; });
break;
case "TransitionEasingFunction":
this.vh(function (d) { return d.de = _this.eu; });
break;
}
};
Object.defineProperty(DomainChart.prototype, "tooltipTemplate", {
get: function () {
return ArrayExtension.getModulus$1(Base.$, this.tooltipTemplates, 0);
},
set: function (a) {
this.tooltipTemplates = a == null ? null : new List$1(Base.$, 1, [a]);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "tooltipTemplates", {
get: function () {
return this.h0;
},
set: function (a) {
var b = this.tooltipTemplates;
if (a != b) {
this.h0 = a;
this.wj("TooltipTemplates", b, this.tooltipTemplates);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "j9", {
get: function () {
return this.ix;
},
set: function (a) {
var b = this.ix;
if (a != b) {
this.ix = a;
this.wj("PixelScalingRatio", b, this.j9);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "toolTip", {
get: function () {
return this.l4;
},
set: function (a) {
var b = this.toolTip;
if (b != a) {
this.l4 = a;
this.wj("ToolTip", b, this.toolTip);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "km", {
get: function () {
return this.ja;
},
set: function (a) {
var b = this.km;
if (a != b) {
this.ja = a;
this.wj("TitleLeftMargin", b, this.km);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kn", {
get: function () {
return this.jb;
},
set: function (a) {
var b = this.kn;
if (a != b) {
this.jb = a;
this.wj("TitleRightMargin", b, this.kn);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "ko", {
get: function () {
return this.jc;
},
set: function (a) {
var b = this.ko;
if (a != b) {
this.jc = a;
this.wj("TitleTopMargin", b, this.ko);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kl", {
get: function () {
return this.i9;
},
set: function (a) {
var b = this.kl;
if (a != b) {
this.i9 = a;
this.wj("TitleBottomMargin", b, this.kl);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kh", {
get: function () {
return this.i5;
},
set: function (a) {
var b = this.kh;
if (a != b) {
this.i5 = a;
this.wj("SubtitleLeftMargin", b, this.kh);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kj", {
get: function () {
return this.i7;
},
set: function (a) {
var b = this.kj;
if (a != b) {
this.i7 = a;
this.wj("SubtitleTopMargin", b, this.kj);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "ki", {
get: function () {
return this.i6;
},
set: function (a) {
var b = this.ki;
if (a != b) {
this.i6 = a;
this.wj("SubtitleRightMargin", b, this.ki);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kg", {
get: function () {
return this.i4;
},
set: function (a) {
var b = this.kg;
if (a != b) {
this.i4 = a;
this.wj("SubtitleBottomMargin", b, this.kg);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "zq", {
get: function () {
return this.yp;
},
set: function (a) {
var b = this.zq;
if (a != b) {
this.yp = a;
this.wj("SubtitleTextColor", b, this.zq);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "zr", {
get: function () {
return this.yq;
},
set: function (a) {
var b = this.zr;
if (a != b) {
this.yq = a;
this.wj("TitleTextColor", b, this.zr);
}
},
enumerable: false,
configurable: true
});
DomainChart.prototype.get_j6 = function () {
return this.iu;
};
DomainChart.prototype.set_j6 = function (a) {
var b = this.j6;
if (a != b) {
this.iu = a;
this.wj("LeftMargin", b, this.j6);
}
};
Object.defineProperty(DomainChart.prototype, "j6", {
get: function () {
return this.get_j6();
},
set: function (a) {
this.set_j6(a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kp", {
get: function () {
return this.jd;
},
set: function (a) {
var b = this.kp;
if (a != b) {
this.jd = a;
this.wj("TopMargin", b, this.kp);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kf", {
get: function () {
return this.i3;
},
set: function (a) {
var b = this.kf;
if (a != b) {
this.i3 = a;
this.wj("RightMargin", b, this.kf);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "js", {
get: function () {
return this.ie;
},
set: function (a) {
var b = this.js;
if (a != b) {
this.ie = a;
this.wj("BottomMargin", b, this.js);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "ly", {
get: function () {
return this.lj;
},
set: function (a) {
var b = this.ly;
if (a != b) {
this.lj = a;
this.wj("TransitionDuration", b, this.ly);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "eu", {
get: function () {
return this.et;
},
set: function (a) {
var b = this.eu;
if (a != b) {
this.et = a;
this.wj("TransitionEasingFunction", b, this.eu);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "lu", {
get: function () {
return this.le;
},
set: function (a) {
var b = this.lu;
if (a != b) {
this.le = a;
this.wj("HighlightingTransitionDuration", b, this.lu);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "lx", {
get: function () {
return this.lh;
},
set: function (a) {
var b = this.lx;
if (a != b) {
this.lh = a;
this.wj("SelectionTransitionDuration", b, this.lx);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "ls", {
get: function () {
return this.lc;
},
set: function (a) {
var b = this.ls;
if (a != b) {
this.lc = a;
this.wj("FocusTransitionDuration", b, this.ls);
}
},
enumerable: false,
configurable: true
});
DomainChart.prototype.vp = function (a) {
if (this.dataChart == null) {
return;
}
a.ms = this.tq;
a.mg = this.tf;
};
DomainChart.prototype.vv = function (a, b) {
this.vw(a, b);
};
DomainChart.prototype.vm = function () {
};
DomainChart.prototype.vw = function (a, b) {
if (a == null) {
return;
}
if (this.ea == 3) {
return;
}
var toolTipTemplate_ = ArrayExtension.getModulus$1(Base.$, this.tooltipTemplates, b);
if (toolTipTemplate_ == null) {
a.gq = true;
}
else {
var series_ = a;
a.gq = false;
series_.externalObject.tooltipTemplate = toolTipTemplate_;
}
};
DomainChart.prototype.xp = function (a, b, c) {
};
DomainChart.prototype.ma = function (a) {
return a;
return null;
};
DomainChart.prototype.k4 = function (a) {
return null;
};
DomainChart.prototype.wo = function (a, b, c) {
var _this = this;
switch (a) {
case "SubtitleTextStyle":
if (this.dataChart != null) {
this.dataChart.mg = this.tf;
}
break;
case "TitleTextStyle":
if (this.dataChart != null) {
this.dataChart.ms = this.tq;
}
break;
case "TooltipTemplate":
if (this.hj) {
return;
}
this.hj = true;
this.tooltipTemplate = this.ma(this.tooltipTemplate);
this.hj = false;
if (this.dataChart != null) {
this.dataChart.jp = this.tooltipTemplate;
}
this.toolTip = this.tooltipTemplate;
break;
case "ToolTip":
this.vi(function (d, e) { return _this.vw(d, e); });
break;
case "TooltipTemplates":
if (this.tooltipTemplates == null) {
break;
}
this.hj = true;
this.vi(function (d, e) {
var f = _this.ma(ArrayExtension.getModulus$1(Base.$, _this.tooltipTemplates, e));
var series_ = d;
var templ_ = f;
series_.externalObject.tooltipTemplate = templ_;
});
this.hj = false;
break;
}
};
Object.defineProperty(DomainChart.prototype, "cl", {
get: function () {
return this.ck;
},
set: function (a) {
var b = this.cl;
if (a != b) {
this.ck = a;
this.wj("Widget", b, this.cl);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "tf", {
get: function () {
return this.m5;
},
set: function (a) {
var b = this.tf;
if (a != b) {
this.m5 = a;
this.wj("SubtitleTextStyle", b, this.tf);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "tq", {
get: function () {
return this.m7;
},
set: function (a) {
var b = this.tq;
if (a != b) {
this.m7 = a;
this.wj("TitleTextStyle", b, this.tq);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "dataChart", {
get: function () {
return this.eh;
},
set: function (a) {
var b = this.dataChart;
if (b != a) {
this.eh = a;
this.wj("DataChart", b, this.dataChart);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "currentDataAdapter", {
get: function () {
return this.bf;
},
enumerable: false,
configurable: true
});
DomainChart.prototype.sendCommandCompleted = function (a) {
if (this.commandCompleted != null) {
this.commandCompleted(a);
}
};
DomainChart.prototype.captureTargetImageToClipboard = function (a) {
if (this.f3) {
return;
}
this.f3 = true;
this.fj = a;
var b = new CaptureImageSettings();
b.b = true;
b.a = 0;
var c = this.dataChart;
c.imageCaptured = delegateCombine(c.imageCaptured, runOn(this, this.wg));
this.dataChart.nt(b);
this.dataChart.al.q();
};
DomainChart.prototype.wg = function (a, b) {
this.f3 = false;
var c = this.dataChart;
c.imageCaptured = delegateRemove(c.imageCaptured, runOn(this, this.wg));
if (this.fj != null) {
this.fj(this, b);
this.fj = null;
}
};
Object.defineProperty(DomainChart.prototype, "isDetached", {
get: function () {
return this.f7 || this.f6;
},
enumerable: false,
configurable: true
});
DomainChart.prototype.onDetachedFromUI = function () {
this.f7 = true;
this.v7(function (a) { return a.onDetachedFromUI(); });
};
DomainChart.prototype.onAttachedToUI = function () {
this.f7 = false;
this.v7(function (a) { return a.onAttachedToUI(); });
};
DomainChart.prototype.vq = function () {
this.bf = this.bh(true);
var a = this.bf.dataSeries;
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(this, this.wa));
this.bg = this.bh(false);
var b = this.bg.dataSeries;
b.collectionChanged = delegateCombine(b.collectionChanged, runOn(this, this.wf));
};
DomainChart.prototype.xn = function (a, b, c) {
if (a) {
b.e = c;
}
else {
b.n(c);
}
};
DomainChart.prototype.xm = function (a, b, c) {
if (a) {
b.syncTarget = c;
}
else {
b.o(c);
}
};
DomainChart.prototype.xo = function (a, b, c) {
if (a) {
b.e = c;
}
else {
b.n(c);
}
};
DomainChart.prototype.bh = function (a) {
var e_1, _a, e_2, _b;
this.h4 = new List$1(MarkerType_$type, 0);
var b = new DataSeriesAdapter().e;
if (a) {
this.ax = new ChartSortDescriptionCollection();
this.at = new ChartSortDescriptionCollection();
this.as = new ChartSortDescriptionCollection();
this.a5 = new ChartSummaryDescriptionCollection();
this.ej = new FilterExpressionCollection();
this.ek = new FilterExpressionCollection();
}
this.xn(a, this.a3, b.sortDescriptions);
this.xn(a, this.ay, b.groupDescriptions);
this.xm(a, this.en, b.filterExpressions);
this.xm(a, this.eo, b.highlightFilterExpressions);
this.xo(a, this.a7, b.summaryDescriptions);
this.xn(a, this.az, b.postSortDescriptions);
if (a) {
this.er = new SortGroupParser();
this.es = new SummaryParser();
this.aw = ((function () {
var $ret = new ChartSortDescriptionCollection();
$ret.i = true;
return $ret;
})());
this.av = ((function () {
var $ret = new ChartSortDescriptionCollection();
$ret.i = true;
return $ret;
})());
this.au = ((function () {
var $ret = new ChartSortDescriptionCollection();
$ret.i = true;
return $ret;
})());
this.a4 = ((function () {
var $ret = new ChartSummaryDescriptionCollection();
$ret.i = true;
return $ret;
})());
this.el = ((function () {
var $ret = new FilterExpressionCollection();
$ret.shouldDetachOnTargetChange = true;
return $ret;
})());
this.em = ((function () {
var $ret = new FilterExpressionCollection();
$ret.shouldDetachOnTargetChange = true;
return $ret;
})());
}
{
if (this.en.k.count == 0) {
this.xm(a, this.el, b.filterExpressions);
}
}
{
if (this.eo.k.count == 0) {
this.xm(a, this.em, b.highlightFilterExpressions);
}
}
{
if (this.a3.j.count == 0) {
this.xn(a, this.aw, b.sortDescriptions);
}
if (this.az.j.count == 0) {
this.xn(a, this.av, b.postSortDescriptions);
}
}
{
if (this.ay.j.count == 0) {
this.xn(a, this.au, b.groupDescriptions);
}
}
{
if (this.a7.j.count == 0) {
this.xo(a, this.a4, b.summaryDescriptions);
}
}
if (this.includedProperties != null) {
b.includedProperties = this.includedProperties;
}
if (this.excludedProperties != null) {
b.excludedProperties = this.excludedProperties;
}
b.supportedSeriesTypes = this.h6.toArray();
b.rules.clear();
try {
for (var _c = __values(fromEnum(this.h5)), _d = _c.next(); !_d.done; _d = _c.next()) {
var c = _d.value;
b.rules.add(c);
}
}
catch (e_1_1) {
e_1 = { error: e_1_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_1)
throw e_1.error;
}
}
var d = new List$1(String_$type, 0);
try {
for (var _e = __values(fromEnum(b.rules)), _f = _e.next(); !_f.done; _f = _e.next()) {
var e = _f.value;
d.add(getInstanceType(e).typeName);
}
}
catch (e_2_1) {
e_2 = { error: e_2_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_2)
throw e_2.error;
}
}
return b;
};
DomainChart.prototype.he = function (a) {
return a != 24 && this.h6.contains(a);
};
DomainChart.prototype.notifyResized = function () {
this.v7(function (a) { return a.notifyContainerResized(); });
};
DomainChart.prototype.v5 = function () {
this.v7(function (a) {
for (var b = 0; b < a.series.count; b++) {
a.series._inner[b].qp();
}
});
};
DomainChart.prototype.va = function () {
if (this.dataChart == null) {
return;
}
if (this.hc) {
this.u7();
}
this.dataChart.flush();
};
DomainChart.prototype.vj = function () {
if (this.dataChart == null) {
return;
}
this.dataChart.of();
};
DomainChart.prototype.w1 = function (a) {
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
};
DomainChart.prototype.vc = function (a) {
this.vd(function (b, c) { return a(b); });
};
DomainChart.prototype.vd = function (a) {
if (this.dataChart == null) {
return;
}
for (var b = 0; b < this.dataChart.series.count; b++) {
a(this.dataChart.series._inner[b], b);
}
};
DomainChart.prototype.vh = function (a) {
this.vi(function (b, c) { return a(b); });
};
DomainChart.prototype.vi = function (a) {
if (this.dataChart == null) {
return;
}
for (var b = 0; b < this.dataChart.series.count; b++) {
var c = this.dataChart.series._inner[b];
if (!c.et) {
a(c, b);
}
}
};
DomainChart.prototype.vf = function (a) {
this.vg(function (b, c) { return a(b); });
};
DomainChart.prototype.vg = function (a) {
if (this.dataChart == null) {
return;
}
for (var b = 0; b < this.dataChart.series.count; b++) {
var c = this.dataChart.series._inner[b];
if (c.eu) {
a(c, b);
}
}
};
DomainChart.prototype.xd = function () {
this.vc(function (a) { return a.rz(); });
};
DomainChart.prototype.v7 = function (a) {
this.v8(a, true);
};
DomainChart.prototype.v8 = function (a, b) {
this.v9(a, b, null);
};
DomainChart.prototype.v9 = function (a, b, c) {
if (this.dataChart == null) {
return;
}
a(this.dataChart);
};
DomainChart.prototype.hg = function (a) {
if (!this.he(a.suggestedSeries)) {
return false;
}
var b = a.data;
if (b == null) {
return false;
}
return true;
};
DomainChart.prototype.g6 = function () {
if (this.dataChart == null) {
return false;
}
return true;
};
DomainChart.prototype.q6 = function (a) {
var b = EnumUtil.getName(DataSeriesType_$type, a.suggestedSeries);
var c = "series_" + (a.index + 1) + "_" + b;
return c;
};
DomainChart.prototype.q7 = function (a, b) {
if (this.g9 && this.hp) {
var c = "";
var d = 5 + Math.round(DomainChart.mi.nextDouble() * 4);
for (var e = 0; e < d; e++) {
c = c + "\u2588";
}
return c;
}
if (stringIsNullOrEmpty(a.title)) {
var f = EnumUtil.getName(DataSeriesType_$type, b);
return f + (this.dataChart.series.count + 1);
}
else {
return a.title;
}
};
DomainChart.prototype.q5 = function () {
return stringEmpty();
};
DomainChart.prototype.wq = function () {
var a = this.ws(runOn(this, this.u7), this.hc);
this.hc = a.p1;
};
DomainChart.prototype.u1 = function () {
if (this.dataChart == null) {
return;
}
this.hb = false;
var a = false;
if (this.g2()) {
a = true;
this.u0();
}
if (a) {
this.u9();
this.xq();
}
};
DomainChart.prototype.xq = function () {
this.hv.clear();
};
DomainChart.prototype.u0 = function () {
var e_3, _a;
var a = 0;
try {
for (var _b = __values(fromEnum(this.bg.dataSeries)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
if (b.index == -1) {
b.index = a;
}
if (!stringIsNullOrEmpty(this.q6(b))) {
this.hv.item(this.q6(b), b);
}
a++;
}
}
catch (e_3_1) {
e_3 = { error: e_3_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_3)
throw e_3.error;
}
}
};
DomainChart.prototype.ia = function (a) {
return a.data;
};
DomainChart.prototype.ib = function (a) {
return a.highlightedData;
};
DomainChart.prototype.u9 = function () {
var e_4, _a;
if (this.hc) {
var a = 0;
try {
for (var _b = __values(fromEnum(this.bf.dataSeries)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
if (b.index == -1) {
b.index = a;
}
if (!stringIsNullOrEmpty(this.q6(b))) {
if (this.hv.containsKey(this.q6(b))) {
var c = this.hv.item(this.q6(b));
b.highlightedData = c.data;
}
}
a++;
}
}
catch (e_4_1) {
e_4 = { error: e_4_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_4)
throw e_4.error;
}
}
}
if (!this.hc && this.dataChart != null) {
for (var d = 0; d < this.dataChart.series.count; d++) {
var e = this.dataChart.series._inner[d];
if (this.hv.containsKey(e.name)) {
e.highlightedItemsSource = this.ia(this.hv.item(e.name));
}
}
}
};
DomainChart.prototype.g2 = function () {
if (this.actualHighlightedItemsSource == null) {
return false;
}
if (this.bg.dataSeries.count != this.bf.dataSeries.count) {
return false;
}
if (this.bg.dataSeries.count == 0) {
return false;
}
for (var a = 0; a < this.bg.dataSeries.count; a++) {
if (!(this.bg.dataSeries._inner[a].isMatch(this.bf.dataSeries._inner[a]))) {
var b = false;
for (var c = 0; c < this.bf.dataSeries.count; c++) {
if (c == a) {
continue;
}
if (this.bg.dataSeries._inner[a].isMatch(this.bf.dataSeries._inner[c])) {
b = true;
break;
}
}
if (!b) {
return false;
}
}
}
return true;
};
DomainChart.prototype.xg = function () {
var e_5, _a, e_6, _b;
if (this.dataChart == null) {
return;
}
this.hc = false;
this.xi();
if (this.actualItemsSource == null) {
return;
}
var a = new List$1(MarkerType_$type, 0);
try {
for (var _c = __values(fromEnum(this.bf.dataSeries)), _d = _c.next(); !_d.done; _d = _c.next()) {
var b = _d.value;
a.add(this.c0(b.suggestedMarker));
}
}
catch (e_5_1) {
e_5 = { error: e_5_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_5)
throw e_5.error;
}
}
this.h4 = a;
var c = 0;
try {
for (var _e = __values(fromEnum(this.bf.dataSeries)), _f = _e.next(); !_f.done; _f = _e.next()) {
var d = _f.value;
if (!this.hg(d)) {
continue;
}
if (d.index < 0) {
d.index = c;
}
this.xe(d);
this.xf(d);
c++;
}
}
catch (e_6_1) {
e_6 = { error: e_6_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_6)
throw e_6.error;
}
}
this.xr();
this.vd(runOn(this, this.vt));
};
DomainChart.prototype.df = function (seriesType_) {
return (this.externalObject.createSeries(seriesType_).i);
};
DomainChart.prototype.c6 = function () {
return this.df(28);
};
DomainChart.prototype.c8 = function () {
return this.df(27);
};
DomainChart.prototype.da = function () {
return this.df(29);
};
DomainChart.prototype.db = function () {
return this.df(