igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
1,414 lines • 936 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends, __generator, __values } from "tslib";
import { Control } from "igniteui-react-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-react-core";
import { ILegendOwner_$type } from "igniteui-react-core";
import { IInternalLegendOwner_$type } from "igniteui-react-core";
import { IDataLegendTarget_$type } from "igniteui-react-core";
import { IToolbarTarget_$type } from "igniteui-react-core";
import { ISupportsAnimation_$type } from "igniteui-react-core";
import { SRProvider } from "igniteui-react-core";
import { HashSet$1 } from "igniteui-react-core";
import { IToolbarContextAccessor_$type } from "igniteui-react-core";
import { DVContainer } from "igniteui-react-core";
import { SeriesPlotAreaMarginHorizontalMode_$type } from "./SeriesPlotAreaMarginHorizontalMode";
import { SeriesPlotAreaMarginVerticalMode_$type } from "./SeriesPlotAreaMarginVerticalMode";
import { SeriesViewerScrollbarMode_$type } from "./SeriesViewerScrollbarMode";
import { DoubleAnimator } from "igniteui-react-core";
import { BrushCollection } from "igniteui-react-core";
import { DependencyProperty } from "igniteui-react-core";
import { DependencyObject } from "igniteui-react-core";
import { MarkerAutomaticBehavior_$type } from "./MarkerAutomaticBehavior";
import { IChartLegend_$type } from "igniteui-react-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-react-core";
import { SeriesHighlightingBehavior_$type } from "./SeriesHighlightingBehavior";
import { LegendHighlightingMode_$type } from "./LegendHighlightingMode";
import { LegendItemBadgeShape_$type } from "igniteui-react-core";
import { LegendItemBadgeMode_$type } from "igniteui-react-core";
import { Rect } from "igniteui-react-core";
import { ChartHitTestMode_$type } from "./ChartHitTestMode";
import { InteractionState_$type } from "igniteui-react-core";
import { WindowResponse_$type } from "./WindowResponse";
import { Visibility_$type } from "igniteui-react-core";
import { SeriesViewerComponentsFromView } from "./SeriesViewerComponentsFromView";
import { ZoomCoercionMode_$type } from "./ZoomCoercionMode";
import { ModifierKeys_$type } from "igniteui-react-core";
import { SeriesHighlightedValuesDisplayMode_$type } from "igniteui-react-core";
import { DataTemplate } from "igniteui-react-core";
import { HorizontalAlignment_$type } from "igniteui-react-core";
import { CanvasRenderScheduler } from "igniteui-react-core";
import { SyncSettings } from "./SyncSettings";
import { PropertyMetadata } from "igniteui-react-core";
import { ICommandStateChangedListener_$type } from "igniteui-react-core";
import { List$1 } from "igniteui-react-core";
import { SeriesViewerComponentsForView } from "./SeriesViewerComponentsForView";
import { VersionQueueHelper } from "igniteui-react-core";
import { Dictionary$2 } from "igniteui-react-core";
import { IDataLegend_$type } from "igniteui-react-core";
import { PropertyUpdatedEventArgs } from "igniteui-react-core";
import { NotifyCollectionChangedEventArgs } from "igniteui-react-core";
import { ObservableCollection$1 } from "igniteui-react-core";
import { Size } from "igniteui-react-core";
import { FrameworkElement } from "igniteui-react-core";
import { MouseEventArgs } from "igniteui-react-core";
import { MouseButtonEventArgs } from "igniteui-react-core";
import { Tuple$2 } from "igniteui-react-core";
import { ScalerParams } from "./ScalerParams";
import { SeriesViewerManipulationEventArgs } from "./SeriesViewerManipulationEventArgs";
import { IFastItemsSource_$type } from "igniteui-react-core";
import { ChartResizeIdleEventArgs } from "./ChartResizeIdleEventArgs";
import { RectChangedEventArgs } from "igniteui-react-core";
import { MathUtil } from "igniteui-react-core";
import { DeviceUtils } from "igniteui-react-core";
import { RefreshCompletedEventArgs } from "./RefreshCompletedEventArgs";
import { Thickness } from "igniteui-react-core";
import { AxisTitlePosition_$type } from "./AxisTitlePosition";
import { FontInfo } from "igniteui-react-core";
import { CoercionInfo } from "./CoercionInfo";
import { FastItemsSource } from "igniteui-react-core";
import { FontUtil } from "igniteui-react-core";
import { IDataLegendSeries_$type } from "igniteui-react-core";
import { CaptureImageSettings } from "igniteui-react-core";
import { ImageCapturedEventArgs } from "igniteui-react-core";
import { truncate, intDivide, isNaN_, isInfinity, logBase, log10 } from "igniteui-react-core";
import { ChartContentType_$type } from "./ChartContentType";
import { defaultDVDateParse, dateNow, dateMinValue } from "igniteui-react-core";
import { stringIsNullOrEmpty, stringEmpty, stringContains, stringReplace, stringEndsWith, stringStartsWith, stringIsNullOrWhiteSpace } from "igniteui-react-core";
import { timeSpanTotalMilliseconds } from "igniteui-react-core";
import { ISchedulableRender_$type } from "igniteui-react-core";
import { Rectangle } from "igniteui-react-core";
import { Path } from "igniteui-react-core";
import { Line } from "igniteui-react-core";
import { RenderingContext } from "igniteui-react-core";
import { TextBlock } from "igniteui-react-core";
import { ITileZoomTile_$type } from "./ITileZoomTile";
import { DOMExecutionContext } from "igniteui-react-core";
import { RenderSurface } from "./RenderSurface";
import { PathFigureCollection } from "igniteui-react-core";
import { PathFigure } from "igniteui-react-core";
import { LineSegment } from "igniteui-react-core";
import { PathGeometry } from "igniteui-react-core";
import { GeometryGroup } from "igniteui-react-core";
import { DataContext } from "igniteui-react-core";
import { LabelPanelsArrangeState } from "./LabelPanelsArrangeState";
import { MarkerTemplates } from "./MarkerTemplates";
import { DataTemplateRenderInfo } from "igniteui-react-core";
import { DataTemplateMeasureInfo } from "igniteui-react-core";
import { AxisLabelsLocation_$type } from "./AxisLabelsLocation";
import { IProvidesViewport_$type } from "./IProvidesViewport";
import { ArgumentNullException } from "igniteui-react-core";
import { ActualLegendItemBadgeShape_$type } from "./ActualLegendItemBadgeShape";
import { CanvasViewRenderer } from "igniteui-react-core";
import { Defaults } from "./Defaults";
import { EllipseGeometry } from "igniteui-react-core";
import { DataTemplatePassInfo } from "igniteui-react-core";
import { BrushUtil } from "igniteui-react-core";
import { LegendItemHelper } from "igniteui-react-core";
import { DomWrapper_$type } from "igniteui-react-core";
import { PointerTooltipStyle } from "./PointerTooltipStyle";
import { DefaultPaletteInfo } from "./DefaultPaletteInfo";
import { CssGradientUtil } from "igniteui-react-core";
import { AxisDefaults } from "./AxisDefaults";
import { BrushUtilCore } from "igniteui-react-core";
import { AxisRange } from "./AxisRange";
import { LinearNumericSnapper } from "./LinearNumericSnapper";
import { AxisAnnotationCollection } from "./AxisAnnotationCollection";
import { VerticalAlignment_$type } from "igniteui-react-core";
import { Canvas } from "igniteui-react-core";
import { IFastItemsSourceProvider_$type } from "igniteui-react-core";
import { DoubleCollection } from "igniteui-react-core";
import { LabelPosition } from "./LabelPosition";
import { BindingFormatter } from "igniteui-react-core";
import { LabelFontHeuristics } from "./LabelFontHeuristics";
import { Pool$1 } from "igniteui-react-core";
import { AxisComponentsFromView } from "./AxisComponentsFromView";
import { FastReflectionHelper } from "igniteui-react-core";
import { AxisRangeChangedEventArgs } from "./AxisRangeChangedEventArgs";
import { RectangleGeometry } from "igniteui-react-core";
import { PathRenderingInfo } from "./PathRenderingInfo";
import { LineGeometry } from "igniteui-react-core";
import { RenderRequestedEventArgs } from "./RenderRequestedEventArgs";
import { CategoryMode_$type } from "./CategoryMode";
import { GridMode_$type } from "./GridMode";
import { Panel } from "igniteui-react-core";
import { UIElement } from "igniteui-react-core";
import { RectUtil } from "igniteui-react-core";
import { TickmarkValues } from "./TickmarkValues";
import { TransformGroup } from "igniteui-react-core";
import { RotateTransform } from "igniteui-react-core";
import { TranslateTransform } from "igniteui-react-core";
import { AngleSimplifier } from "igniteui-react-core";
import { TransformMatrixHelpler } from "igniteui-react-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 { AutomaticAxisPurpose_$type } from "./AutomaticAxisPurpose";
import { AutomaticSeriesPurpose_$type } from "./AutomaticSeriesPurpose";
import { SeriesMatcher } from "./SeriesMatcher";
import { Stack$1 } from "igniteui-react-core";
import { RenderValidEventArgs } from "./RenderValidEventArgs";
import { ArrayExtension } from "igniteui-react-core";
import { SeriesLayerPropertyOverlayValueResolvingEventArgs } from "./SeriesLayerPropertyOverlayValueResolvingEventArgs";
import { PlatformAPIHelper } from "igniteui-react-core";
import { Marker } from "./Marker";
import { ContentControl } from "igniteui-react-core";
import { AutoMarginsAndAngleUpdateMode_$type } from "./AutoMarginsAndAngleUpdateMode";
import { ComputedPlotAreaMarginMode_$type } from "./ComputedPlotAreaMarginMode";
import { PolygonUtil } from "igniteui-react-core";
import { ILegendSeries_$type } from "igniteui-react-core";
import { ILegendSeriesInternal_$type } from "igniteui-react-core";
import { ILegendTemplateProvider_$type } from "igniteui-react-core";
import { PenLineJoin_$type } from "igniteui-react-core";
import { PenLineCap_$type } from "igniteui-react-core";
import { Color } from "igniteui-react-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-react-core";
import { MarkerOutlineMode_$type } from "./MarkerOutlineMode";
import { MarkerFillMode_$type } from "./MarkerFillMode";
import { SeriesPointOfInterest } from "./SeriesPointOfInterest";
import { FastItemColumn } from "igniteui-react-core";
import { TransitionOutCompletedEventArgs } from "./TransitionOutCompletedEventArgs";
import { IChartItemLegend_$type } from "igniteui-react-core";
import { SeriesComponentsFromView } from "./SeriesComponentsFromView";
import { DataLegendSeriesValueInfo } from "igniteui-react-core";
import { DataLegendSeriesContext } from "igniteui-react-core";
import { MarkerType_$type } from "./MarkerType";
import { Style } from "igniteui-react-core";
import { FastItemsSourceReference } from "igniteui-react-core";
import { stringFormat } from "igniteui-react-core";
import { EasingFunctions } from "igniteui-react-core";
/**
* @hidden
*/
var SeriesViewer = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesViewer, _super);
function SeriesViewer() {
var _this = _super.call(this) || this;
_this._widget = null;
_this.dp = null;
_this.d7 = null;
_this.an = null;
_this.g7 = new List$1(ICommandStateChangedListener_$type, 0);
_this._commandCompleted = null;
_this._invalidateActions = null;
_this.g3 = null;
_this.bl = null;
_this.bn = null;
_this.er = false;
_this.eq = false;
_this.dg = null;
_this.b4 = new SeriesCollection();
_this.jm = 0;
_this.cc = 0;
_this.ce = 0;
_this._skipDataCleanup = false;
_this.dr = null;
_this.dt = null;
_this.dq = null;
_this.ds = null;
_this.a3 = null;
_this.xd = null;
_this.plotAreaMouseLeftButtonDown = null;
_this.plotAreaMouseLeftButtonUp = null;
_this.plotAreaClicked = null;
_this.plotAreaMouseEnter = null;
_this.plotAreaMouseLeave = null;
_this.plotAreaMouseOver = null;
_this.axisLabelMouseDown = null;
_this.axisLabelMouseUp = null;
_this.axisLabelMouseEnter = null;
_this.axisLabelMouseLeave = null;
_this.axisLabelMouseOver = null;
_this.axisLabelMouseClick = null;
_this.axisPanelMouseDown = null;
_this.axisPanelMouseUp = null;
_this.axisPanelMouseEnter = null;
_this.axisPanelMouseLeave = null;
_this.axisPanelMouseOver = null;
_this.axisPanelMouseClick = null;
_this.cs = 0;
_this.ct = 0;
_this.b7 = 1;
_this.ck = 1;
_this.cg = 3;
_this.propertyChanged = null;
_this.propertyUpdated = null;
_this.j2 = null;
_this.g4 = new HashSet$1(IChartLegend_$type, 0);
_this.em = false;
_this.seriesCursorMouseMove = null;
_this.seriesMouseLeftButtonDown = null;
_this.seriesMouseLeftButtonUp = null;
_this.seriesClick = null;
_this.seriesMouseMove = null;
_this.seriesMouseEnter = null;
_this.seriesMouseLeave = null;
_this.ef = false;
_this.ee = false;
_this.xm = Rect.empty;
_this.xk = Rect.empty;
_this.ec = true;
_this.xj = null;
_this.ew = false;
_this.jl = 30;
_this.resizeIdle = null;
_this.f7 = false;
_this.ey = false;
_this.cp = new SeriesViewerComponentsForView();
_this.ej = false;
_this.a5 = 0;
_this.a4 = 1;
_this.seriesAnimating = null;
_this.d9 = new VersionQueueHelper();
_this.ei = false;
_this.eg = false;
_this.da = 0;
_this.eo = false;
_this.e6 = false;
_this.ed = false;
_this.nb = null;
_this.viewerManipulationStarting = null;
_this.viewerManipulationEnding = null;
_this.eu = false;
_this.ep = false;
_this.windowRectChanged = null;
_this.sizeChanged = null;
_this.fh = false;
_this.actualWindowRectChanged = null;
_this.gridAreaRectChanged = null;
_this.e8 = false;
_this.hl = 0.0001;
_this.hk = 0.0001;
_this._syncChannel = null;
_this.cz = null;
_this.gs = false;
_this.et = false;
_this.fg = false;
_this.gy = false;
_this.c3 = 1;
_this.x7 = null;
_this.jo = 0;
_this.b3 = null;
_this.es = false;
_this.gt = false;
_this.xl = Rect.empty;
_this._selectedSeriesItems = null;
_this._focusedSeriesItems = null;
_this.selectedSeriesItemsChanged = null;
_this.focusedSeriesItemsChanged = null;
_this.hf = new Date();
_this.g1 = false;
_this.refreshCompleted = null;
_this.j7 = null;
_this.j6 = null;
_this.wo = null;
_this.wn = null;
_this.h0 = NaN;
_this.hy = NaN;
_this.hz = NaN;
_this.hx = NaN;
_this.hw = NaN;
_this.hu = NaN;
_this.hv = NaN;
_this.ht = NaN;
_this.j4 = null;
_this.al = null;
_this.am = null;
_this.ak = null;
_this.en = false;
_this.eb = false;
_this._syncSettings = null;
_this.destroyed = false;
_this.j1 = null;
_this.g2 = new Dictionary$2(String_$type, Base.$, 0);
_this.f5 = false;
_this.h1 = NaN;
_this.hq = NaN;
_this.hs = NaN;
_this.ho = NaN;
_this.hn = 30;
_this.hm = NaN;
_this.eh = true;
_this.hr = NaN;
_this.hp = NaN;
_this.j5 = null;
_this.hh = 1;
_this.hg = NaN;
_this.xi = null;
_this.ff = false;
_this.hi = 0;
_this.hj = 0;
_this.to = null;
_this.bc = null;
_this.fk = false;
_this.fl = false;
_this.fi = false;
_this.ek = false;
_this.jn = 0;
_this.e4 = false;
_this.fo = false;
_this.seriesDataUpdated = null;
_this.g8 = new List$1(IDataLegend_$type, 0);
_this.ea = null;
_this.seriesDataChanged = null;
_this.hb = null;
_this.imageCaptured = null;
_this.c8 = null;
_this.he = dateMinValue();
_this.el = false;
DVContainer.instance.registerIfLoaded("AnnotationFactoryManager");
DVContainer.instance.registerIfLoaded("InteractivityFactoryManager");
DVContainer.instance.registerIfLoaded("DataChartToolbarFactoryManager");
DVContainer.instance.registerIfLoaded("VisualDataFactoryManager");
_this.xi = Rect.empty;
_this.xd = { $type: Point_$type, x: NaN, y: NaN };
_this.hf = dateNow();
_this.fk = false;
_this.fl = false;
_this.al = new CanvasRenderScheduler();
_this.al.a = runOn(_this, _this.oc);
_this.am = new CanvasRenderScheduler();
_this.ak = new CanvasRenderScheduler();
SeriesViewer.x0 = new Rect(0, 0, 0, 1, 1);
_this.syncSettings = ((function () {
var $ret = new SyncSettings();
$ret.synchronizeHorizontally = true;
$ret.synchronizeVertically = true;
return $ret;
})());
_this.dp = _this.dn();
_this.q5(_this.dp);
_this.dp.c4();
_this.sz();
_this.oy();
_this.actualSyncLink = new SyncLink();
_this.s6(null, _this.actualSyncLink);
_this.a3 = new ChartContentManager(_this);
_this.propertyUpdated = delegateCombine(_this.propertyUpdated, function (a, b) { return _this.rh(a, b.propertyName, b.oldValue, b.newValue); });
_this.selectedSeriesItems = new ChartSelectedItemCollection();
var a = _this.selectedSeriesItems;
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.qs));
var b = _this.selectedSeriesItems;
b.collectionResetting = delegateCombine(b.collectionResetting, runOn(_this, _this.sm));
_this.focusedSeriesItems = new ChartSelectedItemCollection();
var c = _this.focusedSeriesItems;
c.collectionChanged = delegateCombine(c.collectionChanged, runOn(_this, _this.p5));
var d = _this.focusedSeriesItems;
d.collectionResetting = delegateCombine(d.collectionResetting, runOn(_this, _this.or));
var e = _this.series;
e.collectionChanged = delegateCombine(e.collectionChanged, runOn(_this, _this.so));
var f = _this.series;
f.collectionResetting = delegateCombine(f.collectionResetting, runOn(_this, _this.sp));
_this.ds = new DoubleAnimator(0, 1, _this.jx);
_this.dr = new DoubleAnimator(0, 1, _this.jv);
var g = _this.dr;
g.propertyChanged = delegateCombine(g.propertyChanged, runOn(_this, _this.ox));
_this.dt = new DoubleAnimator(0, 1, _this.jz);
_this.dq = new DoubleAnimator(0, 1, _this.js);
var h = _this.dt;
h.propertyChanged = delegateCombine(h.propertyChanged, runOn(_this, _this.sn));
var i = _this.dq;
i.propertyChanged = delegateCombine(i.propertyChanged, runOn(_this, _this.os));
_this.dp.bx();
_this.o0();
_this.oz();
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.x0 = new Rect(0, 0, 0, 1, 1);
};
Object.defineProperty(SeriesViewer.prototype, "d8", {
get: function () {
if (this.d7 == null) {
this.d7 = new SRProvider(this.dp.j.ae);
}
return this.d7;
},
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.fz) {
return null;
}
return this.bm.getDesiredToolbarActions(this);
};
SeriesViewer.prototype.onToolCommandExecuting = function (a) {
if (!this.fz) {
return 1;
}
return this.bm.onToolCommandExecuting(this, a);
};
SeriesViewer.prototype.addCommandAvailabilityListener = function (a) {
};
SeriesViewer.prototype.removeCommandAvailabilityListener = function (a) {
};
SeriesViewer.prototype.addCommandStateChangedListener = function (a) {
if (!this.g7.contains(a)) {
this.g7.add(a);
}
};
SeriesViewer.prototype.removeCommandStateChangedListener = function (a) {
if (this.g7.contains(a)) {
this.g7.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
});
Object.defineProperty(SeriesViewer.prototype, "g5", {
get: function () {
return this.g3;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.provideContextAccessor = function (a) {
if (this.g3 == null) {
this.g3 = new HashSet$1(IToolbarContextAccessor_$type, 0);
}
this.g3.add_1(a);
};
SeriesViewer.prototype.dismissContextAccessor = function (a) {
if (this.g3 == null) {
return;
}
this.g3.remove(a);
};
SeriesViewer.prototype.o3 = function () {
if (this.invalidateActions != null) {
this.invalidateActions();
}
};
Object.defineProperty(SeriesViewer.prototype, "bm", {
get: function () {
var _this = this;
if (this.bl == null) {
this.bl = DVContainer.instance.createInstance(IDataChartToolbarProvider_$type, function () { return _this.d8.n; });
this.bl.container = this.dp.bi;
}
return this.bl;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "fz", {
get: function () {
return DVContainer.instance.checkLoaded("DataChartToolbarFactoryManager");
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "bo", {
get: function () {
var _this = this;
if (this.bn == null) {
this.bn = DVContainer.instance.createInstance(ISeriesViewerInteractionManager_$type, function () { return _this.d8.n; });
}
return this.bn;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "fq", {
get: function () {
return DVContainer.instance.checkLoaded("InteractivityFactoryManager");
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.sm = function (a, b) {
for (var c = 0; c < this.selectedSeriesItems.count; c++) {
this.qb(this.selectedSeriesItems._inner[c]);
}
};
SeriesViewer.prototype.or = function (a, b) {
for (var c = 0; c < this.focusedSeriesItems.count; c++) {
this.qa(this.focusedSeriesItems._inner[c]);
}
};
SeriesViewer.prototype.qs = function (a, b) {
if (b.action == 4 && b.newItems == null && b.oldItems == null) {
return;
}
if (this.er) {
return;
}
if (b.oldItems != null) {
for (var c = 0; c < b.oldItems.count; c++) {
var d = b.oldItems.item(c);
this.qb(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.qd(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.qr(this, new SeriesViewerSelectedSeriesItemsChangedEventArgs(i, k, m));
};
SeriesViewer.prototype.p5 = function (a, b) {
if (b.action == 4 && b.newItems == null && b.oldItems == null) {
return;
}
if (this.eq) {
return;
}
if (b.oldItems != null) {
for (var c = 0; c < b.oldItems.count; c++) {
var d = b.oldItems.item(c);
this.qa(d);
}
}
if (b.newItems != null) {
for (var e = 0; e < b.newItems.count; e++) {
var f = b.newItems.item(e);
this.qc(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.p4(this, new SeriesViewerSelectedSeriesItemsChangedEventArgs(g, i, k));
};
SeriesViewer.prototype.qc = function (a) {
this.ot(function (b) {
var c = a;
if (c.series != null && c.series != b) {
return;
}
b.px(c.item);
});
};
SeriesViewer.prototype.qa = function (a) {
this.ot(function (b) {
var c = a;
if (c.series != null && c.series != b) {
return;
}
b.pv(c.item);
});
};
SeriesViewer.prototype.ot = 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.p9(function (c) {
a(c);
if (c.ei) {
c.p7(function (d) {
a(d);
return true;
});
}
return true;
});
}
if (b.ei) {
b.p7(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.qd = function (a) {
this.ot(function (b) {
var c = a;
if (c.series != null && c.series != b) {
return;
}
if (c.item == null) {
b.p3();
}
else {
b.py(c.item);
}
});
};
SeriesViewer.prototype.qb = function (a) {
this.ot(function (b) {
var c = a;
if (c.series != null && c.series != b) {
return;
}
if (c.item == null) {
b.p1();
}
else {
b.pw(c.item);
}
});
};
SeriesViewer.prototype.oy = function () {
if (this.dg != null && this.dh == null) {
var a = this.dh;
a.thumbnailSizeChanged = delegateRemove(a.thumbnailSizeChanged, runOn(this, this.rd));
}
if (this.dh != null) {
var b = this.dh;
b.thumbnailSizeChanged = delegateCombine(b.thumbnailSizeChanged, runOn(this, this.rd));
}
if (this.j5 != null) {
this.dh.backgroundImageUri = this.j5;
}
if (this.dh != null) {
this.dh.initializeScalingRatio(this.h3);
}
if (this.dg == null && this.dh != null) {
this.ph();
}
this.dg = this.dh;
};
SeriesViewer.prototype.rd = function (a, b) {
var e_2, _a;
this.dh.surfaceIsDirty = true;
try {
for (var _b = __values(fromEnum(this.series)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
c.g1 = 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_ga = function () {
return false;
};
Object.defineProperty(SeriesViewer.prototype, "ga", {
get: function () {
return this.get_ga();
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.get_f9 = function () {
return false;
};
Object.defineProperty(SeriesViewer.prototype, "f9", {
get: function () {
return this.get_f9();
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.oz = function () {
this.dp.co();
if (this.dh != null) {
this.dh.initializeScalingRatio(this.h3);
}
};
Object.defineProperty(SeriesViewer.prototype, "series", {
get: function () {
return this.b4;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.so = function (a, b) {
var e_3, _a, e_4, _b, e_5, _c, e_6, _d;
var c = this.e4;
this.e4 = this.fa();
if (b.oldItems != null) {
var d = this.jm;
try {
for (var _e = __values(fromEn(b.oldItems)), _f = _e.next(); !_f.done; _f = _e.next()) {
var e = _f.value;
if (e != null && e.eq) {
this.jm--;
if (this.jm < 0) {
this.jm = 0;
}
}
e.c4 = null;
e.dc = null;
this.sf(e);
this.dp.dy(e);
}
}
catch (e_3_1) {
e_3 = { error: e_3_1 };
}
finally {
try {
if (_f && !_f.done && (_a = _e.return))
_a.call(_e);
}
finally {
if (e_3)
throw e_3.error;
}
}
if (this.jm < d) {
try {
for (var _g = __values(fromEnum(this.series)), _h = _g.next(); !_h.done; _h = _g.next()) {
var f = _h.value;
if (f.eu) {
continue;
}
f.p0();
}
}
catch (e_4_1) {
e_4 = { error: e_4_1 };
}
finally {
try {
if (_h && !_h.done && (_b = _g.return))
_b.call(_g);
}
finally {
if (e_4)
throw e_4.error;
}
}
}
}
if (b.newItems != null) {
var g = this.jm;
try {
for (var _j = __values(fromEn(b.newItems)), _k = _j.next(); !_k.done; _k = _j.next()) {
var h = _k.value;
if (h != null && h.eq) {
this.jm++;
}
if (!this.dp.aq(h)) {
this.s0(h);
this.dp.bp(h);
h.dc = this;
h.c4 = this.actualSyncLink;
h.sy();
}
}
}
catch (e_5_1) {
e_5 = { error: e_5_1 };
}
finally {
try {
if (_k && !_k.done && (_c = _j.return))
_c.call(_j);
}
finally {
if (e_5)
throw e_5.error;
}
}
if (this.jm > g) {
try {
for (var _l = __values(fromEnum(this.series)), _m = _l.next(); !_m.done; _m = _l.next()) {
var i = _m.value;
if (i.eu || b.newItems.contains(i)) {
continue;
}
i.p0();
}
}
catch (e_6_1) {
e_6 = { error: e_6_1 };
}
finally {
try {
if (_m && !_m.done && (_d = _l.return))
_d.call(_l);
}
finally {
if (e_6)
throw e_6.error;
}
}
}
}
if (this.e4 != c && !this.x5.isEmpty) {
this.rg(this.x5, this.x5);
}
this.pg();
this.pq();
this.p8();
this.pa();
};
Object.defineProperty(SeriesViewer.prototype, "cd", {
get: function () {
return this.cc;
},
set: function (a) {
this.cc = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "cf", {
get: function () {
return this.ce;
},
set: function (a) {
this.ce = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.o1 = function () {
this.pq();
};
SeriesViewer.prototype.pq = function () {
};
Object.defineProperty(SeriesViewer.prototype, "skipDataCleanup", {
get: function () {
return this._skipDataCleanup;
},
set: function (a) {
this._skipDataCleanup = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.sf = function (a) {
if (!this.skipDataCleanup) {
if (typeCast(Series.$, a) !== null) {
a.itemsSource = null;
}
else if (typeCast(CategoryAxisBase.$, a) !== null) {
a.itemsSource = null;
}
}
this.sh(a.name, true);
};
Object.defineProperty(SeriesViewer.prototype, "fc", {
get: function () {
return this.jm > 0;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.sp = function (a, b) {
var e_7, _a;
this.e4 = this.fa();
try {
for (var _b = __values(fromEnum(this.series)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
c.c4 = null;
c.dc = null;
this.sf(c);
this.dp.dy(c);
}
}
catch (e_7_1) {
e_7 = { error: e_7_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_7)
throw e_7.error;
}
}
this.jm = 0;
this.pa();
};
SeriesViewer.prototype.o5 = function (a, b, c, d) {
var e = this.x5;
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.fa = function () {
return false;
};
Object.defineProperty(SeriesViewer.prototype, "gp", {
get: function () {
return this.f0;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "fm", {
get: function () {
return this.bn != null;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "e3", {
get: function () {
return this.bn != null;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "e2", {
get: function () {
return this.cs != 0 || this.ct != 0;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "e1", {
get: function () {
return this.e3 && this.e2;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "d0", {
get: function () {
var a = this.bo.f$e;
if (a.executionContext == null) {
a.executionContext = this.dp.l();
}
if (a.ensureAnimator == null) {
a.ensureAnimator = runOn(this, this.on);
}
a.dismissHighlightDelay = this.ju;
return a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "d1", {
get: function () {
var a = this.bo.f$f;
if (a.executionContext == null) {
a.executionContext = this.dp.l();
}
if (a.ensureAnimator == null) {
a.ensureAnimator = runOn(this, this.oo);
}
return a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "dz", {
get: function () {
var a = this.bo.f$d;
if (a.executionContext == null) {
a.executionContext = this.dp.l();
}
if (a.ensureAnimator == null) {
a.ensureAnimator = runOn(this, this.om);
}
return a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "bp", {
get: function () {
var a = this.bo.f$b;
if (a.executionContext == null) {
a.executionContext = this.dp.l();
}
if (a.animator == null) {
a.animator = this.ds;
a.owner = this;
}
return a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.on = function () {
{
var a = this.dr;
if (!a.f() && a.r > 0) {
a.v();
}
if (a.r == 0) {
var b = this.gv(1);
while (b) {
b = this.gv(0);
b = this.gv(1);
}
}
}
};
SeriesViewer.prototype.oo = function () {
{
var a = this.dt;
if (!a.f() && a.r > 0) {
a.v();
}
if (a.r == 0) {
var b = this.gw(1);
while (b) {
b = this.gw(0);
b = this.gw(1);
}
}
}
};
SeriesViewer.prototype.om = function () {
{
var a = this.dq;
if (!a.f() && a.r > 0) {
a.v();
}
if (a.r == 0) {
var b = this.gu(1);
while (b) {
b = this.gu(0);
b = this.gu(1);
}
}
}
};
SeriesViewer.prototype.ox = function (a, b) {
this.gv(this.dr.o);
};
SeriesViewer.prototype.sn = function (a, b) {
this.gw(this.dt.o);
};
SeriesViewer.prototype.os = function (a, b) {
this.gu(this.dq.o);
};
SeriesViewer.prototype.gv = function (a) {
var b = this.d0.tick(a);
if (a == 1 && b && this.dr.r > 0) {
this.dr.v();
}
var c = this.d0.dirtyContexts;
if (this.d0.allDirty) {
var d = this.series;
for (var e = 0; e < d.count; e++) {
var f = d._inner[e];
f.rb();
}
}
else {
for (var g = 0; g < c.count; g++) {
var h = c._inner[g];
h.rb();
}
}
if (!b) {
this.dr.w();
this.p7();
}
return b;
};
SeriesViewer.prototype.gw = function (a) {
var b = this.d1.tick(a);
if (a == 1 && b && this.dt.r > 0) {
this.dt.v();
}
var c = this.d1.dirtyContexts;
if (this.d1.allDirty) {
var d = this.series;
for (var e = 0; e < d.count; e++) {
var f = d._inner[e];
f.rb();
}
}
else {
for (var g = 0; g < c.count; g++) {
var h = c._inner[g];
h.rb();
}
}
if (!b) {
this.dt.w();
}
return b;
};
SeriesViewer.prototype.gu = function (a) {
var b = this.dz.tick(a);
if (a == 1 && b && this.dq.r > 0) {
this.dq.v();
}
var c = this.dz.dirtyContexts;
if (this.dz.allDirty) {
var d = this.series;
for (var e = 0; e < d.count; e++) {
var f = d._inner[e];
f.rb();
}
}
else {
for (var g = 0; g < c.count; g++) {
var h = c._inner[g];
h.rb();
}
}
if (!b) {
this.dq.w();
}
return b;
};
SeriesViewer.prototype.ow = function () {
this.dp.ck();
this.ov();
for (var a = 0; a < this.series.count; a++) {
if (this.series._inner[a].eu) {
this.series._inner[a].qd();
}
}
};
SeriesViewer.prototype.wt = function (a) {
return this.ws(this.ag, a);
};
SeriesViewer.prototype.wz = function (a) {
return this.ws(this.aj, a);
};
SeriesViewer.prototype.wx = function (a) {
return this.ws(this.ah, a);
};
SeriesViewer.prototype.wy = function (a) {
return this.ws(this.ai, a);
};
SeriesViewer.prototype.ws = function (a, b) {
if (a == null || a.count == 0) {
return null;
}
else {
return a.item(b % a.count);
}
};
Object.defineProperty(SeriesViewer.prototype, "xe", {
get: function () {
return this.xd;
},
set: function (a) {
if (PointUtil.notEquals(this.xd, a)) {
var b = this.xd;
this.xd = a;
this.ry("CrosshairPoint", b, this.xd);
}
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.sb = function () {
};
Object.defineProperty(SeriesViewer.prototype, "fp", {
get: function () {
return this.df == 1 || this.df == 2 || this.df == 3;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "legend", {
get: function () {
return this.c(SeriesViewer.uu);
},
set: function (a) {
this.h(SeriesViewer.uu, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "ez", {
get: function () {
return this.c(SeriesViewer.tq);
},
set: function (a) {
this.h(SeriesViewer.tq, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "gj", {
get: function () {
return this.c(SeriesViewer.vj);
},
set: function (a) {
this.h(SeriesViewer.vj, a);
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.rl = function (a) {
if (this.axisLabelMouseDown != null) {
this.axisLabelMouseDown(this, a);
}
};
SeriesViewer.prototype.rp = function (a) {
if (this.axisLabelMouseUp != null) {
this.axisLabelMouseUp(this, a);
}
};
SeriesViewer.prototype.rm = function (a) {
if (this.axisLabelMouseEnter != null) {
this.axisLabelMouseEnter(this, a);
}
};
SeriesViewer.prototype.rn = function (a) {
if (this.axisLabelMouseLeave != null) {
this.axisLabelMouseLeave(this, a);
}
};
SeriesViewer.prototype.ro = function (a) {
if (this.axisLabelMouseOver != null) {
this.axisLabelMouseOver(this, a);
}
};
SeriesViewer.prototype.rk = function (a) {
if (this.axisLabelMouseClick != null) {
this.axisLabelMouseClick(this, a);
}
};
SeriesViewer.prototype.rr = function (a) {
if (this.axisPanelMouseDown != null) {
this.axisPanelMouseDown(this, a);
}
};
SeriesViewer.prototype.rv = function (a) {
if (this.axisPanelMouseUp != null) {
this.axisPanelMouseUp(this, a);
}
};
SeriesViewer.prototype.rs = function (a) {
if (this.axisPanelMouseEnter != null) {
this.axisPanelMouseEnter(this, a);
}
};
SeriesViewer.prototype.rt = function (a) {
if (this.axisPanelMouseLeave != nul