UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

1,518 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-angular-core"; import { IDataLegendTarget_$type } from "igniteui-angular-core"; import { IToolbarTarget_$type } from "igniteui-angular-core"; import { IDomainChartLike_$type } from "./IDomainChartLike"; import { ArrayExtension } from "igniteui-angular-core"; import { List$1 } from "igniteui-angular-core"; import { Brush } from "igniteui-angular-core"; import { XamDataChart } from "./XamDataChart"; import { DataSeriesType_$type } from "igniteui-angular-core"; import { MarkerType_$type } from "./MarkerType"; import { Color } from "igniteui-angular-core"; import { ColorUtil } from "igniteui-angular-core"; import { IDomainChartToolbarProvider_$type } from "./IDomainChartToolbarProvider"; import { DVContainer } from "igniteui-angular-core"; import { DataToolTipLayerGroupingMode_$type } from "igniteui-angular-core"; import { DataTooltipGroupedPositionX_$type } from "igniteui-angular-core"; import { DataTooltipGroupedPositionY_$type } from "igniteui-angular-core"; import { DataAbbreviationMode_$type } from "igniteui-angular-core"; import { DataLegendValueMode_$type } from "igniteui-angular-core"; import { Thickness } from "igniteui-angular-core"; import { DataLegendHeaderDateMode_$type } from "igniteui-angular-core"; import { DataLegendHeaderTimeMode_$type } from "igniteui-angular-core"; import { DataLegendSummaryType_$type } from "igniteui-angular-core"; import { LegendItemBadgeShape_$type } from "igniteui-angular-core"; import { DataLegendUnitsMode_$type } from "igniteui-angular-core"; import { DataLegendLabelMode_$type } from "igniteui-angular-core"; import { ChartSortDescriptionCollection } from "./ChartSortDescriptionCollection"; import { FilterExpressionCollection } from "igniteui-angular-core"; import { ChartSummaryDescriptionCollection } from "./ChartSummaryDescriptionCollection"; import { SeriesSelectionMode_$type } from "./SeriesSelectionMode"; import { SeriesSelectionBehavior_$type } from "./SeriesSelectionBehavior"; import { ChartSelectedItemCollection } from "./ChartSelectedItemCollection"; import { SortGroupParser } from "igniteui-angular-core"; import { FilterExpressionParsingHelper } from "igniteui-angular-core"; import { FilterStringErrorsParsingEventArgs } from "./FilterStringErrorsParsingEventArgs"; import { SummaryParser } from "igniteui-angular-core"; import { BrushCollection } from "igniteui-angular-core"; import { SeriesHighlightedValuesDisplayMode_$type } from "igniteui-angular-core"; import { Visibility_$type } from "igniteui-angular-core"; import { Rect } from "igniteui-angular-core"; import { HorizontalAlignment_$type } from "igniteui-angular-core"; import { UnknownValuePlotting_$type } from "igniteui-angular-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-angular-core"; 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-angular-core"; import { ToolTipType_$type } from "./ToolTipType"; import { CrosshairsDisplayMode_$type } from "./CrosshairsDisplayMode"; import { CalloutCollisionMode_$type } from "igniteui-angular-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-angular-core"; import { Dictionary$2 } from "igniteui-angular-core"; import { DataSeries } from "igniteui-angular-core"; import { ICommandStateChangedListener_$type } from "igniteui-angular-core"; import { DeviceUtils } from "igniteui-angular-core"; import { ObservableCollection$1 } from "igniteui-angular-core"; import { DataSeriesAdapter } from "igniteui-angular-core"; import { ChartSortDescription } from "./ChartSortDescription"; import { ChartSummaryDescription } from "./ChartSummaryDescription"; import { Random } from "igniteui-angular-core"; import { ValueLayerValueMode_$type } from "./ValueLayerValueMode"; import { ObservableColorCollection } from "igniteui-angular-core"; import { BrushCollectionUtil } from "igniteui-angular-core"; import { ChartSeriesEventArgs } from "./ChartSeriesEventArgs"; import { DomainChartSeriesPointerEventArgs } from "./DomainChartSeriesPointerEventArgs"; import { DomainChartPlotAreaPointerEventArgs } from "./DomainChartPlotAreaPointerEventArgs"; import { BrushUtil } from "igniteui-angular-core"; import { IUnknownValuePlotting_$type } from "igniteui-angular-core"; import { ITrendLineSeries_$type } from "./ITrendLineSeries"; import { isNaN_ } from "igniteui-angular-core"; import { stringIsNullOrEmpty, stringEmpty, stringStartsWith } from "igniteui-angular-core"; /** * @hidden */ var DomainChart = /** @class */ /*@__PURE__*/ (function (_super) { __extends(DomainChart, _super); function DomainChart() { var _this = _super.call(this) || this; _this.lt = null; _this.lq = null; _this.hr = null; _this.io = NaN; _this.lp = null; _this.i1 = 0; _this.i2 = 0; _this.i3 = 0; _this.i0 = 0; _this.iw = 0; _this.iy = 0; _this.ix = 0; _this.iv = 0; _this.xx = null; _this.xy = null; _this.ik = NaN; _this.i4 = NaN; _this.iu = NaN; _this.h5 = NaN; _this.k7 = 0; _this.er = null; _this.k3 = 300; _this.k5 = 300; _this.k2 = 300; _this.ku = null; _this.hc = false; _this.ck = null; _this.mq = null; _this.ms = null; _this.ee = null; _this.fz = false; _this.fh = null; _this.f3 = false; _this.f2 = false; _this.hv = null; _this.propertyChanged = null; _this.k6 = 0; _this.g5 = false; _this.g4 = false; _this.hn = new Dictionary$2(String_$type, DataSeries.$, 0); _this.cd = null; _this.hj = false; _this.hq = null; _this.ch = null; _this.f5 = false; _this.ci = null; _this._commandCompleted = null; _this._invalidateActions = null; _this.eq = null; _this.ho = new List$1(ICommandStateChangedListener_$type, 0); _this.by = 0; _this.ia = NaN; _this.ib = NaN; _this.h8 = DeviceUtils.g(10); _this.h9 = DeviceUtils.g(10); _this.bu = 0; _this.bw = 0; _this.fv = true; _this.e = null; _this.b = null; _this.d = null; _this.a = null; _this.bc = 0; _this.kz = -1; _this.k0 = -1; _this.bs = 0; _this.mg = stringEmpty(); _this.fw = true; _this.mh = null; _this.f = null; _this.zg = new Thickness(0, DeviceUtils.g(5)); _this.fx = true; _this.mi = "N/A"; _this.fy = false; _this.zh = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(2), DeviceUtils.g(0)); _this.xq = null; _this.e3 = null; _this.ma = null; _this.c = null; _this.l9 = stringEmpty(); _this.bi = 0; _this.bk = 0; _this.mb = null; _this.xi = null; _this.za = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0)); _this.y9 = new Thickness(0, DeviceUtils.g(5)); _this.fu = true; _this.ev = null; _this.xh = null; _this.y8 = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0)); _this.y7 = new Thickness(0, DeviceUtils.g(5)); _this.ft = false; _this.eu = null; _this.xl = null; _this.ey = null; _this.bo = 0; _this.md = null; _this.zd = new Thickness(1, DeviceUtils.g(2), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0)); _this.zc = new Thickness(0, DeviceUtils.g(5)); _this.xn = null; _this.e0 = null; _this.mc = null; _this.xk = null; _this.ex = null; _this.me = null; _this.xm = null; _this.ez = null; _this.y6 = new Thickness(0, DeviceUtils.g(0)); _this.cq = 0; _this.bq = 0; _this.mf = null; _this.xp = null; _this.zf = new Thickness(0, DeviceUtils.g(0)); _this.e2 = null; _this.ze = new Thickness(0, DeviceUtils.g(0)); _this.xo = null; _this.e1 = null; _this.bm = 0; _this.xj = null; _this.zb = new Thickness(1, DeviceUtils.g(8), DeviceUtils.g(0), DeviceUtils.g(0), DeviceUtils.g(0)); _this.ew = 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.hu = null; _this.fg = null; _this.fk = false; _this.hm = new Dictionary$2(String_$type, Base.$, 0); _this.hp = new List$1(String_$type, 0); _this.ax = null; _this.at = null; _this.as = null; _this.eg = null; _this.eh = null; _this.a5 = null; _this.eo = null; _this.ep = null; _this.aw = null; _this.av = null; _this.au = null; _this.ej = null; _this.ei = null; _this.a4 = null; _this.dv = 0; _this.du = 0; _this.xw = null; _this.xt = null; _this.ds = 0; _this.an = new ChartSelectedItemCollection(); _this.am = new ChartSelectedItemCollection(); _this.mn = null; _this.mj = null; _this.ml = null; _this.mk = null; _this.mm = null; _this.filterStringErrorsParsing = null; _this.mo = null; _this.lo = null; _this.lm = null; _this.ln = null; _this.ll = null; _this.h = null; _this.g = null; _this.r = null; _this.u = null; _this.p = null; _this.q = null; _this.cf = null; _this.f4 = true; _this.f7 = true; _this.ga = false; _this.gc = false; _this.df = 1; _this.f6 = false; _this.zu = 0; _this.zv = 0; _this.y3 = new Rect(0, 0, 0, 1, 1); _this.mr = null; _this.mp = null; _this.w2 = 1; _this.w1 = 1; _this.eb = 0; _this.it = NaN; _this.iz = NaN; _this.dl = 0; _this.cy = 0; _this.cw = 0; _this.il = NaN; _this.im = NaN; _this.c4 = null; _this.cu = 4; _this.s = null; _this.t = null; _this.k4 = 400; _this.h4 = NaN; _this.fj = false; _this.v = null; _this.ea = 0; _this.i5 = DeviceUtils.g(1.5); _this.fi = true; _this.iq = NaN; _this.is = NaN; _this.ir = NaN; _this.ip = NaN; _this.a8 = 0; _this.dn = 0; _this.dq = 0; _this.dj = 0; _this.dh = 0; _this.cm = 0; _this.cr = 0; _this.co = 0; _this.k8 = 7; _this.d8 = 4; _this.bb = 0; _this.fs = false; _this.xg = null; _this.h7 = NaN; _this.xf = null; _this.fr = true; _this.xb = null; _this.xd = null; _this.xc = null; _this.xe = null; _this.kx = -1; _this.ky = -1; _this.f9 = false; _this.gb = true; _this.f0 = false; _this.xr = null; _this.xs = null; _this.k1 = -1; _this.fl = false; _this.fq = false; _this.fm = false; _this.gd = true; _this.ag = 0; _this.fo = false; _this.fp = false; _this.fn = false; _this.h6 = NaN; _this.w5 = null; _this.w9 = null; _this.xa = null; _this.w8 = null; _this.w6 = null; _this.w7 = null; _this.kw = -1; _this.hz = null; _this.ai = null; _this.l7 = null; _this.l8 = null; _this.l6 = "CalloutLabel"; _this.l5 = "CalloutContent"; _this.et = null; _this.ed = null; _this.w = null; _this.i6 = NaN; _this.f8 = false; _this.d0 = 0; _this.d1 = 0; _this.dy = 0; _this.d6 = 0; _this.xu = null; _this.xv = null; _this.ih = NaN; _this.ig = NaN; _this.ic = NaN; _this.id = NaN; _this.ie = NaN; _this.ij = NaN; _this.ii = NaN; _this.f1 = true; _this.xz = null; _this.x0 = null; _this.ja = NaN; _this.i9 = NaN; _this.i7 = NaN; _this.jd = NaN; _this.i8 = NaN; _this.jc = NaN; _this.jb = NaN; _this.ge = true; _this.jf = NaN; _this.je = NaN; _this.jh = NaN; _this.jg = NaN; _this.hu = new List$1(Delegate_$type, 0); _this.u3(); _this.ug(); return _this; } DomainChart.prototype.provideContainer = function (a) { if (a == null) { this.vk(function (b) { b.destroy(); b.provideContainer(null); }); return; } var b = this.lt; this.lt = a; if (this.fg != null && this.lt != null && b == null) { this.lt.setTimeout(this.fg, 0); this.fg = null; } var c = ((function () { var $ret = new XamDataChart(); $ret.e8 = true; return $ret; })()); c.ja = this; c.c9.b4(a); this.dataChart = c; this.u4(); }; DomainChart.prototype.destroy = function () { this.f2 = true; this.provideContainer(null); }; DomainChart.prototype.u4 = 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.jl = Defaults.j; this.u5(); }; DomainChart.prototype.u5 = function () { }; DomainChart.prototype.u1 = function (a) { if (a == null) { return; } a.ig = this.kf; a.id = this.kd; a.ie = this.ke; a.ic = this.kc; a.vq = this.yz; a.h9 = this.j8; a.ib = this.ka; a.ia = this.j9; a.h8 = this.j7; a.vp = this.yy; if (!isNaN_(this.j0)) { a.h3 = this.j0; } }; DomainChart.prototype.uy = function () { }; DomainChart.prototype.u7 = function (a, b) { a.kd = this.lj; a.dd = this.es; }; DomainChart.prototype.vx = function (a, b, c) { var _this = this; switch (a) { case "TitleTopMargin": if (this.dataChart != null) { this.dataChart.ig = this.kf; } break; case "TitleLeftMargin": if (this.dataChart != null) { this.dataChart.id = this.kd; } break; case "PixelScalingRatio": if (this.dataChart != null) { this.vk(function (d) { return d.h3 = _this.j0; }); } break; case "TitleRightMargin": if (this.dataChart != null) { this.dataChart.ie = this.ke; } break; case "TitleBottomMargin": if (this.dataChart != null) { this.dataChart.ic = this.kc; } break; case "TitleTextColor": if (this.dataChart != null) { this.dataChart.vq = this.yz; } break; case "SubtitleLeftMargin": if (this.dataChart != null) { this.dataChart.h9 = this.j8; } break; case "SubtitleTopMargin": if (this.dataChart != null) { this.dataChart.ib = this.ka; } break; case "SubtitleRightMargin": if (this.dataChart != null) { this.dataChart.ia = this.j9; } break; case "SubtitleBottomMargin": if (this.dataChart != null) { this.dataChart.h8 = this.j7; } break; case "SubtitleTextColor": if (this.dataChart != null) { this.dataChart.vp = this.yy; } break; case "LeftMargin": if (this.dataChart != null) { this.dataChart.h2 = this.jx; } break; case "TopMargin": if (this.dataChart != null) { this.dataChart.ih = this.kg; } break; case "RightMargin": if (this.dataChart != null) { this.dataChart.h7 = this.j6; } break; case "BottomMargin": if (this.dataChart != null) { this.dataChart.hp = this.jj; } break; case "TransitionDuration": this.uu(function (d) { return d.kd = _this.lj; }); break; case "TransitionEasingFunction": this.uu(function (d) { return d.dd = _this.es; }); 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.hr; }, set: function (a) { var b = this.tooltipTemplates; if (a != b) { this.hr = a; this.vu("TooltipTemplates", b, this.tooltipTemplates); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "j0", { get: function () { return this.io; }, set: function (a) { var b = this.io; if (a != b) { this.io = a; this.vu("PixelScalingRatio", b, this.j0); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "toolTip", { get: function () { return this.lp; }, set: function (a) { var b = this.toolTip; if (b != a) { this.lp = a; this.vu("ToolTip", b, this.toolTip); } }, 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.vu("TitleLeftMargin", b, this.kd); } }, 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.vu("TitleRightMargin", b, this.ke); } }, 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.vu("TitleTopMargin", b, this.kf); } }, 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.vu("TitleBottomMargin", b, this.kc); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "j8", { get: function () { return this.iw; }, set: function (a) { var b = this.j8; if (a != b) { this.iw = a; this.vu("SubtitleLeftMargin", b, this.j8); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "ka", { get: function () { return this.iy; }, set: function (a) { var b = this.ka; if (a != b) { this.iy = a; this.vu("SubtitleTopMargin", b, this.ka); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "j9", { get: function () { return this.ix; }, set: function (a) { var b = this.j9; if (a != b) { this.ix = a; this.vu("SubtitleRightMargin", b, this.j9); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "j7", { get: function () { return this.iv; }, set: function (a) { var b = this.j7; if (a != b) { this.iv = a; this.vu("SubtitleBottomMargin", b, this.j7); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "yy", { get: function () { return this.xx; }, set: function (a) { var b = this.yy; if (a != b) { this.xx = a; this.vu("SubtitleTextColor", b, this.yy); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "yz", { get: function () { return this.xy; }, set: function (a) { var b = this.yz; if (a != b) { this.xy = a; this.vu("TitleTextColor", b, this.yz); } }, enumerable: false, configurable: true }); DomainChart.prototype.get_jx = function () { return this.ik; }; DomainChart.prototype.set_jx = function (a) { var b = this.jx; if (a != b) { this.ik = a; this.vu("LeftMargin", b, this.jx); } }; Object.defineProperty(DomainChart.prototype, "jx", { get: function () { return this.get_jx(); }, set: function (a) { this.set_jx(a); }, 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.vu("TopMargin", b, this.kg); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "j6", { get: function () { return this.iu; }, set: function (a) { var b = this.j6; if (a != b) { this.iu = a; this.vu("RightMargin", b, this.j6); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "jj", { get: function () { return this.h5; }, set: function (a) { var b = this.jj; if (a != b) { this.h5 = a; this.vu("BottomMargin", b, this.jj); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "lj", { get: function () { return this.k7; }, set: function (a) { var b = this.lj; if (a != b) { this.k7 = a; this.vu("TransitionDuration", b, this.lj); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "es", { get: function () { return this.er; }, set: function (a) { var b = this.es; if (a != b) { this.er = a; this.vu("TransitionEasingFunction", b, this.es); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "lg", { get: function () { return this.k3; }, set: function (a) { var b = this.lg; if (a != b) { this.k3 = a; this.vu("HighlightingTransitionDuration", b, this.lg); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "li", { get: function () { return this.k5; }, set: function (a) { var b = this.li; if (a != b) { this.k5 = a; this.vu("SelectionTransitionDuration", b, this.li); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "lf", { get: function () { return this.k2; }, set: function (a) { var b = this.lf; if (a != b) { this.k2 = a; this.vu("FocusTransitionDuration", b, this.lf); } }, enumerable: false, configurable: true }); DomainChart.prototype.u2 = function (a) { if (this.dataChart == null) { return; } a.ma = this.s6; a.ly = this.sv; }; DomainChart.prototype.u8 = function (a, b) { this.u9(a, b); }; DomainChart.prototype.uz = function () { }; DomainChart.prototype.u9 = function (a, b) { if (a == null) { return; } if (this.d9 == 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.wy = function (a, b, c) { }; DomainChart.prototype.lv = function (a) { return a; return null; }; DomainChart.prototype.kv = function (a) { return null; }; DomainChart.prototype.vy = function (a, b, c) { var _this = this; switch (a) { case "SubtitleTextStyle": if (this.dataChart != null) { this.dataChart.ly = this.sv; } break; case "TitleTextStyle": if (this.dataChart != null) { this.dataChart.ma = this.s6; } break; case "TooltipTemplate": if (this.hc) { return; } this.hc = true; this.tooltipTemplate = this.lv(this.tooltipTemplate); this.hc = false; if (this.dataChart != null) { this.dataChart.jc = this.tooltipTemplate; } this.toolTip = this.tooltipTemplate; break; case "ToolTip": this.uv(function (d, e) { return _this.u9(d, e); }); break; case "TooltipTemplates": if (this.tooltipTemplates == null) { break; } this.hc = true; this.uv(function (d, e) { var f = _this.lv(ArrayExtension.getModulus$1(Base.$, _this.tooltipTemplates, e)); var series_ = d; var templ_ = f; series_.externalObject.tooltipTemplate = templ_; }); this.hc = 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.vu("Widget", b, this.cl); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "sv", { get: function () { return this.mq; }, set: function (a) { var b = this.sv; if (a != b) { this.mq = a; this.vu("SubtitleTextStyle", b, this.sv); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "s6", { get: function () { return this.ms; }, set: function (a) { var b = this.s6; if (a != b) { this.ms = a; this.vu("TitleTextStyle", b, this.s6); } }, enumerable: false, configurable: true }); Object.defineProperty(DomainChart.prototype, "dataChart", { get: function () { return this.ee; }, set: function (a) { var b = this.dataChart; if (b != a) { this.ee = a; this.vu("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.fz) { return; } this.fz = true; this.fh = a; var b = new CaptureImageSettings(); b.b = true; b.a = 0; var c = this.dataChart; c.imageCaptured = delegateCombine(c.imageCaptured, runOn(this, this.vr)); this.dataChart.nb(b); this.dataChart.al.q(); }; DomainChart.prototype.vr = function (a, b) { this.fz = false; var c = this.dataChart; c.imageCaptured = delegateRemove(c.imageCaptured, runOn(this, this.vr)); if (this.fh != null) { this.fh(this, b); this.fh = null; } }; Object.defineProperty(DomainChart.prototype, "isDetached", { get: function () { return this.f3 || this.f2; }, enumerable: false, configurable: true }); DomainChart.prototype.onDetachedFromUI = function () { this.f3 = true; this.vk(function (a) { return a.onDetachedFromUI(); }); }; DomainChart.prototype.onAttachedToUI = function () { this.f3 = false; this.vk(function (a) { return a.onAttachedToUI(); }); }; DomainChart.prototype.u3 = function () { this.bf = this.bh(true); var a = this.bf.dataSeries; a.collectionChanged = delegateCombine(a.collectionChanged, runOn(this, this.vn)); this.bg = this.bh(false); var b = this.bg.dataSeries; b.collectionChanged = delegateCombine(b.collectionChanged, runOn(this, this.vq)); }; DomainChart.prototype.ww = function (a, b, c) { if (a) { b.e = c; } else { b.n(c); } }; DomainChart.prototype.wv = function (a, b, c) { if (a) { b.syncTarget = c; } else { b.o(c); } }; DomainChart.prototype.wx = 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.hv = 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.eg = new FilterExpressionCollection(); this.eh = new FilterExpressionCollection(); } this.ww(a, this.a3, b.sortDescriptions); this.ww(a, this.ay, b.groupDescriptions); this.wv(a, this.ek, b.filterExpressions); this.wv(a, this.el, b.highlightFilterExpressions); this.wx(a, this.a7, b.summaryDescriptions); this.ww(a, this.az, b.postSortDescriptions); if (a) { this.eo = new SortGroupParser(); this.ep = 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.ei = ((function () { var $ret = new FilterExpressionCollection(); $ret.shouldDetachOnTargetChange = true; return $ret; })()); this.ej = ((function () { var $ret = new FilterExpressionCollection(); $ret.shouldDetachOnTargetChange = true; return $ret; })()); } { if (this.ek.k.count == 0) { this.wv(a, this.ei, b.filterExpressions); } } { if (this.el.k.count == 0) { this.wv(a, this.ej, b.highlightFilterExpressions); } } { if (this.a3.j.count == 0) { this.ww(a, this.aw, b.sortDescriptions); } if (this.az.j.count == 0) { this.ww(a, this.av, b.postSortDescriptions); } } { if (this.ay.j.count == 0) { this.ww(a, this.au, b.groupDescriptions); } } { if (this.a7.j.count == 0) { this.wx(a, this.a4, b.summaryDescriptions); } } if (this.includedProperties != null) { b.includedProperties = this.includedProperties; } if (this.excludedProperties != null) { b.excludedProperties = this.excludedProperties; } b.supportedSeriesTypes = this.hx.toArray(); b.rules.clear(); try { for (var _c = __values(fromEnum(this.hw)), _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.g7 = function (a) { return a != 24 && this.hx.contains(a); }; DomainChart.prototype.notifyResized = function () { this.vk(function (a) { return a.notifyContainerResized(); }); }; DomainChart.prototype.vi = function () { this.vk(function (a) { for (var b = 0; b < a.series.count; b++) { a.series._inner[b].qn(); } }); }; DomainChart.prototype.un = function () { if (this.dataChart == null) { return; } if (this.g5) { this.uk(); } this.dataChart.flush(); }; DomainChart.prototype.uw = function () { if (this.dataChart == null) { return; } this.dataChart.nx(); }; DomainChart.prototype.wb = function (a) { if (this.propertyChanged != null) { this.propertyChanged(this, new PropertyChangedEventArgs(a)); } }; DomainChart.prototype.up = function (a) { this.uq(function (b, c) { return a(b); }); }; DomainChart.prototype.uq = 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.uu = function (a) { this.uv(function (b, c) { return a(b); }); }; DomainChart.prototype.uv = 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.er) { a(c, b); } } }; DomainChart.prototype.us = function (a) { this.ut(function (b, c) { return a(b); }); }; DomainChart.prototype.ut = 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.wm = function () { this.up(function (a) { return a.rv(); }); }; DomainChart.prototype.vk = function (a) { this.vl(a, true); }; DomainChart.prototype.vl = function (a, b) { this.vm(a, b, null); }; DomainChart.prototype.vm = function (a, b, c) { if (this.dataChart == null) { return; } a(this.dataChart); }; DomainChart.prototype.g9 = function (a) { if (!this.g7(a.suggestedSeries)) { return false; } var b = a.data; if (b == null) { return false; } return true; }; DomainChart.prototype.gz = function () { if (this.dataChart == null) { return false; } return true; }; DomainChart.prototype.qo = function (a) { var b = EnumUtil.getName(DataSeriesType_$type, a.suggestedSeries); var c = "series_" + (a.index + 1) + "_" + b; return c; }; DomainChart.prototype.qp = function (a, b) { if (this.g2 && this.hi) { var c = ""; var d = 5 + Math.round(DomainChart.l3.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.qn = function () { return stringEmpty(); }; DomainChart.prototype.v0 = function () { var a = this.v2(runOn(this, this.uk), this.g5); this.g5 = a.p1; }; DomainChart.prototype.ue = function () { if (this.dataChart == null) { return; } this.g4 = false; var a = false; if (this.gv()) { a = true; this.ud(); } if (a) { this.um(); this.wz(); } }; DomainChart.prototype.wz = function () { this.hn.clear(); }; DomainChart.prototype.ud = 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.qo(b))) { this.hn.item(this.qo(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.h1 = function (a) { return a.data; }; DomainChart.prototype.h2 = function (a) { return a.highlightedData; }; DomainChart.prototype.um = function () { var e_4, _a; if (this.g5) { 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.qo(b))) { if (this.hn.containsKey(this.qo(b))) { var c = this.hn.item(this.qo(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.g5 && this.dataChart != null) { for (var d = 0; d < this.dataChart.series.count; d++) { var e = this.dataChart.series._inner[d]; if (this.hn.containsKey(e.name)) { e.highlightedItemsSource = this.h1(this.hn.item(e.name)); } } } }; DomainChart.prototype.gv = 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.wp = function () { var e_5, _a, e_6, _b; if (this.dataChart == null) { return; } this.g5 = false; this.wr(); 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.hv = a; var c = 0; try { for (var _e = __values(fromEnum(this.bf.dataSeries)), _f = _e.next(); !_f.done; _f = _e.