UNPKG

igniteui-react-charts

Version:

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

1,573 lines 210 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 { __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.ly = null; _this.lv = null; _this.hw = null; _this.it = NaN; _this.lu = null; _this.i6 = 0; _this.i7 = 0; _this.i8 = 0; _this.i5 = 0; _this.i1 = 0; _this.i3 = 0; _this.i2 = 0; _this.i0 = 0; _this.x9 = null; _this.ya = null; _this.iq = NaN; _this.i9 = NaN; _this.iz = NaN; _this.ia = NaN; _this.lc = 0; _this.et = null; _this.k8 = 300; _this.la = 300; _this.k7 = 300; _this.kz = null; _this.hf = false; _this.ck = null; _this.mv = null; _this.mx = null; _this.eh = null; _this.f1 = false; _this.fj = null; _this.f5 = false; _this.f4 = false; _this.h0 = null; _this.propertyChanged = null; _this.seriesDataChanged = null; _this.lb = 0; _this.g8 = false; _this.g7 = false; _this.hr = new Dictionary$2(String_$type, DataSeries.$, 0); _this.cd = null; _this.hm = false; _this.hv = null; _this.ch = null; _this.f7 = false; _this.ci = null; _this._commandCompleted = null; _this._invalidateActions = null; _this.hs = null; _this.ht = new List$1(ICommandStateChangedListener_$type, 0); _this.by = 0; _this.ig = NaN; _this.ih = NaN; _this.id = DeviceUtils.g(10); _this.ie = DeviceUtils.g(10); _this.bu = 0; _this.bw = 0; _this.fx = true; _this.e = null; _this.b = null; _this.d = null; _this.a = null; _this.bc = 0; _this.k4 = -1; _this.k5 = -1; _this.bs = 0; _this.ml = stringEmpty(); _this.fy = true; _this.mm = null; _this.f = null; _this.zs = new Thickness(0, DeviceUtils.g(5)); _this.fz = true; _this.mn = "N/A"; _this.f0 = false; _this.zt = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(2), DeviceUtils.g(0)); _this.x2 = null; _this.e5 = null; _this.mf = null; _this.c = null; _this.me = stringEmpty(); _this.bi = 0; _this.bk = 0; _this.mg = null; _this.xu = null; _this.zm = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0)); _this.zl = new Thickness(0, DeviceUtils.g(5)); _this.fw = true; _this.ex = null; _this.xt = null; _this.zk = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0)); _this.zj = new Thickness(0, DeviceUtils.g(5)); _this.fv = false; _this.ew = null; _this.xx = null; _this.e0 = null; _this.bo = 0; _this.mi = null; _this.zp = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0)); _this.zo = new Thickness(0, DeviceUtils.g(5)); _this.xz = null; _this.e2 = null; _this.mh = null; _this.xw = null; _this.ez = null; _this.mj = null; _this.xy = null; _this.e1 = null; _this.zi = new Thickness(0, DeviceUtils.g(0)); _this.cq = 0; _this.bq = 0; _this.mk = null; _this.x1 = null; _this.zr = new Thickness(0, DeviceUtils.g(0)); _this.e4 = null; _this.zq = new Thickness(0, DeviceUtils.g(0)); _this.x0 = null; _this.e3 = null; _this.bm = 0; _this.xv = null; _this.zn = 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.hz = null; _this.fi = null; _this.fm = false; _this.hq = new Dictionary$2(String_$type, Base.$, 0); _this.hu = 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.x8 = null; _this.x5 = null; _this.dt = 0; _this.an = new ChartSelectedItemCollection(); _this.am = new ChartSelectedItemCollection(); _this.ms = null; _this.mo = null; _this.mq = null; _this.mp = null; _this.mr = null; _this.filterStringErrorsParsing = null; _this.mt = null; _this.lt = null; _this.lr = null; _this.ls = null; _this.lq = null; _this.h = null; _this.g = null; _this.r = null; _this.u = null; _this.p = null; _this.q = null; _this.cf = null; _this.f6 = true; _this.f9 = true; _this.gc = false; _this.ge = false; _this.dg = 1; _this.f8 = false; _this.z6 = 0; _this.z7 = 0; _this.zf = new Rect(0, 0, 0, 1, 1); _this.mw = null; _this.mu = null; _this.xe = 1; _this.xd = 1; _this.ee = 0; _this.iy = NaN; _this.i4 = NaN; _this.dm = 0; _this.cy = 0; _this.cw = 0; _this.ir = NaN; _this.is = NaN; _this.c4 = null; _this.cu = 4; _this.s = null; _this.t = null; _this.k9 = 400; _this.h9 = NaN; _this.fl = false; _this.v = null; _this.eb = 0; _this.ja = DeviceUtils.g(1.5); _this.ed = null; _this.gf = false; _this.fk = true; _this.iv = NaN; _this.ix = NaN; _this.iw = NaN; _this.iu = NaN; _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.ld = 7; _this.d9 = 4; _this.bb = 0; _this.fu = false; _this.xs = null; _this.ic = NaN; _this.xr = null; _this.ft = true; _this.xn = null; _this.xp = null; _this.xo = null; _this.xq = null; _this.k2 = -1; _this.k3 = -1; _this.gb = false; _this.gd = true; _this.f2 = false; _this.x3 = null; _this.x4 = null; _this.k6 = -1; _this.fn = false; _this.fs = false; _this.fo = false; _this.gg = true; _this.ag = 0; _this.fq = false; _this.fr = false; _this.fp = false; _this.ib = NaN; _this.xh = null; _this.xl = null; _this.xm = null; _this.xk = null; _this.xi = null; _this.xj = null; _this.k1 = -1; _this.h4 = null; _this.ai = null; _this.mc = null; _this.md = null; _this.mb = "CalloutLabel"; _this.ma = "CalloutContent"; _this.ev = null; _this.eg = null; _this.w = null; _this.jb = NaN; _this.ga = false; _this.d1 = 0; _this.d2 = 0; _this.dz = 0; _this.d7 = 0; _this.x6 = null; _this.x7 = null; _this.im = NaN; _this.il = NaN; _this.ii = NaN; _this.ij = NaN; _this.ik = NaN; _this.ip = NaN; _this.io = NaN; _this.f3 = true; _this.yb = null; _this.yc = null; _this.jf = NaN; _this.je = NaN; _this.jc = NaN; _this.ji = NaN; _this.jd = NaN; _this.jh = NaN; _this.jg = NaN; _this.gh = true; _this.jk = NaN; _this.jj = NaN; _this.jm = NaN; _this.jl = NaN; _this.hz = new List$1(Delegate_$type, 0); _this.vb(); _this.uo(); return _this; } DomainChart.prototype.provideContainer = function (a) { if (a == null) { this.vs(function (b) { b.destroy(); b.provideContainer(null); }); return; } var b = this.ly; this.ly = a; if (this.fi != null && this.ly != null && b == null) { this.ly.setTimeout(this.fi, 0); this.fi = null; } var c = ((function () { var $ret = new XamDataChart(); $ret.e7 = true; return $ret; })()); c.jb = this; c.c9.b4(a); this.dataChart = c; this.vc(); }; DomainChart.prototype.destroy = function () { this.f4 = true; this.provideContainer(null); }; DomainChart.prototype.vc = function () { if (this.dataChart == null) { return; } var a = this.dataChart.c9.j.e(); this.z = a.a; this.ad = a.f; this.ab = a.b; this.ac = a.c; this.af = a.g; this.jq = Defaults.j; this.vd(); }; DomainChart.prototype.vd = function () { }; DomainChart.prototype.u9 = function (a) { if (a == null) { return; } a.ih = this.kk; a.ie = this.ki; a.ig = this.kj; a.id = this.kh; a.vr = this.zb; a.ia = this.kd; a.ic = this.kf; a.ib = this.ke; a.h9 = this.kc; a.vq = this.za; if (!isNaN_(this.j5)) { a.h4 = this.j5; } }; DomainChart.prototype.u6 = function () { }; DomainChart.prototype.vf = function (a, b) { a.kd = this.lo; a.de = this.eu; }; DomainChart.prototype.v7 = function (a, b, c) { var _this = this; switch (a) { case "TitleTopMargin": if (this.dataChart != null) { this.dataChart.ih = this.kk; } break; case "TitleLeftMargin": if (this.dataChart != null) { this.dataChart.ie = this.ki; } break; case "PixelScalingRatio": if (this.dataChart != null) { this.vs(function (d) { return d.h4 = _this.j5; }); } break; case "TitleRightMargin": if (this.dataChart != null) { this.dataChart.ig = this.kj; } break; case "TitleBottomMargin": if (this.dataChart != null) { this.dataChart.id = this.kh; } break; case "TitleTextColor": if (this.dataChart != null) { this.dataChart.vr = this.zb; } break; case "SubtitleLeftMargin": if (this.dataChart != null) { this.dataChart.ia = this.kd; } break; case "SubtitleTopMargin": if (this.dataChart != null) { this.dataChart.ic = this.kf; } break; case "SubtitleRightMargin": if (this.dataChart != null) { this.dataChart.ib = this.ke; } break; case "SubtitleBottomMargin": if (this.dataChart != null) { this.dataChart.h9 = this.kc; } break; case "SubtitleTextColor": if (this.dataChart != null) { this.dataChart.vq = this.za; } break; case "LeftMargin": if (this.dataChart != null) { this.dataChart.h3 = this.j2; } break; case "TopMargin": if (this.dataChart != null) { this.dataChart.ii = this.kl; } break; case "RightMargin": if (this.dataChart != null) { this.dataChart.h8 = this.kb; } break; case "BottomMargin": if (this.dataChart != null) { this.dataChart.hq = this.jo; } break; case "TransitionDuration": this.u2(function (d) { return d.kd = _this.lo; }); break; case "TransitionEasingFunction": this.u2(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.hw; }, set: function (a) { var b = this.tooltipTemplates; if (a != b) { this.hw = a; this.v3("TooltipTemplates", b, this.tooltipTemplates); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "j5", { get: function () { return this.it; }, set: function (a) { var b = this.it; if (a != b) { this.it = a; this.v3("PixelScalingRatio", b, this.j5); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "toolTip", { get: function () { return this.lu; }, set: function (a) { var b = this.toolTip; if (b != a) { this.lu = a; this.v3("ToolTip", b, this.toolTip); } }, 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.v3("TitleLeftMargin", b, this.ki); } }, 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.v3("TitleRightMargin", b, this.kj); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "kk", { get: function () { return this.i8; }, set: function (a) { var b = this.kk; if (a != b) { this.i8 = a; this.v3("TitleTopMargin", b, this.kk); } }, 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.v3("TitleBottomMargin", b, this.kh); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "kd", { get: function () { return this.i1; }, set: function (a) { var b = this.kd; if (a != b) { this.i1 = a; this.v3("SubtitleLeftMargin", b, this.kd); } }, 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.v3("SubtitleTopMargin", b, this.kf); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "ke", { get: function () { return this.i2; }, set: function (a) { var b = this.ke; if (a != b) { this.i2 = a; this.v3("SubtitleRightMargin", b, this.ke); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "kc", { get: function () { return this.i0; }, set: function (a) { var b = this.kc; if (a != b) { this.i0 = a; this.v3("SubtitleBottomMargin", b, this.kc); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "za", { get: function () { return this.x9; }, set: function (a) { var b = this.za; if (a != b) { this.x9 = a; this.v3("SubtitleTextColor", b, this.za); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "zb", { get: function () { return this.ya; }, set: function (a) { var b = this.zb; if (a != b) { this.ya = a; this.v3("TitleTextColor", b, this.zb); } }, enumerable: false, configurable: true }); DomainChart.prototype.get_j2 = function () { return this.iq; }; DomainChart.prototype.set_j2 = function (a) { var b = this.j2; if (a != b) { this.iq = a; this.v3("LeftMargin", b, this.j2); } }; Object.defineProperty(DomainChart.prototype, "j2", { get: function () { return this.get_j2(); }, set: function (a) { this.set_j2(a); }, 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.v3("TopMargin", b, this.kl); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "kb", { get: function () { return this.iz; }, set: function (a) { var b = this.kb; if (a != b) { this.iz = a; this.v3("RightMargin", b, this.kb); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "jo", { get: function () { return this.ia; }, set: function (a) { var b = this.jo; if (a != b) { this.ia = a; this.v3("BottomMargin", b, this.jo); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "lo", { get: function () { return this.lc; }, set: function (a) { var b = this.lo; if (a != b) { this.lc = a; this.v3("TransitionDuration", b, this.lo); } }, 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.v3("TransitionEasingFunction", b, this.eu); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "ll", { get: function () { return this.k8; }, set: function (a) { var b = this.ll; if (a != b) { this.k8 = a; this.v3("HighlightingTransitionDuration", b, this.ll); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "ln", { get: function () { return this.la; }, set: function (a) { var b = this.ln; if (a != b) { this.la = a; this.v3("SelectionTransitionDuration", b, this.ln); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "lk", { get: function () { return this.k7; }, set: function (a) { var b = this.lk; if (a != b) { this.k7 = a; this.v3("FocusTransitionDuration", b, this.lk); } }, enumerable: false, configurable: true }); DomainChart.prototype.va = function (a) { if (this.dataChart == null) { return; } a.mb = this.tb; a.lz = this.s0; }; DomainChart.prototype.vg = function (a, b) { this.vh(a, b); }; DomainChart.prototype.u7 = function () { }; DomainChart.prototype.vh = 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.gp = true; } else { var series_ = a; a.gp = false; series_.externalObject.tooltipTemplate = toolTipTemplate_; } }; DomainChart.prototype.w9 = function (a, b, c) { }; DomainChart.prototype.l0 = function (a) { return a; return null; }; DomainChart.prototype.k0 = function (a) { return null; }; DomainChart.prototype.v8 = function (a, b, c) { var _this = this; switch (a) { case "SubtitleTextStyle": if (this.dataChart != null) { this.dataChart.lz = this.s0; } break; case "TitleTextStyle": if (this.dataChart != null) { this.dataChart.mb = this.tb; } break; case "TooltipTemplate": if (this.hf) { return; } this.hf = true; this.tooltipTemplate = this.l0(this.tooltipTemplate); this.hf = false; if (this.dataChart != null) { this.dataChart.jd = this.tooltipTemplate; } this.toolTip = this.tooltipTemplate; break; case "ToolTip": this.u3(function (d, e) { return _this.vh(d, e); }); break; case "TooltipTemplates": if (this.tooltipTemplates == null) { break; } this.hf = true; this.u3(function (d, e) { var f = _this.l0(ArrayExtension.getModulus$1(Base.$, _this.tooltipTemplates, e)); var series_ = d; var templ_ = f; series_.externalObject.tooltipTemplate = templ_; }); this.hf = 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.v3("Widget", b, this.cl); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "s0", { get: function () { return this.mv; }, set: function (a) { var b = this.s0; if (a != b) { this.mv = a; this.v3("SubtitleTextStyle", b, this.s0); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "tb", { get: function () { return this.mx; }, set: function (a) { var b = this.tb; if (a != b) { this.mx = a; this.v3("TitleTextStyle", b, this.tb); } }, 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.v3("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.f1) { return; } this.f1 = 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.v0)); this.dataChart.nc(b); this.dataChart.al.q(); }; DomainChart.prototype.v0 = function (a, b) { this.f1 = false; var c = this.dataChart; c.imageCaptured = delegateRemove(c.imageCaptured, runOn(this, this.v0)); if (this.fj != null) { this.fj(this, b); this.fj = null; } }; Object.defineProperty(DomainChart.prototype, "isDetached", { get: function () { return this.f5 || this.f4; }, enumerable: false, configurable: true }); DomainChart.prototype.onDetachedFromUI = function () { this.f5 = true; this.vs(function (a) { return a.onDetachedFromUI(); }); }; DomainChart.prototype.onAttachedToUI = function () { this.f5 = false; this.vs(function (a) { return a.onAttachedToUI(); }); }; DomainChart.prototype.vb = function () { this.bf = this.bh(true); var a = this.bf.dataSeries; a.collectionChanged = delegateCombine(a.collectionChanged, runOn(this, this.vv)); this.bg = this.bh(false); var b = this.bg.dataSeries; b.collectionChanged = delegateCombine(b.collectionChanged, runOn(this, this.vz)); }; DomainChart.prototype.w7 = function (a, b, c) { if (a) { b.e = c; } else { b.n(c); } }; DomainChart.prototype.w6 = function (a, b, c) { if (a) { b.syncTarget = c; } else { b.o(c); } }; DomainChart.prototype.w8 = 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.h0 = 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.w7(a, this.a3, b.sortDescriptions); this.w7(a, this.ay, b.groupDescriptions); this.w6(a, this.en, b.filterExpressions); this.w6(a, this.eo, b.highlightFilterExpressions); this.w8(a, this.a7, b.summaryDescriptions); this.w7(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.w6(a, this.el, b.filterExpressions); } } { if (this.eo.k.count == 0) { this.w6(a, this.em, b.highlightFilterExpressions); } } { if (this.a3.j.count == 0) { this.w7(a, this.aw, b.sortDescriptions); } if (this.az.j.count == 0) { this.w7(a, this.av, b.postSortDescriptions); } } { if (this.ay.j.count == 0) { this.w7(a, this.au, b.groupDescriptions); } } { if (this.a7.j.count == 0) { this.w8(a, this.a4, b.summaryDescriptions); } } if (this.includedProperties != null) { b.includedProperties = this.includedProperties; } if (this.excludedProperties != null) { b.excludedProperties = this.excludedProperties; } b.supportedSeriesTypes = this.h2.toArray(); b.rules.clear(); try { for (var _c = __values(fromEnum(this.h1)), _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.ha = function (a) { return a != 24 && this.h2.contains(a); }; DomainChart.prototype.notifyResized = function () { this.vs(function (a) { return a.notifyContainerResized(); }); }; DomainChart.prototype.vq = function () { this.vs(function (a) { for (var b = 0; b < a.series.count; b++) { a.series._inner[b].qn(); } }); }; DomainChart.prototype.uv = function () { if (this.dataChart == null) { return; } if (this.g8) { this.us(); } this.dataChart.flush(); }; DomainChart.prototype.u4 = function () { if (this.dataChart == null) { return; } this.dataChart.ny(); }; DomainChart.prototype.wl = function (a) { if (this.propertyChanged != null) { this.propertyChanged(this, new PropertyChangedEventArgs(a)); } }; DomainChart.prototype.ux = function (a) { this.uy(function (b, c) { return a(b); }); }; DomainChart.prototype.uy = 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.u2 = function (a) { this.u3(function (b, c) { return a(b); }); }; DomainChart.prototype.u3 = 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.es) { a(c, b); } } }; DomainChart.prototype.u0 = function (a) { this.u1(function (b, c) { return a(b); }); }; DomainChart.prototype.u1 = 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.wx = function () { this.ux(function (a) { return a.rx(); }); }; DomainChart.prototype.vs = function (a) { this.vt(a, true); }; DomainChart.prototype.vt = function (a, b) { this.vu(a, b, null); }; DomainChart.prototype.vu = function (a, b, c) { if (this.dataChart == null) { return; } a(this.dataChart); }; DomainChart.prototype.hc = function (a) { if (!this.ha(a.suggestedSeries)) { return false; } var b = a.data; if (b == null) { return false; } return true; }; DomainChart.prototype.g2 = function () { if (this.dataChart == null) { return false; } return true; }; DomainChart.prototype.qt = function (a) { var b = EnumUtil.getName(DataSeriesType_$type, a.suggestedSeries); var c = "series_" + (a.index + 1) + "_" + b; return c; }; DomainChart.prototype.qu = function (a, b) { if (this.g5 && this.hl) { var c = ""; var d = 5 + Math.round(DomainChart.l8.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.qs = function () { return stringEmpty(); }; DomainChart.prototype.wa = function () { var a = this.wc(runOn(this, this.us), this.g8); this.g8 = a.p1; }; DomainChart.prototype.um = function () { if (this.dataChart == null) { return; } this.g7 = false; var a = false; if (this.gy()) { a = true; this.ul(); } if (a) { this.uu(); this.xa(); } }; DomainChart.prototype.xa = function () { this.hr.clear(); }; DomainChart.prototype.ul = 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.qt(b))) { this.hr.item(this.qt(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.h6 = function (a) { return a.data; }; DomainChart.prototype.h7 = function (a) { return a.highlightedData; }; DomainChart.prototype.uu = function () { var e_4, _a; if (this.g8) { 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.qt(b))) { if (this.hr.containsKey(this.qt(b))) { var c = this.hr.item(this.qt(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.g8 && this.dataChart != null) { for (var d = 0; d < this.dataChart.series.count; d++) { var e = this.dataChart.series._inner[d]; if (this.hr.containsKey(e.name)) { e.highlightedItemsSource = this.h6(this.hr.item(e.name)); } } } }; DomainChart.prototype.gy = 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.w0 = function () { var e_5, _a, e_6, _b; if (this.dataChart == null) { return; } this.g8 = false; this.w2(); 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.h0 = 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.hc(d)) { continue; } if (d.index < 0) { d.index = c; } this.wy(d); this.wz(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.xb(); this.uy(runOn(this, this.ve)); }; 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(25); }; DomainChart.prototype.c7 = function () { return this.df(26); }; DomainChart.prototype.c9 = function () { re