igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
1,570 lines • 219 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 { DomainChartTestingInfo } from "./DomainChartTestingInfo";
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.mi = null;
_this.mf = null;
_this.h8 = null;
_this.i6 = NaN;
_this.me = null;
_this.jj = 0;
_this.jk = 0;
_this.jl = 0;
_this.ji = 0;
_this.je = 0;
_this.jg = 0;
_this.jf = 0;
_this.jd = 0;
_this.ze = null;
_this.zf = null;
_this.i3 = NaN;
_this.jm = NaN;
_this.jc = NaN;
_this.io = NaN;
_this.lt = 0;
_this.ex = null;
_this.lo = 300;
_this.lr = 300;
_this.lm = 300;
_this.ld = null;
_this.hq = false;
_this.cm = null;
_this.nf = null;
_this.nh = null;
_this.el = null;
_this.f7 = false;
_this.fn = null;
_this.gb = false;
_this.ga = false;
_this.ic = null;
_this.propertyChanged = null;
_this.seriesDataChanged = null;
_this.ls = 0;
_this.hi = false;
_this.hh = false;
_this.h3 = new Dictionary$2(String_$type, DataSeries.$, 0);
_this.cf = null;
_this.hy = false;
_this.h7 = null;
_this.cj = null;
_this.gd = false;
_this.ck = null;
_this._commandCompleted = null;
_this._invalidateActions = null;
_this.h4 = null;
_this.h5 = new List$1(ICommandStateChangedListener_$type, 0);
_this.bz = 0;
_this.it = NaN;
_this.iu = NaN;
_this.ir = DeviceUtils.g(10);
_this.is = DeviceUtils.g(10);
_this.bv = 0;
_this.bx = 0;
_this.f3 = true;
_this.e = null;
_this.b = null;
_this.d = null;
_this.a = null;
_this.bd = 0;
_this.li = -1;
_this.lj = -1;
_this.bt = 0;
_this.m5 = stringEmpty();
_this.f4 = true;
_this.m6 = null;
_this.f = null;
_this.aax = new Thickness(0, DeviceUtils.g(5));
_this.f5 = true;
_this.m7 = "N/A";
_this.f6 = false;
_this.aay = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(2), DeviceUtils.g(0));
_this.y7 = null;
_this.e9 = null;
_this.mz = null;
_this.c = null;
_this.my = stringEmpty();
_this.bj = 0;
_this.bl = 0;
_this.m0 = null;
_this.yz = null;
_this.aar = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0));
_this.aaq = new Thickness(0, DeviceUtils.g(5));
_this.f2 = true;
_this.e1 = null;
_this.yy = null;
_this.aap = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0));
_this.aao = new Thickness(0, DeviceUtils.g(5));
_this.f1 = false;
_this.e0 = null;
_this.y2 = null;
_this.e4 = null;
_this.bp = 0;
_this.m2 = null;
_this.aau = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0));
_this.aat = new Thickness(0, DeviceUtils.g(5));
_this.y4 = null;
_this.e6 = null;
_this.m1 = null;
_this.y1 = null;
_this.e3 = null;
_this.m3 = null;
_this.y3 = null;
_this.e5 = null;
_this.aan = new Thickness(0, DeviceUtils.g(0));
_this.cs = 0;
_this.br = 0;
_this.m4 = null;
_this.y6 = null;
_this.aaw = new Thickness(0, DeviceUtils.g(0));
_this.e8 = null;
_this.aav = new Thickness(0, DeviceUtils.g(0));
_this.y5 = null;
_this.e7 = null;
_this.bn = 0;
_this.y0 = null;
_this.aas = new Thickness(1, DeviceUtils.g(8), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0));
_this.e2 = null;
_this.userAnnotationInformationRequested = null;
_this.userAnnotationToolTipContentUpdating = 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.calloutLabelUpdating = null;
_this.selectedSeriesItemsChanged = null;
_this.focusedSeriesItemsChanged = null;
_this.ib = null;
_this.fm = null;
_this.fq = false;
_this.h2 = new Dictionary$2(String_$type, Base.$, 0);
_this.h6 = new List$1(String_$type, 0);
_this.ay = null;
_this.au = null;
_this.at = null;
_this.en = null;
_this.eo = null;
_this.a6 = null;
_this.ev = null;
_this.ew = null;
_this.ax = null;
_this.aw = null;
_this.av = null;
_this.eq = null;
_this.ep = null;
_this.a5 = null;
_this.dy = 0;
_this.dx = 0;
_this.zd = null;
_this.za = null;
_this.dv = 0;
_this.ao = new ChartSelectedItemCollection();
_this.an = new ChartSelectedItemCollection();
_this.nc = null;
_this.m8 = null;
_this.na = null;
_this.m9 = null;
_this.nb = null;
_this.filterStringErrorsParsing = null;
_this.nd = null;
_this.md = null;
_this.mb = null;
_this.mc = null;
_this.ma = null;
_this.h = null;
_this.g = null;
_this.r = null;
_this.u = null;
_this.p = null;
_this.q = null;
_this.ch = null;
_this.gc = true;
_this.gg = true;
_this.gj = false;
_this.gm = false;
_this.gl = false;
_this.di = 1;
_this.ge = false;
_this.abb = 0;
_this.abc = 0;
_this.aak = new Rect(0, 0, 0, 1, 1);
_this.ng = null;
_this.ne = null;
_this.yj = 1;
_this.yi = 1;
_this.eg = 0;
_this.jb = NaN;
_this.jh = NaN;
_this.dp = 0;
_this.c0 = 0;
_this.cy = 0;
_this.i4 = NaN;
_this.i5 = NaN;
_this.c6 = null;
_this.cw = 4;
_this.s = null;
_this.t = null;
_this.lp = 400;
_this.im = NaN;
_this.fp = false;
_this.v = null;
_this.ed = 0;
_this.jn = DeviceUtils.g(1.5);
_this.ef = null;
_this.gn = false;
_this.fo = true;
_this.i8 = NaN;
_this.ja = NaN;
_this.i9 = NaN;
_this.i7 = NaN;
_this.ln = 200;
_this.ll = 200;
_this.lq = 200;
_this.a9 = 0;
_this.dr = 0;
_this.dt = 0;
_this.dm = 0;
_this.dk = 0;
_this.iv = NaN;
_this.co = 0;
_this.ct = 0;
_this.cq = 0;
_this.lu = 7;
_this.eb = 4;
_this.bc = 0;
_this.f0 = false;
_this.yx = null;
_this.iq = NaN;
_this.yw = null;
_this.fx = true;
_this.fz = false;
_this.fy = false;
_this.ys = null;
_this.yu = null;
_this.yt = null;
_this.yv = null;
_this.lg = -1;
_this.lh = -1;
_this.gi = false;
_this.gk = true;
_this.f8 = false;
_this.y8 = null;
_this.y9 = null;
_this.lk = -1;
_this.fr = false;
_this.fw = false;
_this.fs = false;
_this.go = true;
_this.ag = 0;
_this.fu = false;
_this.fv = false;
_this.ft = false;
_this.ip = NaN;
_this.ym = null;
_this.yq = null;
_this.yr = null;
_this.yp = null;
_this.yn = null;
_this.yo = null;
_this.lf = -1;
_this.ih = null;
_this.aj = null;
_this.mw = null;
_this.mx = null;
_this.mv = "CalloutLabel";
_this.mu = "CalloutContent";
_this.ez = null;
_this.ek = null;
_this.w = null;
_this.jo = NaN;
_this.gh = false;
_this.d3 = 0;
_this.d4 = 0;
_this.d1 = 0;
_this.d9 = 0;
_this.zb = null;
_this.zc = null;
_this.i0 = NaN;
_this.iz = NaN;
_this.iw = NaN;
_this.ix = NaN;
_this.iy = NaN;
_this.i2 = NaN;
_this.i1 = NaN;
_this.f9 = true;
_this.zg = null;
_this.zh = null;
_this.js = NaN;
_this.jr = NaN;
_this.jp = NaN;
_this.jv = NaN;
_this.jq = NaN;
_this.ju = NaN;
_this.jt = NaN;
_this.gp = true;
_this.jx = NaN;
_this.jw = NaN;
_this.jz = NaN;
_this.jy = NaN;
_this.gf = false;
_this.ib = new List$1(Delegate_$type, 0);
_this.v7();
_this.vi();
return _this;
}
DomainChart.prototype.provideContainer = function (a) {
if (a == null) {
this.wp(function (b) {
b.destroy();
b.provideContainer(null);
});
return;
}
var b = this.mi;
this.mi = a;
if (this.fm != null && this.mi != null && b == null) {
this.mi.setTimeout(this.fm, 0);
this.fm = null;
}
var c = ((function () {
var $ret = new XamDataChart();
$ret.fz = true;
return $ret;
})());
c.kh = this;
c.dw.b7(a);
this.dataChart = c;
this.v8();
};
DomainChart.prototype.destroy = function () {
this.ga = true;
this.provideContainer(null);
};
DomainChart.prototype.v8 = function () {
if (this.dataChart == null) {
return;
}
var a = this.dataChart.dw.j.e();
this.z = a.a;
this.ad = a.f;
this.ab = a.b;
this.ac = a.c;
this.af = a.g;
this.j3 = Defaults.crosshairLineThickness;
this.v9();
};
DomainChart.prototype.v9 = function () {
};
DomainChart.prototype.v5 = function (a) {
if (a == null) {
return;
}
a.jk = this.ky;
a.ji = this.kw;
a.jj = this.kx;
a.jh = this.kv;
a.yd = this.aag;
a.je = this.kr;
a.jg = this.kt;
a.jf = this.ks;
a.jd = this.kq;
a.yc = this.aaf;
if (!isNaN_(this.kj)) {
a.i8 = this.kj;
}
};
DomainChart.prototype.v2 = function () {
};
DomainChart.prototype.wb = function (a, b) {
a.km = this.l8;
a.de = this.ey;
};
DomainChart.prototype.w5 = function (a, b, c) {
var _this = this;
switch (a) {
case "TitleTopMargin":
if (this.dataChart != null) {
this.dataChart.jk = this.ky;
}
break;
case "TitleLeftMargin":
if (this.dataChart != null) {
this.dataChart.ji = this.kw;
}
break;
case "PixelScalingRatio":
if (this.dataChart != null) {
this.wp(function (d) { return d.i8 = _this.kj; });
}
break;
case "TitleRightMargin":
if (this.dataChart != null) {
this.dataChart.jj = this.kx;
}
break;
case "TitleBottomMargin":
if (this.dataChart != null) {
this.dataChart.jh = this.kv;
}
break;
case "TitleTextColor":
if (this.dataChart != null) {
this.dataChart.yd = this.aag;
}
break;
case "SubtitleLeftMargin":
if (this.dataChart != null) {
this.dataChart.je = this.kr;
}
break;
case "SubtitleTopMargin":
if (this.dataChart != null) {
this.dataChart.jg = this.kt;
}
break;
case "SubtitleRightMargin":
if (this.dataChart != null) {
this.dataChart.jf = this.ks;
}
break;
case "SubtitleBottomMargin":
if (this.dataChart != null) {
this.dataChart.jd = this.kq;
}
break;
case "SubtitleTextColor":
if (this.dataChart != null) {
this.dataChart.yc = this.aaf;
}
break;
case "LeftMargin":
if (this.dataChart != null) {
this.dataChart.i7 = this.kg;
}
break;
case "TopMargin":
if (this.dataChart != null) {
this.dataChart.jl = this.kz;
}
break;
case "RightMargin":
if (this.dataChart != null) {
this.dataChart.jc = this.kp;
}
break;
case "BottomMargin":
if (this.dataChart != null) {
this.dataChart.ir = this.j1;
}
break;
case "TransitionDuration":
this.vy(function (d) { return d.km = _this.l8; });
break;
case "TransitionEasingFunction":
this.vy(function (d) { return d.de = _this.ey; });
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.h8;
},
set: function (a) {
var b = this.tooltipTemplates;
if (a != b) {
this.h8 = a;
this.w1("TooltipTemplates", b, this.tooltipTemplates);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kj", {
get: function () {
return this.i6;
},
set: function (a) {
var b = this.i6;
if (a != b) {
this.i6 = a;
this.w1("PixelScalingRatio", b, this.kj);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "toolTip", {
get: function () {
return this.me;
},
set: function (a) {
var b = this.toolTip;
if (b != a) {
this.me = a;
this.w1("ToolTip", b, this.toolTip);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kw", {
get: function () {
return this.jj;
},
set: function (a) {
var b = this.kw;
if (a != b) {
this.jj = a;
this.w1("TitleLeftMargin", b, this.kw);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kx", {
get: function () {
return this.jk;
},
set: function (a) {
var b = this.kx;
if (a != b) {
this.jk = a;
this.w1("TitleRightMargin", b, this.kx);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "ky", {
get: function () {
return this.jl;
},
set: function (a) {
var b = this.ky;
if (a != b) {
this.jl = a;
this.w1("TitleTopMargin", b, this.ky);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kv", {
get: function () {
return this.ji;
},
set: function (a) {
var b = this.kv;
if (a != b) {
this.ji = a;
this.w1("TitleBottomMargin", b, this.kv);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kr", {
get: function () {
return this.je;
},
set: function (a) {
var b = this.kr;
if (a != b) {
this.je = a;
this.w1("SubtitleLeftMargin", b, this.kr);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kt", {
get: function () {
return this.jg;
},
set: function (a) {
var b = this.kt;
if (a != b) {
this.jg = a;
this.w1("SubtitleTopMargin", b, this.kt);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "ks", {
get: function () {
return this.jf;
},
set: function (a) {
var b = this.ks;
if (a != b) {
this.jf = a;
this.w1("SubtitleRightMargin", b, this.ks);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kq", {
get: function () {
return this.jd;
},
set: function (a) {
var b = this.kq;
if (a != b) {
this.jd = a;
this.w1("SubtitleBottomMargin", b, this.kq);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "aaf", {
get: function () {
return this.ze;
},
set: function (a) {
var b = this.aaf;
if (a != b) {
this.ze = a;
this.w1("SubtitleTextColor", b, this.aaf);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "aag", {
get: function () {
return this.zf;
},
set: function (a) {
var b = this.aag;
if (a != b) {
this.zf = a;
this.w1("TitleTextColor", b, this.aag);
}
},
enumerable: false,
configurable: true
});
DomainChart.prototype.get_kg = function () {
return this.i3;
};
DomainChart.prototype.set_kg = function (a) {
var b = this.kg;
if (a != b) {
this.i3 = a;
this.w1("LeftMargin", b, this.kg);
}
};
Object.defineProperty(DomainChart.prototype, "kg", {
get: function () {
return this.get_kg();
},
set: function (a) {
this.set_kg(a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kz", {
get: function () {
return this.jm;
},
set: function (a) {
var b = this.kz;
if (a != b) {
this.jm = a;
this.w1("TopMargin", b, this.kz);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "kp", {
get: function () {
return this.jc;
},
set: function (a) {
var b = this.kp;
if (a != b) {
this.jc = a;
this.w1("RightMargin", b, this.kp);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "j1", {
get: function () {
return this.io;
},
set: function (a) {
var b = this.j1;
if (a != b) {
this.io = a;
this.w1("BottomMargin", b, this.j1);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "l8", {
get: function () {
return this.lt;
},
set: function (a) {
var b = this.l8;
if (a != b) {
this.lt = a;
this.w1("TransitionDuration", b, this.l8);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "ey", {
get: function () {
return this.ex;
},
set: function (a) {
var b = this.ey;
if (a != b) {
this.ex = a;
this.w1("TransitionEasingFunction", b, this.ey);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "l4", {
get: function () {
return this.lo;
},
set: function (a) {
var b = this.l4;
if (a != b) {
this.lo = a;
this.w1("HighlightingTransitionDuration", b, this.l4);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "l7", {
get: function () {
return this.lr;
},
set: function (a) {
var b = this.l7;
if (a != b) {
this.lr = a;
this.w1("SelectionTransitionDuration", b, this.l7);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "l2", {
get: function () {
return this.lm;
},
set: function (a) {
var b = this.l2;
if (a != b) {
this.lm = a;
this.w1("FocusTransitionDuration", b, this.l2);
}
},
enumerable: false,
configurable: true
});
DomainChart.prototype.v6 = function (a) {
if (this.dataChart == null) {
return;
}
a.np = this.t4;
a.nd = this.tt;
};
DomainChart.prototype.wc = function (a, b) {
this.wd(a, b);
};
DomainChart.prototype.v3 = function () {
};
DomainChart.prototype.wd = function (a, b) {
if (a == null) {
return;
}
if (this.ec == 3) {
return;
}
var toolTipTemplate_ = ArrayExtension.getModulus$1(Base.$, this.tooltipTemplates, b);
if (toolTipTemplate_ == null) {
a.gv = true;
}
else {
var series_ = a;
a.gv = false;
series_.externalObject.tooltipTemplate = toolTipTemplate_;
}
};
DomainChart.prototype.ya = function (a, b, c) {
};
DomainChart.prototype.mk = function (a) {
return a;
return null;
};
DomainChart.prototype.le = function (a) {
return null;
};
DomainChart.prototype.w6 = function (a, b, c) {
var _this = this;
switch (a) {
case "SubtitleTextStyle":
if (this.dataChart != null) {
this.dataChart.nd = this.tt;
}
break;
case "TitleTextStyle":
if (this.dataChart != null) {
this.dataChart.np = this.t4;
}
break;
case "TooltipTemplate":
if (this.hq) {
return;
}
this.hq = true;
this.tooltipTemplate = this.mk(this.tooltipTemplate);
this.hq = false;
if (this.dataChart != null) {
this.dataChart.kj = this.tooltipTemplate;
}
this.toolTip = this.tooltipTemplate;
break;
case "ToolTip":
this.vz(function (d, e) { return _this.wd(d, e); });
break;
case "TooltipTemplates":
if (this.tooltipTemplates == null) {
break;
}
this.hq = true;
this.vz(function (d, e) {
var f = _this.mk(ArrayExtension.getModulus$1(Base.$, _this.tooltipTemplates, e));
var series_ = d;
var templ_ = f;
series_.externalObject.tooltipTemplate = templ_;
});
this.hq = false;
break;
}
};
Object.defineProperty(DomainChart.prototype, "cn", {
get: function () {
return this.cm;
},
set: function (a) {
var b = this.cn;
if (a != b) {
this.cm = a;
this.w1("Widget", b, this.cn);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "tt", {
get: function () {
return this.nf;
},
set: function (a) {
var b = this.tt;
if (a != b) {
this.nf = a;
this.w1("SubtitleTextStyle", b, this.tt);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "t4", {
get: function () {
return this.nh;
},
set: function (a) {
var b = this.t4;
if (a != b) {
this.nh = a;
this.w1("TitleTextStyle", b, this.t4);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "dataChart", {
get: function () {
return this.el;
},
set: function (a) {
var b = this.dataChart;
if (b != a) {
this.el = a;
this.w1("DataChart", b, this.dataChart);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(DomainChart.prototype, "currentDataAdapter", {
get: function () {
return this.bg;
},
enumerable: false,
configurable: true
});
DomainChart.prototype.sendCommandCompleted = function (a) {
if (this.commandCompleted != null) {
this.commandCompleted(a);
}
};
DomainChart.prototype.captureTargetImageToClipboard = function (a) {
if (this.f7) {
return;
}
this.f7 = true;
this.fn = a;
var b = new CaptureImageSettings();
b.b = true;
b.a = 0;
var c = this.dataChart;
c.imageCaptured = delegateCombine(c.imageCaptured, runOn(this, this.wy));
this.dataChart.ot(b);
this.dataChart.al.q();
};
DomainChart.prototype.wy = function (a, b) {
this.f7 = false;
var c = this.dataChart;
c.imageCaptured = delegateRemove(c.imageCaptured, runOn(this, this.wy));
if (this.fn != null) {
this.fn(this, b);
this.fn = null;
}
};
Object.defineProperty(DomainChart.prototype, "isDetached", {
get: function () {
return this.gb || this.ga;
},
enumerable: false,
configurable: true
});
DomainChart.prototype.onDetachedFromUI = function () {
this.gb = true;
this.wp(function (a) { return a.onDetachedFromUI(); });
};
DomainChart.prototype.onAttachedToUI = function () {
this.gb = false;
this.wp(function (a) { return a.onAttachedToUI(); });
};
DomainChart.prototype.vo = function () {
this.v7();
};
DomainChart.prototype.v7 = function () {
if (this.bg == null) {
this.bg = this.bi(true);
var a = this.bg.dataSeries;
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(this, this.ws));
}
if (this.bh == null) {
this.bh = this.bi(false);
var b = this.bh.dataSeries;
b.collectionChanged = delegateCombine(b.collectionChanged, runOn(this, this.wx));
}
};
DomainChart.prototype.x8 = function (a, b, c) {
if (a) {
b.e = c;
}
else {
b.n(c);
}
};
DomainChart.prototype.x7 = function (a, b, c) {
if (a) {
b.syncTarget = c;
}
else {
b.o(c);
}
};
DomainChart.prototype.x9 = function (a, b, c) {
if (a) {
b.e = c;
}
else {
b.n(c);
}
};
DomainChart.prototype.bi = function (a) {
var e_1, _a, e_2, _b;
this.ic = new List$1(MarkerType_$type, 0);
var b = new DataSeriesAdapter().e;
if (a) {
this.ay = new ChartSortDescriptionCollection();
this.au = new ChartSortDescriptionCollection();
this.at = new ChartSortDescriptionCollection();
this.a6 = new ChartSummaryDescriptionCollection();
this.en = new FilterExpressionCollection();
this.eo = new FilterExpressionCollection();
}
this.x8(a, this.a4, b.sortDescriptions);
this.x8(a, this.az, b.groupDescriptions);
this.x7(a, this.er, b.filterExpressions);
this.x7(a, this.es, b.highlightFilterExpressions);
this.x9(a, this.a8, b.summaryDescriptions);
this.x8(a, this.a0, b.postSortDescriptions);
if (a) {
this.ev = new SortGroupParser();
this.ew = new SummaryParser();
this.ax = ((function () {
var $ret = new ChartSortDescriptionCollection();
$ret.i = true;
return $ret;
})());
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.a5 = ((function () {
var $ret = new ChartSummaryDescriptionCollection();
$ret.i = true;
return $ret;
})());
this.ep = ((function () {
var $ret = new FilterExpressionCollection();
$ret.shouldDetachOnTargetChange = true;
return $ret;
})());
this.eq = ((function () {
var $ret = new FilterExpressionCollection();
$ret.shouldDetachOnTargetChange = true;
return $ret;
})());
}
{
if (this.er.k.count == 0) {
this.x7(a, this.ep, b.filterExpressions);
}
}
{
if (this.es.k.count == 0) {
this.x7(a, this.eq, b.highlightFilterExpressions);
}
}
{
if (this.a4.j.count == 0) {
this.x8(a, this.ax, b.sortDescriptions);
}
if (this.a0.j.count == 0) {
this.x8(a, this.aw, b.postSortDescriptions);
}
}
{
if (this.az.j.count == 0) {
this.x8(a, this.av, b.groupDescriptions);
}
}
{
if (this.a8.j.count == 0) {
this.x9(a, this.a5, b.summaryDescriptions);
}
}
if (this.includedProperties != null) {
b.includedProperties = this.includedProperties;
}
if (this.excludedProperties != null) {
b.excludedProperties = this.excludedProperties;
}
b.supportedSeriesTypes = this.ie.toArray();
b.rules.clear();
try {
for (var _c = __values(fromEnum(this.id)), _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.yc = function (a) {
if (this.dataChart != null) {
this.dataChart.tp(a);
}
};
DomainChart.prototype.ye = function (a) {
if (this.dataChart != null) {
this.dataChart.tt(a);
}
};
DomainChart.prototype.yd = function (a) {
if (this.dataChart != null) {
this.dataChart.ts(a);
}
};
DomainChart.prototype.yb = function (a) {
if (this.dataChart != null) {
this.dataChart.to(a);
}
};
DomainChart.prototype.hk = function (a) {
return a != 24 && this.ie.contains(a);
};
DomainChart.prototype.notifyResized = function () {
this.wp(function (a) { return a.notifyContainerResized(); });
};
DomainChart.prototype.wn = function () {
this.wp(function (a) {
for (var b = 0; b < a.b9.count; b++) {
a.b9._inner[b].q2();
}
});
};
DomainChart.prototype.vr = function () {
if (this.dataChart == null) {
return;
}
if (this.bg != null) {
this.bg.flush();
}
if (this.bh != null) {
this.bh.flush();
}
if (this.hi) {
this.vm();
}
this.dataChart.flush();
};
DomainChart.prototype.v0 = function () {
if (this.dataChart == null) {
return;
}
this.dataChart.pl();
};
DomainChart.prototype.xk = function (a) {
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
};
DomainChart.prototype.vt = function (a) {
this.vu(function (b, c) { return a(b); });
};
DomainChart.prototype.vu = function (a) {
if (this.dataChart == null) {
return;
}
for (var b = 0; b < this.dataChart.b9.count; b++) {
a(this.dataChart.b9._inner[b], b);
}
};
DomainChart.prototype.vy = function (a) {
this.vz(function (b, c) { return a(b); });
};
DomainChart.prototype.vz = function (a) {
if (this.dataChart == null) {
return;
}
for (var b = 0; b < this.dataChart.b9.count; b++) {
var c = this.dataChart.b9._inner[b];
if (!c.eu) {
a(c, b);
}
}
};
DomainChart.prototype.vw = function (a) {
this.vx(function (b, c) { return a(b); });
};
DomainChart.prototype.vx = function (a) {
if (this.dataChart == null) {
return;
}
for (var b = 0; b < this.dataChart.b9.count; b++) {
var c = this.dataChart.b9._inner[b];
if (c.ev) {
a(c, b);
}
}
};
DomainChart.prototype.xy = function () {
this.vt(function (a) { return a.sd(); });
};
DomainChart.prototype.wp = function (a) {
this.wq(a, true);
};
DomainChart.prototype.wq = function (a, b) {
this.wr(a, b, null);
};
DomainChart.prototype.wr = function (a, b, c) {
if (this.dataChart == null) {
return;
}
a(this.dataChart);
};
DomainChart.prototype.hn = function (a) {
if (!this.hk(a.suggestedSeries)) {
return false;
}
var b = a.data;
if (b == null) {
return false;
}
return true;
};
DomainChart.prototype.hc = function () {
if (this.dataChart == null) {
return false;
}
return true;
};
DomainChart.prototype.rg = function (a) {
var b = EnumUtil.getName(DataSeriesType_$type, a.suggestedSeries);
var c = "series_" + (a.index + 1) + "_" + b;
return c;
};
DomainChart.prototype.rh = function (a, b) {
if (this.hf && this.hx) {
var c = "";
var d = 5 + Math.round(DomainChart.ms.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.b9.count + 1);
}
else {
return a.title;
}
};
DomainChart.prototype.rf = function () {
return stringEmpty();
};
DomainChart.prototype.w8 = function () {
var a = this.xa(runOn(this, this.vm), this.hi);
this.hi = a.p1;
};
DomainChart.prototype.vg = function () {
if (this.dataChart == null) {
return;
}
this.hh = false;
var a = false;
if (this.g8()) {
a = true;
this.ve();
}
if (a) {
this.vp();
this.yf();
}
};
DomainChart.prototype.yf = function () {
this.h3.clear();
};
DomainChart.prototype.ve = function () {
var e_3, _a;
var a = 0;
try {
for (var _b = __values(fromEnum(this.bh.dataSeries)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
if (b.index == -1) {
b.index = a;
}
if (!stringIsNullOrEmpty(this.rg(b))) {
this.h3.item(this.rg(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.ij = function (a) {
return a.data;
};
DomainChart.prototype.ik = function (a) {
return a.highlightedData;
};
DomainChart.prototype.vp = function () {
var e_4, _a;
if (this.hi) {
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.rg(b))) {
if (this.h3.containsKey(this.rg(b))) {
var c = this.h3.item(this.rg(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.hi && this.dataChart != null) {
for (var d = 0; d < this.dataChart.b9.count; d++) {
var e = this.dataChart.b9._inner[d];
if (this.h3.containsKey(e.name)) {
e.highlightedItemsSource = this.ij(this.h3.item(e.name));
}
}
}
};
DomainChart.prototype.g8 = function () {
if (this.actualHighlightedItemsSource == null) {
return false;
}
if (this.bh.dataSeries.count != this.bg.dataSeries.count) {
return false;
}
if (this.bh.dataSeries.count == 0) {
return false;
}
for (var a = 0; a < this.bh.dataSeries.count; a++) {
if (!(this.bh.dataSeries._inner[a].isMatch(this.bg.dataSeries._inner[a]))) {
var b = false;
for (var c = 0; c < this.bg.dataSeries.count; c++) {
if (c == a) {
continue;
}
if (this.bh.dataSeries._inner[a].isMatch(this.bg.dataSeries._inner[c])) {
b = true;
break;
}
}
if (!b) {
return false;
}
}
}
return true;
};
DomainChart.prototype.x1 = function () {
var e_5, _a, e_6, _b;
if (this.dataChart == null) {
return;
}
this.hi = false;
this.x3();
if (this.actualItemsSource == null) {
return;
}
var a = new List$1(MarkerType_$type, 0);
try {
for (var _c = __values(fromEnum(this.bg.dataSeries)), _d = _c.next(); !_d.done; _d = _c.next()) {
var b = _d.value;
a.add(this.c2(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.ic = a;
var c = 0;
try {
for (var _e = __values(fromEnum(this.bg.dataSeries)), _f = _e.next(); !_f.done; _f