UNPKG

igniteui-angular-charts

Version:

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

1,379 lines 899 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, __generator, __values } from "tslib"; import { Control } from "igniteui-angular-core"; import { INotifyPropertyChanged_$type, Base, Type, EventArgs, PropertyChangedEventArgs, IEnumerable_$type, callStaticConstructors, Point_$type, runOn, delegateCombine, fromEnum, delegateRemove, fromEn, typeCast, enumGetBox, EnumUtil, Boolean_$type, Number_$type, typeGetValue, toEnum, String_$type, markType, markDep, PointUtil, TypeRegistrar, Delegate_$type, Array_$type, Date_$type, getInstanceType } from "igniteui-angular-core"; import { ILegendOwner_$type } from "igniteui-angular-core"; import { IInternalLegendOwner_$type } from "igniteui-angular-core"; import { IDataLegendTarget_$type } from "igniteui-angular-core"; import { IToolbarTarget_$type } from "igniteui-angular-core"; import { ISupportsAnimation_$type } from "igniteui-angular-core"; import { SRProvider } from "igniteui-angular-core"; import { DVContainer } from "igniteui-angular-core"; import { SeriesPlotAreaMarginHorizontalMode_$type } from "./SeriesPlotAreaMarginHorizontalMode"; import { SeriesPlotAreaMarginVerticalMode_$type } from "./SeriesPlotAreaMarginVerticalMode"; import { SeriesViewerScrollbarMode_$type } from "./SeriesViewerScrollbarMode"; import { DoubleAnimator } from "igniteui-angular-core"; import { BrushCollection } from "igniteui-angular-core"; import { DependencyProperty } from "igniteui-angular-core"; import { DependencyObject } from "igniteui-angular-core"; import { MarkerAutomaticBehavior_$type } from "./MarkerAutomaticBehavior"; import { IChartLegend_$type } from "igniteui-angular-core"; import { SeriesHighlightingMode_$type } from "./SeriesHighlightingMode"; import { SeriesSelectionMode_$type } from "./SeriesSelectionMode"; import { SeriesSelectionBehavior_$type } from "./SeriesSelectionBehavior"; import { SeriesViewerHorizontalScrollbarPosition_$type } from "./SeriesViewerHorizontalScrollbarPosition"; import { SeriesViewerVerticalScrollbarPosition_$type } from "./SeriesViewerVerticalScrollbarPosition"; import { Brush } from "igniteui-angular-core"; import { SeriesHighlightingBehavior_$type } from "./SeriesHighlightingBehavior"; import { LegendHighlightingMode_$type } from "./LegendHighlightingMode"; import { LegendItemBadgeShape_$type } from "igniteui-angular-core"; import { LegendItemBadgeMode_$type } from "igniteui-angular-core"; import { Rect } from "igniteui-angular-core"; import { ChartHitTestMode_$type } from "./ChartHitTestMode"; import { InteractionState_$type } from "igniteui-angular-core"; import { WindowResponse_$type } from "./WindowResponse"; import { Visibility_$type } from "igniteui-angular-core"; import { SeriesViewerComponentsFromView } from "./SeriesViewerComponentsFromView"; import { ZoomCoercionMode_$type } from "./ZoomCoercionMode"; import { ModifierKeys_$type } from "igniteui-angular-core"; import { SeriesHighlightedValuesDisplayMode_$type } from "igniteui-angular-core"; import { DataTemplate } from "igniteui-angular-core"; import { HorizontalAlignment_$type } from "igniteui-angular-core"; import { CanvasRenderScheduler } from "igniteui-angular-core"; import { SyncSettings } from "./SyncSettings"; import { PropertyMetadata } from "igniteui-angular-core"; import { ICommandStateChangedListener_$type } from "igniteui-angular-core"; import { List$1 } from "igniteui-angular-core"; import { SeriesViewerComponentsForView } from "./SeriesViewerComponentsForView"; import { VersionQueueHelper } from "igniteui-angular-core"; import { Dictionary$2 } from "igniteui-angular-core"; import { IDataLegend_$type } from "igniteui-angular-core"; import { PropertyUpdatedEventArgs } from "igniteui-angular-core"; import { NotifyCollectionChangedEventArgs } from "igniteui-angular-core"; import { ObservableCollection$1 } from "igniteui-angular-core"; import { Size } from "igniteui-angular-core"; import { FrameworkElement } from "igniteui-angular-core"; import { MouseEventArgs } from "igniteui-angular-core"; import { MouseButtonEventArgs } from "igniteui-angular-core"; import { Tuple$2 } from "igniteui-angular-core"; import { ScalerParams } from "./ScalerParams"; import { SeriesViewerManipulationEventArgs } from "./SeriesViewerManipulationEventArgs"; import { IFastItemsSource_$type } from "igniteui-angular-core"; import { HashSet$1 } from "igniteui-angular-core"; import { RectChangedEventArgs } from "igniteui-angular-core"; import { MathUtil } from "igniteui-angular-core"; import { DeviceUtils } from "igniteui-angular-core"; import { RefreshCompletedEventArgs } from "./RefreshCompletedEventArgs"; import { Thickness } from "igniteui-angular-core"; import { AxisTitlePosition_$type } from "./AxisTitlePosition"; import { CoercionInfo } from "./CoercionInfo"; import { FastItemsSource } from "igniteui-angular-core"; import { FontUtil } from "igniteui-angular-core"; import { IDataLegendSeries_$type } from "igniteui-angular-core"; import { CaptureImageSettings } from "igniteui-angular-core"; import { ImageCapturedEventArgs } from "igniteui-angular-core"; import { truncate, intDivide, isNaN_, isInfinity, logBase, log10 } from "igniteui-angular-core"; import { ChartContentType_$type } from "./ChartContentType"; import { defaultDVDateParse, dateNow } from "igniteui-angular-core"; import { stringIsNullOrEmpty, stringEmpty, stringEndsWith, stringStartsWith, stringIsNullOrWhiteSpace } from "igniteui-angular-core"; import { ISchedulableRender_$type } from "igniteui-angular-core"; import { Rectangle } from "igniteui-angular-core"; import { Path } from "igniteui-angular-core"; import { Line } from "igniteui-angular-core"; import { RenderingContext } from "igniteui-angular-core"; import { TextBlock } from "igniteui-angular-core"; import { ITileZoomTile_$type } from "./ITileZoomTile"; import { DOMExecutionContext } from "igniteui-angular-core"; import { RenderSurface } from "./RenderSurface"; import { PathFigureCollection } from "igniteui-angular-core"; import { PathFigure } from "igniteui-angular-core"; import { LineSegment } from "igniteui-angular-core"; import { PathGeometry } from "igniteui-angular-core"; import { GeometryGroup } from "igniteui-angular-core"; import { DataContext } from "igniteui-angular-core"; import { LabelPanelsArrangeState } from "./LabelPanelsArrangeState"; import { MarkerTemplates } from "./MarkerTemplates"; import { DataTemplateRenderInfo } from "igniteui-angular-core"; import { DataTemplateMeasureInfo } from "igniteui-angular-core"; import { AxisLabelsLocation_$type } from "./AxisLabelsLocation"; import { IProvidesViewport_$type } from "./IProvidesViewport"; import { ArgumentNullException } from "igniteui-angular-core"; import { ActualLegendItemBadgeShape_$type } from "./ActualLegendItemBadgeShape"; import { CanvasViewRenderer } from "igniteui-angular-core"; import { Defaults } from "./Defaults"; import { EllipseGeometry } from "igniteui-angular-core"; import { DataTemplatePassInfo } from "igniteui-angular-core"; import { BrushUtil } from "igniteui-angular-core"; import { LegendItemHelper } from "igniteui-angular-core"; import { DomWrapper_$type } from "igniteui-angular-core"; import { PointerTooltipStyle } from "./PointerTooltipStyle"; import { DefaultPaletteInfo } from "./DefaultPaletteInfo"; import { CssGradientUtil } from "igniteui-angular-core"; import { AxisDefaults } from "./AxisDefaults"; import { BrushUtilCore } from "igniteui-angular-core"; import { AxisRange } from "./AxisRange"; import { LinearNumericSnapper } from "./LinearNumericSnapper"; import { AxisAnnotationCollection } from "./AxisAnnotationCollection"; import { VerticalAlignment_$type } from "igniteui-angular-core"; import { Canvas } from "igniteui-angular-core"; import { IFastItemsSourceProvider_$type } from "igniteui-angular-core"; import { DoubleCollection } from "igniteui-angular-core"; import { LabelPosition } from "./LabelPosition"; import { BindingFormatter } from "igniteui-angular-core"; import { LabelFontHeuristics } from "./LabelFontHeuristics"; import { Pool$1 } from "igniteui-angular-core"; import { AxisComponentsFromView } from "./AxisComponentsFromView"; import { FastReflectionHelper } from "igniteui-angular-core"; import { AxisRangeChangedEventArgs } from "./AxisRangeChangedEventArgs"; import { RectangleGeometry } from "igniteui-angular-core"; import { PathRenderingInfo } from "./PathRenderingInfo"; import { LineGeometry } from "igniteui-angular-core"; import { RenderRequestedEventArgs } from "./RenderRequestedEventArgs"; import { CategoryMode_$type } from "./CategoryMode"; import { GridMode_$type } from "./GridMode"; import { Panel } from "igniteui-angular-core"; import { UIElement } from "igniteui-angular-core"; import { RectUtil } from "igniteui-angular-core"; import { TickmarkValues } from "./TickmarkValues"; import { TransformGroup } from "igniteui-angular-core"; import { RotateTransform } from "igniteui-angular-core"; import { TranslateTransform } from "igniteui-angular-core"; import { AngleSimplifier } from "igniteui-angular-core"; import { TransformMatrixHelpler } from "igniteui-angular-core"; import { ICategoryScaler_$type } from "./ICategoryScaler"; import { AxisRangeBufferMode_$type } from "./AxisRangeBufferMode"; import { NumericAxisRenderingParameters } from "./NumericAxisRenderingParameters"; import { LogarithmicTickmarkValues } from "./LogarithmicTickmarkValues"; import { LinearTickmarkValues } from "./LinearTickmarkValues"; import { CategoryAxisRenderingParameters } from "./CategoryAxisRenderingParameters"; import { TickmarkValuesInitializationParameters } from "./TickmarkValuesInitializationParameters"; import { NumberAbbreviatorFactory } from "./NumberAbbreviatorFactory"; import { AutomaticSeriesPurpose_$type } from "./AutomaticSeriesPurpose"; import { SeriesMatcher } from "./SeriesMatcher"; import { Stack$1 } from "igniteui-angular-core"; import { RenderValidEventArgs } from "./RenderValidEventArgs"; import { ArrayExtension } from "igniteui-angular-core"; import { SeriesLayerPropertyOverlayValueResolvingEventArgs } from "./SeriesLayerPropertyOverlayValueResolvingEventArgs"; import { PlatformAPIHelper } from "igniteui-angular-core"; import { Marker } from "./Marker"; import { ContentControl } from "igniteui-angular-core"; import { AutoMarginsAndAngleUpdateMode_$type } from "./AutoMarginsAndAngleUpdateMode"; import { ComputedPlotAreaMarginMode_$type } from "./ComputedPlotAreaMarginMode"; import { PolygonUtil } from "igniteui-angular-core"; import { ILegendSeries_$type } from "igniteui-angular-core"; import { ILegendSeriesInternal_$type } from "igniteui-angular-core"; import { ILegendTemplateProvider_$type } from "igniteui-angular-core"; import { PenLineJoin_$type } from "igniteui-angular-core"; import { PenLineCap_$type } from "igniteui-angular-core"; import { Color } from "igniteui-angular-core"; import { SeriesVisibleRangeMode_$type } from "./SeriesVisibleRangeMode"; import { SeriesOutlineMode_$type } from "./SeriesOutlineMode"; import { TransitionInSpeedType_$type } from "./TransitionInSpeedType"; import { TransitionOutSpeedType_$type } from "./TransitionOutSpeedType"; import { SeriesHitTestMode_$type } from "./SeriesHitTestMode"; import { SeriesComponentsForView } from "./SeriesComponentsForView"; import { Binding } from "igniteui-angular-core"; import { MarkerOutlineMode_$type } from "./MarkerOutlineMode"; import { MarkerFillMode_$type } from "./MarkerFillMode"; import { SeriesPointOfInterest } from "./SeriesPointOfInterest"; import { FastItemColumn } from "igniteui-angular-core"; import { TransitionOutCompletedEventArgs } from "./TransitionOutCompletedEventArgs"; import { IChartItemLegend_$type } from "igniteui-angular-core"; import { SeriesComponentsFromView } from "./SeriesComponentsFromView"; import { DataLegendSeriesValueInfo } from "igniteui-angular-core"; import { DataLegendSeriesContext } from "igniteui-angular-core"; import { MarkerType_$type } from "./MarkerType"; import { Style } from "igniteui-angular-core"; import { FastItemsSourceReference } from "igniteui-angular-core"; import { stringFormat } from "igniteui-angular-core"; import { EasingFunctions } from "igniteui-angular-core"; /** * @hidden */ var SeriesViewer = /** @class */ /*@__PURE__*/ (function (_super) { __extends(SeriesViewer, _super); function SeriesViewer() { var _this = _super.call(this) || this; _this._widget = null; _this.c9 = null; _this.dt = null; _this.an = null; _this.gn = new List$1(ICommandStateChangedListener_$type, 0); _this._commandCompleted = null; _this._invalidateActions = null; _this.da = null; _this.a8 = null; _this.ba = null; _this.ec = false; _this.eb = false; _this.c1 = null; _this.br = new SeriesCollection(); _this.iy = 0; _this.bz = 0; _this.b1 = 0; _this._skipDataCleanup = false; _this.dc = null; _this.de = null; _this.db = null; _this.dd = null; _this.ar = null; _this.vu = null; _this.plotAreaMouseLeftButtonDown = null; _this.plotAreaMouseLeftButtonUp = null; _this.plotAreaClicked = null; _this.plotAreaMouseEnter = null; _this.plotAreaMouseLeave = null; _this.plotAreaMouseOver = null; _this.cf = 0; _this.cg = 0; _this.bu = 1; _this.b7 = 1; _this.b3 = 3; _this.propertyChanged = null; _this.propertyUpdated = null; _this.ja = null; _this.d7 = false; _this.seriesCursorMouseMove = null; _this.seriesMouseLeftButtonDown = null; _this.seriesMouseLeftButtonUp = null; _this.seriesClick = null; _this.seriesMouseMove = null; _this.seriesMouseEnter = null; _this.seriesMouseLeave = null; _this.d1 = false; _this.d0 = false; _this.v3 = Rect.empty; _this.v1 = Rect.empty; _this.dy = true; _this.v0 = null; _this.eh = false; _this.ix = 30; _this.fq = false; _this.ej = false; _this.cc = new SeriesViewerComponentsForView(); _this.d5 = false; _this.at = 0; _this.as = 1; _this.seriesAnimating = null; _this.dv = new VersionQueueHelper(); _this.d4 = false; _this.d2 = false; _this.cv = 0; _this.d9 = false; _this.er = false; _this.dz = false; _this.md = null; _this.viewerManipulationStarting = null; _this.viewerManipulationEnding = null; _this.ef = false; _this.ea = false; _this.windowRectChanged = null; _this.sizeChanged = null; _this.e1 = false; _this.actualWindowRectChanged = null; _this.gridAreaRectChanged = null; _this.et = false; _this.g0 = 0.0001; _this.gz = 0.0001; _this._syncChannel = null; _this.cm = null; _this.gb = false; _this.ee = false; _this.e0 = false; _this.gh = false; _this.cq = 1; _this.wm = null; _this.i0 = 0; _this.bq = null; _this.ed = false; _this.gc = false; _this.v2 = Rect.empty; _this._selectedSeriesItems = null; _this._focusedSeriesItems = null; _this.selectedSeriesItemsChanged = null; _this.focusedSeriesItemsChanged = null; _this.gu = new Date(); _this.gk = false; _this.refreshCompleted = null; _this.jf = null; _this.je = null; _this.u5 = null; _this.u4 = null; _this.hf = NaN; _this.hd = NaN; _this.he = NaN; _this.hc = NaN; _this.hb = NaN; _this.g9 = NaN; _this.ha = NaN; _this.g8 = NaN; _this.jc = null; _this.al = null; _this.am = null; _this.ak = null; _this.d8 = false; _this.dx = false; _this._syncSettings = null; _this.destroyed = false; _this.i9 = null; _this.gl = new Dictionary$2(String_$type, Base.$, 0); _this.fo = false; _this.hg = NaN; _this.g5 = NaN; _this.g7 = NaN; _this.g3 = NaN; _this.g2 = 30; _this.g1 = NaN; _this.d3 = true; _this.g6 = NaN; _this.g4 = NaN; _this.jd = null; _this.gw = 1; _this.gv = NaN; _this.vz = null; _this.ez = false; _this.gx = 0; _this.gy = 0; _this.sb = null; _this.az = null; _this.e4 = false; _this.e5 = false; _this.e2 = false; _this.d6 = false; _this.iz = 0; _this.ep = false; _this.e8 = false; _this.seriesDataUpdated = null; _this.go = new List$1(IDataLegend_$type, 0); _this.dw = null; _this.gr = null; _this.imageCaptured = null; DVContainer.instance.registerIfLoaded("AnnotationFactoryManager"); DVContainer.instance.registerIfLoaded("InteractivityFactoryManager"); DVContainer.instance.registerIfLoaded("DataChartToolbarFactoryManager"); DVContainer.instance.registerIfLoaded("VisualDataFactoryManager"); _this.vz = Rect.empty; _this.vu = { $type: Point_$type, x: NaN, y: NaN }; _this.gu = dateNow(); _this.e4 = false; _this.e5 = false; _this.al = new CanvasRenderScheduler(); _this.al.a = runOn(_this, _this.ne); _this.am = new CanvasRenderScheduler(); _this.ak = new CanvasRenderScheduler(); SeriesViewer.wg = new Rect(0, 0, 0, 1, 1); _this.syncSettings = ((function () { var $ret = new SyncSettings(); $ret.synchronizeHorizontally = true; $ret.synchronizeVertically = true; return $ret; })()); _this.c9 = _this.c8(); _this.p5(_this.c9); _this.c9.c4(); _this.rm(); _this.nz(); _this.actualSyncLink = new SyncLink(); _this.rt(null, _this.actualSyncLink); _this.ar = new ChartContentManager(_this); _this.propertyUpdated = delegateCombine(_this.propertyUpdated, function (a, b) { return _this.qh(a, b.propertyName, b.oldValue, b.newValue); }); _this.selectedSeriesItems = new ChartSelectedItemCollection(); var a = _this.selectedSeriesItems; a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.ps)); var b = _this.selectedSeriesItems; b.collectionResetting = delegateCombine(b.collectionResetting, runOn(_this, _this.q9)); _this.focusedSeriesItems = new ChartSelectedItemCollection(); var c = _this.focusedSeriesItems; c.collectionChanged = delegateCombine(c.collectionChanged, runOn(_this, _this.o5)); var d = _this.focusedSeriesItems; d.collectionResetting = delegateCombine(d.collectionResetting, runOn(_this, _this.ns)); var e = _this.series; e.collectionChanged = delegateCombine(e.collectionChanged, runOn(_this, _this.rb)); var f = _this.series; f.collectionResetting = delegateCombine(f.collectionResetting, runOn(_this, _this.rc)); _this.dd = new DoubleAnimator(0, 1, _this.i6); _this.dc = new DoubleAnimator(0, 1, _this.i5); var g = _this.dc; g.propertyChanged = delegateCombine(g.propertyChanged, runOn(_this, _this.ny)); _this.de = new DoubleAnimator(0, 1, _this.i7); _this.db = new DoubleAnimator(0, 1, _this.i3); var h = _this.de; h.propertyChanged = delegateCombine(h.propertyChanged, runOn(_this, _this.ra)); var i = _this.db; i.propertyChanged = delegateCombine(i.propertyChanged, runOn(_this, _this.nt)); _this.c9.bx(); _this.n1(); _this.n0(); return _this; } Object.defineProperty(SeriesViewer.prototype, "widget", { get: function () { return this._widget; }, set: function (a) { this._widget = a; }, enumerable: false, configurable: true }); SeriesViewer.staticInit = function () { SeriesViewer.wg = new Rect(0, 0, 0, 1, 1); }; Object.defineProperty(SeriesViewer.prototype, "du", { get: function () { if (this.dt == null) { this.dt = new SRProvider(this.c9.j.ae); } return this.dt; }, enumerable: false, configurable: true }); SeriesViewer.prototype.ao = function (a) { if (this.an == null) { this.an = new AutomaticSeriesManager(this); } return this.an; }; SeriesViewer.prototype.getDesiredToolbarActions = function () { if (!this.fi) { return null; } return this.a9.getDesiredToolbarActions(this); }; SeriesViewer.prototype.onToolCommandExecuting = function (a) { if (!this.fi) { return 1; } return this.a9.onToolCommandExecuting(this, a); }; SeriesViewer.prototype.addCommandAvailabilityListener = function (a) { }; SeriesViewer.prototype.removeCommandAvailabilityListener = function (a) { }; SeriesViewer.prototype.addCommandStateChangedListener = function (a) { if (!this.gn.contains(a)) { this.gn.add(a); } }; SeriesViewer.prototype.removeCommandStateChangedListener = function (a) { if (this.gn.contains(a)) { this.gn.remove(a); } }; Object.defineProperty(SeriesViewer.prototype, "commandCompleted", { get: function () { return this._commandCompleted; }, set: function (a) { this._commandCompleted = a; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "invalidateActions", { get: function () { return this._invalidateActions; }, set: function (a) { this._invalidateActions = a; }, enumerable: false, configurable: true }); SeriesViewer.prototype.provideContextAccessor = function (a) { this.da = a; }; SeriesViewer.prototype.n4 = function () { if (this.invalidateActions != null) { this.invalidateActions(); } }; Object.defineProperty(SeriesViewer.prototype, "a9", { get: function () { var _this = this; if (this.a8 == null) { this.a8 = DVContainer.instance.createInstance(IDataChartToolbarProvider_$type, function () { return _this.du.n; }); this.a8.container = this.c9.bi; } return this.a8; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "fi", { get: function () { return DVContainer.instance.checkLoaded("DataChartToolbarFactoryManager"); }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "bb", { get: function () { var _this = this; if (this.ba == null) { this.ba = DVContainer.instance.createInstance(ISeriesViewerInteractionManager_$type, function () { return _this.du.n; }); } return this.ba; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "fa", { get: function () { return DVContainer.instance.checkLoaded("InteractivityFactoryManager"); }, enumerable: false, configurable: true }); SeriesViewer.prototype.q9 = function (a, b) { for (var c = 0; c < this.selectedSeriesItems.count; c++) { this.pb(this.selectedSeriesItems._inner[c]); } }; SeriesViewer.prototype.ns = function (a, b) { for (var c = 0; c < this.focusedSeriesItems.count; c++) { this.pa(this.focusedSeriesItems._inner[c]); } }; SeriesViewer.prototype.ps = function (a, b) { if (b.action == 4 && b.newItems == null && b.oldItems == null) { return; } if (this.ec) { return; } if (b.oldItems != null) { for (var c = 0; c < b.oldItems.count; c++) { var d = b.oldItems.item(c); this.pb(d); } } if (b.newItems != null) { for (var e = 0; e < b.newItems.count; e++) { var f = b.newItems.item(e); f.g(this); } for (var g = 0; g < b.newItems.count; g++) { var h = b.newItems.item(g); this.pd(h); } } var i = new ChartSelectedItemCollection(); if (b.oldItems != null) { for (var j = 0; j < b.oldItems.count; j++) { i.add(b.oldItems.item(j)); } } var k = new ChartSelectedItemCollection(); if (b.newItems != null) { for (var l = 0; l < b.newItems.count; l++) { k.add(b.newItems.item(l)); } } var m = this.selectedSeriesItems; this.pr(this, new SeriesViewerSelectedSeriesItemsChangedEventArgs(i, k, m)); }; SeriesViewer.prototype.o5 = function (a, b) { if (b.action == 4 && b.newItems == null && b.oldItems == null) { return; } if (this.eb) { return; } if (b.oldItems != null) { for (var c = 0; c < b.oldItems.count; c++) { var d = b.oldItems.item(c); this.pa(d); } } if (b.newItems != null) { for (var e = 0; e < b.newItems.count; e++) { var f = b.newItems.item(e); this.pc(f); } } var g = new ChartSelectedItemCollection(); if (b.oldItems != null) { for (var h = 0; h < b.oldItems.count; h++) { g.add(b.oldItems.item(h)); } } var i = new ChartSelectedItemCollection(); if (b.newItems != null) { for (var j = 0; j < b.newItems.count; j++) { i.add(b.newItems.item(j)); } } var k = this.selectedSeriesItems; this.o4(this, new SeriesViewerSelectedSeriesItemsChangedEventArgs(g, i, k)); }; SeriesViewer.prototype.pc = function (a) { this.nu(function (b) { var c = a; if (c.series != null && c.series != b) { return; } b.pq(c.item); }); }; SeriesViewer.prototype.pa = function (a) { this.nu(function (b) { var c = a; if (c.series != null && c.series != b) { return; } b.po(c.item); }); }; SeriesViewer.prototype.nu = function (a) { var e_1, _a; try { for (var _b = __values(fromEnum(this.series)), _c = _b.next(); !_c.done; _c = _b.next()) { var b = _c.value; a(b); if (b.isStacked) { b.p2(function (c) { a(c); if (c.eg) { c.p0(function (d) { a(d); return true; }); } return true; }); } if (b.eg) { b.p0(function (c) { a(c); return true; }); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; SeriesViewer.prototype.pd = function (a) { this.nu(function (b) { var c = a; if (c.series != null && c.series != b) { return; } if (c.item == null) { b.pw(); } else { b.pr(c.item); } }); }; SeriesViewer.prototype.pb = function (a) { this.nu(function (b) { var c = a; if (c.series != null && c.series != b) { return; } if (c.item == null) { b.pu(); } else { b.pp(c.item); } }); }; SeriesViewer.prototype.nz = function () { if (this.c1 != null && this.c2 == null) { var a = this.c2; a.thumbnailSizeChanged = delegateRemove(a.thumbnailSizeChanged, runOn(this, this.qd)); } if (this.c2 != null) { var b = this.c2; b.thumbnailSizeChanged = delegateCombine(b.thumbnailSizeChanged, runOn(this, this.qd)); } if (this.jd != null) { this.c2.backgroundImageUri = this.jd; } if (this.c2 != null) { this.c2.initializeScalingRatio(this.hi); } if (this.c1 == null && this.c2 != null) { this.oi(); } this.c1 = this.c2; }; SeriesViewer.prototype.qd = function (a, b) { var e_2, _a; this.c2.surfaceIsDirty = true; try { for (var _b = __values(fromEnum(this.series)), _c = _b.next(); !_c.done; _c = _b.next()) { var c = _c.value; c.gz = true; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; SeriesViewer.prototype.get_ft = function () { return false; }; Object.defineProperty(SeriesViewer.prototype, "ft", { get: function () { return this.get_ft(); }, enumerable: false, configurable: true }); SeriesViewer.prototype.get_fs = function () { return false; }; Object.defineProperty(SeriesViewer.prototype, "fs", { get: function () { return this.get_fs(); }, enumerable: false, configurable: true }); SeriesViewer.prototype.n0 = function () { this.c9.co(); if (this.c2 != null) { this.c2.initializeScalingRatio(this.hi); } }; Object.defineProperty(SeriesViewer.prototype, "series", { get: function () { return this.br; }, enumerable: false, configurable: true }); SeriesViewer.prototype.rb = function (a, b) { var e_3, _a, e_4, _b; var c = this.ep; this.ep = this.ev(); if (b.oldItems != null) { try { for (var _c = __values(fromEn(b.oldItems)), _d = _c.next(); !_d.done; _d = _c.next()) { var d = _d.value; if (d != null && d.eo) { this.iy--; if (this.iy < 0) { this.iy = 0; } } d.c3 = null; d.db = null; this.q3(d); this.c9.dy(d); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_3) throw e_3.error; } } } if (b.newItems != null) { try { for (var _e = __values(fromEn(b.newItems)), _f = _e.next(); !_f.done; _f = _e.next()) { var e = _f.value; if (e != null && e.eo) { this.iy++; } if (!this.c9.aq(e)) { this.rn(e); this.c9.bp(e); e.db = this; e.c3 = this.actualSyncLink; e.so(); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_4) throw e_4.error; } } } if (this.ep != c && !this.wk.isEmpty) { this.qg(this.wk, this.wk); } this.oh(); this.oq(); this.o8(); this.ob(); }; Object.defineProperty(SeriesViewer.prototype, "b0", { get: function () { return this.bz; }, set: function (a) { this.bz = a; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "b2", { get: function () { return this.b1; }, set: function (a) { this.b1 = a; }, enumerable: false, configurable: true }); SeriesViewer.prototype.n2 = function () { this.oq(); }; SeriesViewer.prototype.oq = function () { }; Object.defineProperty(SeriesViewer.prototype, "skipDataCleanup", { get: function () { return this._skipDataCleanup; }, set: function (a) { this._skipDataCleanup = a; }, enumerable: false, configurable: true }); SeriesViewer.prototype.q3 = function (a) { if (!this.skipDataCleanup) { if (typeCast(Series.$, a) !== null) { a.itemsSource = null; } else if (typeCast(CategoryAxisBase.$, a) !== null) { a.itemsSource = null; } } this.q5(a.name, true); }; Object.defineProperty(SeriesViewer.prototype, "ew", { get: function () { return this.iy > 0; }, enumerable: false, configurable: true }); SeriesViewer.prototype.rc = function (a, b) { var e_5, _a; this.ep = this.ev(); try { for (var _b = __values(fromEnum(this.series)), _c = _b.next(); !_c.done; _c = _b.next()) { var c = _c.value; c.c3 = null; c.db = null; this.q3(c); this.c9.dy(c); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } this.iy = 0; this.ob(); }; SeriesViewer.prototype.n6 = function (a, b, c, d) { var e = this.wk; var f = e.width; var g = e.height; var h = 1; var i = a / b; if (isNaN_(h)) { return { p0: a, p1: b }; } if (isNaN_(i) || c || d || Math.abs(h - i) > 0.0001) { if (c && d) { if (a > b) { b = a / h; } else { a = b * h; } } else if (c) { b = a / h; } else { a = b * h; } } if (b > 1) { var j = 1 / b; b = 1; a = a * j; } if (a > 1) { var k = 1 / a; a = 1; b = b * k; } return { p0: a, p1: b }; }; SeriesViewer.prototype.ev = function () { return false; }; Object.defineProperty(SeriesViewer.prototype, "f8", { get: function () { return this.fj; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "e6", { get: function () { return this.ba != null; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "eo", { get: function () { return this.ba != null; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "en", { get: function () { return this.cf != 0 || this.cg != 0; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "em", { get: function () { return this.eo && this.en; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "dl", { get: function () { var a = this.bb.f$e; if (a.executionContext == null) { a.executionContext = this.c9.l(); } if (a.ensureAnimator == null) { a.ensureAnimator = runOn(this, this.no); } return a; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "dm", { get: function () { var a = this.bb.f$f; if (a.executionContext == null) { a.executionContext = this.c9.l(); } if (a.ensureAnimator == null) { a.ensureAnimator = runOn(this, this.np); } return a; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "dk", { get: function () { var a = this.bb.f$d; if (a.executionContext == null) { a.executionContext = this.c9.l(); } if (a.ensureAnimator == null) { a.ensureAnimator = runOn(this, this.nn); } return a; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "bc", { get: function () { var a = this.bb.f$b; if (a.executionContext == null) { a.executionContext = this.c9.l(); } if (a.animator == null) { a.animator = this.dd; a.owner = this; } return a; }, enumerable: false, configurable: true }); SeriesViewer.prototype.no = function () { { var a = this.dc; if (!a.f() && a.r > 0) { a.v(); } if (a.r == 0) { var b = this.ge(1); while (b) { b = this.ge(0); b = this.ge(1); } } } }; SeriesViewer.prototype.np = function () { { var a = this.de; if (!a.f() && a.r > 0) { a.v(); } if (a.r == 0) { var b = this.gf(1); while (b) { b = this.gf(0); b = this.gf(1); } } } }; SeriesViewer.prototype.nn = function () { { var a = this.db; if (!a.f() && a.r > 0) { a.v(); } if (a.r == 0) { var b = this.gd(1); while (b) { b = this.gd(0); b = this.gd(1); } } } }; SeriesViewer.prototype.ny = function (a, b) { this.ge(this.dc.o); }; SeriesViewer.prototype.ra = function (a, b) { this.gf(this.de.o); }; SeriesViewer.prototype.nt = function (a, b) { this.gd(this.db.o); }; SeriesViewer.prototype.ge = function (a) { var b = this.dl.tick(a); if (a == 1 && b && this.dc.r > 0) { this.dc.v(); } var c = this.dl.dirtyContexts; if (this.dl.allDirty) { var d = this.series; for (var e = 0; e < d.count; e++) { var f = d._inner[e]; f.q3(); } } else { for (var g = 0; g < c.count; g++) { var h = c._inner[g]; h.q3(); } } if (!b) { this.dc.w(); this.o7(); } return b; }; SeriesViewer.prototype.gf = function (a) { var b = this.dm.tick(a); if (a == 1 && b && this.de.r > 0) { this.de.v(); } var c = this.dm.dirtyContexts; if (this.dm.allDirty) { var d = this.series; for (var e = 0; e < d.count; e++) { var f = d._inner[e]; f.q3(); } } else { for (var g = 0; g < c.count; g++) { var h = c._inner[g]; h.q3(); } } if (!b) { this.de.w(); } return b; }; SeriesViewer.prototype.gd = function (a) { var b = this.dk.tick(a); if (a == 1 && b && this.db.r > 0) { this.db.v(); } var c = this.dk.dirtyContexts; if (this.dk.allDirty) { var d = this.series; for (var e = 0; e < d.count; e++) { var f = d._inner[e]; f.q3(); } } else { for (var g = 0; g < c.count; g++) { var h = c._inner[g]; h.q3(); } } if (!b) { this.db.w(); } return b; }; SeriesViewer.prototype.nx = function () { this.c9.ck(); this.nw(); for (var a = 0; a < this.series.count; a++) { if (this.series._inner[a].es) { this.series._inner[a].p6(); } } }; SeriesViewer.prototype.va = function (a) { return this.u9(this.ag, a); }; SeriesViewer.prototype.vg = function (a) { return this.u9(this.aj, a); }; SeriesViewer.prototype.ve = function (a) { return this.u9(this.ah, a); }; SeriesViewer.prototype.vf = function (a) { return this.u9(this.ai, a); }; SeriesViewer.prototype.u9 = function (a, b) { if (a == null || a.count == 0) { return null; } else { return a.item(b % a.count); } }; Object.defineProperty(SeriesViewer.prototype, "vv", { get: function () { return this.vu; }, set: function (a) { if (PointUtil.notEquals(this.vu, a)) { var b = this.vu; this.vu = a; this.qm("CrosshairPoint", b, this.vu); } }, enumerable: false, configurable: true }); SeriesViewer.prototype.qz = function () { }; Object.defineProperty(SeriesViewer.prototype, "e9", { get: function () { return this.c0 == 1 || this.c0 == 2 || this.c0 == 3; }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "legend", { get: function () { return this.c(SeriesViewer.td); }, set: function (a) { this.h(SeriesViewer.td, a); }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "ek", { get: function () { return this.c(SeriesViewer.sd); }, set: function (a) { this.h(SeriesViewer.sd, a); }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "f2", { get: function () { return this.c(SeriesViewer.t0); }, set: function (a) { this.h(SeriesViewer.t0, a); }, enumerable: false, configurable: true }); SeriesViewer.prototype.pn = function (a, b) { this.d7 = false; var c = false; c = false; if (this.c9.k.al) { return; } if (this.plotAreaMouseLeftButtonDown != null) { var d = this.bh(a, b, c); this.plotAreaMouseLeftButtonDown(this, d); } }; SeriesViewer.prototype.bh = function (a, b, c) { var d = { $type: Point_$type, x: a.x, y: a.y }; var e = { $type: Point_$type, x: a.x, y: a.y }; if (!this.wk.isEmpty) { if (c) { e.x -= this.wk.left; e.y -= this.wk.top; } else { d.x += this.wk.left; d.y += this.wk.top; } } var f = new PlotAreaMouseButtonEventArgs(this, d, e); f.manipulationOccurred = this.d7; return f; }; SeriesViewer.prototype.bl = function (a, b, c) { var d = { $type: Point_$type, x: a.x, y: a.y }; var e = { $type: Point_$type, x: a.x, y: a.y }; if (!this.wk.isEmpty) { if (c) { e.x -= this.wk.left; e.y -= this.wk.top; } else { d.x += this.wk.left; d.y += this.wk.top; } } var f = new PlotAreaMouseEventArgs(this, d, e); return f; }; SeriesViewer.prototype.po = function (a, b, c) { var d = false; d = false; if (this.c9.k.al) { return; } if (this.plotAreaMouseLeftButtonUp != null) { var e = this.bh(a, b, d); this.plotAreaMouseLeftButtonUp(this, e); } if (!this.d7 && !c) { if (this.plotAreaClicked != null) { var f = this.bh(a, b, d); this.plotAreaClicked(this, f); } } this.d7 = false; }; Object.defineProperty(SeriesViewer.prototype, "fj", { get: function () { return this.c(SeriesViewer.s9); }, set: function (a) { this.h(SeriesViewer.s9, a); }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "f7", { get: function () { return this.c(SeriesViewer.t3); }, set: function (a) { this.h(SeriesViewer.t3, a); }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "by", { get: function () { return EnumUtil.getEnumValue(SeriesHighlightingMode_$type, this.c(SeriesViewer.sr)); }, set: function (a) { this.h(SeriesViewer.sr, enumGetBox(SeriesHighlightingMode_$type, a)); }, enumerable: false, configurable: true }); Object.defineProperty(SeriesViewer.prototype, "cb", { get: function () { return EnumUtil.getEnumValue(SeriesSelectionMode_$type, this.c(SeriesViewer.tx)); }, set: function (a) { this.h(SeriesViewer.tx, enumGetBox(SeriesSelectionMode_$type, a)); }, enumerable: false, configura