igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
31,657 lines • 1.04 MB
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-angular-core";
import { INotifyPropertyChanged_$type, Base, Type, BaseError, 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, Date_$type, Array_$type, getInstanceType, IEqualityComparer$1_$type } 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 { HashSet$1 } from "igniteui-angular-core";
import { IToolbarContextAccessor_$type } 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 { List$1 } from "igniteui-angular-core";
import { ICommandStateChangedListener_$type } 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 { ChartResizeIdleEventArgs } from "./ChartResizeIdleEventArgs";
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 { FontInfo } from "igniteui-angular-core";
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 { AutomaticSeriesPurpose_$type } from "./AutomaticSeriesPurpose";
import { defaultDVDateParse, dateNow, dateMinValue } from "igniteui-angular-core";
import { stringIsNullOrEmpty, stringEmpty, stringContains, stringReplace, stringEndsWith, stringStartsWith, stringIsNullOrWhiteSpace } from "igniteui-angular-core";
import { timeSpanTotalMilliseconds } 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 { CanvasScalingHelpers } from "igniteui-angular-core";
import { DefaultPaletteInfo } from "./DefaultPaletteInfo";
import { CssGradientUtil } from "igniteui-angular-core";
import { AxisDefaults } from "./AxisDefaults";
import { BrushUtilCore } from "igniteui-angular-core";
import { ImageLoader } 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 { AnnotationBackingArrangedSize } from "./AnnotationBackingArrangedSize";
import { AxisComponentsFromView } from "./AxisComponentsFromView";
import { FeatureState_$type } from "igniteui-angular-core";
import { FastReflectionHelper } from "igniteui-angular-core";
import { TransformGroup } from "igniteui-angular-core";
import { Convert } from "igniteui-angular-core";
import { GeometryUtil } from "igniteui-angular-core";
import { UIElement } from "igniteui-angular-core";
import { PolygonUtil } from "igniteui-angular-core";
import { ContentControl } from "igniteui-angular-core";
import { RotateTransform } 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 { AxisMatcher } from "./AxisMatcher";
import { CategoryMode_$type } from "./CategoryMode";
import { GridMode_$type } from "./GridMode";
import { Panel } from "igniteui-angular-core";
import { RectUtil } from "igniteui-angular-core";
import { TickmarkValues } from "./TickmarkValues";
import { TranslateTransform } from "igniteui-angular-core";
import { AngleSimplifier } from "igniteui-angular-core";
import { TransformMatrixHelpler } from "igniteui-angular-core";
import { TrimmedTextInfo } from "./TrimmedTextInfo";
import { ICategoryScaler_$type } from "./ICategoryScaler";
import { OverlayCollisionInfo } from "./OverlayCollisionInfo";
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 { 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 { PenLineCap_$type } from "igniteui-angular-core";
import { Marker } from "./Marker";
import { AutoMarginsAndAngleUpdateMode_$type } from "./AutoMarginsAndAngleUpdateMode";
import { ComputedPlotAreaMarginMode_$type } from "./ComputedPlotAreaMarginMode";
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 { 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.dw = null;
_this.ee = null;
_this.an = null;
_this.userAnnotationInformationRequested = null;
_this.userAnnotationToolTipContentUpdating = null;
_this.hm = new List$1(ICommandStateChangedListener_$type, 0);
_this._commandCompleted = null;
_this._invalidateActions = null;
_this.hi = null;
_this.bn = null;
_this.bp = null;
_this.e0 = false;
_this.ez = false;
_this.dn = null;
_this.b7 = new SeriesCollection();
_this.b8 = new SeriesCollection();
_this.j1 = 0;
_this.ch = 0;
_this.cj = 0;
_this._skipDataCleanup = false;
_this.dy = null;
_this.d0 = null;
_this.dx = null;
_this.dz = null;
_this.a3 = null;
_this.yh = 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.cx = 0;
_this.cy = 0;
_this.cc = 1;
_this.cp = 1;
_this.cl = 3;
_this.propertyChanged = null;
_this.propertyUpdated = null;
_this.kh = null;
_this.hj = new HashSet$1(IChartLegend_$type, 0);
_this.ev = false;
_this.seriesCursorMouseMove = null;
_this.seriesMouseLeftButtonDown = null;
_this.seriesMouseLeftButtonUp = null;
_this.seriesClick = null;
_this.seriesMouseMove = null;
_this.seriesMouseEnter = null;
_this.seriesMouseLeave = null;
_this.em = false;
_this.el = false;
_this.yq = Rect.empty;
_this.yo = Rect.empty;
_this.ej = true;
_this.yn = null;
_this.e5 = false;
_this.j0 = 30;
_this.resizeIdle = null;
_this.gl = false;
_this.e7 = false;
_this.cu = new SeriesViewerComponentsForView();
_this.es = false;
_this.a5 = 0;
_this.a4 = 1;
_this.seriesAnimating = null;
_this.eg = new VersionQueueHelper();
_this.ep = false;
_this.en = false;
_this.dh = 0;
_this.ex = false;
_this.ff = false;
_this.ek = false;
_this.ns = null;
_this.viewerManipulationStarting = null;
_this.viewerManipulationEnding = null;
_this.e3 = false;
_this.ey = false;
_this.windowRectChanged = null;
_this.sizeChanged = null;
_this.fr = false;
_this.actualWindowRectChanged = null;
_this.gridAreaRectChanged = null;
_this.fh = false;
_this.h0 = 0.0001;
_this.hz = 0.0001;
_this._syncChannel = null;
_this.c4 = null;
_this.g7 = false;
_this.e2 = false;
_this.fq = false;
_this.hd = false;
_this.da = 1;
_this.zb = null;
_this.j3 = 0;
_this.b5 = null;
_this.e1 = false;
_this.g8 = false;
_this.yp = Rect.empty;
_this._selectedSeriesItems = null;
_this._focusedSeriesItems = null;
_this.selectedSeriesItemsChanged = null;
_this.focusedSeriesItemsChanged = null;
_this.hu = new Date();
_this.hg = false;
_this.refreshCompleted = null;
_this.km = null;
_this.kl = null;
_this.xs = null;
_this.xr = null;
_this.ig = NaN;
_this.id = NaN;
_this.ie = NaN;
_this.ic = NaN;
_this.ib = NaN;
_this.h9 = NaN;
_this.ia = NaN;
_this.h8 = NaN;
_this.kj = null;
_this.al = null;
_this.am = null;
_this.ak = null;
_this.ew = false;
_this.ei = false;
_this._syncSettings = null;
_this.destroyed = false;
_this.kg = null;
_this.hh = new Dictionary$2(String_$type, Base.$, 0);
_this.gj = false;
_this.ih = NaN;
_this.h5 = NaN;
_this.h7 = NaN;
_this.h3 = NaN;
_this.h2 = 30;
_this.h1 = NaN;
_this.eo = true;
_this.h6 = NaN;
_this.h4 = NaN;
_this.kk = null;
_this.hw = 1;
_this.hv = NaN;
_this.ym = null;
_this.fp = false;
_this.hx = 0;
_this.hy = 0;
_this.ur = null;
_this.bc = null;
_this.fv = false;
_this.fw = false;
_this.ft = false;
_this.et = false;
_this.j2 = 0;
_this.fd = false;
_this.fz = false;
_this.seriesDataUpdated = null;
_this.hn = new List$1(IDataLegend_$type, 0);
_this.eh = null;
_this.seriesDataChanged = null;
_this.hq = null;
_this.imageCaptured = null;
_this.df = null;
_this.ht = dateMinValue();
_this.eu = false;
_this.bk = null;
_this.eq = false;
_this.er = false;
DVContainer.instance.registerIfLoaded("AnnotationFactoryManager");
DVContainer.instance.registerIfLoaded("InteractivityFactoryManager");
DVContainer.instance.registerIfLoaded("DataChartToolbarFactoryManager");
DVContainer.instance.registerIfLoaded("VisualDataFactoryManager");
_this.ym = Rect.empty;
_this.yh = { $type: Point_$type, x: NaN, y: NaN };
_this.hu = dateNow();
_this.fv = false;
_this.fw = false;
_this.al = new CanvasRenderScheduler();
_this.al.a = runOn(_this, _this.ow);
_this.am = new CanvasRenderScheduler();
_this.ak = new CanvasRenderScheduler();
SeriesViewer.y4 = new Rect(0, 0, 0, 1, 1);
_this.syncSettings = ((function () {
var $ret = new SyncSettings();
$ret.synchronizeHorizontally = true;
$ret.synchronizeVertically = true;
return $ret;
})());
_this.dw = _this.dv();
_this.rw(_this.dw);
_this.dw.c7();
_this.t0();
_this.pn();
_this.actualSyncLink = new SyncLink();
_this.t7(null, _this.actualSyncLink);
_this.a3 = new ChartContentManager(_this);
_this.propertyUpdated = delegateCombine(_this.propertyUpdated, function (a, b) { return _this.r8(a, b.propertyName, b.oldValue, b.newValue); });
_this.selectedSeriesItems = new ChartSelectedItemCollection();
var a = _this.selectedSeriesItems;
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.rh));
var b = _this.selectedSeriesItems;
b.collectionResetting = delegateCombine(b.collectionResetting, runOn(_this, _this.tg));
_this.focusedSeriesItems = new ChartSelectedItemCollection();
var c = _this.focusedSeriesItems;
c.collectionChanged = delegateCombine(c.collectionChanged, runOn(_this, _this.qu));
var d = _this.focusedSeriesItems;
d.collectionResetting = delegateCombine(d.collectionResetting, runOn(_this, _this.pg));
var e = _this.series;
e.collectionChanged = delegateCombine(e.collectionChanged, runOn(_this, _this.sa));
var f = _this.series;
f.collectionResetting = delegateCombine(f.collectionResetting, runOn(_this, _this.sb));
var g = _this.b9;
g.collectionChanged = delegateCombine(g.collectionChanged, runOn(_this, _this.ti));
var h = _this.b9;
h.collectionResetting = delegateCombine(h.collectionResetting, runOn(_this, _this.tj));
_this.dz = new DoubleAnimator(0, 1, _this.kc);
_this.dy = new DoubleAnimator(0, 1, _this.ka);
var i = _this.dy;
i.propertyChanged = delegateCombine(i.propertyChanged, runOn(_this, _this.pm));
_this.d0 = new DoubleAnimator(0, 1, _this.ke);
_this.dx = new DoubleAnimator(0, 1, _this.j7);
var j = _this.d0;
j.propertyChanged = delegateCombine(j.propertyChanged, runOn(_this, _this.th));
var k = _this.dx;
k.propertyChanged = delegateCombine(k.propertyChanged, runOn(_this, _this.ph));
_this.dw.b0();
_this.pp();
_this.po();
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.y4 = new Rect(0, 0, 0, 1, 1);
};
Object.defineProperty(SeriesViewer.prototype, "ef", {
get: function () {
if (this.ee == null) {
this.ee = new SRProvider(this.dw.j.ae);
}
return this.ee;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.ao = function (a) {
if (this.an == null) {
this.an = new AutomaticSeriesManager(this, this.series, this.b9);
}
return this.an;
};
SeriesViewer.prototype.getDesiredToolbarActions = function () {
if (!this.gc) {
return null;
}
return this.bo.getDesiredToolbarActions(this);
};
SeriesViewer.prototype.ru = function (a, b) {
if (this.userAnnotationInformationRequested != null) {
this.userAnnotationInformationRequested(a, b);
}
};
SeriesViewer.prototype.rv = function (a, b) {
if (this.userAnnotationToolTipContentUpdating != null) {
this.userAnnotationToolTipContentUpdating(a, b);
}
};
SeriesViewer.prototype.op = function (a) {
if (this.fs) {
for (var b = 0; b < this.b9.count; b++) {
var c = this.b9._inner[b];
if (c.f9) {
this.bl.cancelAnnotationFlow(c, a);
}
}
}
};
SeriesViewer.prototype.pb = function (a) {
if (this.fs) {
for (var b = 0; b < this.b9.count; b++) {
var c = this.b9._inner[b];
if (c.f9) {
this.bl.finishAnnotationFlow(c, a);
}
}
}
};
SeriesViewer.prototype.onToolCommandExecuting = function (a) {
if (!this.gc) {
return 1;
}
return this.bo.onToolCommandExecuting(this, a);
};
SeriesViewer.prototype.addCommandAvailabilityListener = function (a) {
};
SeriesViewer.prototype.removeCommandAvailabilityListener = function (a) {
};
SeriesViewer.prototype.addCommandStateChangedListener = function (a) {
if (!this.hm.contains(a)) {
this.hm.add(a);
}
};
SeriesViewer.prototype.removeCommandStateChangedListener = function (a) {
if (this.hm.contains(a)) {
this.hm.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, "hk", {
get: function () {
return this.hi;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.provideContextAccessor = function (a) {
if (this.hi == null) {
this.hi = new HashSet$1(IToolbarContextAccessor_$type, 0);
}
this.hi.add_1(a);
};
SeriesViewer.prototype.dismissContextAccessor = function (a) {
if (this.hi == null) {
return;
}
this.hi.remove(a);
};
SeriesViewer.prototype.ps = function () {
if (this.invalidateActions != null) {
this.invalidateActions();
}
};
Object.defineProperty(SeriesViewer.prototype, "bo", {
get: function () {
var _this = this;
if (this.bn == null) {
this.bn = DVContainer.instance.createInstance(IDataChartToolbarProvider_$type, function () { return _this.ef.n; });
this.bn.container = this.dw.bl;
}
return this.bn;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "gc", {
get: function () {
return DVContainer.instance.checkLoaded("DataChartToolbarFactoryManager");
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "bq", {
get: function () {
var _this = this;
if (this.bp == null) {
this.bp = DVContainer.instance.createInstance(ISeriesViewerInteractionManager_$type, function () { return _this.ef.n; });
}
return this.bp;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "f3", {
get: function () {
return DVContainer.instance.checkLoaded("InteractivityFactoryManager");
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.sb = function (a, b) {
if (this.an != null) {
this.an.o(a, b);
}
else {
this.b9.clear();
}
};
SeriesViewer.prototype.sa = function (a, b) {
var e_1, _a;
if (this.an != null) {
this.an.n(a, b);
}
else {
switch (b.action) {
case 0:
if (b.newItems != null) {
for (var c = 0; c < b.newItems.count; c++) {
var d = b.newItems.item(c);
this.b9.insert(c + b.newStartingIndex, d);
}
}
break;
case 1:
if (b.oldItems != null) {
for (var e = 0; e < b.oldItems.count; e++) {
this.b9.removeAt(b.oldStartingIndex);
}
}
break;
case 2:
if (b.oldItems != null) {
for (var f = 0; f < b.oldItems.count; f++) {
this.b9.removeAt(b.oldStartingIndex);
}
}
if (b.newItems != null) {
for (var g = 0; g < b.newItems.count; g++) {
var h = b.newItems.item(g);
this.b9.insert(g + b.newStartingIndex, h);
}
}
break;
case 4:
this.b9.clear();
try {
for (var _b = __values(fromEnum(this.series)), _c = _b.next(); !_c.done; _c = _b.next()) {
var i = _c.value;
this.b9.add(i);
}
}
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;
}
}
break;
}
}
};
SeriesViewer.prototype.tg = function (a, b) {
for (var c = 0; c < this.selectedSeriesItems.count; c++) {
this.q0(this.selectedSeriesItems._inner[c]);
}
};
SeriesViewer.prototype.pg = function (a, b) {
for (var c = 0; c < this.focusedSeriesItems.count; c++) {
this.qz(this.focusedSeriesItems._inner[c]);
}
};
SeriesViewer.prototype.rh = function (a, b) {
if (b.action == 4 && b.newItems == null && b.oldItems == null) {
return;
}
if (this.e0) {
return;
}
if (b.oldItems != null) {
for (var c = 0; c < b.oldItems.count; c++) {
var d = b.oldItems.item(c);
this.q0(d);
}
}
if (b.newItems != null) {
for (var e = 0; e < b.newItems.count; e++) {
var f = b.newItems.item(e);
f.f(this);
}
for (var g = 0; g < b.newItems.count; g++) {
var h = b.newItems.item(g);
this.q2(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.rg(this, new SeriesViewerSelectedSeriesItemsChangedEventArgs(i, k, m));
};
SeriesViewer.prototype.qu = function (a, b) {
if (b.action == 4 && b.newItems == null && b.oldItems == null) {
return;
}
if (this.ez) {
return;
}
if (b.oldItems != null) {
for (var c = 0; c < b.oldItems.count; c++) {
var d = b.oldItems.item(c);
this.qz(d);
}
}
if (b.newItems != null) {
for (var e = 0; e < b.newItems.count; e++) {
var f = b.newItems.item(e);
this.q1(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.qt(this, new SeriesViewerSelectedSeriesItemsChangedEventArgs(g, i, k));
};
SeriesViewer.prototype.q1 = function (a) {
this.pi(function (b) {
var c = a;
if (c.series != null && c.series != b) {
return;
}
b.p5(c.item);
});
};
SeriesViewer.prototype.qz = function (a) {
this.pi(function (b) {
var c = a;
if (c.series != null && c.series != b) {
return;
}
b.p3(c.item);
});
};
SeriesViewer.prototype.pi = function (a) {
var e_2, _a;
try {
for (var _b = __values(fromEnum(this.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
a(b);
if (b.isStacked) {
b.qh(function (c) {
a(c);
if (c.ei) {
c.qf(function (d) {
a(d);
return true;
});
}
return true;
});
}
if (b.ei) {
b.qf(function (c) {
a(c);
return 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.q2 = function (a) {
this.pi(function (b) {
var c = a;
if (c.series != null && c.series != b) {
return;
}
if (c.item == null) {
b.qb();
}
else {
b.p6(c.item);
}
});
};
SeriesViewer.prototype.q0 = function (a) {
this.pi(function (b) {
var c = a;
if (c.series != null && c.series != b) {
return;
}
if (c.item == null) {
b.p9();
}
else {
b.p4(c.item);
}
});
};
SeriesViewer.prototype.pn = function () {
if (this.dn != null && this.dp == null) {
var a = this.dp;
a.thumbnailSizeChanged = delegateRemove(a.thumbnailSizeChanged, runOn(this, this.r4));
}
if (this.dp != null) {
var b = this.dp;
b.thumbnailSizeChanged = delegateCombine(b.thumbnailSizeChanged, runOn(this, this.r4));
}
if (this.kk != null) {
this.dp.backgroundImageUri = this.kk;
}
if (this.dp != null) {
this.dp.initializeScalingRatio(this.ij);
}
if (this.dn == null && this.dp != null) {
this.p7();
}
this.dn = this.dp;
};
SeriesViewer.prototype.r4 = function (a, b) {
var e_3, _a;
this.dp.surfaceIsDirty = true;
try {
for (var _b = __values(fromEnum(this.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
c.g6 = true;
}
}
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;
}
}
};
SeriesViewer.prototype.get_go = function () {
return false;
};
Object.defineProperty(SeriesViewer.prototype, "go", {
get: function () {
return this.get_go();
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.get_gn = function () {
return false;
};
Object.defineProperty(SeriesViewer.prototype, "gn", {
get: function () {
return this.get_gn();
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.po = function () {
this.dw.cr();
if (this.dp != null) {
this.dp.initializeScalingRatio(this.ij);
}
};
Object.defineProperty(SeriesViewer.prototype, "series", {
get: function () {
return this.b8;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "b9", {
get: function () {
return this.b7;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.ti = function (a, b) {
var e_4, _a, e_5, _b, e_6, _c, e_7, _d;
var c = this.fd;
this.fd = this.fj();
if (b.oldItems != null) {
var d = this.j1;
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.j1--;
if (this.j1 < 0) {
this.j1 = 0;
}
}
e.c4 = null;
e.dc = null;
this.s8(e);
this.dw.d1(e);
}
}
catch (e_4_1) {
e_4 = { error: e_4_1 };
}
finally {
try {
if (_f && !_f.done && (_a = _e.return))
_a.call(_e);
}
finally {
if (e_4)
throw e_4.error;
}
}
if (this.j1 < d) {
try {
for (var _g = __values(fromEnum(this.b9)), _h = _g.next(); !_h.done; _h = _g.next()) {
var f = _h.value;
if (f.ev) {
continue;
}
f.p8();
}
}
catch (e_5_1) {
e_5 = { error: e_5_1 };
}
finally {
try {
if (_h && !_h.done && (_b = _g.return))
_b.call(_g);
}
finally {
if (e_5)
throw e_5.error;
}
}
}
}
if (b.newItems != null) {
var g = this.j1;
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.j1++;
}
if (!this.dw.ar(h)) {
this.t1(h);
this.dw.bs(h);
h.dc = this;
h.c4 = this.actualSyncLink;
h.s7();
}
}
}
catch (e_6_1) {
e_6 = { error: e_6_1 };
}
finally {
try {
if (_k && !_k.done && (_c = _j.return))
_c.call(_j);
}
finally {
if (e_6)
throw e_6.error;
}
}
if (this.j1 > g) {
try {
for (var _l = __values(fromEnum(this.b9)), _m = _l.next(); !_m.done; _m = _l.next()) {
var i = _m.value;
if (i.ev || b.newItems.contains(i)) {
continue;
}
i.p8();
}
}
catch (e_7_1) {
e_7 = { error: e_7_1 };
}
finally {
try {
if (_m && !_m.done && (_d = _l.return))
_d.call(_l);
}
finally {
if (e_7)
throw e_7.error;
}
}
}
}
if (this.fd != c && !this.y9.isEmpty) {
this.r7(this.y9, this.y9);
}
this.p6();
this.qf();
this.qx();
this.p0();
};
Object.defineProperty(SeriesViewer.prototype, "ci", {
get: function () {
return this.ch;
},
set: function (a) {
this.ch = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "ck", {
get: function () {
return this.cj;
},
set: function (a) {
this.cj = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.pq = function () {
this.qf();
};
SeriesViewer.prototype.qf = function () {
};
Object.defineProperty(SeriesViewer.prototype, "skipDataCleanup", {
get: function () {
return this._skipDataCleanup;
},
set: function (a) {
this._skipDataCleanup = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.s8 = function (a) {
if (!this.skipDataCleanup) {
if (typeCast(Series.$, a) !== null) {
a.itemsSource = null;
}
else if (typeCast(CategoryAxisBase.$, a) !== null) {
a.itemsSource = null;
}
}
this.ta(a.name, true);
};
Object.defineProperty(SeriesViewer.prototype, "fm", {
get: function () {
return this.j1 > 0;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.tj = function (a, b) {
var e_8, _a;
this.fd = this.fj();
try {
for (var _b = __values(fromEnum(this.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
c.c4 = null;
c.dc = null;
this.s8(c);
this.dw.d1(c);
}
}
catch (e_8_1) {
e_8 = { error: e_8_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_8)
throw e_8.error;
}
}
this.j1 = 0;
this.p0();
};
SeriesViewer.prototype.pv = function (a, b, c, d) {
var e = this.y9;
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.fj = function () {
return false;
};
Object.defineProperty(SeriesViewer.prototype, "g4", {
get: function () {
return this.ge;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "fx", {
get: function () {
return this.bp != null;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "fc", {
get: function () {
return this.bp != null;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "fb", {
get: function () {
return this.cx != 0 || this.cy != 0;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "fa", {
get: function () {
return this.fc && this.fb;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "d7", {
get: function () {
var a = this.bq.f$e;
if (a.executionContext == null) {
a.executionContext = this.dw.l();
}
if (a.ensureAnimator == null) {
a.ensureAnimator = runOn(this, this.o7);
}
a.dismissHighlightDelay = this.j9;
return a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "d8", {
get: function () {
var a = this.bq.f$f;
if (a.executionContext == null) {
a.executionContext = this.dw.l();
}
if (a.ensureAnimator == null) {
a.ensureAnimator = runOn(this, this.o8);
}
a.dismissHighlightDelay = this.kd;
return a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "d6", {
get: function () {
var a = this.bq.f$d;
if (a.executionContext == null) {
a.executionContext = this.dw.l();
}
if (a.ensureAnimator == null) {
a.ensureAnimator = runOn(this, this.o6);
}
a.dismissHighlightDelay = this.j6;
return a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "br", {
get: function () {
var a = this.bq.f$b;
if (a.executionContext == null) {
a.executionContext = this.dw.l();
}
if (a.animator == null) {
a.animator = this.dz;
a.owner = this;
}
return a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.o7 = function () {
{
var a = this.dy;
if (!a.f() && a.r > 0) {
a.v();
}
if (a.r == 0) {
var b = this.ha(1);
while (b) {
b = this.ha(0);
b = this.ha(1);
}
}
}
};
SeriesViewer.prototype.o8 = function () {
{
var a = this.d0;
if (!a.f() && a.r > 0) {
a.v();
}
if (a.r == 0) {
var b = this.hb(1);
while (b) {
b = this.hb(0);
b = this.hb(1);
}
}
}
};
SeriesViewer.prototype.o6 = function () {
{
var a = this.dx;
if (!a.f() && a.r > 0) {
a.v();
}
if (a.r == 0) {
var b = this.g9(1);
while (b) {
b = this.g9(0);
b = this.g9(1);
}
}
}
};
SeriesViewer.prototype.pm = function (a, b) {
this.ha(this.dy.o);
};
SeriesViewer.prototype.th = function (a, b) {
this.hb(this.d0.o);
};
SeriesViewer.prototype.ph = function (a, b) {
this.g9(this.dx.o);
};
SeriesViewer.prototype.ha = function (a) {
var b = this.d7.tick(a);
if (a == 1 && b && this.dy.r > 0) {
this.dy.v();
}
var c = this.d7.dirtyContexts;
if (this.d7.allDirty) {
var d = this.b9;
for (var e = 0; e < d.count; e++) {
var f = d._inner[e];
f.rk();
}
}
else {
for (var g = 0; g < c.count; g++) {
var h = c._inner[g];
h.rk();
}
}
if (!b) {
this.dy.w();
this.qw();
}
return b;
};
SeriesViewer.prototype.hb = function (a) {
var b = this.d8.tick(a);
if (a == 1 && b && this.d0.r > 0) {
this.d0.v();
}
var c = this.d8.dirtyContexts;
if (this.d8.allDirty) {
var d = this.b9;
for (var e = 0; e < d.count; e++) {
var f = d._inner[e];
f.rk();
}
}
else {
for (var g = 0; g < c.count; g++) {
var h = c._inner[g];
h.rk();
}
}
if (!b) {
this.d0.w();
}
return b;
};
SeriesViewer.prototype.g9 = function (a) {
var b = this.d6.tick(a);
if (a == 1 && b && this.dx.r > 0) {
this.dx.v();
}
var c = this.d6.dirtyContexts;
if (this.d6.allDirty) {
var d = this.b9;
for (var e = 0; e < d.count; e++) {
var f = d._inner[e];
f.rk();
}
}
else {
for (var g = 0; g < c.count; g++) {
var h = c._inner[g];
h.rk();
}
}
if (!b) {
this.dx.w();
}
return b;
};
SeriesViewer.prototype.pl = function () {
this.dw.cn();
this.pk();
for (var a = 0; a < this.b9.count; a++) {
if (this.b9._inner[a].ev) {
this.b9._inner[a].ql();
}
}
};
SeriesViewer.prototype.xx = function (a) {
return this.xw(this.ag, a);
};
SeriesViewer.prototype.x3 = function (a) {
return this.xw(this.aj, a);
};
SeriesViewer.prototype.x1 = function (a) {
return this.xw(this.ah, a);
};
SeriesViewer.prototype.x2 = function (a) {
return this.xw(this.ai, a);
};
SeriesViewer.prototype.xw = function (a, b) {
if (a == null || a.count == 0) {
return null;
}
else {
return a.item(b % a.count);
}
};
Object.defineProperty(SeriesViewer.prototype, "yi", {
get: function () {
return this.yh;
},
set: function (a) {
if (PointUtil.notEquals(this.yh, a)) {
var b = this.yh;
this.yh = a;
this.sr("CrosshairPoint", b, this.yh);
}
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.s4 = function () {
};
Object.defineProperty(SeriesViewer.prototype, "f2", {
get: function () {
return this.dm == 1 || this.dm == 2 || this.dm == 3;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "legend", {
get: function () {
return this.c(SeriesViewer.vy);
},
set: function (a) {
this.h(SeriesViewer.vy, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "e8", {
get: function () {
return this.c(SeriesViewer.ut);
},
set: function (a) {
this.h(SeriesViewer.ut, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "gy", {
get: function () {
return this.c(SeriesViewer.wn);
},
set: function (a) {
this.h(SeriesViewer.wn, a);
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.se = function (a, b) {
if (this.axisLabelMouseDown != null) {
this.axisLabelMouseDown(this, b);
}
};
SeriesViewer.prototype.si = function (a, b) {
if (this.axisLabelMouseUp != null) {
this.axisLabelMouseUp(this, b);
}
};
SeriesViewer.prototype.sf = function (a, b) {
if (this.axisLabelMouseEnter != null) {
this.axisLabelMouseEnter(this, b);
}
};
SeriesViewer.prototype.sg = function (a, b) {
if (this.axisLabelMouseLeave != null) {
this.axisLabelMouseLeave(this, b);
}
};
SeriesViewer.prototype.sh = function (a, b) {
if (this.axisLabelMouseOver != null) {
this.axisLabelMouseOver(this, b);
}
};
SeriesViewer.prototype.sd = function (a, b) {
if (this.axisLabelMouseClick != null) {
this.axisLabelMouseClick(this, b);
}
};
SeriesViewer.prototype.sk = function (a, b) {
if (this.axisPanelMouseDown != null) {
this.axisPanelMouseDown(this, b);
}
};
SeriesViewer.prototype.so = function (a, b) {
if (this.axisPanelMouseUp != null) {
this.axisPanelMouseUp(this, b);
}
};
SeriesViewer.prototype.sl = function (a, b) {
if (this.axisPanelMouseEnter != null) {
this.axisPanelMouseEnter(this, b);
}
};
SeriesViewer.prototype.sm = function (a, b) {
if (this.axisPanelMouseLeave != null) {
this.axisPanelMouseLeave(this, b);
}
};
SeriesViewer.prototype.sn = function (a, b) {
if (this.axisPanelMouseOver != null) {
this.axisPanelMouseOver(this, b);
}
};
SeriesViewer.prototype.sj = function (a, b) {
if (this.axisPanelMouseClick != null) {
this.axisPanelMouseClick(this, b);
}
};
SeriesViewer.prototype.rc = function (a, b) {
this.ev = false;
var c = false;
c = false;
if (this.dw.k.al) {
return;
}
if (this.plotAreaMouseLeftButtonDown != null) {
var d = this.bw(a, b, c);
this.plotAreaMouseLeftButtonDown(this, d);
}
};
SeriesViewer.prototype.bw = 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.y9.isEmpty) {
if (c) {
e.x -= this.y9.left;
e.y -= this.y9.top;
}
else {
d.x += this.y9.left;
d.y += this.y9.top;
}
}
var f = new PlotAreaMouseButtonEventArgs(this, d, e);
f.manipulationOccurred = this.ev;
return f;
};
SeriesViewer.prototype.b0 = 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.y9.isEmpty) {
if (c) {
e.x -= this.y9.left;
e.y -= this.y9.top;
}
else {
d.x += this.y9.left;
d.y += this.y9.top;
}
}
var f = new PlotAreaMouseEventArgs(this, d, e);
return f;
};
SeriesViewer.prototype.rd = function (a, b, c) {
var d = false;
d = false;
if (this.dw.k.al) {
return;
}
if (this.plotAreaMouseLeftButtonUp != null) {
var e = this.bw(a, b, d);
this.plotAreaMouseLeftButtonUp(this, e);
}
if (!this.ev && !c) {
if (this.plotAreaClicked != null) {
var f = this.bw(a, b, d);
this.plotAreaClicked(this, f);
}
}
this.ev = false;
};
Object.defineProperty(SeriesViewer.prototype, "ge", {
get: function () {
return this.c(SeriesViewer.vu);
},
set: function (a) {
this.h(SeriesViewer.vu, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "g3", {
get: function () {
return this.c(SeriesViewer.wq);
},
set: function (a) {
this.h(SeriesViewer.wq, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "cg", {
get: function () {
return EnumUtil.getEnumValue(SeriesHighlightingMode_$type, this.c(SeriesViewer.vb));
},
set: function (a) {
this.h(SeriesViewer.vb, enumGetBox(SeriesHighlightingMode_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "iy", {
get: function () {
return this.c(SeriesViewer.va);
},
set: function (a) {
this.h(SeriesViewer.va, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "ct", {
get: function () {
return EnumUtil.getEnumValue(SeriesSelectionMode_$type, this.c(SeriesViewer.wk));
},
set: function (a) {
this.h(SeriesViewer.wk, enumGetBox(SeriesSelectionMode_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "co", {
get: function () {
return EnumUtil.getEnumValue(SeriesSelectionBehavior_$type, this.c(SeriesViewer.wh));
},
set: function (a) {
this.h(SeriesViewer.wh, enumGetBox(SeriesSelectionBehavior_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "cr", {
get: function () {
return EnumUtil.getEnumValue(SeriesSelectionMode_$type, this.c(SeriesViewer.u3));
},
set: function (a) {
this.h(SeriesViewer.u3, enumGetBox(SeriesSelectionMode_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "cz", {
get: function () {
return EnumUtil.getEnumValue(SeriesViewerScrollbarMode_$type, this.c(SeriesViewer.vj));
},
set: function (a) {
this.h(SeriesViewer.vj, enumGetBox(SeriesViewerScrollbarMode_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "c0", {
get: function () {
return EnumUtil.getEnumValue(SeriesViewerScrollbarMode_$type, this.c(SeriesViewer.w4));
},
set: function (a) {
this.h(SeriesViewer.w4, enumGetBox(SeriesViewerScrollbarMode_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "cw", {
get: function () {
return EnumUtil.getEnumValue(SeriesViewerHorizontalScrollbarPosition_$type, this.c(SeriesViewer.vl));
},
set: function (a) {
this.h(SeriesViewer.vl, enumGetBox(SeriesViewerHorizontalScrollbarPosition_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "c3", {
get: function () {
return EnumUtil.getEnumValue(SeriesViewerVerticalScrollbarPosition_$type, this.c(SeriesViewer.w6));
},
set: function (a) {
this.h(SeriesViewer.w6, enumGetBox(SeriesViewerVerticalScrollbarPosition_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "x5", {
get: function () {
return this.c(SeriesViewer.vf);
},
set: function (a) {
this.h(SeriesViewer.vf, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "x6", {
get: function () {
return this.c(SeriesViewer.vk);
},
set: function (a) {
this.h(SeriesViewer.vk, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "i3", {
get: function () {
return this.c(SeriesViewer.vn);
},
set: function (a) {
this.h(SeriesViewer.vn, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "i2", {
get: function () {
return this.c(SeriesViewer.vi);
},
set: function (a) {
this.h(SeriesViewer.vi, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "iz", {
get: function () {
return this.c(SeriesViewer.ve);
},
set: function (a) {
this.h(SeriesViewer.ve, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "i0", {
get: function () {
return this.c(SeriesViewer.vg);
},
set: function (a) {
this.h(SeriesViewer.vg, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "i1", {
get: function () {
return this.c(SeriesViewer.vh);
},
set: function (a) {
this.h(SeriesViewer.vh, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "i5", {
get: function () {
return this.c(SeriesViewer.vp);
},
set: function (a) {
this.h(SeriesViewer.vp, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "i4", {
get: function () {
return this.c(SeriesViewer.vo);
},
set: function (a) {
this.h(SeriesViewer.vo, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "fo", {
get: function () {
return this.c(SeriesViewer.vm);
},
set: function (a) {
this.h(SeriesViewer.vm, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "yf", {
get: function () {
return this.c(SeriesViewer.w1);
},
set: function (a) {
this.h(SeriesViewer.w1, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "yg", {
get: function () {
return this.c(SeriesViewer.w5);
},
set: function (a) {
this.h(SeriesViewer.w5, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jp", {
get: function () {
return this.c(SeriesViewer.w8);
},
set: function (a) {
this.h(SeriesViewer.w8, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jo", {
get: function () {
return this.c(SeriesViewer.w3);
},
set: function (a) {
this.h(SeriesViewer.w3, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jm", {
get: function () {
return this.c(SeriesViewer.w0);
},
set: function (a) {
this.h(SeriesViewer.w0, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "js", {
get: function () {
return this.c(SeriesViewer.xb);
},
set: function (a) {
this.h(SeriesViewer.xb, a);
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.ow = function () {
if (!this.al.g && !this.al.f && !this.dw.a.g && !this.dw.a.f) {
this.rf();
}
};
SeriesViewer.prototype.rf = function () {
this.ou();
};
Object.defineProperty(SeriesViewer.prototype, "jn", {
get: function () {
return this.c(SeriesViewer.w2);
},
set: function (a) {
this.h(SeriesViewer.w2, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jr", {
get: function () {
return this.c(SeriesViewer.xa);
},
set: function (a) {
this.h(SeriesViewer.xa, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jq", {
get: function () {
return this.c(SeriesViewer.w9);
},
set: function (a) {
this.h(SeriesViewer.w9, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "hf", {
get: function () {
return this.c(SeriesViewer.w7);
},
set: function (a) {
this.h(SeriesViewer.w7, a);
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.cs = function () {
if (this.ct == 0) {
return 1;
}
return this.ct;
};
SeriesViewer.prototype.cn = function () {
if (this.co == 0) {
return 3;
}
return this.co;
};
SeriesViewer.prototype.cf = function () {
if (this.ce == 0) {
return 1;
}
if (this.cg == 3 || this.cg == 5) {
if (this.ce == 2) {
return 4;
}
}
return this.ce;
};
Object.defineProperty(SeriesViewer.prototype, "cd", {
get: function () {
return this.cc;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "cq", {
get: function () {
return this.cp;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "cm", {
get: function () {
return this.cl;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "ce", {
get: function () {
return EnumUtil.getEnumValue(SeriesHighlightingBehavior_$type, this.c(SeriesViewer.u8));
},
set: function (a) {
this.h(SeriesViewer.u8, enumGetBox(SeriesHighlightingBehavior_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "bs", {
get: function () {
return EnumUtil.getEnumValue(LegendHighlightingMode_$type, this.c(SeriesViewer.vv));
},
set: function (a) {
this.h(SeriesViewer.vv, enumGetBox(LegendHighlightingMode_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "bu", {
get: function () {
return EnumUtil.getEnumValue(LegendItemBadgeShape_$type, this.c(SeriesViewer.vx));
},
set: function (a) {
this.h(SeriesViewer.vx, enumGetBox(LegendItemBadgeShape_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "bt", {
get: function () {
return EnumUtil.getEnumValue(LegendItemBadgeMode_$type, this.c(SeriesViewer.vw));
},
set: function (a) {
this.h(SeriesViewer.vw, enumGetBox(LegendItemBadgeMode_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "fk", {
get: function () {
return this.c(SeriesViewer.u0);
},
set: function (a) {
this.h(SeriesViewer.u0, a);
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.sr = function (a, b, c) {
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
if (this.propertyUpdated != null) {
this.propertyUpdated(this, new PropertyUpdatedEventArgs(a, b, c));
}
};
SeriesViewer.prototype.q3 = function () {
this.q4(this.b9);
};
SeriesViewer.prototype.q4 = function (a) {
var e_9, _a, e_10, _b;
this.hj.clear();
try {
for (var _c = __values(fromEn(a)), _d = _c.next(); !_d.done; _d = _c.next()) {
var b = _d.value;
var c = b.a5;
if (c == null) {
continue;
}
var d = b.tc;
if (d == null) {
continue;
}
if (c.containsChild(d)) {
c.removeChild(d);
if (!this.hj.contains(c)) {
this.hj.add_1(c);
}
}
if (!c.containsChild(d) && b.legendItemVisibility != 1) {
c.addChildInOrder(d, b);
if (!this.hj.contains(c)) {
this.hj.add_1(c);
}
}
}
}
catch (e_9_1) {
e_9 = { error: e_9_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_9)
throw e_9.error;
}
}
try {
for (var _e = __values(fromEnum(this.hj)), _f = _e.next(); !_f.done; _f = _e.next()) {
var e = _f.value;
e.flushTextContentChangedCheck();
}
}
catch (e_10_1) {
e_10 = { error: e_10_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_10)
throw e_10.error;
}
}
};
SeriesViewer.prototype.rk = function (a, b, c, d) {
this.sx(a, b, typeCast(MouseEventArgs.$, c), d);
};
SeriesViewer.prototype.ro = function (a, b, c, d) {
this.s1(a, b, typeCast(MouseEventArgs.$, c), d);
};
SeriesViewer.prototype.rl = function (a, b, c, d) {
this.sy(a, b, typeCast(MouseEventArgs.$, c), d);
};
SeriesViewer.prototype.rm = function (a, b, c, d) {
this.sz(a, b, typeCast(MouseButtonEventArgs.$, c), d);
};
SeriesViewer.prototype.rn = function (a, b, c, d) {
var e = typeCast(MouseButtonEventArgs.$, c);
if (e != null) {
this.s0(a, b, typeCast(MouseButtonEventArgs.$, c), d);
}
if (e != null) {
if (!this.ev) {
this.su(a, b, typeCast(MouseButtonEventArgs.$, c), d);
}
}
};
SeriesViewer.prototype.oj = function (a, b) {
return null;
};
Object.defineProperty(SeriesViewer.prototype, "gk", {
get: function () {
return this.ev;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.qd = function (a, b) {
if (!this.em && a) {
this.oz({ $type: Point_$type, x: NaN, y: NaN });
this.em = true;
this.ev = true;
if (this.fk) {
this.bq.f$y(this, b);
}
if (this.viewerManipulationStarting != null) {
var c = new SeriesViewerManipulationEventArgs();
c.isDragZoom = true;
this.viewerManipulationStarting(this, c);
}
}
};
SeriesViewer.prototype.qb = function (a, b) {
if (!this.el && a) {
this.oz({ $type: Point_$type, x: NaN, y: NaN });
this.el = true;
this.ev = true;
if (this.fk) {
this.bq.f$y(this, b);
}
if (this.viewerManipulationStarting != null) {
var c = new SeriesViewerManipulationEventArgs();
c.isDragSelect = true;
this.viewerManipulationStarting(this, c);
}
}
};
SeriesViewer.prototype.rp = function (a, b, c, d) {
};
SeriesViewer.prototype.rq = function (a, b, c, d) {
};
SeriesViewer.prototype.sv = function (a, b) {
if (this.seriesCursorMouseMove != null && this.ff) {
this.seriesCursorMouseMove(this, new ChartCursorEventArgs(this, a, b));
}
};
SeriesViewer.prototype.sz = function (a, b, c, d) {
if (this.seriesMouseLeftButtonDown != null) {
this.seriesMouseLeftButtonDown(this, new DataChartMouseButtonEventArgs(this, a, b, c, d));
}
};
SeriesViewer.prototype.s0 = function (a, b, c, d) {
if (this.seriesMouseLeftButtonUp != null) {
this.seriesMouseLeftButtonUp(this, new DataChartMouseButtonEventArgs(this, a, b, c, d));
}
};
SeriesViewer.prototype.su = function (a, b, c, d) {
var e = false;
if (this.seriesClick != null) {
var f = new DataChartMouseButtonEventArgs(this, a, b, c, d);
this.seriesClick(this, f);
e = f.cancelSelection;
}
if (a.isStacked) {
return;
}
if (!e) {
this.ri(a, b);
}
};
SeriesViewer.prototype.ri = function (a, b) {
if (b != null && this.cq != 1) {
if (a != null) {
if (!a.eg(b)) {
return;
}
if (a.bo != null) {
if (a.dp != null) {
var c = a.dp.indexOf(b);
if (c >= 0 && a.bo.dp != null) {
b = a.bo.dp.item(c);
a = a.bo;
}
}
}
}
var d = this.hp(a, b, this.cm);
d = this.hr(d, this.cm);
var e = this.ho(this.selectedSeriesItems, d, this.cm);
for (var f = 0; f < e.count; f++) {
this.selectedSeriesItems.remove(e._inner[f]);
}
for (var g = 0; g < d.count; g++) {
this.selectedSeriesItems.add(d._inner[g]);
}
}
};
SeriesViewer.prototype.hr = function (a, b) {
var e_11, _a, e_12, _b;
var c = new List$1(ChartSelection.$, 0);
var d = new List$1(ChartSelection.$, 0);
try {
for (var _c = __values(fromEnum(a)), _d = _c.next(); !_d.done; _d = _c.next()) {
var e = _d.value;
if (this.selectedSeriesItems.contains(e)) {
c.add(e);
}
else {
d.add(e);
}
}
}
catch (e_11_1) {
e_11 = { error: e_11_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_11)
throw e_11.error;
}
}
try {
for (var _e = __values(fromEnum(c)), _f = _e.next(); !_f.done; _f = _e.next()) {
var f = _f.value;
this.selectedSeriesItems.remove(f);
}
}
catch (e_12_1) {
e_12 = { error: e_12_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_12)
throw e_12.error;
}
}
return d;
};
SeriesViewer.prototype.hs = function (a, b) {
var c = new List$1(ChartSelection.$, 0);
for (var d = 0; d < a.count; d++) {
if (!this.f5(d, a, b)) {
c.add(a._inner[d]);
}
}
return c;
};
SeriesViewer.prototype.f5 = function (a, b, c) {
var d = b._inner[a];
switch (c) {
case 1: return d.series != null;
case 2:
if (d.series != null) {
return true;
}
for (var e = a + 1; e < b.count; e++) {
if (!Base.equalsStatic(d.item, b._inner[e].item)) {
return true;
}
}
return false;
case 3: return d.series == null || d.item == null;
case 4:
if (d.series == null || d.item == null) {
return true;
}
for (var f = a + 1; f < b.count; f++) {
if (d.series == b._inner[f].series && !Base.equalsStatic(d.item, b._inner[f].item)) {
return true;
}
}
return false;
case 5:
if (d.series == null || d.item == null) {
return true;
}
for (var g = a + 1; g < b.count; g++) {
if (d.series != b._inner[g].series && !Base.equalsStatic(d.item, b._inner[g].item)) {
return true;
}
}
return false;
case 6: return d.item != null;
case 7:
if (d.item != null) {
return true;
}
for (var h = a + 1; h < b.count; h++) {
if (d.series != b._inner[h].series) {
return true;
}
}
return false;
}
return false;
};
SeriesViewer.prototype.ho = function (a, b, c) {
var e_13, _a;
var d = new List$1(ChartSelection.$, 0);
var e = new HashSet$1(ChartSelection.$, 2, new ChartSelectionEqualityComparer());
try {
for (var _b = __values(fromEnum(b)), _c = _b.next(); !_c.done; _c = _b.next()) {
var f = _c.value;
this.pj(a, e, d, f, c);
}
}
catch (e_13_1) {
e_13 = { error: e_13_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_13)
throw e_13.error;
}
}
return d;
};
SeriesViewer.prototype.pj = function (a, b, c, d, e) {
var e_14, _a, e_15, _b, e_16, _c, e_17, _d, e_18, _e, e_19, _f, e_20, _g;
switch (e) {
case 1:
try {
for (var _h = __values(fromEnum(a)), _j = _h.next(); !_j.done; _j = _h.next()) {
var f = _j.value;
if (f.series != null) {
if (!b.contains(f)) {
b.add_1(f);
c.add(f);
}
}
}
}
catch (e_14_1) {
e_14 = { error: e_14_1 };
}
finally {
try {
if (_j && !_j.done && (_a = _h.return))
_a.call(_h);
}
finally {
if (e_14)
throw e_14.error;
}
}
break;
case 2:
try {
for (var _k = __values(fromEnum(a)), _l = _k.next(); !_l.done; _l = _k.next()) {
var g = _l.value;
if (g.series != null || (g.item != null && !Base.equalsStatic(g.item, d.item))) {
if (!b.contains(g)) {
b.add_1(g);
c.add(g);
}
}
}
}
catch (e_15_1) {
e_15 = { error: e_15_1 };
}
finally {
try {
if (_l && !_l.done && (_b = _k.return))
_b.call(_k);
}
finally {
if (e_15)
throw e_15.error;
}
}
break;
case 3:
try {
for (var _m = __values(fromEnum(a)), _o = _m.next(); !_o.done; _o = _m.next()) {
var h = _o.value;
if (h.item == null) {
if (!b.contains(h)) {
b.add_1(h);
c.add(h);
}
}
}
}
catch (e_16_1) {
e_16 = { error: e_16_1 };
}
finally {
try {
if (_o && !_o.done && (_c = _m.return))
_c.call(_m);
}
finally {
if (e_16)
throw e_16.error;
}
}
break;
case 4:
try {
for (var _p = __values(fromEnum(a)), _q = _p.next(); !_q.done; _q = _p.next()) {
var i = _q.value;
if (i.item == null || (i.series == d.series && i.item != null && !Base.equalsStatic(i.item, d.item))) {
if (!b.contains(i)) {
b.add_1(i);
c.add(i);
}
}
}
}
catch (e_17_1) {
e_17 = { error: e_17_1 };
}
finally {
try {
if (_q && !_q.done && (_d = _p.return))
_d.call(_p);
}
finally {
if (e_17)
throw e_17.error;
}
}
break;
case 5:
try {
for (var _r = __values(fromEnum(a)), _t = _r.next(); !_t.done; _t = _r.next()) {
var j = _t.value;
if (j.item == null || (j.series != null && j.series != d.series) || (j.item != null && !Base.equalsStatic(j.item, d.item))) {
if (!b.contains(j)) {
b.add_1(j);
c.add(j);
}
}
}
}
catch (e_18_1) {
e_18 = { error: e_18_1 };
}
finally {
try {
if (_t && !_t.done && (_e = _r.return))
_e.call(_r);
}
finally {
if (e_18)
throw e_18.error;
}
}
break;
case 6:
try {
for (var _u = __values(fromEnum(a)), _v = _u.next(); !_v.done; _v = _u.next()) {
var k = _v.value;
if (k.item != null) {
if (!b.contains(k)) {
b.add_1(k);
c.add(k);
}
}
}
}
catch (e_19_1) {
e_19 = { error: e_19_1 };
}
finally {
try {
if (_v && !_v.done && (_f = _u.return))
_f.call(_u);
}
finally {
if (e_19)
throw e_19.error;
}
}
break;
case 7:
try {
for (var _w = __values(fromEnum(a)), _x = _w.next(); !_x.done; _x = _w.next()) {
var l = _x.value;
if (l.item != null || l.series != d.series) {
if (!b.contains(l)) {
b.add_1(l);
c.add(l);
}
}
}
}
catch (e_20_1) {
e_20 = { error: e_20_1 };
}
finally {
try {
if (_x && !_x.done && (_g = _w.return))
_g.call(_w);
}
finally {
if (e_20)
throw e_20.error;
}
}
break;
}
};
SeriesViewer.prototype.hp = function (a, b, c) {
var d = new List$1(ChartSelection.$, 0);
switch (c) {
case 1:
case 2:
d.add(((function () {
var $ret = new ChartSelection();
$ret.item = b;
return $ret;
})()));
break;
case 3:
case 4:
case 5:
d.add(((function () {
var $ret = new ChartSelection();
$ret.item = b;
$ret.series = a;
return $ret;
})()));
break;
case 6:
case 7:
d.add(((function () {
var $ret = new ChartSelection();
$ret.series = a;
return $ret;
})()));
break;
}
return d;
};
SeriesViewer.prototype.tp = function (a) {
this.bq.f$at(this, a);
};
SeriesViewer.prototype.tq = function () {
this.bq.f$au(this);
};
SeriesViewer.prototype.to = function (a) {
this.bq.f$as(this, a);
};
SeriesViewer.prototype.tt = function (a) {
this.bq.f$at(this, a);
this.rb(a);
};
SeriesViewer.prototype.ts = function (a) {
this.bq.f$o(this, a, true, false);
};
SeriesViewer.prototype.tr = function (a) {
a = { $type: Point_$type, x: a.x - this.y9.left, y: a.y - this.y9.top };
var b = this.yl(a);
if (this.g3) {
this.oz(b);
}
else {
var c = this.cd;
var d = c == 2 || c == 3 || c == 4;
if (d) {
this.t3(b);
for (var e = 0; e < this.b9.count; e++) {
var f = this.b9._inner[e];
f.s6(b);
if (f.isStacked) {
f.qh(function (g) {
if (g.ei) {
g.qf(function (h) {
h.s6(b);
return true;
});
}
g.s6(b);
return true;
});
}
if (f.ei) {
f.qf(function (g) {
g.s6(b);
return true;
});
}
}
}
}
};
SeriesViewer.prototype.s1 = function (a, b, c, d) {
if (this.seriesMouseMove != null) {
this.seriesMouseMove(this, new ChartMouseEventArgs(this, a, b, c, d));
}
};
SeriesViewer.prototype.sx = function (a, b, c, d) {
if (this.seriesMouseEnter != null) {
this.seriesMouseEnter(this, new ChartMouseEventArgs(this, a, b, c, d));
}
};
SeriesViewer.prototype.sy = function (a, b, c, d) {
if (this.seriesMouseLeave != null) {
this.seriesMouseLeave(this, new ChartMouseEventArgs(this, a, b, c, d));
}
};
SeriesViewer.prototype.qc = function () {
if (this.em) {
this.em = false;
if (this.viewerManipulationEnding != null) {
var a = new SeriesViewerManipulationEventArgs();
a.isDragZoom = true;
this.viewerManipulationEnding(this, a);
}
}
};
SeriesViewer.prototype.gr = function (a) {
if (this.el) {
this.el = false;
if (this.viewerManipulationEnding != null) {
var b = new SeriesViewerManipulationEventArgs();
var c = this.y8(a);
b.isDragSelect = true;
b.dragSelectRectangle = c;
this.viewerManipulationEnding(this, b);
if (b.isDragSelectCancelled) {
return true;
}
}
}
return false;
};
SeriesViewer.prototype.get_y9 = function () {
return this.yq;
};
Object.defineProperty(SeriesViewer.prototype, "y9", {
get: function () {
return this.get_y9();
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "yv", {
get: function () {
return this.yo;
},
set: function (a) {
this.yo = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.get_fn = function () {
return false;
};
Object.defineProperty(SeriesViewer.prototype, "fn", {
get: function () {
return this.get_fn();
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.y1 = function (a, b, c) {
if (c.isEmpty) {
return c;
}
var d = c;
var e = b;
var f = (d.left - e.left) / e.width;
var g = (d.top - e.top) / e.height;
var h = (d.right - e.left) / e.width;
var i = (d.bottom - e.top) / e.height;
f = a.left + f * a.width;
g = a.top + g * a.height;
h = a.left + h * a.width;
i = a.top + i * a.height;
return new Rect(0, f, g, h - f, i - g);
};
SeriesViewer.prototype.get_yu = function () {
if (this.ej) {
this.ej = false;
var a = this.yz(this.y9, this.yv, this.yr);
this.yn = a;
}
return this.yn;
};
Object.defineProperty(SeriesViewer.prototype, "yu", {
get: function () {
return this.get_yu();
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.yz = function (a, b, c) {
var d = b;
var e = c;
var f = a;
if (f.isEmpty) {
return Rect.empty;
}
if (d.isEmpty) {
return a;
}
var g = (d.left - f.left) / f.width;
var h = (d.right - f.left) / f.width;
var i = (d.top - f.top) / f.height;
var j = (d.bottom - f.top) / f.height;
g = f.left + (g - e.left) / e.width * f.width;
h = f.left + (h - e.left) / e.width * f.width;
i = f.top + (i - e.top) / e.height * f.height;
j = f.top + (j - e.top) / e.height * f.height;
var k = new Rect(0, g, i, h - g, j - i);
k.intersect(f);
return k;
};
SeriesViewer.prototype.yt = function (a) {
this.ej = true;
if (this.fj()) {
if (a.isEmpty) {
return Rect.empty;
}
var b = void 0;
if (a.width > a.height) {
var c = intDivide(truncate((a.width - a.height)), 2);
b = new Rect(0, a.left + c, a.top, a.height, a.height);
}
else {
var d = intDivide(truncate((a.height - a.width)), 2);
b = new Rect(0, a.left, a.top + d, a.width, a.width);
}
return b;
}
return Rect.empty;
};
SeriesViewer.prototype.y0 = function () {
return this.y9;
};
SeriesViewer.prototype.tz = function (a) {
a.o6 = this.y9;
};
Object.defineProperty(SeriesViewer.prototype, "j4", {
get: function () {
return this.j0;
},
set: function (a) {
this.j0 = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.r7 = function (a, b) {
if (!b.isEmpty) {
this.yq = b;
this.yo = this.yt(this.yq);
this.dw.et(this.yq);
}
if (this.fj()) {
if (this.actualSyncLink != null) {
this.ud(this.yr, false);
}
}
this.re(a, b);
if (this.fa) {
this.br.updateScrollbars(this, this.yr, this.yr, a, b);
}
};
SeriesViewer.prototype.cv = function () {
return this.cu;
};
SeriesViewer.prototype.ov = function (a, b) {
var c = false;
c = true;
if (this.y9.containsPoint(a)) {
if (!this.es) {
this.es = true;
if (this.plotAreaMouseEnter != null) {
var d = this.b0(a, false, c);
d.isDuringManipulation = b;
this.plotAreaMouseEnter(this, d);
}
}
else {
this.es = true;
if (this.plotAreaMouseOver != null) {
var e = this.b0(a, false, c);
e.isDuringManipulation = b;
this.plotAreaMouseOver(this, e);
}
}
}
else {
if (this.es) {
this.es = false;
if (this.plotAreaMouseLeave != null) {
var f = this.b0(a, false, c);
f.isDuringManipulation = b;
this.plotAreaMouseLeave(this, f);
}
}
}
};
Object.defineProperty(SeriesViewer.prototype, "a7", {
get: function () {
return this.a5;
},
set: function (a) {
var b = this.a5;
this.a5 = a;
if (b != this.a5) {
this.sr("ContentHitTestMode", enumGetBox(ChartHitTestMode_$type, b), enumGetBox(ChartHitTestMode_$type, this.a5));
}
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.s3 = function () {
this.a6 = this.a8();
};
SeriesViewer.prototype.a8 = function () {
if (!this.f3) {
return 1;
}
return this.bq.f$a(this);
};
Object.defineProperty(SeriesViewer.prototype, "a6", {
get: function () {
return this.a4;
},
set: function (a) {
var b = this.a4;
this.a4 = a;
if (b != this.a4) {
this.sr("ActualContentHitTestMode", enumGetBox(ChartHitTestMode_$type, b), enumGetBox(ChartHitTestMode_$type, this.a4));
}
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.queueForAnimationIdle = function (a, b) {
this.eg.j(a, b);
};
SeriesViewer.prototype.getAnimationIdleVersionNumber = function () {
return this.eg.f();
};
SeriesViewer.prototype.isAnimationActive = function () {
for (var a = 0; a < this.b9.count; a++) {
if (this.b9._inner[a].d4()) {
return true;
}
}
if (this.dy.f()) {
return true;
}
return false;
};
SeriesViewer.prototype.rj = function (a) {
this.rr();
};
SeriesViewer.prototype.qw = function () {
this.rr();
};
SeriesViewer.prototype.rr = function () {
if (!this.isAnimationActive()) {
this.eg.h();
}
};
SeriesViewer.prototype.st = function (a) {
if (this.seriesAnimating != null) {
this.seriesAnimating(a);
}
};
SeriesViewer.prototype.gf = function () {
return this.gg() || this.gh();
};
SeriesViewer.prototype.onDetachedFromUI = function () {
this.ep = true;
this.dw.c5();
SyncManager.e(this);
};
SeriesViewer.prototype.onAttachedToUI = function () {
this.ep = false;
this.dw.cz();
SyncManager.c(this);
};
Object.defineProperty(SeriesViewer.prototype, "dm", {
get: function () {
return this.dh;
},
set: function (a) {
if (this.dm != a) {
var b = this.dh;
this.dh = a;
if (this.f3) {
this.bq.f$aj(this);
}
if (b == 1 && this.dh != 1) {
this.qc();
}
if (b == 3 && this.dh != 3) {
this.gr(Rect.empty);
}
}
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.q6 = function (a) {
this.oz(this.yl(a));
};
SeriesViewer.prototype.q7 = function (a, b) {
var c = false;
c = false;
this.oz({ $type: Point_$type, x: NaN, y: NaN });
if (this.es) {
this.es = false;
if (this.plotAreaMouseLeave != null) {
var d = this.b0(a, false, c);
d.isDuringManipulation = b;
this.plotAreaMouseLeave(this, d);
}
}
};
SeriesViewer.prototype.gt = function (a, b) {
return this.bq.f$h(this, a, b);
};
SeriesViewer.prototype.qp = function (a) {
this.bq.f$r(this, a);
};
SeriesViewer.prototype.gs = function (a) {
return this.bq.f$g(this, a);
};
Object.defineProperty(SeriesViewer.prototype, "e9", {
get: function () {
return this.ek;
},
set: function (a) {
this.ek = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.get_f4 = function () {
return this.fd || this.hc();
};
Object.defineProperty(SeriesViewer.prototype, "f4", {
get: function () {
return this.get_f4();
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.qr = function (a) {
this.bq.f$t(this, a);
};
Object.defineProperty(SeriesViewer.prototype, "fi", {
get: function () {
return this.ek;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.rb = function (a) {
this.bq.f$ah(this, a);
};
SeriesViewer.prototype.qs = function (a, b) {
this.bq.f$u(this, a, b);
};
SeriesViewer.prototype.qq = function (a) {
this.bq.f$s(this, a);
};
Object.defineProperty(SeriesViewer.prototype, "gu", {
get: function () {
return this.ex;
},
set: function (a) {
this.ex = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.r2 = function (a) {
this.bq.f$ao(this, a);
};
SeriesViewer.prototype.ra = function (a) {
this.bq.f$ag(this, a);
};
SeriesViewer.prototype.r3 = function (a, b, c, d) {
this.bq.f$ap(this, a, b, c, d);
};
SeriesViewer.prototype.q9 = function (a) {
this.bq.f$af(this, a);
};
SeriesViewer.prototype.rz = function (a, b, c, d) {
this.bq.f$al(this, a, b, c, d);
};
SeriesViewer.prototype.q5 = function (a) {
this.bq.f$ac(this, a);
};
SeriesViewer.prototype.q8 = function (a) {
this.bq.f$ae(this, a);
};
SeriesViewer.prototype.qv = function (a) {
this.bq.f$v(this, a);
};
SeriesViewer.prototype.ry = function (a, b, c, d) {
this.bq.f$ak(this, a, b, c, d);
};
SeriesViewer.prototype.rt = function () {
this.ev = false;
};
SeriesViewer.prototype.qy = function (a) {
this.dw.em(a.height);
};
SeriesViewer.prototype.pk = function () {
if (this.ek) {
this.oz({ $type: Point_$type, x: NaN, y: NaN });
this.dw.ck();
}
this.ek = false;
};
SeriesViewer.prototype.qi = function (a, b) {
this.bq.f$q(this, a, b);
};
SeriesViewer.prototype.dk = function (a) {
var b = this.dw.k != null && this.dw.k.al ? this.dl : this.di;
if (b != 4) {
return b;
}
return this.dw.m(a);
};
SeriesViewer.prototype.r1 = function (a, b) {
this.e2 = false;
if (!this.e3) {
this.oz({ $type: Point_$type, x: NaN, y: NaN });
if (a) {
this.e3 = true;
this.ev = true;
if (this.fk) {
this.bq.f$y(this, b);
}
if (this.viewerManipulationStarting != null) {
var c = new SeriesViewerManipulationEventArgs();
c.isZoomPan = true;
this.viewerManipulationStarting(this, c);
}
}
}
this.bq.f$an(this);
};
SeriesViewer.prototype.r0 = function () {
if (this.e3) {
this.e3 = false;
if (this.viewerManipulationEnding != null) {
var a = new SeriesViewerManipulationEventArgs();
a.isZoomPan = true;
this.viewerManipulationEnding(this, a);
}
}
this.bq.f$am(this);
};
SeriesViewer.prototype.tw = function () {
this.bq.f$av(this);
};
SeriesViewer.prototype.o4 = function () {
if (this.e2) {
this.qm();
}
this.bq.f$n(this);
};
SeriesViewer.prototype.oy = function () {
this.ox();
};
SeriesViewer.prototype.ox = function () {
if (this.f3) {
this.bq.f$k(this);
}
};
SeriesViewer.prototype.r5 = function () {
};
SeriesViewer.prototype.o3 = function (a, b, c, d, e) {
};
SeriesViewer.prototype.f7 = function (a) {
return false;
};
SeriesViewer.prototype.s7 = function () {
};
SeriesViewer.prototype.s5 = function () {
for (var a = 0; a < this.b9.count; a++) {
this.b9._inner[a].r8(false);
}
this.pf(false, false, true);
};
SeriesViewer.prototype.qh = function (a, b) {
this.bq.f$p(this, a, b);
};
SeriesViewer.prototype.g0 = function () {
return false;
};
Object.defineProperty(SeriesViewer.prototype, "g6", {
get: function () {
return this.ey;
},
set: function (a) {
this.ey = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.qg = function (a, b, c) {
this.bq.f$o(this, a, b, c);
};
SeriesViewer.prototype.t8 = function (a, b) {
if (b.propertyName == SyncSettings.$$p[0]) {
SyncManager.b(this, b.oldValue, b.newValue);
}
};
SeriesViewer.prototype.t7 = function (a, b) {
var e_21, _a;
if (a != null) {
a.as(this);
a.propertyUpdated = delegateRemove(a.propertyUpdated, this.propertyUpdated);
}
if (b != null) {
b.al(this);
b.propertyUpdated = delegateCombine(b.propertyUpdated, this.propertyUpdated);
}
try {
for (var _b = __values(fromEnum(this.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
c.c4 = this.actualSyncLink;
c.dc = this;
}
}
catch (e_21_1) {
e_21 = { error: e_21_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_21)
throw e_21.error;
}
}
};
SeriesViewer.prototype.oz = function (a) {
if (this.fa) {
this.br.onCrosshairMoved(this.yj(a));
}
this.actualSyncLink.an(this, a);
};
SeriesViewer.prototype.ud = function (a, b) {
this.ue(a, b, !b);
};
SeriesViewer.prototype.ue = function (a, b, c) {
if (!b) {
this.actualSyncLink.au(this, a, c);
}
else {
if (!this.gg() && !this.gh()) {
return;
}
var d = !a.isEmpty && !isNaN_(a.x) && !isNaN_(a.y) && !isNaN_(a.width) && !isNaN_(a.height);
var e = a;
if (d && !this.g2) {
if (e.width < this.io) {
return;
}
else if (e.height < this.im) {
return;
}
}
if (d && !this.gg()) {
e = new Rect(0, 0, a.y, 1, a.height);
}
if (d && !this.gh()) {
e = new Rect(0, a.x, 0, a.width, 1);
}
this.actualSyncLink.at(this, e);
}
};
SeriesViewer.prototype.r6 = function (a, b) {
if (!b) {
this.actualSyncLink.ap(this, a);
}
else {
if (!this.gg() && !this.gh()) {
return;
}
var c = !a.isEmpty && !isNaN_(a.x) && !isNaN_(a.y) && !isNaN_(a.width) && !isNaN_(a.height);
var d = a;
if (c && !this.gg()) {
d = new Rect(0, 0, a.y, 1, a.height);
}
if (c && !this.gh()) {
d = new Rect(0, a.x, 0, a.width, 1);
}
this.actualSyncLink.ap(this, d);
}
};
Object.defineProperty(SeriesViewer.prototype, "ga", {
get: function () {
return this.actualSyncLink != null;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype._hl = function () {
var _a, _b, a, e_22_1;
var e_22, _c;
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
if (this.actualSyncLink == null) {
return [2 /*return*/, undefined];
}
_d.label = 1;
case 1:
_d.trys.push([1, 6, 7, 8]);
_a = __values(fromEnum(this.actualSyncLink.ai)), _b = _a.next();
_d.label = 2;
case 2:
if (!!_b.done)
return [3 /*break*/, 5];
a = _b.value;
return [4 /*yield*/, a];
case 3:
_d.sent();
_d.label = 4;
case 4:
_b = _a.next();
return [3 /*break*/, 2];
case 5: return [3 /*break*/, 8];
case 6:
e_22_1 = _d.sent();
e_22 = { error: e_22_1 };
return [3 /*break*/, 8];
case 7:
try {
if (_b && !_b.done && (_c = _a.return))
_c.call(_a);
}
finally {
if (e_22)
throw e_22.error;
}
return [7 /*endfinally*/];
case 8: return [2 /*return*/];
}
});
};
SeriesViewer.prototype.hl = function () {
var _this = this;
return toEnum(function () { return _this._hl(); });
};
SeriesViewer.prototype.yl = function (a) {
a = { $type: Point_$type, x: a.x + this.y9.left, y: a.y + this.y9.top };
var b = this.yu;
var c = ViewportUtils.b(a.x, this.yr, this.y9, this.yv);
var d = ViewportUtils.g(a.y, this.yr, this.y9, this.yv);
return { $type: Point_$type, x: c, y: d };
};
SeriesViewer.prototype.yj = function (a) {
var b = this.yu;
var c = ViewportUtils.e(a.x, this.yr, this.y9, this.yv);
var d = ViewportUtils.i(a.y, this.yr, this.y9, this.yv);
return { $type: Point_$type, x: c, y: d };
};
SeriesViewer.prototype.y8 = function (a) {
if (a.isEmpty) {
return Rect.empty;
}
var b = this.yl({ $type: Point_$type, x: a.left, y: a.top });
var c = this.yl({ $type: Point_$type, x: a.right, y: a.bottom });
return new Rect(0, b.x, b.y, c.x - b.x, c.y - b.y);
};
SeriesViewer.prototype.yw = function (a) {
var b = this.yj({ $type: Point_$type, x: a.left, y: a.top });
var c = this.yj({ $type: Point_$type, x: a.right, y: a.bottom });
return new Rect(0, b.x, b.y, c.x - b.x, c.y - b.y);
};
SeriesViewer.prototype.s2 = function (a, b) {
if (this.windowRectChanged != null && Rect.l_op_Inequality(a, b)) {
this.windowRectChanged(this, new RectChangedEventArgs(a, b));
}
};
SeriesViewer.prototype.rx = function (a, b) {
this.s2(a, b);
};
SeriesViewer.prototype.rs = function (a, b) {
if (this.sizeChanged != null && Size.l_op_Inequality(a, b)) {
this.sizeChanged(this, new RectChangedEventArgs(new Rect(1, 0, 0, a), new Rect(1, 0, 0, b)));
}
this.qe(b);
};
SeriesViewer.prototype.gw = function (a, b) {
if (a.width != b.width || a.height != b.height || a.x != b.x || a.y != b.y) {
return true;
}
return false;
};
SeriesViewer.prototype.sc = function (a, b) {
if (this.actualWindowRectChanged != null && this.gw(a, b)) {
this.actualWindowRectChanged(this, new RectChangedEventArgs(a, b));
}
};
SeriesViewer.prototype.uf = function (a) {
if (isNaN_(a) || isInfinity(a)) {
a = 0.05;
}
var b = this.iu() - a;
var c = this.iu() - a;
var d = this.ik + (a / 2);
var e = this.il + (a / 2);
this.za = new Rect(0, d, e, b, c);
};
SeriesViewer.prototype.ug = function (a) {
this.uf(a * -1);
};
SeriesViewer.prototype.te = function () {
this.dw.d5();
};
SeriesViewer.prototype.sp = function (a, b) {
if (this.gridAreaRectChanged != null && Rect.l_op_Inequality(a, b)) {
this.gridAreaRectChanged(this, new RectChangedEventArgs(a, b));
}
};
SeriesViewer.prototype.get_f6 = function () {
return false;
};
Object.defineProperty(SeriesViewer.prototype, "f6", {
get: function () {
return this.get_f6();
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.re = function (a, b) {
this.sp(a, b);
if (this.f3) {
this.bq.f$ar(this);
}
if (this.f6 && (Rect.l_op_Equality(a, null) || a.isEmpty || a.width == 0 || a.height == 0)) {
this.ud(this.za, false);
}
else {
this.pp();
}
if (a.isEmpty || a.width == 0 || a.height == 0) {
this.p0();
}
};
SeriesViewer.prototype.pt = function () {
this.pp();
};
Object.defineProperty(SeriesViewer.prototype, "io", {
get: function () {
return this.h0;
},
set: function (a) {
var b = this.h0;
this.h0 = a;
this.sr("ActualWindowRectMinWidth", b, this.h0);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "im", {
get: function () {
return this.hz;
},
set: function (a) {
var b = this.hz;
this.hz = a;
this.sr("ActualWindowRectMinHeight", b, this.hz);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "syncChannel", {
get: function () {
return this._syncChannel;
},
set: function (a) {
this._syncChannel = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "actualSyncLink", {
get: function () {
return this.c4;
},
set: function (a) {
var b = this.c4;
this.c4 = a;
this.sr("ActualSyncLink", b, this.c4);
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.pr = function () {
this.dw.d6();
};
SeriesViewer.prototype.qn = function () {
this.e2 = true;
};
SeriesViewer.prototype.ql = function () {
this.e2 = false;
};
SeriesViewer.prototype.qm = function () {
if (this.e2) {
if (this.e3) {
this.e3 = false;
if (!this.em) {
if (this.viewerManipulationEnding != null) {
var a = new SeriesViewerManipulationEventArgs();
a.isZoomPan = true;
this.viewerManipulationEnding(this, a);
}
this.ev = false;
}
}
}
};
Object.defineProperty(SeriesViewer.prototype, "dp", {
get: function () {
return this.dw.i().a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.t4 = function (a) {
if (this.dp != null) {
this.dp.mobileMode = a;
}
};
Object.defineProperty(SeriesViewer.prototype, "db", {
get: function () {
return this.da;
},
set: function (a) {
this.da = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.dc = function () {
if (this.dd == 0) {
return 1;
}
return this.dd;
};
SeriesViewer.prototype.fe = function () {
return this.dm == 0 && !this.ex && !this.ey;
};
SeriesViewer.prototype.e6 = function () {
if (this.actualSyncLink != null && this.actualSyncLink.ai.count > 0) {
var a = true;
a = this.fe();
if (!a) {
return false;
}
for (var b = 0; b < this.actualSyncLink.ai.count; b++) {
if (!this.actualSyncLink.ai.item(b).fe()) {
return false;
}
}
return true;
}
else {
return this.fe();
}
};
SeriesViewer.prototype.os = function () {
if (this.dm == 2) {
this.dw.bw();
this.dm = 0;
this.r0();
this.r6(Rect.empty, true);
if (this.c9 == 1) {
this.ud(this.zb, true);
}
}
if (this.dm == 1 || this.dm == 3) {
this.dw.bw();
this.dm = 0;
this.r0();
this.dw.ci();
this.r6(Rect.empty, true);
}
};
SeriesViewer.prototype.notifyCrosshairUpdate = function () {
};
SeriesViewer.prototype.ua = function (a, b) {
var c = this.io;
var d = this.im;
this.za = new Rect(0, this.ik, this.il, MathUtil.e(a, c, 1), MathUtil.e(b, d, 1));
};
SeriesViewer.prototype.ub = function (a, b, c, d) {
if (!MathUtil.b(a) || a < 0 || a >= 1) {
a = this.ik;
}
if (!MathUtil.b(b) || b < 0 || b >= 1) {
b = this.il;
}
if (!MathUtil.b(d)) {
d = this.iv();
}
if (!MathUtil.b(c)) {
c = this.iu();
}
this.za = new Rect(0, a, b, MathUtil.e(c, this.io, 1), MathUtil.e(d, this.im, 1));
};
SeriesViewer.prototype.iu = function () {
return 1;
};
SeriesViewer.prototype.iv = function () {
return 1;
};
SeriesViewer.prototype.jb = function () {
if (this.jw > 0) {
return this.jw;
}
var a = Rect.l_op_Inequality(this.y9, null) && !this.y9.isEmpty && MathUtil.b(this.y9.width);
var b = MathUtil.b(this.jy);
if (b && a) {
var c = this.jy / this.y9.width;
if (c <= 0 || c >= 1) {
c = 0.0001;
}
return c;
}
return 0.0001;
};
SeriesViewer.prototype.ja = function () {
if (this.jv > 0) {
return this.jv;
}
var a = Rect.l_op_Inequality(this.y9, null) && !this.y9.isEmpty && MathUtil.b(this.y9.height);
var b = MathUtil.b(this.jx);
if (b && a) {
var c = this.jx / this.y9.height;
if (c <= 0 || c >= 1) {
c = 0.0001;
}
return c;
}
return 0.0001;
};
SeriesViewer.prototype.r8 = function (a, b, c, d) {
var e_23, _a, e_24, _b, e_25, _c;
switch (b) {
case SeriesViewer.$$p[49]:
this.dw.dm();
break;
case SeriesViewer.$$p[46]:
this.dw.dm();
break;
case SeriesViewer.$$p[61]:
this.db = this.dc();
break;
case "HorizontalViewScrollbarMode":
this.cx = this.cz;
if (this.fc || this.f3) {
this.br.onHorizontalScrollbarModeChanged(this.cx);
}
break;
case "VerticalViewScrollbarMode":
this.cy = this.c0;
if (this.fc || this.f3) {
this.br.onVerticalScrollbarModeChanged(this.cy);
}
break;
case "ActualContentHitTestMode":
this.p8();
break;
case "ContentHitTestMode":
this.s3();
break;
case SeriesViewer.$$p[48]:
this.dw.dk(c, d);
this.dw.dm();
break;
case SeriesViewer.$$p[45]:
this.dw.dg(c, d);
this.dw.dm();
break;
case "TitleTextStyle":
case "TitleTextColor":
case "SubtitleTextStyle":
case "SubtitleTextColor":
case "TitleTopMargin":
case "TitleLeftMargin":
case "TitleRightMargin":
case "TitleBottomMargin":
case "SubtitleTopMargin":
case "SubtitleLeftMargin":
case "SubtitleRightMargin":
case "SubtitleBottomMargin":
this.dw.dm();
break;
case SeriesViewer.$$p[31]:
case SeriesViewer.$$p[32]:
case SeriesViewer.$$p[33]:
this.dw.de();
break;
case "PixelScalingRatio":
if (isNaN_(DeviceUtils.a(this.i8))) {
this.po();
}
else {
this.ij = DeviceUtils.a(this.i8);
}
break;
case "InteractionPixelScalingRatio":
this.ii = this.i6;
break;
case "ActualPixelScalingRatio":
this.dw.dt();
break;
case SeriesViewer.$$p[17]:
this.dw.cs();
break;
case "ActualSyncLink":
this.t7(typeCast(SyncLink.$, c), typeCast(SyncLink.$, d));
break;
case SeriesViewer.$$p[3]:
if (!this.fq) {
this.hd = true;
}
if (this.ze == 0) {
this.ff = true;
}
else {
this.ff = this.e4;
}
if (this.f3) {
this.bq.f$ar(this);
}
break;
case "CrosshairPoint":
if (this.f3) {
if (this.gq) {
this.t3(this.yi);
}
this.bq.f$ar(this);
}
this.notifyCrosshairUpdate();
break;
case SeriesViewer.$$p[57]:
if (this.actualSyncLink != null) {
this.j3++;
this.ud(d, false);
this.j3--;
}
if (!this.za.equals1(c) && this.j3 == 0) {
this.rx(c, this.za);
}
this.pp();
break;
case SeriesViewer.$$p[53]:
this.ik = this.jt;
break;
case SeriesViewer.$$p[54]:
this.il = this.ju;
break;
case "ActualWindowPositionVertical":
case "ActualWindowPositionHorizontal":
if (!this.g8) {
this.ua(this.iu(), this.iv());
}
break;
case SeriesViewer.$$p[56]:
case SeriesViewer.$$p[60]:
this.io = this.jb();
break;
case SeriesViewer.$$p[55]:
case SeriesViewer.$$p[59]:
this.im = this.ja();
break;
case SeriesViewer.$$p[18]:
this.dw.c8();
break;
case SeriesViewer.$$p[14]:
this.dy.r = this.ka;
break;
case SeriesViewer.$$p[41]:
this.d0.r = this.ke;
break;
case SeriesViewer.$$p[9]:
this.dx.r = this.j7;
break;
case SeriesViewer.$$p[39]:
if (this.f3) {
var e = this.d8;
e.dismissHighlightDelay = this.kd;
}
break;
case SeriesViewer.$$p[13]:
if (this.f3) {
var f = this.d7;
f.dismissHighlightDelay = this.j9;
}
break;
case SeriesViewer.$$p[8]:
if (this.f3) {
var g = this.d6;
g.dismissHighlightDelay = this.j6;
}
break;
case SeriesViewer.$$p[24]:
this.t6();
break;
case "ActualWindowRect":
this.ej = true;
if (this.gw(c, d)) {
this.ok(c, d);
}
if (d.width == 1 && d.height == 1 && c.isEmpty) {
this.hg = true;
}
this.sc(c, d);
break;
case SeriesViewer.$$p[28]:
this.dw.dd(d);
break;
case SeriesViewer.$$p[51]:
this.e5 = this.he;
break;
case SeriesViewer.$$p[62]:
this.j4 = this.kf;
this.ox();
break;
case SeriesViewer.$$p[30]:
this.bq.f$ai(this);
break;
case "HighlightingMode":
case "HighlightingBehavior":
this.cc = this.cf();
if (this.f3) {
var h = this.d7;
h.retainMainShapes = this.cd == 3;
h.isExclusiveHighlight = this.cd == 1;
}
break;
case "SelectionMode":
this.cp = this.cs();
if (this.cp == 1 && this.selectedSeriesItems.count > 0) {
this.selectedSeriesItems.clear();
}
if (this.f3) {
var i = this.d8;
}
break;
case "SelectionBehavior":
this.cl = this.cn();
if (this.f3) {
var j = this.d8;
}
break;
case "LegendItemBadgeShape":
try {
for (var _d = __values(fromEnum(this.b9)), _e = _d.next(); !_e.done; _e = _d.next()) {
var k = _e.value;
k.legendItemBadgeShape = this.bu;
}
}
catch (e_23_1) {
e_23 = { error: e_23_1 };
}
finally {
try {
if (_e && !_e.done && (_a = _d.return))
_a.call(_d);
}
finally {
if (e_23)
throw e_23.error;
}
}
break;
case "LegendItemBadgeMode":
try {
for (var _f = __values(fromEnum(this.b9)), _g = _f.next(); !_g.done; _g = _f.next()) {
var l = _g.value;
l.be = this.bt;
}
}
catch (e_24_1) {
e_24 = { error: e_24_1 };
}
finally {
try {
if (_g && !_g.done && (_b = _f.return))
_b.call(_f);
}
finally {
if (e_24)
throw e_24.error;
}
}
break;
case SeriesViewer.$$p[1]:
case SeriesViewer.$$p[23]:
case SeriesViewer.$$p[21]:
case SeriesViewer.$$p[22]:
case SeriesViewer.$$p[20]:
try {
for (var _h = __values(fromEnum(this.b9)), _j = _h.next(); !_j.done; _j = _h.next()) {
var m = _j.value;
m.qv();
}
}
catch (e_25_1) {
e_25 = { error: e_25_1 };
}
finally {
try {
if (_j && !_j.done && (_c = _h.return))
_c.call(_h);
}
finally {
if (e_25)
throw e_25.error;
}
}
break;
case "HorizontalViewScrollbarCornerRadius":
case "HorizontalViewScrollbarFill":
case "HorizontalViewScrollbarMaxOpacity":
case "HorizontalViewScrollbarOutline":
case "HorizontalViewScrollbarStrokeThickness":
case "VerticalViewScrollbarCornerRadius":
case "VerticalViewScrollbarFill":
case "VerticalViewScrollbarMaxOpacity":
case "VerticalViewScrollbarOutline":
case "VerticalViewScrollbarStrokeThickness":
if (this.f3) {
this.br.updateBarAppearance(this, this.x5, this.yf, this.x6, this.yg, this.i3, this.jp, this.i2, this.jo);
}
break;
case "HorizontalViewScrollbarHeight":
case "HorizontalViewScrollbarInset":
case SeriesViewer.lu:
case "HorizontalViewScrollbarTrackStartInset":
case "HorizontalViewScrollbarTrackEndInset":
if (this.f3) {
this.br.updateBarDimensions(this, this.i0, this.iz, this.i1, this.fo, this.i5, this.i4, this.js, this.jm, this.jn, this.hf, this.jr, this.jq);
}
break;
case "VerticalViewScrollbarPosition":
if (this.f3) {
this.br.updateVerticalScrollbarPosition(this.c3);
}
break;
case "HorizontalViewScrollbarPosition":
if (this.f3) {
this.br.updateHorizontalScrollbarPosition(this.cw);
}
break;
}
if (this.gc && this.bn != null) {
this.bo.onTargetPropertyChanged(this, b, c, d);
}
};
Object.defineProperty(SeriesViewer.prototype, "fy", {
get: function () {
return this.cd == 2 || this.cd == 3 || this.cd == 4;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "gq", {
get: function () {
return this.cd == 2 || this.cd == 3 || this.cd == 4;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.t3 = function (a) {
var _this = this;
var b = 1.7976931348623157E+308;
var c = null;
for (var d = 0; d < this.b9.count; d++) {
var e = this.b9._inner[d];
if (e.ev) {
continue;
}
if (e.ef && e.el) {
continue;
}
if (e.isStacked) {
e.qh(function (f) {
var g = _this.oi(f, b, c, a);
if (g == null) {
return true;
}
b = g.c;
c = g.d;
if (f.ei) {
f.qf(function (h) {
var i = _this.oi(h, b, c, a);
if (i == null) {
return true;
}
b = i.c;
c = i.d;
return true;
});
}
return true;
});
}
if (e.ei) {
e.qf(function (f) {
var g = _this.oi(f, b, c, a);
if (g == null) {
return true;
}
b = g.c;
c = g.d;
return true;
});
}
var f = this.oi(e, b, c, a);
if (f == null) {
continue;
}
b = f.c;
c = f.d;
}
this.b5 = c;
};
SeriesViewer.prototype.oi = function (a, b, c, d) {
var e = a.wr(d);
var f = a.ww(d, true, true);
if (isNaN_(f.x) || isNaN_(f.y)) {
return null;
}
var g = (e.x - f.x) * (e.x - f.x) + (e.y - f.y) * (e.y - f.y);
if (g < b) {
b = g;
c = a;
}
return new Tuple$2(Number_$type, Series.$, b, c);
};
SeriesViewer.prototype.t6 = function () {
this.e1 = this.zf == 0;
this.dw.ds();
this.t5();
this.dw.ep();
this.pr();
this.p6();
};
SeriesViewer.prototype.p8 = function () {
this.dw.cy();
};
SeriesViewer.prototype.t5 = function () {
if (this.dp == null) {
return;
}
this.dp.visibility = this.zf;
this.dp.isZoomable = this.gf();
};
Object.defineProperty(SeriesViewer.prototype, "y2", {
get: function () {
return this.yp;
},
set: function (a) {
var b = this.yp;
this.yp = a;
if (this.yp.isEmpty) {
this.dw.cm();
}
else {
this.dw.eq(this.y9, this.y5(this.y2));
this.dw.ef();
this.sr("PreviewRect", b, this.yp);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "selectedSeriesItems", {
get: function () {
return this._selectedSeriesItems;
},
set: function (a) {
this._selectedSeriesItems = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "focusedSeriesItems", {
get: function () {
return this._focusedSeriesItems;
},
set: function (a) {
this._focusedSeriesItems = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.rg = function (a, b) {
if (this.selectedSeriesItemsChanged != null) {
this.selectedSeriesItemsChanged(a, b);
}
};
SeriesViewer.prototype.qt = function (a, b) {
if (this.focusedSeriesItemsChanged != null) {
this.focusedSeriesItemsChanged(a, b);
}
};
SeriesViewer.prototype.ty = function () {
this.ik = this.yr.x;
this.il = this.yr.y;
};
SeriesViewer.prototype.ok = function (a, b) {
this.hg = false;
this.hu = dateNow();
if (this.fx) {
for (var c = 0; c < this.b9.count; c++) {
this.b9._inner[c].pg();
}
this.d7.clear();
}
if (this.dy.f()) {
this.dy.w();
}
var d = this.g8;
this.g8 = true;
this.ty();
this.g8 = d;
this.dw.cn();
this.dw.es(this.yr);
if (this.fa) {
this.br.updateScrollbars(this, a, this.yr, this.y9, this.y9);
}
this.p9(a, b);
};
SeriesViewer.prototype.gx = function () {
return this.cq != 1;
};
SeriesViewer.prototype.p9 = function (a, b) {
};
SeriesViewer.prototype.y5 = function (a) {
if (this.y9.isEmpty) {
return Rect.empty;
}
var b = this.y9;
var c = b.left + (b.width * (a.left - this.yr.left) / this.yr.width);
var d = b.top + (b.height * (a.top - this.yr.top) / this.yr.height);
var e = b.left + (b.width * (a.right - this.yr.left) / this.yr.width);
var f = b.top + (b.height * (a.bottom - this.yr.top) / this.yr.height);
return new Rect(0, c, d, e - c, f - d);
};
SeriesViewer.prototype.ss = function () {
if (this.refreshCompleted != null && !this.destroyed) {
this.refreshCompleted(this, new RefreshCompletedEventArgs());
}
};
SeriesViewer.prototype.rw = function (a) {
this.t5();
};
Object.defineProperty(SeriesViewer.prototype, "np", {
get: function () {
return this.km;
},
set: function (a) {
var b = this.km;
this.km = a;
this.sr("TitleTextStyle", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "nd", {
get: function () {
return this.kl;
},
set: function (a) {
var b = this.kl;
this.kl = a;
this.sr("SubtitleTextStyle", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "yd", {
get: function () {
return this.xs;
},
set: function (a) {
var b = this.xs;
this.xs = a;
this.sr("TitleTextColor", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "yc", {
get: function () {
return this.xr;
},
set: function (a) {
var b = this.xr;
this.xr = a;
this.sr("SubtitleTextColor", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jk", {
get: function () {
return this.ig;
},
set: function (a) {
var b = this.ig;
this.ig = a;
this.sr("TitleTopMargin", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "ji", {
get: function () {
return this.id;
},
set: function (a) {
var b = this.id;
this.id = a;
this.sr("TitleLeftMargin", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jj", {
get: function () {
return this.ie;
},
set: function (a) {
var b = this.ie;
this.ie = a;
this.sr("TitleRightMargin", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jh", {
get: function () {
return this.ic;
},
set: function (a) {
var b = this.ic;
this.ic = a;
this.sr("TitleBottomMargin", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jg", {
get: function () {
return this.ib;
},
set: function (a) {
var b = this.ib;
this.ib = a;
this.sr("SubtitleTopMargin", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "je", {
get: function () {
return this.h9;
},
set: function (a) {
var b = this.h9;
this.h9 = a;
this.sr("SubtitleLeftMargin", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jf", {
get: function () {
return this.ia;
},
set: function (a) {
var b = this.ia;
this.ia = a;
this.sr("SubtitleRightMargin", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jd", {
get: function () {
return this.h8;
},
set: function (a) {
var b = this.h8;
this.h8 = a;
this.sr("SubtitleBottomMargin", b, a);
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.zc = function () {
return this.dw.fm();
};
SeriesViewer.prototype.zd = function () {
return this.dw.fn();
};
SeriesViewer.prototype.a1 = function (a) {
return this.dw.c(a);
};
SeriesViewer.prototype.a2 = function (a) {
return this.dw.d(a);
};
SeriesViewer.prototype.getFontHeight = function () {
return this.dw.bc;
};
SeriesViewer.prototype.get_gp = function () {
return false;
};
Object.defineProperty(SeriesViewer.prototype, "gp", {
get: function () {
return this.get_gp();
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.qk = function () {
};
SeriesViewer.prototype.provideContainer = function (a) {
this.dw.c3(a);
};
SeriesViewer.prototype.qj = function (a, b) {
this.dw.c4(a, b);
};
SeriesViewer.prototype.notifyContainerResized = function () {
this.dw.cx();
};
SeriesViewer.prototype.yx = function () {
return this.dw.fe();
};
SeriesViewer.prototype.o5 = function () {
this.dw.b8();
};
SeriesViewer.prototype.yk = function () {
return this.dw.fb();
};
SeriesViewer.prototype.d2 = function () {
return this.dw.t();
};
SeriesViewer.prototype.d1 = function () {
return this.dw.q();
};
SeriesViewer.prototype.xy = function () {
return this.dw.e3();
};
SeriesViewer.prototype.xz = function () {
return this.dw.e6();
};
SeriesViewer.prototype.on = function (a) {
this.dw.bs(a);
};
SeriesViewer.prototype.s9 = function (a) {
this.dw.d1(a);
};
Object.defineProperty(SeriesViewer.prototype, "gm", {
get: function () {
return this.ew;
},
set: function (a) {
var b = this.ew;
this.ew = a;
if (b != this.ew) {
this.dw.cu(this.ew);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "e4", {
get: function () {
return this.ei;
},
set: function (a) {
var b = this.ei;
this.ei = a;
if (b != this.ei) {
this.dw.bn(this.ei);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "syncSettings", {
get: function () {
return this._syncSettings;
},
set: function (a) {
this._syncSettings = a;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.om = function (a) {
this.dw.bq(a);
};
SeriesViewer.prototype.tb = function (a) {
this.dw.d2(a);
};
SeriesViewer.prototype.p5 = function (source_, a, b, c) {
if (source_.dataView && source_.dataSource) {
source_ = source_.dataView();
}
;
var d = this.actualSyncLink.ag(source_);
if (d == null) {
return;
}
d.handleCollectionChanged(new NotifyCollectionChangedEventArgs(2, 2, c, b, a));
};
SeriesViewer.prototype.pw = function (source_) {
if (source_.dataView && source_.dataSource) {
source_ = source_.dataView();
}
;
var a = this.actualSyncLink.ag(source_);
if (a == null) {
return;
}
a.handleCollectionChanged(new NotifyCollectionChangedEventArgs(0, 4));
};
SeriesViewer.prototype.p3 = function (source_, a, b) {
if (source_.dataView && source_.dataSource) {
source_ = source_.dataView();
}
;
var c = this.actualSyncLink.ag(source_);
if (c == null) {
return;
}
c.handleCollectionChanged(new NotifyCollectionChangedEventArgs(1, 0, b, a));
};
SeriesViewer.prototype.p4 = function (source_, a, b) {
if (source_.dataView && source_.dataSource) {
source_ = source_.dataView();
}
;
var c = this.actualSyncLink.ag(source_);
if (c == null) {
return;
}
c.handleCollectionChanged(new NotifyCollectionChangedEventArgs(1, 1, b, a));
};
SeriesViewer.prototype.destroy = function () {
this.destroyed = true;
var a = new List$1(Series.$, 0);
for (var b = 0; b < this.series.count; b++) {
a.add(this.series._inner[b]);
}
for (var c = 0; c < a.count; c++) {
if (a._inner[c].cw != null) {
a._inner[c].cw.as();
}
this.series.remove(a._inner[c]);
this.ta(a._inner[c].name, true);
a._inner[c].itemsSource = null;
a._inner[c].rr(null, null);
}
this.o2();
this.tc();
this.onDetachedFromUI();
this.dw.c3(null);
};
SeriesViewer.prototype.o2 = function () {
};
SeriesViewer.prototype.tn = function (source_) {
if (source_.dataView && source_.dataSource) {
source_ = source_.dataView();
}
;
this.kg = source_;
this.t2();
};
SeriesViewer.prototype.tc = function () {
this.kg = null;
this.t2();
};
SeriesViewer.prototype.tl = function (a, source_) {
if (source_.dataView && source_.dataSource) {
source_ = source_.dataView();
}
;
if (stringIsNullOrEmpty(a) == false) {
if (!this.hh.containsKey(a)) {
this.hh.addItem(a, source_);
}
else {
this.hh.item(a, source_);
}
}
this.t2();
};
SeriesViewer.prototype.ta = function (a, b) {
if (stringIsNullOrEmpty(a) == false) {
if (this.hh.containsKey(a)) {
this.hh.removeItem(a);
}
}
if (!b) {
this.t2();
}
};
SeriesViewer.prototype.tk = function (a, b) {
if (a.itemsSource != b) {
a.itemsSource = b;
}
};
SeriesViewer.prototype.t1 = function (a) {
if (!this.gj) {
return;
}
if (typeCast(Series.$, a) !== null) {
var b = a;
if (this.hh.containsKey(b.name)) {
var c = this.hh.item(b.name);
this.tk(b, c);
}
else {
this.tk(b, this.kg);
}
}
if (typeCast(CategoryAxisBase.$, a) !== null) {
var d = a;
if (this.hh.containsKey(d.name)) {
var e = this.hh.item(d.name);
if (d.itemsSource != e) {
d.itemsSource = e;
}
}
else {
if (d.itemsSource != this.kg) {
d.itemsSource = this.kg;
}
}
}
};
SeriesViewer.prototype.t2 = function () {
var e_26, _a;
if (!this.gj) {
return;
}
try {
for (var _b = __values(fromEnum(this.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
this.t1(a);
}
}
catch (e_26_1) {
e_26 = { error: e_26_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_26)
throw e_26.error;
}
}
};
Object.defineProperty(SeriesViewer.prototype, "jl", {
get: function () {
return this.ih;
},
set: function (a) {
this.ih = a;
this.pr();
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "i7", {
get: function () {
return this.h5;
},
set: function (a) {
this.h5 = a;
this.pr();
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "jc", {
get: function () {
return this.h7;
},
set: function (a) {
this.h7 = a;
this.pr();
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "ir", {
get: function () {
return this.h3;
},
set: function (a) {
this.h3 = a;
this.pr();
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "iq", {
get: function () {
return this.h2;
},
set: function (a) {
this.h2 = a;
this.pr();
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "ip", {
get: function () {
return this.h1;
},
set: function (a) {
this.h1 = a;
this.pr();
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.gz = function () {
return false;
};
Object.defineProperty(SeriesViewer.prototype, "fu", {
get: function () {
return this.eo;
},
set: function (a) {
var b = this.eo;
this.eo = a;
this.sr("IsAntiAliasingEnabledDuringInteraction", b, this.eo);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "i8", {
get: function () {
return this.h6;
},
set: function (a) {
var b = this.h6;
this.h6 = a;
this.sr("PixelScalingRatio", b, this.h6);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "i6", {
get: function () {
return this.h4;
},
set: function (a) {
var b = this.h4;
this.h4 = a;
this.sr("InteractionPixelScalingRatio", b, this.h4);
},
enumerable: false,
configurable: true
});
SeriesViewer.de = function (a, b) {
var c = new CoercionInfo();
c.b = a;
c.a = null;
var d = FastItemsSource.f(a);
if (d.d == null) {
return c;
}
if (b != null) {
var methods_ = b;
var key_ = d.d;
var val_ = null;
if (typeof methods_[key_] != 'undefined') {
val_ = methods_[key_];
}
;
c.b = d.c;
c.a = val_;
}
else if (d.d == "defaultDateParse") {
var e = defaultDVDateParse;
c.b = d.c;
c.a = e;
}
return c;
};
Object.defineProperty(SeriesViewer.prototype, "md", {
get: function () {
return this.kk;
},
set: function (a) {
this.kk = a;
if (this.dp == null) {
return;
}
this.dp.backgroundImageUri = this.kk;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "ij", {
get: function () {
return this.hw;
},
set: function (a) {
var b = this.hw;
this.hw = a;
this.sr("ActualPixelScalingRatio", b, this.hw);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "ii", {
get: function () {
return this.hv;
},
set: function (a) {
var b = this.hv;
this.hv = a;
this.sr("ActualInteractionPixelScalingRatio", b, this.hv);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "yr", {
get: function () {
return this.ym;
},
set: function (a) {
var b = Rect.l_op_Inequality(this.ym, a);
if (b) {
var c = this.ym;
this.ym = a;
this.sr("ActualWindowRect", c, a);
}
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.yy = function () {
return this.yr;
};
SeriesViewer.prototype.pp = function () {
if (this.fp) {
return;
}
this.yr = this.ys();
};
SeriesViewer.prototype.y3 = function () {
return Rect.empty;
};
SeriesViewer.prototype.ys = function () {
var a = this.za.left;
var b = this.za.top;
var c = this.za.width;
var d = this.za.height;
if (this.db == 1) {
a = Math.min(1, Math.max(0, this.za.left));
c = Math.min(1, Math.max(0, this.za.width));
}
if (this.db == 1) {
b = Math.min(1, Math.max(0, this.za.top));
d = Math.min(1, Math.max(0, this.za.height));
}
return new Rect(0, a, b, c, d);
};
SeriesViewer.prototype.ki = function (a, b) {
return this.dw.bm(a, b, this.ij);
};
Object.defineProperty(SeriesViewer.prototype, "ik", {
get: function () {
return this.hx;
},
set: function (a) {
var b = this.hx;
this.hx = a;
this.sr("ActualWindowPositionHorizontal", b, this.hx);
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "il", {
get: function () {
return this.hy;
},
set: function (a) {
var b = this.hy;
this.hy = a;
this.sr("ActualWindowPositionVertical", b, this.hy);
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.p7 = function () {
if (this.e1 && this.dp != null) {
this.dp.surfaceIsDirty = true;
this.dp.doRefresh(false);
}
this.oy();
this.p1();
};
SeriesViewer.prototype.p6 = function () {
if (this.e1 && this.dp != null) {
this.dp.surfaceIsDirty = true;
this.dp.doRefresh(false);
}
this.oy();
};
SeriesViewer.prototype.flush = function () {
this.pf(true, true, true);
};
SeriesViewer.prototype.pf = function (a, b, c) {
this.a3.y();
if (a) {
this.dw.ca();
this.a3.y();
}
for (var d = 0; d < this.b9.count; d++) {
var e = this.b9._inner[d];
e.q7();
}
if (c) {
this.al.l();
}
if (b) {
this.dw.a.l();
}
this.hg = true;
};
SeriesViewer.prototype.hc = function () {
return false;
};
SeriesViewer.prototype.s6 = function (a, b) {
if (this.ur != null) {
this.tx(this.ur);
this.ur = null;
this.bc = null;
}
this.ur = a;
this.bc = this.a3.k(2, a, b);
};
SeriesViewer.prototype.tx = function (a) {
this.a3.ad(2, a);
this.ur = null;
this.bc = null;
};
SeriesViewer.prototype.o0 = function () {
this.a3.ac(2, this.ur, this.bc, false);
};
SeriesViewer.prototype.qx = function () {
var a = false;
var b = false;
var c = false;
for (var d = 0; d < this.b9.count; d++) {
var e = this.b9._inner[d];
if (e.e4) {
a = true;
}
if (e.e5) {
b = true;
}
if (e.ev) {
c = true;
}
}
this.fv = a;
this.fw = b;
this.ft = c;
};
Object.defineProperty(SeriesViewer.prototype, "gb", {
get: function () {
return this.e1;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.oo = function () {
this.dw.bt();
for (var a = 0; a < this.b9.count; a++) {
this.b9._inner[a].q4();
}
};
SeriesViewer.prototype.gi = function () {
return this.dw.an();
};
SeriesViewer.prototype.j8 = function () {
var a = this.j2;
this.j2++;
return a;
};
SeriesViewer.prototype.d5 = function () {
if (this.np == null || this.dw.j.ae == null) {
return null;
}
return FontUtil.toFontInfo(this.dw.j.ae, this.np);
};
SeriesViewer.prototype.d4 = function () {
if (this.nd == null || this.dw.j.ae == null) {
return null;
}
return FontUtil.toFontInfo(this.dw.j.ae, this.nd);
};
SeriesViewer.prototype.t0 = function () {
var a = false;
a = this.e4;
this.fq = true;
this.ff = (a && !this.hd) || this.ze == 0;
this.fq = false;
};
SeriesViewer.prototype.sw = function () {
if (this.seriesDataUpdated != null) {
this.seriesDataUpdated(this, EventArgs.empty);
}
};
SeriesViewer.prototype.p0 = function () {
for (var a = 0; a < this.hn.count; a++) {
this.hn._inner[a].notifySeriesCollectionChanged();
}
};
SeriesViewer.prototype.p1 = function () {
for (var a = 0; a < this.hn.count; a++) {
this.hn._inner[a].notifySeriesDataChanged();
}
this.notifySeriesDataChanged();
};
SeriesViewer.prototype.p2 = function (a) {
for (var b = 0; b < this.hn.count; b++) {
this.hn._inner[b].notifyVisualPropertiesChanged(a);
}
};
SeriesViewer.prototype.pz = function (a) {
for (var b = 0; b < this.hn.count; b++) {
this.hn._inner[b].notifyCursorPositionChanged(a);
}
};
SeriesViewer.prototype.attachDataLegend = function (a) {
this.hn.add(a);
};
SeriesViewer.prototype.detachDataLegend = function (a) {
this.hn.remove(a);
};
Object.defineProperty(SeriesViewer.prototype, "isDetached", {
get: function () {
return this.destroyed || this.ep;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.getDataLegendSeries = function () {
var a = 0;
for (var b = 0; b < this.b9.count; b++) {
if (this.b9._inner[b].isStacked) {
this.b9._inner[b].qh(function (c) {
if (c.isUsableInLegend) {
a++;
}
if (c.ei) {
c.qf(function (d) {
if (d.isUsableInLegend) {
a++;
}
return true;
});
}
return true;
});
}
else if (this.b9._inner[b].ei) {
if (this.b9._inner[b].isUsableInLegend) {
a++;
}
this.b9._inner[b].qf(function (c) {
if (c.isUsableInLegend) {
a++;
}
return true;
});
}
else {
if (this.b9._inner[b].isUsableInLegend) {
a++;
}
}
}
var c = new Array(a);
var d = 0;
for (var e = 0; e < this.b9.count; e++) {
if (this.b9._inner[e].isStacked) {
this.b9._inner[e].qh(function (f) {
if (f.isUsableInLegend) {
c[d] = f;
d++;
}
if (f.ei) {
f.qf(function (g) {
if (g.isUsableInLegend) {
c[d] = g;
d++;
}
return true;
});
}
return true;
});
}
else if (this.b9._inner[e].ei) {
if (this.b9._inner[e].isUsableInLegend) {
c[d] = this.b9._inner[e];
d++;
}
this.b9._inner[e].qf(function (f) {
if (f.isUsableInLegend) {
c[d] = f;
d++;
}
return true;
});
}
else {
if (this.b9._inner[e].isUsableInLegend) {
c[d] = this.b9._inner[e];
d++;
}
}
}
return c;
};
SeriesViewer.prototype.ol = function (a) {
var e_27, _a;
var b = this.y8(a);
var c = new List$1(ChartSelection.$, 0);
try {
for (var _b = __values(fromEnum(this.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var d = _c.value;
d.qi(b, c, this.cm);
}
}
catch (e_27_1) {
e_27 = { error: e_27_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_27)
throw e_27.error;
}
}
if (c.count == 0) {
return;
}
c = this.hr(c, this.cm);
c = this.hs(c, this.cm);
var e = this.ho(this.selectedSeriesItems, c, this.cm);
for (var f = 0; f < e.count; f++) {
this.selectedSeriesItems.remove(e._inner[f]);
}
for (var g = 0; g < c.count; g++) {
this.selectedSeriesItems.add(c._inner[g]);
}
};
SeriesViewer.prototype.y6 = function (a) {
a = new Rect(0, a.left, a.top, a.width, a.height);
var b = this.y9;
var c = this.yr.left + this.yr.width * (a.left - b.left) / b.width;
var d = this.yr.top + this.yr.height * (a.top - b.top) / b.height;
var e = this.yr.left + this.yr.width * (a.right - b.left) / b.width;
var f = this.yr.top + this.yr.height * (a.bottom - b.top) / b.height;
return new Rect(0, c, d, e - c, f - d);
};
SeriesViewer.prototype.y7 = function (a) {
a = new Rect(0, a.left + this.y9.left, a.top + this.y9.top, a.width, a.height);
return this.y6(a);
};
SeriesViewer.prototype.ot = function (a) {
if (this.hq == null) {
this.hq = new List$1(CaptureImageSettings.$, 0);
}
this.hq.add(a);
this.a3.z();
};
SeriesViewer.prototype.ou = function () {
var _this = this;
if (this.hq != null && this.hq.count > 0) {
var a = this.hq.toArray();
this.hq.clear();
var _loop_1 = function (c) {
var b = a[c];
this_1.kz(b, function (d, e) {
if (d != null) {
_this.sq(b, d, e);
}
});
};
var this_1 = this;
for (var c = 0; c < a.length; c++) {
_loop_1(c);
}
}
};
SeriesViewer.prototype.kz = function (a, b) {
var c = "image/png";
switch (a.a) {
case 0:
c = "image/png";
break;
case 1:
c = "image/jpeg";
break;
default: return null;
}
var d = null;
d = this.dw.j.at(this.dw.bb, this.dw.ba, this.ij, c, function (e, f) {
var _a;
if (a.b) {
var b_ = f;
if ((window.ClipboardItem)) {
navigator.clipboard.write([new window.ClipboardItem((_a = {}, _a[b_.type] = b_, _a))]);
}
}
if (b != null) {
b(e, f);
}
});
return d;
};
SeriesViewer.prototype.sq = function (a, b, c) {
if (c === void 0) {
c = null;
}
if (this.imageCaptured != null) {
var d = new ImageCapturedEventArgs(b, c, a);
this.imageCaptured(this, d);
}
};
SeriesViewer.prototype.notifySeriesDataChanged = function () {
if (this.seriesDataChanged != null) {
this.seriesDataChanged(this, null);
}
};
SeriesViewer.prototype.iw = function () {
return this.dw.ba;
};
SeriesViewer.prototype.ix = function () {
return this.dw.bb;
};
Object.defineProperty(SeriesViewer.prototype, "dg", {
get: function () {
if (this.df == null) {
this.df = this.dw.l();
}
return this.df;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.qe = function (a) {
if (this.resizeIdle != null) {
this.ht = dateNow();
if (!this.eu) {
this.eu = true;
this.dg.executeDelayed(runOn(this, this.tf), this.kb);
}
}
};
SeriesViewer.prototype.tf = function () {
var a = dateNow();
var b = timeSpanTotalMilliseconds((+a - +(this.ht)));
if (b >= this.kb) {
this.eu = false;
if (this.resizeIdle != null) {
this.resizeIdle(this, new ChartResizeIdleEventArgs());
}
}
else {
var c = Math.max(this.kb - b, 0);
this.dg.executeDelayed(runOn(this, this.tf), this.kb);
}
};
Object.defineProperty(SeriesViewer.prototype, "fs", {
get: function () {
return DVContainer.instance.checkLoaded("AnnotationFactoryManager");
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "bl", {
get: function () {
if (this.bk == null) {
if (TypeRegistrar.isRegistered("AnnotationLayerProxy")) {
this.bk = TypeRegistrar.create("AnnotationLayerProxy");
this.bk.container = this.dw.bl;
}
else {
throw new BaseError(1, "annotation layer module is not loaded, but is required.");
}
}
return this.bk;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "fl", {
get: function () {
return (TypeRegistrar.isRegistered("AnnotationLayerProxy"));
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "f0", {
get: function () {
return this.eq;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewer.prototype, "f1", {
get: function () {
return this.er;
},
enumerable: false,
configurable: true
});
SeriesViewer.prototype.oq = function () {
this.pc();
};
SeriesViewer.prototype.or = function () {
this.pd();
};
SeriesViewer.prototype.pc = function () {
this.dj = 0;
this.eq = false;
this.t9();
};
SeriesViewer.prototype.pd = function () {
this.dj = 0;
this.er = false;
this.t9();
};
SeriesViewer.prototype.mt = function () {
if (!this.fs) {
return null;
}
this.o9();
var a = this.b6();
return this.bl.saveAnnotationsToJson(a);
};
SeriesViewer.prototype.pu = function (a) {
if (!this.fs) {
return;
}
this.o9();
var b = this.b6();
this.bl.loadAnnotationsFromJson(b, a);
};
SeriesViewer.prototype.tu = function () {
if (!this.fs) {
return;
}
this.o9();
var a = this.b6();
a.gv = true;
this.dj = 3;
this.er = false;
this.eq = true;
this.t9();
};
SeriesViewer.prototype.o9 = function () {
var a = this.ao(this);
if (!a.f(10)) {
if (this.fl) {
var b = this.bl.createUserAnnotationLayer();
b.p0(this);
var c = new AutomaticSeriesRequest();
c.d = b;
c.f = true;
c.a = 10;
a.b.add(c);
var d = this.bl.createUserAnnotationToolTipLayer();
d.p0(this);
var e = new AutomaticSeriesRequest();
e.d = d;
e.e = true;
e.a = 11;
a.b.add(e);
}
}
};
SeriesViewer.prototype.tv = function () {
if (!this.fs) {
return;
}
this.o9();
var a = this.b6();
a.gv = true;
this.dj = 3;
this.eq = false;
this.er = true;
this.t9();
};
SeriesViewer.prototype.td = function () {
if (!this.fs) {
return;
}
var a = this.ao(this);
if (!a.f(10)) {
if (this.fl) {
var b = this.bl.createUserAnnotationLayer();
var c = new AutomaticSeriesRequest();
c.d = b;
c.f = true;
c.a = 10;
a.b.add(c);
}
}
var d = this.b6();
this.bl.resetUserAnnotationLayer(d);
this.dj = 0;
this.eq = false;
this.er = false;
this.t9();
};
SeriesViewer.prototype.b6 = function () {
for (var a = 0; a < this.b9.count; a++) {
var b = this.b9._inner[a];
if (b.f9) {
return b;
}
}
return null;
};
SeriesViewer.prototype.tm = function (a) {
for (var b = 0; b < this.b9.count; b++) {
var c = this.b9._inner[b];
if (c.ga) {
this.bl.setIsDisabled(c, a);
}
}
};
SeriesViewer.prototype.uc = function (a) {
this.eq = false;
this.er = false;
this.t9();
};
SeriesViewer.prototype.t9 = function () {
this.tm(this.eq || this.er);
};
SeriesViewer.prototype.pa = function () {
this.eq = false;
this.er = false;
this.t9();
};
SeriesViewer.$t = markType(SeriesViewer, 'SeriesViewer', Control.$, [INotifyPropertyChanged_$type, ILegendOwner_$type, IInternalLegendOwner_$type, IDataLegendTarget_$type, IToolbarTarget_$type, ISupportsAnimation_$type]);
SeriesViewer.vy = DependencyProperty.i("Legend", IChartLegend_$type, SeriesViewer.$, new PropertyMetadata(2, null, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("Legend", b.oldValue, b.newValue);
}));
SeriesViewer.ut = DependencyProperty.i("AnimateSeriesWhenAxisRangeChanges", Boolean_$type, SeriesViewer.$, new PropertyMetadata(2, false, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("AnimateSeriesWhenAxisRangeChanges", b.oldValue, b.newValue);
}));
SeriesViewer.wn = DependencyProperty.i("SeriesValueLayerUseLegend", Boolean_$type, SeriesViewer.$, new PropertyMetadata(2, false, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("SeriesValueLayerUseLegend", b.oldValue, b.newValue);
}));
SeriesViewer.vu = DependencyProperty.i("IsWindowSyncedToVisibleRange", Boolean_$type, SeriesViewer.$, new PropertyMetadata(2, false, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("IsWindowSyncedToVisibleRange", b.oldValue, b.newValue);
}));
SeriesViewer.wq = DependencyProperty.i("ShouldSimulateHoverMoveCrosshairPoint", Boolean_$type, SeriesViewer.$, new PropertyMetadata(2, false, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("ShouldSimulateHoverMoveCrosshairPoint", b.oldValue, b.newValue);
}));
SeriesViewer.vb = DependencyProperty.i("HighlightingMode", SeriesHighlightingMode_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(SeriesHighlightingMode_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HighlightingMode", b.oldValue, b.newValue);
}));
SeriesViewer.va = DependencyProperty.i("HighlightingFadeOpacity", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HighlightingFadeOpacity", b.oldValue, b.newValue);
}));
SeriesViewer.wk = DependencyProperty.i("SelectionMode", SeriesSelectionMode_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(SeriesSelectionMode_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("SelectionMode", b.oldValue, b.newValue);
}));
SeriesViewer.wh = DependencyProperty.i("SelectionBehavior", SeriesSelectionBehavior_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(SeriesSelectionBehavior_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("SelectionBehavior", b.oldValue, b.newValue);
}));
SeriesViewer.u3 = DependencyProperty.i("FocusMode", SeriesSelectionMode_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(SeriesSelectionMode_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("FocusMode", b.oldValue, b.newValue);
}));
SeriesViewer.vj = DependencyProperty.i("HorizontalViewScrollbarMode", SeriesViewerScrollbarMode_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(SeriesViewerScrollbarMode_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HorizontalViewScrollbarMode", b.oldValue, b.newValue);
}));
SeriesViewer.w4 = DependencyProperty.i("VerticalViewScrollbarMode", SeriesViewerScrollbarMode_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(SeriesViewerScrollbarMode_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("VerticalViewScrollbarMode", b.oldValue, b.newValue);
}));
SeriesViewer.vl = DependencyProperty.i("HorizontalViewScrollbarPosition", SeriesViewerHorizontalScrollbarPosition_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(SeriesViewerHorizontalScrollbarPosition_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HorizontalViewScrollbarPosition", b.oldValue, b.newValue);
}));
SeriesViewer.w6 = DependencyProperty.i("VerticalViewScrollbarPosition", SeriesViewerVerticalScrollbarPosition_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(SeriesViewerVerticalScrollbarPosition_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("VerticalViewScrollbarPosition", b.oldValue, b.newValue);
}));
SeriesViewer.vf = DependencyProperty.i("HorizontalViewScrollbarFill", Brush.$, SeriesViewer.$, new PropertyMetadata(2, null, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HorizontalViewScrollbarFill", b.oldValue, b.newValue);
}));
SeriesViewer.vk = DependencyProperty.i("HorizontalViewScrollbarOutline", Brush.$, SeriesViewer.$, new PropertyMetadata(2, null, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HorizontalViewScrollbarOutline", b.oldValue, b.newValue);
}));
SeriesViewer.vn = DependencyProperty.i("HorizontalViewScrollbarStrokeThickness", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HorizontalViewScrollbarStrokeThickness", b.oldValue, b.newValue);
}));
SeriesViewer.vi = DependencyProperty.i("HorizontalViewScrollbarMaxOpacity", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HorizontalViewScrollbarMaxOpacity", b.oldValue, b.newValue);
}));
SeriesViewer.ve = DependencyProperty.i("HorizontalViewScrollbarCornerRadius", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HorizontalViewScrollbarCornerRadius", b.oldValue, b.newValue);
}));
SeriesViewer.vg = DependencyProperty.i("HorizontalViewScrollbarHeight", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HorizontalViewScrollbarHeight", b.oldValue, b.newValue);
}));
SeriesViewer.vh = DependencyProperty.i("HorizontalViewScrollbarInset", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HorizontalViewScrollbarInset", b.oldValue, b.newValue);
}));
SeriesViewer.vp = DependencyProperty.i("HorizontalViewScrollbarTrackStartInset", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HorizontalViewScrollbarTrackStartInset", b.oldValue, b.newValue);
}));
SeriesViewer.vo = DependencyProperty.i("HorizontalViewScrollbarTrackEndInset", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HorizontalViewScrollbarTrackEndInset", b.oldValue, b.newValue);
}));
SeriesViewer.lu = "HorizontalViewScrollbarShouldAddAutoTrackInsets";
SeriesViewer.vm = DependencyProperty.i(SeriesViewer.lu, Boolean_$type, SeriesViewer.$, new PropertyMetadata(2, true, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr(SeriesViewer.lu, b.oldValue, b.newValue);
}));
SeriesViewer.w1 = DependencyProperty.i("VerticalViewScrollbarFill", Brush.$, SeriesViewer.$, new PropertyMetadata(2, null, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("VerticalViewScrollbarFill", b.oldValue, b.newValue);
}));
SeriesViewer.w5 = DependencyProperty.i("VerticalViewScrollbarOutline", Brush.$, SeriesViewer.$, new PropertyMetadata(2, null, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("VerticalViewScrollbarOutline", b.oldValue, b.newValue);
}));
SeriesViewer.w8 = DependencyProperty.i("VerticalViewScrollbarStrokeThickness", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("VerticalViewScrollbarStrokeThickness", b.oldValue, b.newValue);
}));
SeriesViewer.w3 = DependencyProperty.i("VerticalViewScrollbarMaxOpacity", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("VerticalViewScrollbarMaxOpacity", b.oldValue, b.newValue);
}));
SeriesViewer.w0 = DependencyProperty.i("VerticalViewScrollbarCornerRadius", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("VerticalViewScrollbarCornerRadius", b.oldValue, b.newValue);
}));
SeriesViewer.xb = DependencyProperty.i("VerticalViewScrollbarWidth", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("VerticalViewScrollbarWidth", b.oldValue, b.newValue);
}));
SeriesViewer.w2 = DependencyProperty.i("VerticalViewScrollbarInset", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("VerticalViewScrollbarInset", b.oldValue, b.newValue);
}));
SeriesViewer.xa = DependencyProperty.i("VerticalViewScrollbarTrackStartInset", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("VerticalViewScrollbarTrackStartInset", b.oldValue, b.newValue);
}));
SeriesViewer.w9 = DependencyProperty.i("VerticalViewScrollbarTrackEndInset", Number_$type, SeriesViewer.$, new PropertyMetadata(2, NaN, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("VerticalViewScrollbarTrackEndInset", b.oldValue, b.newValue);
}));
SeriesViewer.n3 = "VerticalViewScrollbarShouldAddAutoTrackInsets";
SeriesViewer.w7 = DependencyProperty.i(SeriesViewer.n3, Boolean_$type, SeriesViewer.$, new PropertyMetadata(2, true, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr(SeriesViewer.n3, b.oldValue, b.newValue);
}));
SeriesViewer.u8 = DependencyProperty.i("HighlightingBehavior", SeriesHighlightingBehavior_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(SeriesHighlightingBehavior_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("HighlightingBehavior", b.oldValue, b.newValue);
}));
SeriesViewer.vv = DependencyProperty.i("LegendHighlightingMode", LegendHighlightingMode_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(LegendHighlightingMode_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("LegendHighlightingMode", b.oldValue, b.newValue);
}));
SeriesViewer.vx = DependencyProperty.i("LegendItemBadgeShape", LegendItemBadgeShape_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(LegendItemBadgeShape_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("LegendItemBadgeShape", b.oldValue, b.newValue);
}));
SeriesViewer.vw = DependencyProperty.i("LegendItemBadgeMode", LegendItemBadgeMode_$type, SeriesViewer.$, new PropertyMetadata(2, enumGetBox(LegendItemBadgeMode_$type, 0), function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("LegendItemBadgeMode", b.oldValue, b.newValue);
}));
SeriesViewer.u0 = DependencyProperty.i("FireMouseLeaveOnManipulationStart", Boolean_$type, SeriesViewer.$, new PropertyMetadata(2, false, function (a, b) {
var c = typeCast(SeriesViewer.$, a);
c.sr("FireMouseLeaveOnManipulationStart", b.oldValue, b.newValue);
}));
SeriesViewer.y4 = Rect.empty;
SeriesViewer.$$p = markDep(DependencyProperty, PropertyMetadata, SeriesViewer, 'sr', ['ActualPlotAreaBorderBrush:xt:us', [Brush.$, null], 'Brushes:ag:uu', [BrushCollection.$, null], 'CircleMarkerTemplate:uh:uv', [DataTemplate.$, null], 'CrosshairVisibility:ze:uw', [Visibility_$type, enumGetBox(Visibility_$type, 0)], 'DefaultInteraction:di:ux', [InteractionState_$type, enumGetBox(InteractionState_$type, 4)], 'DiamondMarkerTemplate:ui:uy', [DataTemplate.$, null], 'DragModifier:xo:uz', [ModifierKeys_$type, enumGetBox(ModifierKeys_$type, 2)], 'FocusBrush:xu:u1', [Brush.$, null], 'FocusDismissDelayMilliseconds:j6:u2', [1, 200], 'FocusTransitionDuration:j7:u4', [1, 100], 'HexagonMarkerTemplate:uj:u5', [DataTemplate.$, null], 'HexagramMarkerTemplate:uk:u6', [DataTemplate.$, null], 'HighlightedValuesDisplayMode:cb:u7', [SeriesHighlightedValuesDisplayMode_$type, enumGetBox(SeriesHighlightedValuesDisplayMode_$type, 0)], 'HighlightingDismissDelayMilliseconds:j9:u9', [1, 200], 'HighlightingTransitionDuration:ka:vc', [1, 300], 'HorizontalCrosshairBrush:x4:vd', [Brush.$, null], 'InteractionOverride:dj:vq', [InteractionState_$type, enumGetBox(InteractionState_$type, 0)], 'IsPagePanningAllowed:f8:vr', [0, true], 'IsSurfaceInteractionDisabled:f9:vs', [0, false], 'IsUserAnnotationsEnabled:gd:vt', [0, false], 'MarkerAutomaticBehavior:bv:vz', [MarkerAutomaticBehavior_$type, enumGetBox(MarkerAutomaticBehavior_$type, 4)], 'MarkerBrushes:ah:v0', [BrushCollection.$, null], 'MarkerOutlines:ai:v1', [BrushCollection.$, null], 'Outlines:aj:v2', [BrushCollection.$, null], 'OverviewPlusDetailPaneVisibility:zf:v3', [Visibility_$type, enumGetBox(Visibility_$type, 1)], 'PanModifier:xp:v4', [ModifierKeys_$type, enumGetBox(ModifierKeys_$type, 4)], 'PentagonMarkerTemplate:ul:v5', [DataTemplate.$, null], 'PentagramMarkerTemplate:um:v6', [DataTemplate.$, null], 'PlotAreaBackground:x7:v7', [Brush.$, null], 'PlotAreaBorderBrush:x8:v8', [Brush.$, null], 'PreferHigherResolutionTiles:gv:v9', [0, false], 'PreviewPathFill:x9:wa', [Brush.$, null], 'PreviewPathOpacity:i9:wb', [1, NaN], 'PreviewPathStroke:ya:wc', [Brush.$, null], 'PyramidMarkerTemplate:un:wd', [DataTemplate.$, null], 'ResizeIdleMilliseconds:kb:we', [1, 250], 'RightButtonDefaultInteraction:dl:wf', [InteractionState_$type, enumGetBox(InteractionState_$type, 4)], 'ScrollbarsAnimationDuration:kc:wg', [1, 300], 'SelectionBrush:yb:wi', [Brush.$, null], 'SelectionDismissDelayMilliseconds:kd:wj', [1, 200], 'SelectionModifier:xq:wl', [ModifierKeys_$type, enumGetBox(ModifierKeys_$type, 1)], 'SelectionTransitionDuration:ke:wm', [1, 300], 'ShouldMatchZOrderToSeriesOrder:g1:wo', [0, false], 'ShouldPanOnMaximumZoom:g2:wp', [0, true], 'SquareMarkerTemplate:uo:wr', [DataTemplate.$, null], 'SubtitleHorizontalAlignment:xm:ws', [HorizontalAlignment_$type, enumGetBox(HorizontalAlignment_$type, 1)], 'Subtitle:m6:wt', [2, null], 'TetragramMarkerTemplate:up:wu', [DataTemplate.$, null], 'TitleHorizontalAlignment:xn:wv', [HorizontalAlignment_$type, enumGetBox(HorizontalAlignment_$type, 1)], 'Title:ni:ww', [2, null], 'TriangleMarkerTemplate:uq:wx', [DataTemplate.$, null], 'UseTiledZooming:he:wy', [0, false], 'VerticalCrosshairBrush:ye:wz', [Brush.$, null], 'WindowPositionHorizontal:jt:xc', [1, NaN], 'WindowPositionVertical:ju:xd', [1, NaN], 'WindowRectMinHeight:jv:xe', [1, NaN], 'WindowRectMinWidth:jw:xf', [1, NaN], 'WindowRect:za:xg', [Rect.$, new Rect(0, 0, 0, 1, 1)], 'WindowResponse:c9:xh', [WindowResponse_$type, enumGetBox(WindowResponse_$type, 1)], 'WindowSizeMinHeight:jx:xi', [1, NaN], 'WindowSizeMinWidth:jy:xj', [1, NaN], 'ZoomCoercionMode:dd:xk', [ZoomCoercionMode_$type, enumGetBox(ZoomCoercionMode_$type, 0)], 'ZoomTileCacheSize:kf:xl', [1, 30]]);
return SeriesViewer;
}(Control));
export { SeriesViewer };
/**
* @hidden
*/
var SeriesViewerView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesViewerView, _super);
function SeriesViewerView(a) {
var _this = _super.call(this) || this;
_this.p = null;
_this.a = null;
_this.n = null;
_this.o = null;
_this.g = null;
_this.b = null;
_this.ai = false;
_this.fl = null;
_this.fi = null;
_this.fh = null;
_this.fg = null;
_this.h = new SeriesViewerComponentsFromView();
_this.j = null;
_this.w = null;
_this.z = null;
_this.y = null;
_this.x = null;
_this.ao = false;
_this.ap = false;
_this.bl = null;
_this.k = null;
_this.bc = 0;
_this.bb = 0;
_this.ba = 0;
_this.fc = Rect.empty;
_this.aj = false;
_this.fj = null;
_this.fk = null;
_this.a4 = 0;
_this.a2 = 0;
_this.a3 = 0;
_this.a1 = 0;
_this.ak = true;
_this.aa = false;
_this.a5 = NaN;
_this.fd = Rect.empty;
_this.ab = false;
_this.af = false;
_this.ae = false;
_this.ax = new List$1(Series.$, 0);
_this.aw = false;
_this.ew = null;
_this.ev = null;
_this.ad = false;
_this.ac = false;
_this.ag = true;
_this.a0 = null;
_this.as = false;
_this.bj = 0;
_this.ah = true;
_this.bb = 0;
_this.ba = 0;
_this.p = a;
_this.p.yi = { $type: Point_$type, x: NaN, y: NaN };
_this.p.c9 = 1;
_this.j = new SeriesViewerViewManager(_this);
_this.fg = ((function () {
var $ret = new Line();
$ret.visibility = 1;
return $ret;
})());
_this.fh = ((function () {
var $ret = new Line();
$ret.visibility = 1;
return $ret;
})());
return _this;
}
SeriesViewerView.prototype.l = function () {
return new DOMExecutionContext(this.j.ae);
};
SeriesViewerView.prototype.cr = function () {
this.j.ba();
};
SeriesViewerView.prototype.c7 = function () {
this.p.fq = true;
this.p.ze = 1;
this.p.fq = false;
this.fi = new Path();
this.fl = new Rectangle();
this.fl._visibility = 1;
this.d9();
this.g = new SeriesCollection();
this.b = new AxisCollection();
this.a = new CanvasRenderScheduler();
this.a.o(this);
this.a.h.add(this.p.am);
if (this.p.zf == 0) {
this.cq();
}
var a = this.p;
a.windowRectChanged = delegateCombine(a.windowRectChanged, runOn(this, this.cw));
var b = this.p;
b.gridAreaRectChanged = delegateCombine(b.gridAreaRectChanged, runOn(this, this.cv));
this.o = new OverviewPlusDetailViewportHost(this);
this.ds();
};
SeriesViewerView.prototype.e = function () {
for (var a = 0; a < this.g.count; a++) {
if (this.g._inner[a].ba.a$f) {
return this.g._inner[a];
}
}
return null;
};
SeriesViewerView.prototype.cq = function () {
if (this.n == null) {
this.n = this.j.g();
}
this.p.dp.provideContext(this.z);
this.p.dp.provideContainer(this.bl);
this.p.dp.provideEventSource(this.k);
this.n.world = new Rect(0, 0, 0, 1, 1);
this.n.window = this.p.za;
this.n.surfaceViewer = TypeRegistrar.create("SeriesViewerSurfaceViewer", this.p, this);
this.n.viewScheduler = this.a;
this.ep();
var a = this.n;
a.windowChanging = delegateCombine(a.windowChanging, runOn(this, this.dr));
var b = this.n;
b.windowChanged = delegateCombine(b.windowChanged, runOn(this, this.dq));
};
SeriesViewerView.prototype.dr = function (a, b) {
var c = b.newValue;
if (this.n != null) {
c = this.n.changeRect(b.oldValue, b.newValue, this.p.gg(), this.p.gh(), this.n.world);
}
if (c.isEmpty) {
this.n.window = b.oldValue;
}
else if (!c.equals1(b.newValue)) {
this.n.window = c;
}
if (this.p.c9 == 1) {
var d = this.p.y9.width / this.p.y9.height;
c = new Rect(0, c.left / d, c.top, c.width / d, c.height);
this.p.za = c;
}
};
SeriesViewerView.prototype.dq = function (a, b) {
var c = b.newValue;
if (this.n != null) {
c = this.n.changeRect(b.oldValue, b.newValue, this.p.gg(), this.p.gh(), this.n.world);
}
if (c.isEmpty) {
c = b.oldValue;
}
else if (!c.equals1(b.newValue)) {
this.n.window = c;
}
var d = this.p.y9.width / this.p.y9.height;
c = new Rect(0, c.left / d, c.top, c.width / d, c.height);
this.p.za = c;
};
SeriesViewerView.prototype.ep = function () {
if (this.n == null) {
return;
}
if (this.p.zf != 0) {
return;
}
var a = 1;
if (this.p.y9.isEmpty == false) {
a = this.p.y9.width / this.p.y9.height;
}
var b = this.n.world;
var c = new Rect(0, 0, 0, a, 1);
this.n.world = c;
if (b.width != c.width || b.height != c.height || b.x != c.x || b.y != c.y) {
this.n.surfaceViewer.isDirty = true;
}
this.n.window = new Rect(0, this.p.za.left * a, this.p.za.top, this.p.za.width * a, this.p.za.height);
};
SeriesViewerView.prototype.cw = function (a, b) {
this.ep();
};
SeriesViewerView.prototype.cv = function (a, b) {
this.ep();
};
SeriesViewerView.prototype.ce = function (a, b, c) {
var e_28, _a;
var d = true;
try {
for (var _b = __values(fromEnum(this.p.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var e = _c.value;
if (d && e.g6) {
d = false;
if (!c.a.e) {
c.a.l(0, 0, a, b);
}
}
e.sa(new Rect(0, 0, 0, a, b), c);
}
}
catch (e_28_1) {
e_28 = { error: e_28_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_28)
throw e_28.error;
}
}
};
SeriesViewerView.prototype.d8 = function () {
this.j.bm();
};
SeriesViewerView.prototype.cg = function () {
};
SeriesViewerView.prototype.ea = function () {
this.j.bn();
};
SeriesViewerView.prototype.cn = function () {
for (var a = 0; a < this.p.b9.count; a++) {
this.p.b9._inner[a].cw.a1();
}
};
SeriesViewerView.prototype.cf = function () {
};
SeriesViewerView.prototype.ch = function () {
};
SeriesViewerView.prototype.d1 = function (a) {
var _this = this;
var b = this.g.indexOf(a);
if (b >= 0) {
this.g.removeAt(b);
}
if (a.isStacked) {
a.qh(function (c) {
c.dc = null;
b = _this.g.indexOf(c);
if (b >= 0) {
_this.g.removeAt(b);
}
if (c.ei) {
c.qf(function (d) {
d.dc = null;
b = _this.g.indexOf(d);
if (b >= 0) {
_this.g.removeAt(b);
}
return true;
});
}
return true;
});
}
if (a.ei) {
a.qf(function (c) {
c.dc = null;
b = _this.g.indexOf(c);
if (b >= 0) {
_this.g.removeAt(b);
}
return true;
});
}
this.p.s3();
a.rr(null, null);
this.df();
};
SeriesViewerView.prototype.df = function () {
if (this.p.destroyed) {
return;
}
if (this.g.count == 0) {
if (this.y != null && Rect.l_op_Inequality(this.p.y9, null) && !this.p.y9.isEmpty) {
this.eu();
}
}
this.p.al.r(this.y, this.x);
};
SeriesViewerView.prototype.eu = function () {
if (this.g.count > 0) {
return;
}
if (this.y != null && Rect.l_op_Inequality(this.p.y9, null) && !this.p.y9.isEmpty) {
if (this.p.ij != 1) {
this.y.aa();
this.y.ab(this.p.ij, this.p.ij);
}
if (!this.y.e) {
this.y.l(this.p.y9.left, this.p.y9.top, this.p.y9.width, this.p.y9.height);
}
if (this.p.ij != 1) {
this.y.z();
}
}
};
SeriesViewerView.prototype.ar = function (a) {
a.ri(a.cw.b9, this.fc);
return this.g.contains(a);
};
Object.defineProperty(SeriesViewerView.prototype, "av", {
get: function () {
return this.ai;
},
set: function (a) {
this.ai = a;
},
enumerable: false,
configurable: true
});
SeriesViewerView.prototype.bs = function (a) {
var _this = this;
if (this.p.g1) {
var b = this.p.b9.indexOf(a);
if (b < (this.p.b9.count - 1)) {
var c = this.p.b9._inner[b + 1];
var d = this.g.indexOf(c);
var e_29 = d;
if (!this.g.contains(a)) {
this.g.insert(e_29, a);
e_29++;
if (a.isStacked) {
a.qh(function (f) {
_this.g.insert(e_29, f);
e_29++;
if (f.ei) {
f.qf(function (g) {
if (!_this.g.contains(g)) {
_this.g.insert(e_29, g);
e_29++;
}
return true;
});
}
return true;
});
}
if (a.ei) {
a.qf(function (f) {
if (!_this.g.contains(f)) {
_this.g.insert(e_29, f);
e_29++;
}
return true;
});
}
}
}
}
if (!this.g.contains(a)) {
this.g.add(a);
if (a.isStacked) {
a.qh(function (f) {
_this.g.add(f);
if (f.ei) {
f.qf(function (g) {
if (!_this.g.contains(g)) {
_this.g.add(g);
}
return true;
});
}
return true;
});
}
if (a.ei) {
a.qf(function (f) {
if (!_this.g.contains(f)) {
_this.g.add(f);
}
return true;
});
}
}
this.p.s3();
a.rr(this.y, this.x);
this.p.pr();
};
SeriesViewerView.prototype.dw = function (a) {
this.x = a;
for (var b = 0; b < this.g.count; b++) {
this.g._inner[b].rr(this.y, this.x);
}
for (var c = 0; c < this.b.count; c++) {
this.b._inner[c].lb(this.y, this.x);
}
};
SeriesViewerView.prototype.b0 = function () {
};
SeriesViewerView.prototype.bw = function () {
this.ci();
this.cn();
};
SeriesViewerView.prototype.ci = function () {
this.fl._visibility = 1;
this.ct();
};
SeriesViewerView.prototype.cd = function () {
};
SeriesViewerView.prototype.du = function () {
};
SeriesViewerView.prototype.eb = function () {
this.fl._visibility = 0;
this.ct();
};
SeriesViewerView.prototype.ej = function (a) {
this.fl.o = a.top + this.p.y9.top;
this.fl.n = a.left + this.p.y9.left;
this.fl.width = a.width;
this.fl.height = a.height;
this.de();
this.fl._fill = null;
this.fl.ad = 0.5;
this.ct();
};
SeriesViewerView.prototype.bz = function () {
};
SeriesViewerView.prototype.di = function () {
};
SeriesViewerView.prototype.er = function (a, b, c, d) {
this.fh.an = a;
this.fh.ap = b;
this.fh.ao = c;
this.fh.aq = d;
this.ct();
};
SeriesViewerView.prototype.eg = function () {
this.fh._visibility = 0;
this.ct();
};
SeriesViewerView.prototype.co = function () {
if (this.fh._visibility == 0) {
this.fh._visibility = 1;
this.ct();
}
};
SeriesViewerView.prototype.ek = function (a, b, c, d) {
this.fg.an = a;
this.fg.ap = b;
this.fg.ao = c;
this.fg.aq = d;
this.ct();
};
SeriesViewerView.prototype.ec = function () {
this.fg._visibility = 0;
this.ct();
};
SeriesViewerView.prototype.cj = function () {
if (this.fg._visibility == 0) {
this.fg._visibility = 1;
this.ct();
}
};
SeriesViewerView.prototype.cm = function () {
this.fi._visibility = 1;
this.ct();
};
SeriesViewerView.prototype.e9 = function (a) {
var b = new PathFigureCollection();
var c = new PathFigure();
c._isClosed = true;
c._startPoint = { $type: Point_$type, x: a.left, y: a.top };
c._segments.add(new LineSegment(0, { $type: Point_$type, x: a.left, y: a.bottom }));
c._segments.add(new LineSegment(0, { $type: Point_$type, x: a.right, y: a.bottom }));
c._segments.add(new LineSegment(0, { $type: Point_$type, x: a.right, y: a.top }));
c._segments.add(new LineSegment(0, { $type: Point_$type, x: a.left, y: a.top }));
b.add(c);
return b;
};
SeriesViewerView.prototype.fa = function (a) {
var b = new PathFigureCollection();
var c = new PathFigure();
c._isClosed = true;
c._startPoint = { $type: Point_$type, x: a.left, y: a.top };
c._segments.add(new LineSegment(0, { $type: Point_$type, x: a.right, y: a.top }));
c._segments.add(new LineSegment(0, { $type: Point_$type, x: a.right, y: a.bottom }));
c._segments.add(new LineSegment(0, { $type: Point_$type, x: a.left, y: a.bottom }));
c._segments.add(new LineSegment(0, { $type: Point_$type, x: a.left, y: a.top }));
b.add(c);
return b;
};
SeriesViewerView.prototype.eq = function (a, b) {
b.intersect(a);
var c = new PathGeometry();
c.c = this.fa(a);
var d = new PathGeometry();
d.c = this.e9(b);
var e = new GeometryGroup();
e.d.add(c);
e.d.add(d);
this.fi.an = e;
this.de();
this.ct();
};
SeriesViewerView.prototype.ef = function () {
this.fi._visibility = 0;
this.ct();
};
SeriesViewerView.prototype.es = function (a) {
};
SeriesViewerView.prototype.dz = function (a) {
var b = this.b.indexOf(a);
this.b.removeAt(b);
a.lb(null, null);
this.d6();
this.p.ta(a.name, true);
};
SeriesViewerView.prototype.d0 = function (a) {
};
SeriesViewerView.prototype.br = function (a) {
if (!this.b.contains(a)) {
this.b.add(a);
}
a.lb(this.y, this.x);
this.d6();
};
SeriesViewerView.prototype.bo = function (a) {
};
SeriesViewerView.prototype.i = function () {
this.h.a = this.n;
return this.h;
};
SeriesViewerView.az = function (a) {
var b = a.dc.b9;
var c = new List$1(Series.$, 0);
for (var d = 0; d < b.count; d++) {
c.add(b._inner[d]);
if (b._inner[d].isStacked) {
b._inner[d].qh(function (e) {
c.add(e);
return true;
});
}
}
return c;
};
SeriesViewerView.prototype.d5 = function () {
this.p.za = new Rect(0, 0, 0, 1, 1);
};
SeriesViewerView.prototype.c3 = function (a) {
var e_30, _a, e_31, _b;
var _this = this;
if (a == this.bl) {
return;
}
if (a == null) {
if (this.k != null) {
this.k.aw();
}
this.j.bg(null);
this.w = null;
this.z = null;
this.y = null;
this.x = null;
this.k = null;
if (this.p.dp != null) {
this.p.dp.provideContext(null);
this.p.dp.provideContainer(null);
this.p.dp.provideEventSource(null);
}
return;
}
this.bl = a;
if (this.av) {
this.a.h.add(this.p.al);
}
this.j.bg(a);
this.w = this.j.t;
this.z = this.j.w;
this.y = this.j.v;
this.x = this.j.u;
this.ao = false;
try {
this.ao = (window.navigator.msPointerEnabled && window.MSGesture !== undefined);
}
catch (b) {
}
this.ap = false;
try {
this.ap = (window.PointerEvent !== undefined);
}
catch (c) {
}
if (this.ao || this.ap) {
this.aw = true;
}
this.k = this.j.f;
if (this.k != null) {
this.k.bm = this.p.y9;
this.k.ap = runOn(this, this.at);
var d = this.k;
d.onContactCompleted = delegateCombine(d.onContactCompleted, function (d, e) { return _this.c0(d, e, _this.k.am); });
var e = this.k;
e.onContactMoved = delegateCombine(e.onContactMoved, runOn(this, this.c1));
var f = this.k;
f.onContactStarted = delegateCombine(f.onContactStarted, runOn(this, this.c2));
var g = this.k;
g.onDragCompleted = delegateCombine(g.onDragCompleted, runOn(this.p, this.p.qq));
var h = this.k;
h.onFlingStarted = delegateCombine(h.onFlingStarted, runOn(this, this.al));
var i = this.k;
i.onDragDelta = delegateCombine(i.onDragDelta, function (i) { return _this.p.qr(i); });
var j = this.k;
j.onDragStarted = delegateCombine(j.onDragStarted, function (j) { return _this.p.qs(j, true); });
var k = this.k;
k.onKeyDown = delegateCombine(k.onKeyDown, runOn(this.p, this.p.gs));
var l = this.k;
l.onMouseDown = delegateCombine(l.onMouseDown, runOn(this, this.c9));
var m = this.k;
m.onMouseLeave = delegateCombine(m.onMouseLeave, runOn(this, this.da));
var n = this.k;
n.onMouseOver = delegateCombine(n.onMouseOver, runOn(this, this.db));
var o = this.k;
o.onMouseUp = delegateCombine(o.onMouseUp, runOn(this, this.dc));
var p = this.k;
p.onMouseWheel = delegateCombine(p.onMouseWheel, runOn(this.p, this.p.gt));
if (this.k.an) {
var q = this.k;
q.onZoomDelta = delegateCombine(q.onZoomDelta, function (q, r, s, t) { return _this.p.rz(q, r, s, t); });
var r = this.k;
r.onZoomStarted = delegateCombine(r.onZoomStarted, function (r, s, t, u) { return _this.p.r3(r, s, t, u); });
var s = this.k;
s.onZoomCompleted = delegateCombine(s.onZoomCompleted, function (s, t, u, v) {
if (_this.k.af) {
_this.p.rt();
}
_this.p.ry(s, t, u, v);
});
}
else {
var t = this.k;
t.onPinchDelta = delegateCombine(t.onPinchDelta, function (t, u) { return _this.p.q9(u); });
var u = this.k;
u.onPinchStarted = delegateCombine(u.onPinchStarted, function (u, v) { return _this.p.ra(u); });
var v = this.k;
v.onGestureCompleted = delegateCombine(v.onGestureCompleted, function (v, w) { return _this.p.qv(v); });
}
var w = this.k;
w.onDoubleTap = delegateCombine(w.onDoubleTap, function (w) { return _this.p.qp(w); });
var x = this.k;
x.onHold = delegateCombine(x.onHold, runOn(this, this.c6));
}
if (this.p.dp != null) {
this.p.dp.provideContext(this.z);
this.p.dp.provideContainer(a);
this.p.dp.provideEventSource(this.k);
}
try {
for (var _c = __values(fromEnum(this.b)), _d = _c.next(); !_d.done; _d = _c.next()) {
var y = _d.value;
y.bp.a8();
this.br(y);
}
}
catch (e_30_1) {
e_30 = { error: e_30_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_30)
throw e_30.error;
}
}
try {
for (var _e = __values(fromEnum(this.g)), _f = _e.next(); !_f.done; _f = _e.next()) {
var z = _f.value;
this.bs(z);
}
}
catch (e_31_1) {
e_31 = { error: e_31_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_31)
throw e_31.error;
}
}
};
SeriesViewerView.prototype.al = function (a, b, c) {
if (this.p.e9) {
return false;
}
return true;
};
SeriesViewerView.prototype.c1 = function (a, b) {
this.p.qh(a, b);
};
SeriesViewerView.prototype.c2 = function (a, b) {
this.p.bq.f$w(this.p, a, b);
};
SeriesViewerView.prototype.c6 = function (a) {
this.p.rb(a);
};
SeriesViewerView.prototype.c0 = function (a, b, c) {
this.p.qg(a, b, c);
};
SeriesViewerView.prototype.dx = function (a) {
};
SeriesViewerView.prototype.get_aq = function () {
return false;
};
Object.defineProperty(SeriesViewerView.prototype, "aq", {
get: function () {
return this.get_aq();
},
enumerable: false,
configurable: true
});
SeriesViewerView.prototype.ei = function () {
this.bc = FontUtil.getCurrentFontHeight(this.j.ae, this.p.getFontInfo());
};
SeriesViewerView.prototype.f = function (a, b, c, d) {
var _this = this;
return {
ret: ((function () { var e = _this.p.bq.f$c(_this.p, _this.g, _this.x, a, b, c, d); c = e.p5; return e.ret; })()),
p2: c
};
};
SeriesViewerView.prototype.bg = function () {
return this.bb;
};
SeriesViewerView.prototype.bf = function () {
return this.ba;
};
SeriesViewerView.prototype.cx = function () {
this.j.bd();
};
SeriesViewerView.prototype.c4 = function (a, b) {
var c = this.bb;
var d = this.ba;
if (this.bb != a) {
this.aj = true;
}
this.bb = a;
if (this.ba != b) {
this.aj = true;
}
this.ba = b;
if (this.aj) {
var e = new Size(1, c, d);
var f = new Size(1, a, b);
this.p.rs(e, f);
}
this.dm();
this.d6();
this.p.qk();
this.p.al.r(this.y, this.x);
};
SeriesViewerView.prototype.b9 = function (a) {
this.fj = a;
};
SeriesViewerView.prototype.cc = function (a) {
this.fk = a;
};
SeriesViewerView.prototype.cb = function () {
this.a.r(this.z, null);
};
SeriesViewerView.prototype.d6 = function () {
if (this.p.destroyed) {
return;
}
this.ag = true;
this.p.a3.z();
};
SeriesViewerView.prototype.b5 = function () {
var e_32, _a, e_33, _b, e_34, _c, e_35, _d;
var _this = this;
if (this.bb == 0 || this.ba == 0) {
return;
}
this.ag = false;
this.aa = false;
if (this.ak) {
this.dl();
this.dh();
this.ak = false;
this.ct();
}
var a = this.bb;
var b = this.ba;
var c = this.p.i7;
var d = this.p.jc;
var e = this.p.ir;
var f = this.p.jl;
var g = this.p.ip;
var h = this.p.iq;
if (isNaN_(g)) {
g = this.bc / 2;
}
if (isNaN_(h)) {
h = 0;
}
var i = this.p.gz();
var j = new List$1(AxisLabelPanelBase.$, 0);
try {
for (var _e = __values(fromEnum(this.b)), _f = _e.next(); !_f.done; _f = _e.next()) {
var k = _f.value;
if (k.a1 != null) {
j.add(k.a1);
k.a1.b2 = function () { return _this.aj; };
}
}
}
catch (e_32_1) {
e_32 = { error: e_32_1 };
}
finally {
try {
if (_f && !_f.done && (_a = _e.return))
_a.call(_e);
}
finally {
if (e_32)
throw e_32.error;
}
}
if (i) {
var l = false;
var m = false;
var n = false;
var o = false;
try {
for (var _g = __values(fromEnum(j)), _h = _g.next(); !_h.done; _h = _g.next()) {
var p = _h.value;
if (LabelPanelArranger.b(p) == 2 && (p.ae.a4 == null || p.ae.a4.visibility == 0)) {
l = true;
}
if (LabelPanelArranger.b(p) == 3 && (p.ae.a4 == null || p.ae.a4.visibility == 0)) {
m = true;
}
if (LabelPanelArranger.b(p) == 0 && (p.ae.a4 == null || p.ae.a4.visibility == 0)) {
n = true;
}
if (LabelPanelArranger.b(p) == 1 && (p.ae.a4 == null || p.ae.a4.visibility == 0)) {
o = true;
}
if (p.ae != null && p.ae.a4 != null) {
p.ae.a4.c = p.ae.a4.location;
}
}
}
catch (e_33_1) {
e_33 = { error: e_33_1 };
}
finally {
try {
if (_h && !_h.done && (_b = _g.return))
_b.call(_g);
}
finally {
if (e_33)
throw e_33.error;
}
}
if (l || m) {
if (!n && isNaN_(f)) {
f = g;
}
if (!o && isNaN_(e)) {
e = g;
}
}
if (o || n) {
if (!l && isNaN_(c)) {
c = h;
}
if (!m && isNaN_(d)) {
d = h;
}
}
}
if (isNaN_(f)) {
f = 0;
}
if (isNaN_(c)) {
c = 0;
}
if (isNaN_(d)) {
d = 0;
}
if (isNaN_(e)) {
e = 0;
}
var q = this.bi();
f += q;
var r = this.bh();
f += r;
var s = new Rect(0, c, f, a - (c + d), b - (f + e));
s = LabelPanelArranger.e(j, s);
var t = new Size(1, Math.max(0, a - (c + d)), Math.max(0, b - (f + e)));
this.a4 = f - (q + r);
this.a2 = c;
this.a3 = d;
this.a1 = e;
this.fc = s;
var u = ((function () {
var $ret = new LabelPanelsArrangeState();
$ret.f = c;
$ret.c = c;
$ret.a = f + t.height;
$ret.b = f + t.height;
$ret.g = c + t.width;
$ret.d = c + t.width;
$ret.h = f;
$ret.e = f;
return $ret;
})());
LabelPanelArranger.d(j, u, this.fc, function (v, w) {
if (!v.c6.equals1(w)) {
if (v.ae != null) {
v.ae.d1 = true;
}
v.c6 = w;
v.ae.bp.ao();
}
});
var v = false;
if (this.aj) {
this.aj = false;
v = true;
}
this.p.r7(this.p.y9, this.fc);
try {
for (var _j = __values(fromEnum(this.b)), _k = _j.next(); !_k.done; _k = _j.next()) {
var w = _k.value;
if (Rect.l_op_Equality(w.o6, null) || w.o6.isEmpty) {
this.aa = true;
}
if (w.o6.equals1(this.fc) && !this.j.y()) {
continue;
}
w.k3(w.o6, this.fc);
}
}
catch (e_34_1) {
e_34 = { error: e_34_1 };
}
finally {
try {
if (_k && !_k.done && (_c = _j.return))
_c.call(_j);
}
finally {
if (e_34)
throw e_34.error;
}
}
try {
for (var _l = __values(fromEnum(this.g)), _m = _l.next(); !_m.done; _m = _l.next()) {
var x = _m.value;
if (Rect.l_op_Equality(x.cw.b9, null) || x.cw.b9.isEmpty) {
this.aa = true;
}
if (x.cw.b9.equals1(this.fc) && !this.j.y()) {
continue;
}
x.ri(x.cw.b9, this.fc);
}
}
catch (e_35_1) {
e_35 = { error: e_35_1 };
}
finally {
try {
if (_m && !_m.done && (_d = _l.return))
_d.call(_l);
}
finally {
if (e_35)
throw e_35.error;
}
}
this.en();
this.dy(this.fc);
this.j.bc(false);
};
SeriesViewerView.prototype.en = function () {
if (this.p.dp != null && !this.fc.isEmpty) {
var a = this.p.dp;
var b = (this.p.e4) ? this.fc.width : Number.POSITIVE_INFINITY;
var c = (this.p.e4) ? this.fc.height : Number.POSITIVE_INFINITY;
var d = a.getDesiredSize(new Size(1, b, c));
this.p.dp.arrange(new Rect(0, this.fc.right - d.width, this.fc.bottom - d.height, d.width, d.height));
this.ep();
}
};
SeriesViewerView.prototype.v = function () {
var a = this.p.getFontInfo();
var b = this.s();
if (this.p.d5() != null) {
a = this.p.d5();
}
else if (b != null) {
a = b;
}
return a;
};
SeriesViewerView.prototype.u = function () {
var a = this.p.getFontInfo();
var b = this.r();
if (this.p.d4() != null) {
a = this.p.d4();
}
else if (b != null) {
a = b;
}
return a;
};
SeriesViewerView.prototype.e8 = function () {
var a = this.p.getFontBrush();
var b = this.e5();
if (this.p.yd != null) {
a = this.p.yd;
}
else if (b != null) {
a = b;
}
return a;
};
SeriesViewerView.prototype.e7 = function () {
var a = this.p.getFontBrush();
var b = this.e4();
if (this.p.yc != null) {
a = this.p.yc;
}
else if (b != null) {
a = b;
}
return a;
};
SeriesViewerView.prototype.bi = function () {
if (this.p.ni == null || !(typeCast(XamDataChart.$, this.p) !== null)) {
return 0;
}
var a = this.v();
var b = 0;
b = FontUtil.getCurrentFontHeight(this.j.ae, a);
var c = this.fp();
b += c.top + c.bottom;
return b;
};
SeriesViewerView.prototype.bh = function () {
if (this.p.m6 == null || !(typeCast(XamDataChart.$, this.p) !== null)) {
return 0;
}
if (!isNaN_(this.a5)) {
return this.a5;
}
var a = this.u();
this.a5 = FontUtil.getCurrentFontHeight(this.j.ae, a);
var b = this.fo();
this.a5 += b.top + b.bottom;
return this.a5;
};
SeriesViewerView.prototype.fp = function () {
var a = this.j.ce();
var b = isNaN_(this.p.jk) ? a.top : this.p.jk;
var c = isNaN_(this.p.ji) ? a.left : this.p.ji;
var d = isNaN_(this.p.jj) ? a.right : this.p.jj;
var e = isNaN_(this.p.jh) ? a.bottom : this.p.jh;
return new Thickness(1, c, b, d, e);
};
SeriesViewerView.prototype.fo = function () {
var a = this.j.cd();
var b = isNaN_(this.p.jg) ? a.top : this.p.jg;
var c = isNaN_(this.p.je) ? a.left : this.p.je;
var d = isNaN_(this.p.jf) ? a.right : this.p.jf;
var e = isNaN_(this.p.jd) ? a.bottom : this.p.jd;
return new Thickness(1, c, b, d, e);
};
SeriesViewerView.prototype.dy = function (a) {
};
SeriesViewerView.prototype.ct = function () {
if (!this.af) {
if (this.z != null) {
this.af = true;
this.a.r(this.z, null);
}
}
};
SeriesViewerView.prototype.d3 = function () {
if (this.z == null) {
return;
}
if (this.z.d) {
if (this.p.ij != 1) {
this.z.aa();
this.z.ab(this.p.ij, this.p.ij);
}
if (!this.fd.isEmpty) {
if (!this.av) {
if (!this.z.e) {
this.z.l(this.fd.left, this.fd.top, this.fd.width, this.fd.height);
}
}
}
}
this.d4();
if (this.z.d) {
if (this.p.ij != 1) {
this.z.z();
}
}
};
SeriesViewerView.prototype.isValid = function () {
return true;
};
SeriesViewerView.prototype.preRender = function () {
this.j.a6(this.bb, this.ba);
this.dv();
};
SeriesViewerView.prototype.dv = function () {
};
SeriesViewerView.prototype.d4 = function () {
if (this.z.d) {
this.fd = new Rect(0, 0, 0, this.bb, this.ba);
if (this.a0 != null && this.a0.count > 0) {
this.cl();
this.z.aa();
this.z.ah(this.p.y9);
if (!this.av) {
if (!this.z.e) {
this.z.l(this.p.y9.left, this.p.y9.top, this.p.y9.width, this.p.y9.height);
}
}
}
this.z.s(this.fg);
this.z.s(this.fh);
this.z.t(this.fi);
this.z.w(this.fl);
this.z.af(this.v());
if (this.ew != null) {
this.ew.ao = this.e8();
this.z.x(this.ew);
}
this.z.af(this.u());
if (this.ev != null) {
this.ev.ao = this.e7();
this.z.x(this.ev);
}
if (this.a0 != null && this.a0.count > 0) {
this.j.bl(this.a0);
this.z.z();
}
if (this.as) {
this.ee();
this.as = false;
this.a0.clear();
this.p.bq.f$l(this.p);
this.ct();
}
if (this.p.fa) {
if (this.fk != null) {
this.z.w(this.fk);
}
if (this.fj != null) {
this.z.w(this.fj);
}
}
}
};
SeriesViewerView.prototype.c5 = function () {
this.j.bh();
};
SeriesViewerView.prototype.cz = function () {
this.j.bf();
};
SeriesViewerView.prototype.fe = function () {
return new Rect(0, 0, 0, this.bb, this.ba);
};
SeriesViewerView.prototype.fb = function () {
return this.j.b8();
};
SeriesViewerView.prototype.d9 = function () {
this.p.uh = ((function () {
var $ret = new DataTemplate();
$ret.render = MarkerTemplates.d;
$ret.measure = MarkerTemplates.b;
return $ret;
})());
this.p.uq = ((function () {
var $ret = new DataTemplate();
$ret.render = MarkerTemplates.m;
$ret.measure = MarkerTemplates.b;
return $ret;
})());
this.p.un = ((function () {
var $ret = new DataTemplate();
$ret.render = MarkerTemplates.j;
$ret.measure = MarkerTemplates.b;
return $ret;
})());
this.p.uo = ((function () {
var $ret = new DataTemplate();
$ret.render = MarkerTemplates.k;
$ret.measure = MarkerTemplates.b;
return $ret;
})());
this.p.ui = ((function () {
var $ret = new DataTemplate();
$ret.render = MarkerTemplates.e;
$ret.measure = MarkerTemplates.b;
return $ret;
})());
this.p.ul = ((function () {
var $ret = new DataTemplate();
$ret.render = MarkerTemplates.h;
$ret.measure = MarkerTemplates.b;
return $ret;
})());
this.p.uj = ((function () {
var $ret = new DataTemplate();
$ret.render = MarkerTemplates.f;
$ret.measure = MarkerTemplates.b;
return $ret;
})());
this.p.up = ((function () {
var $ret = new DataTemplate();
$ret.render = MarkerTemplates.l;
$ret.measure = MarkerTemplates.b;
return $ret;
})());
this.p.um = ((function () {
var $ret = new DataTemplate();
$ret.render = MarkerTemplates.i;
$ret.measure = MarkerTemplates.b;
return $ret;
})());
this.p.uk = ((function () {
var $ret = new DataTemplate();
$ret.render = MarkerTemplates.g;
$ret.measure = MarkerTemplates.b;
return $ret;
})());
};
SeriesViewerView.prototype.eh = function () {
this.j.bp();
this.d7();
var a = this.bc;
this.ei();
if (a != this.bc) {
this.p.pr();
}
};
SeriesViewerView.prototype.ds = function () {
if (this.p.zf == 0) {
this.cq();
this.p.pn();
}
if (this.p.dp != null) {
var a = this.p.zf;
this.p.dp.visibility = a;
this.p.dp.doRefresh(false);
}
};
SeriesViewerView.prototype.at = function (a) {
return this.p.bq.f$i(this.p, a);
};
SeriesViewerView.prototype.db = function (a, b, c) {
this.p.bq.f$z(this.p, this.g, this.x, a, b, c);
this.p.ov(a, this.p.dm != 0 || this.p.gk);
};
SeriesViewerView.prototype.da = function (a) {
this.p.bq.f$y(this.p, a);
};
SeriesViewerView.prototype.c9 = function (a) {
this.p.bq.f$x(this.p, this.k, a);
};
SeriesViewerView.prototype.dc = function (a) {
this.p.bq.f$aa(this.p, this.k, a);
};
SeriesViewerView.prototype.d7 = function () {
};
Object.defineProperty(SeriesViewerView.prototype, "e2", {
get: function () {
return this.k.bj;
},
enumerable: false,
configurable: true
});
SeriesViewerView.prototype.et = function (a) {
if (this.k != null) {
this.k.bm = this.p.y9;
}
};
SeriesViewerView.prototype.cu = function (a) {
this.p.bq.f$ad(this.p, a);
this.p.e4 = a;
};
SeriesViewerView.prototype.bn = function (a) {
this.p.t0();
this.j.bw(a);
if (this.p.dp != null) {
this.p.dp.mobileMode = a;
}
this.eo();
};
SeriesViewerView.prototype.eo = function () {
this.p.t6();
};
Object.defineProperty(SeriesViewerView.prototype, "isDirty", {
get: function () {
return this.af;
},
set: function (a) {
this.af = a;
},
enumerable: false,
configurable: true
});
SeriesViewerView.prototype.undirty = function (a) {
this.af = false;
this.d3();
};
Object.defineProperty(SeriesViewerView.prototype, "index", {
get: function () {
return 10;
},
enumerable: false,
configurable: true
});
SeriesViewerView.prototype.postRender = function () {
};
SeriesViewerView.prototype.ca = function () {
this.d6();
};
Object.defineProperty(SeriesViewerView.prototype, "am", {
get: function () {
return this.ae;
},
enumerable: false,
configurable: true
});
SeriesViewerView.prototype.ck = function () {
this.ae = false;
this.ax.clear();
this.j.a9();
};
SeriesViewerView.prototype.ed = function () {
this.ae = true;
this.j.bo();
};
Object.defineProperty(SeriesViewerView.prototype, "ay", {
get: function () {
return this.ax;
},
enumerable: false,
configurable: true
});
SeriesViewerView.prototype.by = function (a) {
this.ax.clear();
this.j.ay();
};
SeriesViewerView.prototype.bp = function (a, b) {
this.ax.add(b);
this.j.au(a);
};
SeriesViewerView.prototype.el = function (a) {
this.j.bu(a);
};
SeriesViewerView.prototype.em = function (a) {
this.j.bv(a);
};
SeriesViewerView.prototype.bq = function (a) {
this.j.av(a);
};
SeriesViewerView.prototype.d2 = function (a) {
this.j.bk(a);
};
SeriesViewerView.prototype.dd = function (a) {
this.p.al.r(this.y, this.z);
};
SeriesViewerView.prototype.bx = function (a) {
};
SeriesViewerView.prototype.m = function (a) {
if (this.p.e4) {
return 2;
}
else {
return 1;
}
};
SeriesViewerView.prototype.c8 = function () {
if (this.k != null) {
this.k.ae = this.p.f9;
}
if (this.n != null) {
this.n.isSurfaceInteractionDisabled = this.p.f9;
}
};
SeriesViewerView.prototype.be = function (a, b) {
if (a == null || this.z == null) {
return 0;
}
this.z.af(b);
return this.z.f(a);
};
SeriesViewerView.prototype.bd = function (a, b) {
if (a == null) {
return 0;
}
var c = 0;
c = FontUtil.getCurrentFontHeight(this.j.ae, b);
return c;
};
SeriesViewerView.prototype.dm = function () {
this.ak = true;
this.d6();
this.ct();
};
SeriesViewerView.prototype.ex = function (a, b, c, d) {
if (a == null) {
return null;
}
var e = ((function () {
var $ret = new TextBlock();
$ret.al = a;
$ret.o = b.top;
return $ret;
})());
var f = this.be(e, c);
e.o = b.top;
var g = this.bd(a, c);
e.m = f;
e.l = g;
switch (d) {
case 0:
e.n = b.left;
break;
case 2:
e.n = Math.max((this.bb - b.right) - f, b.left);
break;
case 1:
case 3:
default:
var h = (this.bb / 2) - (f / 2);
h += b.left;
h -= b.right;
e.n = h;
break;
}
return e;
};
SeriesViewerView.prototype.dl = function () {
this.ew = typeCast(XamDataChart.$, this.p) !== null ? this.ex(this.p.ni, this.fp(), this.v(), this.e1()) : null;
};
SeriesViewerView.prototype.dh = function () {
this.a5 = NaN;
this.ev = typeCast(XamDataChart.$, this.p) !== null ? this.ex(this.p.m6, this.fo(), this.u(), this.e0()) : null;
if (this.ev != null) {
this.ev.o += this.bi();
}
};
SeriesViewerView.prototype.c = function (a) {
var b = this.j.c();
if (b == 0) {
var c = LabelPanelArranger.b(a.a1);
if (a.an == null) {
if (c == 4) {
return 4;
}
if (c == 5) {
return 3;
}
}
else {
if (c == 4) {
return 3;
}
if (c == 5) {
return 4;
}
}
if (c == 0) {
return 3;
}
return 4;
}
return b;
};
SeriesViewerView.prototype.d = function (a) {
var b = this.j.d();
if (b == 0) {
var c = LabelPanelArranger.b(a.a1);
if (a.an == null) {
if (c == 7) {
return 1;
}
if (c == 6) {
return 2;
}
}
else {
if (c == 7) {
return 2;
}
if (c == 6) {
return 1;
}
}
if (c == 3) {
return 2;
}
return 1;
}
return b;
};
SeriesViewerView.prototype.dn = function () {
if (!isNaN_(this.p.ii)) {
if (!isNaN_(DeviceUtils.a(this.p.i8))) {
this.p.ij = DeviceUtils.a(this.p.i8);
}
else {
this.cr();
}
}
if (!this.p.fu) {
this.j.a5();
}
};
SeriesViewerView.prototype.dp = function () {
if (!isNaN_(DeviceUtils.a(this.p.ii))) {
this.p.ij = DeviceUtils.a(this.p.ii);
}
if (!this.p.fu) {
this.j.a4();
}
};
SeriesViewerView.prototype.t = function () {
return this.j.r();
};
SeriesViewerView.prototype.e6 = function () {
return this.j.b7();
};
SeriesViewerView.prototype.q = function () {
return this.j.q();
};
SeriesViewerView.prototype.e3 = function () {
return this.j.b6();
};
SeriesViewerView.prototype.s = function () {
return this.j.p();
};
SeriesViewerView.prototype.r = function () {
return this.j.o();
};
SeriesViewerView.prototype.e5 = function () {
return this.j.b5();
};
SeriesViewerView.prototype.e4 = function () {
return this.j.b4();
};
Object.defineProperty(SeriesViewerView.prototype, "a7", {
get: function () {
return this.a2;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewerView.prototype, "a8", {
get: function () {
return this.a3;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewerView.prototype, "a9", {
get: function () {
return this.a4;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewerView.prototype, "a6", {
get: function () {
return this.a1;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewerView.prototype, "ez", {
get: function () {
return this.ew;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewerView.prototype, "ey", {
get: function () {
return this.ev;
},
enumerable: false,
configurable: true
});
SeriesViewerView.prototype.ff = function () {
return new Rect(0, 0, 0, this.bb, this.ba);
};
SeriesViewerView.prototype.fn = function () {
return this.j.cg();
};
SeriesViewerView.prototype.fm = function () {
return this.j.cf();
};
SeriesViewerView.prototype.dg = function (a, b) {
this.ac = true;
};
SeriesViewerView.prototype.dk = function (a, b) {
this.ad = true;
};
SeriesViewerView.prototype.e1 = function () {
if (this.ad) {
return this.p.xn;
}
else {
var a = 1;
switch (this.j.as()) {
case "left":
a = 0;
break;
case "right":
a = 2;
break;
}
return a;
}
};
SeriesViewerView.prototype.e0 = function () {
if (this.ac) {
return this.p.xm;
}
else {
var a = 1;
switch (this.j.ar()) {
case "left":
a = 0;
break;
case "right":
a = 2;
break;
}
return a;
}
};
SeriesViewerView.prototype.bt = function () {
if (this.ag) {
this.b5();
if (this.aa) {
this.p.a3.y();
}
if (this.ag) {
this.b5();
}
}
};
SeriesViewerView.prototype.an = function () {
if (this.p.hg) {
return false;
}
if ((dateNow().getTime() - this.p.hu.getTime()) < 300) {
return true;
}
return false;
};
SeriesViewerView.prototype.b8 = function () {
this.j.a6(this.bb, this.ba);
};
SeriesViewerView.prototype.cs = function () {
this.j.bb(this.p.f8);
};
SeriesViewerView.prototype.au = function (a) {
var b = this.p.yr;
var c = b.top > 0;
var d = b.left > 0;
var e = b.right < 1;
var f = b.bottom < 1;
var g = a.y < 0;
var h = a.y > 0;
var i = a.x < 0;
var j = a.x > 0;
if (c && g) {
return true;
}
if (d && i) {
return true;
}
if (f && h) {
return true;
}
if (j && e) {
return true;
}
return false;
};
SeriesViewerView.prototype.dt = function () {
this.j.bj();
this.p.al.r(this.y, this.x);
this.p.am.r(this.y, null);
this.p.ak.r(this.y, this.x);
this.a.r(this.z, null);
};
SeriesViewerView.prototype.b6 = function (a, b, c) {
this.as = false;
if (this.a0 == null) {
this.a0 = new List$1(ITileZoomTile_$type, 0);
}
for (var d = 0; d < this.a0.count; d++) {
while (d < this.a0.count && !a.containsKey(this.a0._inner[d].content)) {
this.a0.removeAt(d);
}
}
for (var e = 0; e < b.count; e++) {
this.a0.add(b._inner[e]);
}
this.ct();
};
SeriesViewerView.prototype.bk = function (a, b, c) {
return this.j.an(a, b, c);
};
SeriesViewerView.prototype.b3 = function () {
this.j.a2();
};
SeriesViewerView.prototype.b4 = function (a) {
this.j.a3(a);
};
SeriesViewerView.prototype.cp = function () {
if (this.a0 == null) {
return;
}
this.as = true;
this.ct();
};
SeriesViewerView.prototype.b1 = function () {
this.j.a0();
};
SeriesViewerView.prototype.bu = function () {
this.j.aw();
};
SeriesViewerView.prototype.b2 = function (a) {
this.j.a1(a);
this.p.qn();
};
SeriesViewerView.prototype.bv = function () {
this.j.ax();
this.p.ql();
};
SeriesViewerView.prototype.cl = function () {
if (this.ah) {
this.ah = false;
if (!this.y.e) {
this.y.l(this.p.y9.left, this.p.y9.top, this.p.y9.width, this.p.y9.height);
}
this.p.al.e = true;
}
};
SeriesViewerView.prototype.ee = function () {
if (!this.ah) {
this.ah = true;
this.p.al.e = false;
this.p.al.r(this.y, this.x);
}
};
SeriesViewerView.prototype.dj = function () {
};
SeriesViewerView.prototype.cy = function () {
this.j.be();
};
SeriesViewerView.prototype.de = function () {
this.fi._fill = this.p.x9 == null ? this.j.b3() : this.p.x9;
this.fi._opacity = isNaN_(this.p.i9) ? 0.1 : this.p.i9;
this.fl._stroke = this.p.ya == null ? this.j.b3() : this.p.ya;
};
SeriesViewerView.prototype.b7 = function (a) {
if (this.j.ae == null || (this.j.ae != a)) {
this.p.provideContainer(a);
}
};
SeriesViewerView.prototype.bm = function (a, b, c) {
return this.j.ao(a, b, c);
};
SeriesViewerView.$t = markType(SeriesViewerView, 'SeriesViewerView', Base.$, [ISchedulableRender_$type]);
return SeriesViewerView;
}(Base));
export { SeriesViewerView };
/**
* @hidden
*/
var OverviewPlusDetailViewportHost = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(OverviewPlusDetailViewportHost, _super);
function OverviewPlusDetailViewportHost(a) {
var _this = _super.call(this) || this;
_this.a = null;
if (a == null) {
throw new ArgumentNullException(0, "view");
}
_this.a = a;
return _this;
}
OverviewPlusDetailViewportHost.prototype.getViewInfo = function (a, b) {
a = new Rect(0, 0, 0, this.a.n.worldRectViewport.width, this.a.n.worldRectViewport.height);
b = SeriesViewer.y4;
return {
p0: a,
p1: b
};
};
OverviewPlusDetailViewportHost.prototype.getEffectiveViewport = function () {
if (!this.a.p.f6) {
if (this.a.p.yv.isEmpty) {
return this.a.p.yv;
}
return this.a.p.y1(this.a.n.previewViewportdRect, this.a.p.y9, this.a.p.yv);
}
return Rect.empty;
};
OverviewPlusDetailViewportHost.prototype.getMainContentViewport = function () {
if (!this.a.p.f6) {
if (this.a.p.yu.isEmpty) {
return this.a.p.yu;
}
return Rect.empty;
}
return Rect.empty;
};
OverviewPlusDetailViewportHost.$t = markType(OverviewPlusDetailViewportHost, 'OverviewPlusDetailViewportHost', Base.$, [IProvidesViewport_$type]);
return OverviewPlusDetailViewportHost;
}(Base));
export { OverviewPlusDetailViewportHost };
/**
* @hidden
*/
var LegendTemplates = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(LegendTemplates, _super);
function LegendTemplates() {
return _super !== null && _super.apply(this, arguments) || this;
}
LegendTemplates.af = function (a) {
var b = a.av();
switch (b) {
case 3: return LegendTemplates.y;
case 4: return LegendTemplates.aa;
case 0: return LegendTemplates.z;
case 8: return LegendTemplates.ae;
case 9: return LegendTemplates.ac;
case 5: return LegendTemplates.ah;
case 1:
case 2: return LegendTemplates.ad;
case 6:
case 7: return LegendTemplates.ab;
}
return LegendTemplates.ah;
};
LegendTemplates.a = function (a) {
return new RenderingContext(new CanvasViewRenderer(), a.context);
};
LegendTemplates.v = function (a) {
var b = typeCast(Series.$, a.series);
if (b == null || b.be == 0) {
a.thickness = Defaults.legendBadge_ShapeThickness;
}
else {
a.thickness = b.il;
}
if (a.itemBrush != null) {
a.actualItemBrush = a.itemBrush;
}
else {
if (b != null) {
a.actualItemBrush = b.vv;
}
}
if (a.outline == null) {
if (b != null) {
a.m = a.outline;
a.outline = b.vw;
}
}
};
LegendTemplates.b = function (a, b, c) {
var d = (c - b) / 2;
return a + d;
};
LegendTemplates.c = function (a, b, c) {
var d = (c - b) / 2;
return a + d;
};
LegendTemplates.u = function (a, b, c, d, e, f, g, h) {
var i = DeviceUtils.g(Defaults.legendBadge_ShapeWidth);
var j = DeviceUtils.g(Defaults.legendBadge_ShapeHeight);
var k = LegendTemplates.c(f, j, a.availableHeight);
var l = LegendTemplates.c(h, j, a.availableHeight);
var m = LegendTemplates.b(e, i, a.availableWidth);
var n = LegendTemplates.b(g, i, a.availableWidth);
var o = ((function () {
var $ret = new PathFigure();
$ret.isClosed = true;
$ret.isFilled = true;
return $ret;
})());
o._startPoint = { $type: Point_$type, x: m, y: l };
o._segments.add(new LineSegment(0, { $type: Point_$type, x: m, y: l }));
o._segments.add(new LineSegment(0, { $type: Point_$type, x: n, y: l }));
o._segments.add(new LineSegment(0, { $type: Point_$type, x: n, y: k }));
o._segments.add(new LineSegment(0, { $type: Point_$type, x: m, y: k }));
var p = new PathGeometry();
p.c.add(o);
var q = new Path();
q.an = p;
q.ad = b;
q._stroke = c;
q._fill = d;
var r = LegendTemplates.a(a);
r.t(q);
};
LegendTemplates.s = function (a) {
var b = a.data;
var c = b.series;
LegendTemplates.v(b);
var d = DeviceUtils.g(Defaults.legendBadge_ShapeWidth);
var e = DeviceUtils.g(Defaults.legendBadge_ShapeHeight);
var f = new Line();
f.an = LegendTemplates.b(0, d, a.availableWidth);
f.ap = a.availableHeight / 2;
f.ao = LegendTemplates.b(d, d, a.availableWidth);
f.aq = a.availableHeight / 2;
f._stroke = b.actualItemBrush;
if (c.be == 0) {
f.ad = Defaults.legendBadge_ShapeThickness;
}
else {
f.ad = c.il;
f.al = c.wo;
f.ak = c.wo;
f.ai = c.wm;
f.ac = c.jp;
f.am = c.wp;
}
var g = LegendTemplates.a(a);
g.s(f);
};
LegendTemplates.r = function (a, b, c) {
var d = a.data;
LegendTemplates.v(d);
var e = DeviceUtils.g(Defaults.legendBadge_ShapeWidth);
var f = DeviceUtils.g(Defaults.legendBadge_ShapeHeight);
var g = e / 2;
var h = f / 2;
var i = LegendTemplates.b(g, e, a.availableWidth);
var j = LegendTemplates.c(h, f, a.availableHeight);
var k = new EllipseGeometry();
k.e = { $type: Point_$type, x: i, y: j };
k.c = g;
k.d = h;
var l = new Path();
l.an = k;
l.ad = d.thickness;
l._stroke = d.outline;
l._fill = d.actualItemBrush;
var m = LegendTemplates.a(a);
m.t(l);
};
LegendTemplates.t = function (a, b) {
if (b === void 0) {
b = 0;
}
var c = a.data;
var d = DeviceUtils.g(Defaults.legendBadge_ShapeWidth - b);
var e = DeviceUtils.g(Defaults.legendBadge_ShapeHeight - b);
var f = new DataTemplateMeasureInfo();
f.passInfo = a.passInfo;
f.width = d;
f.height = e;
f.data = a.data;
f.context = a.context;
f.renderContext = a.renderContext;
var g = c.actualItemBrush;
var h = c.itemBrush;
var i = c.outline;
var j = c.series;
var k = j.th();
c.actualItemBrush = j.v5();
c.outline = j.v6();
if (c.itemBrush != null) {
c.actualItemBrush = c.itemBrush;
}
if (c.m != null) {
c.outline = c.m;
}
if (j.be == 1) {
c.thickness = j.iu();
}
else {
c.thickness = Defaults.series_MarkerThickness;
}
if (k != null && k.measure != null && k.render != null) {
var l = new DataTemplateRenderInfo();
l.passInfo = a.passInfo;
l.availableWidth = f.width;
l.availableHeight = f.height;
l.xPosition = (a.availableWidth / 2);
l.yPosition = (a.availableHeight / 2);
l.data = a.data;
l.context = a.context;
l.renderContext = a.renderContext;
k.render(l);
}
c.itemBrush = h;
c.actualItemBrush = g;
c.outline = i;
};
LegendTemplates.j = function (a) {
var b = a.data;
LegendTemplates.v(b);
LegendTemplates.r(a, Defaults.legendBadge_ShapeWidth, Defaults.legendBadge_ShapeHeight);
};
LegendTemplates.n = function (a) {
var b = a.data;
var c = b.series;
LegendTemplates.s(a);
if (c.be == 1) {
LegendTemplates.t(a, Defaults.legendBadge_OverlaidMarkerPadding);
}
};
LegendTemplates.o = function (a) {
LegendTemplates.t(a, 0);
};
LegendTemplates.q = function (a) {
var b = a.data;
LegendTemplates.v(b);
LegendTemplates.u(a, b.thickness, b.outline, b.actualItemBrush, 0, 0, Defaults.legendBadge_ShapeWidth, Defaults.legendBadge_ShapeHeight);
};
LegendTemplates.p = function (a) {
var b = a.data;
var c = b.series;
LegendTemplates.v(b);
if (c.be == 0) {
var d = Defaults.legendBadge_ShapeThickness;
var e = b.actualItemBrush;
var f = c.vw;
var g = Defaults.legendBadge_ShapeWidth;
var h = Defaults.legendBadge_ShapeHeight;
LegendTemplates.u(a, d, f, e, 0, 0, g, h);
}
else {
var i = Defaults.legendBadge_ShapeThickness;
var j = b.actualItemBrush;
var k = c.wg();
var l = Defaults.legendBadge_ShapeWidth / 2;
var m = Defaults.legendBadge_ShapeWidth;
var n = Defaults.legendBadge_ShapeHeight;
LegendTemplates.u(a, i, j, j, 0, 0, l, n);
LegendTemplates.u(a, i, k, k, l, 0, m, n);
}
};
LegendTemplates.i = function (a) {
var b = a.data;
LegendTemplates.v(b);
var c = 0;
var d = Defaults.legendBadge_ShapeWidth;
var e = (Defaults.legendBadge_ShapeHeight * 0.25);
var f = (Defaults.legendBadge_ShapeHeight * 0.75);
LegendTemplates.u(a, b.thickness, b.outline, b.actualItemBrush, c, e, d, f);
};
LegendTemplates.l = function (a) {
var b = a.data;
LegendTemplates.v(b);
var c = (Defaults.legendBadge_ShapeWidth * 0.25);
var d = (Defaults.legendBadge_ShapeWidth * 0.75);
var e = Defaults.legendBadge_ShapeHeight;
var f = 0;
LegendTemplates.u(a, b.thickness, b.outline, b.actualItemBrush, c, f, d, e);
};
LegendTemplates.m = function (a) {
var b = a.data;
var c = BrushUtil.j(0, 0, 0, 0);
var d = BrushUtil.j(0, 0, 0, 0);
LegendTemplates.u(a, Defaults.legendBadge_ShapeThickness, c, d, 0, 0, Defaults.legendBadge_ShapeWidth, Defaults.legendBadge_ShapeHeight);
};
LegendTemplates.k = function (a) {
};
LegendTemplates.g = function (a) {
var b = a.data;
var c = b.series;
var d = c.legendItemBadgeTemplate;
if (d == null) {
d = LegendTemplates.af(c);
}
var e = c.title;
if (e == null) {
e = "Series Title";
}
LegendItemHelper.d(a.context, a.xPosition, a.yPosition, a.availableWidth, a.availableHeight, a.data, e.toString(), d, a.passInfo, c.a5 != null && c.a5.isFinancial, c.it, c.jq);
};
LegendTemplates.resolveLegendItemTemplate = function (a) {
switch (a) {
case 0: return LegendTemplates.w;
case 1: return LegendTemplates.x;
}
return LegendTemplates.w;
};
LegendTemplates.e = function (a) {
var b = a.data;
var c = b.series;
var d = c.legendItemBadgeTemplate;
if (d == null) {
d = LegendTemplates.af(c);
}
var e = b.legendLabel != null ? b.legendLabel : b.itemLabel;
if (e == null) {
e = "Series Item";
}
LegendItemHelper.c(a.context, a.xPosition, a.yPosition, a.availableWidth, a.availableHeight, a.data, e.toString(), d, a.passInfo);
};
LegendTemplates.f = function (a) {
};
LegendTemplates.d = function (a) {
};
LegendTemplates.h = function (a) {
};
LegendTemplates.$t = markType(LegendTemplates, 'LegendTemplates');
LegendTemplates.z = ((function () {
var $ret = new DataTemplate();
$ret.measure = LegendTemplates.f;
$ret.render = LegendTemplates.j;
return $ret;
})());
LegendTemplates.ae = ((function () {
var $ret = new DataTemplate();
$ret.measure = LegendTemplates.f;
$ret.render = LegendTemplates.o;
return $ret;
})());
LegendTemplates.ad = ((function () {
var $ret = new DataTemplate();
$ret.measure = LegendTemplates.f;
$ret.render = LegendTemplates.n;
return $ret;
})());
LegendTemplates.ah = ((function () {
var $ret = new DataTemplate();
$ret.measure = LegendTemplates.f;
$ret.render = LegendTemplates.q;
return $ret;
})());
LegendTemplates.ab = ((function () {
var $ret = new DataTemplate();
$ret.measure = LegendTemplates.f;
$ret.render = LegendTemplates.p;
return $ret;
})());
LegendTemplates.y = ((function () {
var $ret = new DataTemplate();
$ret.measure = LegendTemplates.f;
$ret.render = LegendTemplates.i;
return $ret;
})());
LegendTemplates.aa = ((function () {
var $ret = new DataTemplate();
$ret.measure = LegendTemplates.f;
$ret.render = LegendTemplates.l;
return $ret;
})());
LegendTemplates.ac = ((function () {
var $ret = new DataTemplate();
$ret.measure = LegendTemplates.f;
$ret.render = LegendTemplates.m;
return $ret;
})());
LegendTemplates.w = ((function () {
var $ret = new DataTemplate();
$ret.measure = LegendTemplates.f;
$ret.render = LegendTemplates.g;
return $ret;
})());
LegendTemplates.x = ((function () {
var $ret = new DataTemplate();
$ret.measure = LegendTemplates.d;
$ret.render = LegendTemplates.e;
return $ret;
})());
return LegendTemplates;
}(Base));
export { LegendTemplates };
/**
* @hidden
*/
var SeriesViewerViewManager = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesViewerViewManager, _super);
function SeriesViewerViewManager(a) {
var _this = _super.call(this) || this;
_this.ae = null;
_this.af = null;
_this.aj = null;
_this.ai = null;
_this.ag = null;
_this.ak = null;
_this.t = null;
_this.w = null;
_this.v = null;
_this.u = null;
_this.x = null;
_this.f = null;
_this.j = null;
_this.ah = null;
_this.ab = 0;
_this.aa = 0;
_this.ac = 1;
_this.ad = 0;
_this.l = null;
_this.ca = new Thickness(0, 0);
_this.aq = null;
_this.ap = stringEmpty();
_this.b9 = new Thickness(0, 0);
_this.b0 = null;
_this.bz = null;
_this.k = null;
_this.a = 0;
_this.b = 0;
_this.n = null;
_this.b2 = null;
_this.m = null;
_this.b1 = null;
_this.cb = new Thickness(0, 0);
_this.cc = new Thickness(0, 0);
_this.h = null;
_this.z = new Dictionary$2(String_$type, Tuple$2.$.specialize(DomWrapper_$type, RenderingContext.$), 0);
_this.al = -1;
_this.am = -1;
_this.s = null;
_this.j = a;
return _this;
}
SeriesViewerViewManager.prototype.bj = function () {
};
SeriesViewerViewManager.prototype.bg = function (a) {
if (a == null) {
if (this.f != null) {
this.f.aw();
}
this.ae = null;
if (this.af != null) {
this.af.remove();
}
this.af = null;
if (this.aj != null) {
this.aj.remove();
}
this.aj = null;
if (this.ai != null) {
this.ai.remove();
}
this.ai = null;
if (this.ag != null) {
this.ag.remove();
}
this.ag = null;
if (this.ak != null) {
this.ak.remove();
}
this.ak = null;
this.t = null;
this.w = null;
this.v = null;
this.u = null;
if (this.ah != null) {
this.ah.remove();
}
this.ah = null;
this.f = null;
this.j.p.dy.u(null);
this.j.p.d0.u(null);
this.j.p.dx.u(null);
this.j.p.dz.u(null);
this.j.p.al.m(null);
this.j.p.am.m(null);
this.j.p.ak.m(null);
this.j.a.m(null);
return;
}
this.ae = a;
this.j.p.dy.u(this.ae);
this.j.p.d0.u(this.ae);
this.j.p.dx.u(this.ae);
this.j.p.dz.u(this.ae);
this.j.p.al.m(this.ae);
this.j.p.am.m(this.ae);
this.j.p.ak.m(this.ae);
this.j.a.m(this.ae);
this.j.p.a3.aa(this.ae);
this.bi();
this.ae.rootWrapper.setStyleProperty("position", "relative");
this.af = this.ae.createElement("canvas");
this.af.setStyleProperty("position", "absolute");
this.af.setStyleProperty("top", "0px");
this.af.setStyleProperty("left", "0px");
this.aj = this.ae.createElement("canvas");
this.aj.setStyleProperty("position", "absolute");
this.aj.setStyleProperty("top", "0px");
this.aj.setStyleProperty("left", "0px");
this.ai = this.ae.createElement("canvas");
this.ai.setStyleProperty("position", "absolute");
this.ai.setStyleProperty("top", "0px");
this.ai.setStyleProperty("left", "0px");
this.ag = this.ae.createElement("canvas");
this.ag.setStyleProperty("position", "absolute");
this.ag.setStyleProperty("top", "0px");
this.ag.setStyleProperty("left", "0px");
this.ak = this.ae.createElement("canvas");
this.ak.setStyleProperty("position", "absolute");
this.ak.setStyleProperty("top", "0px");
this.ak.setStyleProperty("left", "0px");
this.ae.append(this.af);
this.ae.append(this.ai);
this.ae.append(this.aj);
this.t = new RenderingContext(new CanvasViewRenderer(), this.ae.get2DCanvasContext(this.af));
this.w = new RenderingContext(new CanvasViewRenderer(), this.ae.get2DCanvasContext(this.aj));
this.v = new RenderingContext(new CanvasViewRenderer(), this.ae.get2DCanvasContext(this.ai));
if (this.j.p.a6 != 1) {
this.u = new RenderingContext(new CanvasViewRenderer(), this.ae.get2DCanvasContext(this.ag));
this.s = this.u;
}
else {
this.u = new RenderingContext(null, null);
}
this.x = new RenderingContext(new CanvasViewRenderer(), this.ae.get2DCanvasContext(this.ak));
this.j.dx(this.t);
this.j.c4(this.ae.rootWrapper.width(), this.ae.rootWrapper.height());
{
if ((TypeRegistrar.isRegistered('CanvasGestureDOMEventProxy'))) {
var overlayCanvas_ = this.aj;
var container_ = this.ae;
this.f = (TypeRegistrar.create('CanvasGestureDOMEventProxy', overlayCanvas_, container_, false));
}
else {
this.f = null;
}
if (this.f != null) {
this.f.aq = runOn(this.j, this.j.au);
}
}
this.ah = this.ae.createElement("div");
this.ah.hide();
this.ah.setStyleProperty("position", "absolute");
this.ah.setStyleProperty("z-index", "10000");
this.ah.addClass(this.j.p.ns);
this.ae.append(this.ah);
};
SeriesViewerViewManager.by = function (a, b) {
b();
return;
};
SeriesViewerViewManager.prototype.bi = function () {
this.j.d7();
this.j.ei();
this.bp();
};
SeriesViewerViewManager.prototype.ba = function () {
var a = CanvasScalingHelpers.b(this.ae);
this.j.p.ij = CanvasScalingHelpers.a(this.j.p.i8, this.j.p.ij, a);
if (this.f != null) {
CanvasScalingHelpers.h(this.f, a);
}
};
SeriesViewerViewManager.prototype.g = function () {
if ((TypeRegistrar.isRegistered('XamOverviewPlusDetailPane'))) {
var overlayCanvas_ = this.aj;
var container_ = this.ae;
return (TypeRegistrar.create('XamOverviewPlusDetailPane'));
}
return null;
};
SeriesViewerViewManager.prototype.bm = function () {
this.aj.setStyleProperty("cursor", "default");
};
SeriesViewerViewManager.prototype.bn = function () {
this.aj.setStyleProperty("cursor", "pointer");
};
SeriesViewerViewManager.prototype.b3 = function () {
return ((function () {
var $ret = new Brush();
$ret.fill = "#000000";
return $ret;
})());
};
SeriesViewerViewManager.prototype.az = function (a, b, c) {
this.ab = a;
this.aa = b;
this.ac = c;
var d = a;
var e = b;
if (c != 1) {
d = Math.round(a * c);
e = Math.round(b * c);
}
if (this.af != null) {
this.af.setAttribute("width", d.toString());
this.af.setAttribute("height", e.toString());
this.af.setStyleProperty("width", a.toString() + "px");
this.af.setStyleProperty("height", b.toString() + "px");
}
if (this.aj != null) {
this.aj.setAttribute("width", d.toString());
this.aj.setAttribute("height", e.toString());
this.aj.setStyleProperty("width", a.toString() + "px");
this.aj.setStyleProperty("height", b.toString() + "px");
this.aj.setAttribute("tabindex", "0");
this.aj.setStyleProperty("outline", "0");
}
if (this.ai != null) {
this.ai.setAttribute("width", d.toString());
this.ai.setAttribute("height", e.toString());
this.ai.setStyleProperty("width", a.toString() + "px");
this.ai.setStyleProperty("height", b.toString() + "px");
}
if (this.ag != null) {
this.ag.setAttribute("width", d.toString());
this.ag.setAttribute("height", e.toString());
this.ag.setStyleProperty("width", a.toString() + "px");
this.ag.setStyleProperty("height", b.toString() + "px");
}
if (this.ak != null) {
this.ak.setAttribute("width", d.toString());
this.ak.setAttribute("height", e.toString());
this.ak.setStyleProperty("width", a.toString() + "px");
this.ak.setStyleProperty("height", b.toString() + "px");
}
this.j.p.al.q();
this.j.p.am.q();
this.j.p.ak.q();
};
SeriesViewerViewManager.prototype.b8 = function () {
if (this.f == null) {
return { $type: Point_$type, x: 0, y: 0 };
}
var a = this.f.bl(this.ae.rootWrapper);
return { $type: Point_$type, x: a.left, y: a.top };
};
SeriesViewerViewManager.prototype.y = function () {
return false;
};
SeriesViewerViewManager.prototype.bc = function (a) {
};
SeriesViewerViewManager.prototype.a8 = function (a, b, c, d, e) {
var f = this.e();
a = f.a;
b = f.f;
c = f.k;
d = f.h;
e = f.i;
return {
p0: a,
p1: b,
p2: c,
p3: d,
p4: e
};
};
SeriesViewerViewManager.prototype.e = function () {
var e_36, _a;
var a = new DefaultPaletteInfo();
a.a = new BrushCollection();
a.f = new BrushCollection();
a.b = new BrushCollection();
a.c = new BrushCollection();
var b = new List$1(String_$type, 0);
b.add("background-image");
this.ae.startCSSQuery();
var c = this.ae.getCssDefaultValuesForClassCollection("ui-chart-fill-palette-", b.toArray());
var d = c.length;
var e = this.ae.getCssDefaultValuesForClassCollection("ui-chart-outline-palette-", b.toArray());
var f = e.length;
var g = this.ae.getCssDefaultValuesForClassCollection("ui-chart-marker-fill-palette-", b.toArray());
var h = g.length;
var i = this.ae.getCssDefaultValuesForClassCollection("ui-chart-marker-outline-palette-", b.toArray());
var j = i.length;
for (var k = 0; k < d; k++) {
a.a.add(CssGradientUtil.brushFromGradientString(c[k][0]));
}
for (var l = 0; l < f; l++) {
a.f.add(CssGradientUtil.brushFromGradientString(e[l][0]));
}
for (var m = 0; m < h; m++) {
a.b.add(CssGradientUtil.brushFromGradientString(g[m][0]));
}
for (var n = 0; n < j; n++) {
a.c.add(CssGradientUtil.brushFromGradientString(i[n][0]));
}
b.clear();
var o = 0;
var p = 0;
var q = Math.min(d, f);
var r = null;
if (d == 0) {
b.add("background-color");
}
if (f == 0) {
b.add("border-top-color");
p = d == 0 ? 1 : 0;
}
if (b.count > 0) {
r = this.ae.getCssDefaultValuesForClassCollection("ui-chart-palette-", b.toArray());
q = r.length;
}
if (d == 0) {
if (q > 0) {
for (var s = 0; s < q; s++) {
var t = new Brush();
t._fill = r[s][o];
a.a.add(t);
}
}
else {
a.a.add(((function () {
var $ret = new Brush();
$ret.fill = "#8BDC5C";
return $ret;
})()));
a.a.add(((function () {
var $ret = new Brush();
$ret.fill = "#8961A9";
return $ret;
})()));
a.a.add(((function () {
var $ret = new Brush();
$ret.fill = "#6DB1FF";
return $ret;
})()));
a.a.add(((function () {
var $ret = new Brush();
$ret.fill = "#82E9D9";
return $ret;
})()));
a.a.add(((function () {
var $ret = new Brush();
$ret.fill = "#EA3C63";
return $ret;
})()));
a.a.add(((function () {
var $ret = new Brush();
$ret.fill = "#735656";
return $ret;
})()));
a.a.add(((function () {
var $ret = new Brush();
$ret.fill = "#F8CE4F";
return $ret;
})()));
a.a.add(((function () {
var $ret = new Brush();
$ret.fill = "#A8A8B7";
return $ret;
})()));
a.a.add(((function () {
var $ret = new Brush();
$ret.fill = "#E051A9";
return $ret;
})()));
a.a.add(((function () {
var $ret = new Brush();
$ret.fill = "#FF903B";
return $ret;
})()));
}
}
if (f == 0) {
if (q > 0) {
for (var u = 0; u < q; u++) {
var v = new Brush();
v._fill = r[u][p];
a.f.add(v);
}
}
else {
a.f.add(((function () {
var $ret = new Brush();
$ret.fill = "#8BDC5C";
return $ret;
})()));
a.f.add(((function () {
var $ret = new Brush();
$ret.fill = "#8961A9";
return $ret;
})()));
a.f.add(((function () {
var $ret = new Brush();
$ret.fill = "#6DB1FF";
return $ret;
})()));
a.f.add(((function () {
var $ret = new Brush();
$ret.fill = "#82E9D9";
return $ret;
})()));
a.f.add(((function () {
var $ret = new Brush();
$ret.fill = "#EA3C63";
return $ret;
})()));
a.f.add(((function () {
var $ret = new Brush();
$ret.fill = "#735656";
return $ret;
})()));
a.f.add(((function () {
var $ret = new Brush();
$ret.fill = "#F8CE4F";
return $ret;
})()));
a.f.add(((function () {
var $ret = new Brush();
$ret.fill = "#A8A8B7";
return $ret;
})()));
a.f.add(((function () {
var $ret = new Brush();
$ret.fill = "#E051A9";
return $ret;
})()));
a.f.add(((function () {
var $ret = new Brush();
$ret.fill = "#FF903B";
return $ret;
})()));
}
}
b.clear();
var w = Math.min(h, j);
if (h == 0) {
b.add("background-color");
}
if (j == 0) {
b.add("border-top-color");
p = h == 0 ? 1 : 0;
}
if (b.count > 0) {
r = this.ae.getCssDefaultValuesForClassCollection("ui-chart-marker-palette-", b.toArray());
w = r.length;
}
if (h == 0) {
if (w > 0) {
var _loop_2 = function (x) {
var y = ((function () {
var $ret = new Brush();
$ret.fill = r[x][o];
return $ret;
})());
a.b.add(y);
};
for (var x = 0; x < w; x++) {
_loop_2(x);
}
}
else {
a.b.add(((function () {
var $ret = new Brush();
$ret.fill = "#FFFFFF";
return $ret;
})()));
}
}
if (j == 0) {
if (w > 0) {
var _loop_3 = function (z) {
var aa = ((function () {
var $ret = new Brush();
$ret.fill = r[z][p];
return $ret;
})());
a.c.add(aa);
};
for (var z = 0; z < w; z++) {
_loop_3(z);
}
}
else {
try {
for (var _b = __values(fromEnum(a.a)), _c = _b.next(); !_c.done; _c = _b.next()) {
var ab = _c.value;
a.c.add(ab);
}
}
catch (e_36_1) {
e_36 = { error: e_36_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_36)
throw e_36.error;
}
}
}
}
var ac = this.ae.getCssDefaultPropertyValue("ui-chart-axis", "border-top-color");
if (ac != null) {
a.i = new Brush();
a.i._fill = ac;
}
else {
a.i = AxisDefaults.axis_LineBrush;
}
a.k = new Brush();
a.k._fill = this.ae.getCssDefaultPropertyValue("", "color");
a.j = Defaults.crosshairLineBrush;
var ad = this.ae.getCssDefaultPropertyValue("ui-chart-crosshair", "border-top-color");
if (ad != null) {
a.j = new Brush();
a.j._fill = ad;
}
this.ae.endCSSQuery();
a.h = FontUtil.getFont(this.ae);
var ae = ((function () {
var $ret = new Brush();
$ret.fill = "#ee5879";
return $ret;
})());
a.d = new BrushCollection();
a.d.add(ae);
a.e = new BrushCollection();
a.e.add(ae);
return a;
};
SeriesViewerViewManager.prototype.a7 = function (a, b, c, d, e, f) {
this.ae.startCSSQuery();
var g = this.ae.getCssDefaultPropertyValue("ui-chart-area-fill-opacity", "opacity");
a = g != null ? parseFloat(g) : 1;
b = new Array(4);
var h = this.ae.getCssDefaultPropertyValue("ui-chart-render-margins", "margin-top");
var i = this.ae.getCssDefaultPropertyValue("ui-chart-render-margins", "margin-right");
var j = this.ae.getCssDefaultPropertyValue("ui-chart-render-margins", "margin-bottom");
var k = this.ae.getCssDefaultPropertyValue("ui-chart-render-margins", "margin-left");
b[0] = h != null ? parseFloat(h) : NaN;
b[1] = i != null ? parseFloat(i) : NaN;
b[2] = j != null ? parseFloat(j) : NaN;
b[3] = k != null ? parseFloat(k) : NaN;
c = d = null;
var l = this.ae.getCssDefaultPropertyValue("ui-chart-axis-stroke", "border-top-color");
if (l != null) {
var m = new Brush();
m._fill = l;
c = m;
}
var n = this.ae.getCssDefaultPropertyValue("ui-chart-axis-major-line", "border-top-color");
if (n != null) {
var o = new Brush();
o._fill = n;
d = o;
}
var p = this.ae.getCssDefaultPropertyValue("ui-chart-aligned-gridlines", "visibility");
f = p != null && p == "visible";
var q = this.ae.getCssDefaultPropertyValue("ui-chart-category-axis-tick", "height");
if (q != null) {
e = parseFloat(q);
if (Math.abs(e) > 4000) {
e = 0;
}
}
else {
q = this.ae.getCssDefaultPropertyValue("ui-chart-category-axis-tick", "width");
e = q != null ? parseFloat(q) : 0;
}
this.ae.endCSSQuery();
return {
p0: a,
p1: b,
p2: c,
p3: d,
p4: e,
p5: f
};
};
SeriesViewerViewManager.prototype.ay = function () {
this.ah.removeChildren();
};
SeriesViewerViewManager.prototype.bu = function (x_) {
var box_ = this.ah;
var offset_ = this.f.bl(this.ah);
var a = this.b8();
x_ = a.x + this.j.p.y9.left + x_;
box_.setOffset(x_, this.j.p.y9.top + this.ad + a.y);
};
SeriesViewerViewManager.prototype.bv = function (y_) {
this.ad = y_;
var box_ = this.ah;
var offset_ = this.ah.getOffset();
var a = this.b8();
y_ = this.j.p.y9.top + this.ad + a.y;
box_.setOffset(offset_.left, y_);
};
SeriesViewerViewManager.prototype.au = function (a) {
var b = a;
b.show();
this.ah.append(b);
};
SeriesViewerViewManager.prototype.a9 = function () {
this.ah.hide();
};
SeriesViewerViewManager.prototype.bo = function () {
this.ah.show();
};
SeriesViewerViewManager.prototype.av = function (a) {
this.ae.appendToBody(a);
};
SeriesViewerViewManager.prototype.bk = function (a) {
a.remove();
};
SeriesViewerViewManager.prototype.bd = function () {
if (this.ae == null) {
return;
}
this.ba();
this.j.c4(this.ae.rootWrapper.width(), this.ae.rootWrapper.height());
};
SeriesViewerViewManager.prototype.p = function () {
return this.l;
};
SeriesViewerViewManager.prototype.ce = function () {
return this.ca;
};
SeriesViewerViewManager.prototype.as = function () {
return this.aq;
};
SeriesViewerViewManager.prototype.ar = function () {
return this.ap;
};
SeriesViewerViewManager.prototype.cd = function () {
return this.b9;
};
SeriesViewerViewManager.prototype.b5 = function () {
return this.b0;
};
SeriesViewerViewManager.prototype.b4 = function () {
return this.bz;
};
SeriesViewerViewManager.prototype.o = function () {
return this.k;
};
SeriesViewerViewManager.prototype.c = function () {
return this.a;
};
SeriesViewerViewManager.prototype.d = function () {
return this.b;
};
SeriesViewerViewManager.prototype.r = function () {
return this.n;
};
SeriesViewerViewManager.prototype.b7 = function () {
return this.b2;
};
SeriesViewerViewManager.prototype.q = function () {
return this.m;
};
SeriesViewerViewManager.prototype.b6 = function () {
return this.b1;
};
SeriesViewerViewManager.prototype.cf = function () {
return this.cb;
};
SeriesViewerViewManager.prototype.cg = function () {
return this.cc;
};
SeriesViewerViewManager.prototype.bp = function () {
this.ae.startCSSQuery();
this.br();
this.bq();
this.bt();
this.bs();
this.bx();
this.ae.endCSSQuery();
};
SeriesViewerViewManager.prototype.bx = function () {
var a = "ui-chart-pointer-tooltip";
var b = this.ae.getCssDefaultPropertyValue(a, "background-color");
var c = this.ae.getCssDefaultPropertyValue(a, "border-top-color");
var d = this.ae.getCssDefaultPropertyValue(a, "border-top-left-radius");
var e = this.ae.getCssDefaultPropertyValue(a, "border-top-width");
var f = new PointerTooltipStyle();
f.a = d != null ? parseFloat(d) : 0;
f.c = b != null ? Brush.create(b) : ((function () {
var $ret = new Brush();
$ret.fill = "white";
return $ret;
})());
f.d = c != null ? Brush.create(c) : ((function () {
var $ret = new Brush();
$ret.fill = "gray";
return $ret;
})());
f.b = e != null ? parseFloat(e) : 0;
this.h = f;
};
SeriesViewerViewManager.prototype.br = function () {
var _this = this;
var a = "ui-chart-title";
this.l = FontUtil.getFontForClass(this.ae, a);
this.b0 = ((function () {
var $ret = new Brush();
$ret.fill = _this.ae.getCssDefaultPropertyValue(a, "color");
return $ret;
})());
this.aq = this.ae.getCssDefaultPropertyValue(a, "text-align");
if (this.aq == null) {
this.aq = "center";
}
var b = this.ae.getCssDefaultPropertyValue(a, "margin-top");
var c = this.ae.getCssDefaultPropertyValue(a, "margin-bottom");
var d = this.ae.getCssDefaultPropertyValue(a, "margin-left");
var e = this.ae.getCssDefaultPropertyValue(a, "margin-right");
var f = b != null ? parseFloat(b) : 0;
var g = c != null ? parseFloat(c) : 0;
var h = d != null ? parseFloat(d) : 0;
var i = e != null ? parseFloat(e) : 0;
this.ca = new Thickness(1, h, f, i, g);
};
SeriesViewerViewManager.prototype.bq = function () {
var _this = this;
var a = "ui-chart-subtitle";
this.k = FontUtil.getFontForClass(this.ae, a);
this.bz = ((function () {
var $ret = new Brush();
$ret.fill = _this.ae.getCssDefaultPropertyValue(a, "color");
return $ret;
})());
this.ap = this.ae.getCssDefaultPropertyValue(a, "text-align");
if (this.ap == null) {
this.ap = "center";
}
var b = this.ae.getCssDefaultPropertyValue(a, "margin-top");
var c = this.ae.getCssDefaultPropertyValue(a, "margin-bottom");
var d = this.ae.getCssDefaultPropertyValue(a, "margin-left");
var e = this.ae.getCssDefaultPropertyValue(a, "margin-right");
var f = b != null ? parseFloat(b) : 0;
var g = c != null ? parseFloat(c) : 0;
var h = d != null ? parseFloat(d) : 0;
var i = e != null ? parseFloat(e) : 0;
this.b9 = new Thickness(1, h, f, i, g);
};
SeriesViewerViewManager.prototype.bs = function () {
var _this = this;
var a = "ui-chart-horizontal-axis-title";
this.m = FontUtil.getFontForClass(this.ae, a);
this.b1 = ((function () {
var $ret = new Brush();
$ret.fill = _this.ae.getCssDefaultPropertyValue(a, "color");
return $ret;
})());
var b = this.ae.getCssDefaultPropertyValue(a, "vertical-align");
if (b == null) {
this.a = 0;
}
else if (b.toLowerCase() == "bottom") {
this.a = 4;
}
else {
this.a = 3;
}
var c = this.ae.getCssDefaultPropertyValue(a, "margin-top");
var d = this.ae.getCssDefaultPropertyValue(a, "margin-bottom");
var e = this.ae.getCssDefaultPropertyValue(a, "margin-left");
var f = this.ae.getCssDefaultPropertyValue(a, "margin-right");
var g = c != null ? parseFloat(c) : 2;
var h = d != null ? parseFloat(d) : 2;
var i = e != null ? parseFloat(e) : 2;
var j = f != null ? parseFloat(f) : 2;
this.cb = new Thickness(1, i, g, j, h);
};
SeriesViewerViewManager.prototype.bt = function () {
var _this = this;
var a = "ui-chart-vertical-axis-title";
this.n = FontUtil.getFontForClass(this.ae, a);
this.b2 = ((function () {
var $ret = new Brush();
$ret.fill = _this.ae.getCssDefaultPropertyValue(a, "color");
return $ret;
})());
var b = this.ae.getCssDefaultPropertyValue(a, "text-align");
if (b == null) {
this.b = 0;
}
else if (b.toLowerCase() == "right") {
this.b = 2;
}
else {
this.b = 1;
}
var c = this.ae.getCssDefaultPropertyValue(a, "margin-top");
var d = this.ae.getCssDefaultPropertyValue(a, "margin-bottom");
var e = this.ae.getCssDefaultPropertyValue(a, "margin-left");
var f = this.ae.getCssDefaultPropertyValue(a, "margin-right");
var g = c != null ? parseFloat(c) : 0;
var h = d != null ? parseFloat(d) : 0;
var i = e != null ? parseFloat(e) : 0;
var j = f != null ? parseFloat(f) : 0;
this.cc = new Thickness(1, i, g, j, h);
};
SeriesViewerViewManager.prototype.a6 = function (a, b) {
var c = this.j.p.ij;
if (a != this.ab || b != this.aa || c != this.ac) {
this.az(a, b, this.j.p.ij);
this.j.p.al.l();
this.j.a.l();
}
};
SeriesViewerViewManager.prototype.i = function () {
return this.h;
};
SeriesViewerViewManager.prototype.bb = function (a) {
if (this.f == null) {
return;
}
this.f.ab = a;
this.f.aq = runOn(this.j, this.j.au);
};
SeriesViewerViewManager.prototype.an = function (a, b, c) {
var _this = this;
var d;
if (!((function () { var e = _this.z.tryGetValue(b.iD.toString(), d); d = e.p1; return e.ret; })())) {
var e = this.ae.createElement("canvas");
e.setAttribute("width", c.toString());
e.setAttribute("height", c.toString());
e.setStyleProperty("width", c.toString() + "px");
e.setStyleProperty("height", c.toString() + "px");
var f = this.ae.get2DCanvasContext(e);
var g = new RenderingContext(new CanvasViewRenderer(), f);
var h = new Tuple$2(DomWrapper_$type, RenderingContext.$, e, g);
d = h;
this.z.addItem(b.iD.toString(), d);
}
var i = new Rect(0, 0, 0, c, c);
var j = new RenderSurface();
j.a = d.d;
for (var k = 0; k < this.j.p.b9.count; k++) {
var l = this.j.p.b9._inner[k];
l.r7(i, a, j, "tile", 1);
}
this.j.p.ak.l();
return d.c;
};
SeriesViewerViewManager.prototype.a3 = function (a) {
this.z.removeItem(a.iD.toString());
};
SeriesViewerViewManager.prototype.a2 = function () {
this.z.clear();
};
SeriesViewerViewManager.prototype.bl = function (a) {
for (var b = 0; b < a.count; b++) {
var c = a._inner[b];
var d = c.content;
this.j.z.n(d.getNativeElement(), 1, c.xPosition + this.j.p.y9.left, c.yPosition + this.j.p.y9.top, c.width, c.height);
}
};
SeriesViewerViewManager.prototype.a0 = function () {
var _this = this;
if (this.al != -1) {
this.aw();
}
if (this.ae != null) {
this.al = this.ae.setTimeout(function () { return _this.j.p.bq.f$m(_this.j.p); }, 5000);
}
else {
this.al = window.setTimeout(function () { return _this.j.p.bq.f$m(_this.j.p); }, 5000);
}
};
SeriesViewerViewManager.prototype.aw = function () {
if (this.al != -1) {
if (this.ae != null) {
this.ae.clearTimeout(this.al);
}
else {
window.clearTimeout(this.al);
}
this.al = -1;
}
};
SeriesViewerViewManager.prototype.a1 = function (a) {
var _this = this;
if (this.am != -1) {
this.ax();
}
if (this.ae != null) {
this.am = this.ae.setTimeout(function () { return _this.j.p.o4(); }, a);
}
else {
this.am = window.setTimeout(function () { return _this.j.p.o4(); }, a);
}
};
SeriesViewerViewManager.prototype.ax = function () {
if (this.am != -1) {
if (this.ae != null) {
this.ae.clearTimeout(this.am);
}
else {
window.clearTimeout(this.am);
}
this.am = -1;
}
};
SeriesViewerViewManager.prototype.be = function () {
if (this.j.p.a6 != 1) {
if (this.s == null) {
this.u = new RenderingContext(new CanvasViewRenderer(), this.ae.get2DCanvasContext(this.ag));
this.s = this.u;
}
else {
this.u = this.s;
}
}
else {
this.u = new RenderingContext(null, null);
}
this.j.dw(this.u);
};
SeriesViewerViewManager.prototype.bw = function (a) {
if (this.ae != null) {
var b = "igTouch";
if (a) {
this.ae.rootWrapper.addClass(b);
}
else {
this.ae.rootWrapper.removeClass(b);
}
}
};
SeriesViewerViewManager.prototype.a4 = function () {
};
SeriesViewerViewManager.prototype.a5 = function () {
};
SeriesViewerViewManager.prototype.bh = function () {
if (this.f != null) {
this.f.bi(this.aj, "");
}
};
SeriesViewerViewManager.prototype.bf = function () {
this.ba();
if (this.f != null) {
this.f.au(this.aj, "");
}
};
SeriesViewerViewManager.prototype.ao = function (a, b, c) {
var d = this.ae.createElement("img");
d.setProperty("src", this.at(a, b, c, "image/png"));
return d.getNativeElement();
};
SeriesViewerViewManager.prototype.at = function (a, b, c, d, e) {
var _this = this;
if (e === void 0) {
e = null;
}
var f = a * c;
var g = b * c;
var h = this.ae.createElement("canvas");
h.setStyleProperty("width", a + "px");
h.setStyleProperty("height", b + "px");
h.setProperty("width", f);
h.setProperty("height", g);
var i = this.ae.get2DCanvasContext(h);
var j = ((function () {
var $ret = new Brush();
$ret.fill = _this.ae.rootWrapper.getStyleProperty("background-color");
return $ret;
})());
if (BrushUtilCore.a(j)) {
j._fill = this.ae.rootWrapper.parent().getStyleProperty("background-color");
if (BrushUtilCore.a(j)) {
j._fill = "rgb(255, 255, 255)";
}
}
if (c != 1) {
i.save();
i.scale(c, c);
}
i.fillStyle = j._fill;
i.fillRect(0, 0, a, b);
if (this.t != null && this.t != this.v) {
i.drawImage(this.af.getNativeElement(), 0, 0, a, b);
}
if (this.v != null) {
i.drawImage(this.ai.getNativeElement(), 0, 0, a, b);
}
if (this.w != null && this.w != this.v) {
i.drawImage(this.aj.getNativeElement(), 0, 0, a, b);
}
if (c != 1) {
i.restore();
}
var format_ = d;
var sCanv_ = h.getNativeElement();
var url_ = (sCanv_.toDataURL(format_));
if (e != null) {
var cb_1 = e;
sCanv_.toBlob(function (blob) { cb_1(url_, blob); }, format_);
}
return url_;
};
SeriesViewerViewManager.$t = markType(SeriesViewerViewManager, 'SeriesViewerViewManager');
return SeriesViewerViewManager;
}(Base));
export { SeriesViewerViewManager };
/**
* @hidden
*/
var AnnotationBadge = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AnnotationBadge, _super);
function AnnotationBadge(a) {
var _this = _super.call(this) || this;
_this.ag = null;
_this.a3 = null;
_this.a4 = null;
_this.a8 = new Thickness(0, 0);
_this.a9 = new Thickness(0, 0);
_this.aj = 0;
_this.ak = 24;
_this.an = null;
_this.ah = null;
_this.propertyChanged = null;
_this.ai = null;
_this.ag = new AnnotationBadgeView(_this);
_this.ai = a;
return _this;
}
Object.defineProperty(AnnotationBadge.prototype, "a5", {
get: function () {
return this.a3;
},
set: function (a) {
var b = this.a3;
this.a3 = a;
if (b != this.a3) {
this.a0("Background", b, a);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(AnnotationBadge.prototype, "a6", {
get: function () {
return this.a4;
},
set: function (a) {
var b = this.a4;
this.a4 = a;
if (b != this.a4) {
this.a0("BorderBrush", b, a);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(AnnotationBadge.prototype, "ba", {
get: function () {
return this.a8;
},
set: function (a) {
var b = this.a8;
this.a8 = a;
if (b != this.a8) {
this.a0("BorderThickness", b, a);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(AnnotationBadge.prototype, "bb", {
get: function () {
return this.a9;
},
set: function (a) {
var b = this.a9;
this.a9 = a;
if (b != this.a9) {
this.a0("Margin", b, a);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(AnnotationBadge.prototype, "al", {
get: function () {
return this.aj;
},
set: function (a) {
var b = this.aj;
this.aj = a;
if (b != this.aj) {
this.a0("Radius", b, a);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(AnnotationBadge.prototype, "am", {
get: function () {
return this.ak;
},
set: function (a) {
var b = this.ak;
this.ak = a;
if (b != this.ak) {
this.a0("Size", b, a);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(AnnotationBadge.prototype, "as", {
get: function () {
return this.an;
},
set: function (a) {
var b = this.an;
if (this.an != a) {
this.an = a;
this.a1(a);
}
},
enumerable: false,
configurable: true
});
AnnotationBadge.prototype.a0 = function (a, b, c) {
this.az(a, b, c);
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
};
AnnotationBadge.prototype.az = function (a, b, c) {
switch (a) {
case "Background":
case "BorderBrush":
case "BorderThickness":
case "Size":
case "Radius":
case "Width":
case "Height":
this.a2();
break;
}
};
AnnotationBadge.prototype.a7 = function () {
var a = DeviceUtils.g(this.am);
return new Size(1, this.bb.left + a + this.bb.right, a);
};
AnnotationBadge.prototype.a2 = function () {
this.width = DeviceUtils.g(this.am);
this.height = DeviceUtils.g(this.am);
this.ag.e();
};
AnnotationBadge.prototype.a1 = function (a) {
if (a == null) {
this.ag.c(null);
}
else {
var b = this.ai;
b.loadCompleted = delegateCombine(b.loadCompleted, runOn(this, this.ay));
this.ai.request(a);
}
};
AnnotationBadge.prototype.ay = function (a, b) {
var c = this.ai;
c.loadCompleted = delegateRemove(c.loadCompleted, runOn(this, this.ay));
if (b.d == this.as) {
this.ag.c(b.b);
}
};
AnnotationBadge.$t = markType(AnnotationBadge, 'AnnotationBadge', Control.$, [INotifyPropertyChanged_$type]);
return AnnotationBadge;
}(Control));
export { AnnotationBadge };
/**
* @hidden
*/
var AutoRangeCalculator = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AutoRangeCalculator, _super);
function AutoRangeCalculator() {
return _super !== null && _super.apply(this, arguments) || this;
}
AutoRangeCalculator.a = function (a, b, c, d, e, f, g) {
f = !isNaN_(b) && !isInfinity(b) ? b : Number.POSITIVE_INFINITY;
g = !isNaN_(c) && !isInfinity(c) ? c : Number.NEGATIVE_INFINITY;
var h = f;
var i = g;
if (isInfinity(h) || isInfinity(i)) {
if (a != null) {
var j = a.pm();
if (j != null) {
h = Math.min(h, j.c);
i = Math.max(i, j.b);
}
}
}
if (!isInfinity(h) && !isInfinity(i)) {
if (h == i && h != 0) {
h *= h > 0 ? 0.9 : 1.1;
i *= i > 0 ? 1.1 : 0.9;
}
if (h == i && h == 0) {
i = 1;
}
if (b > c) {
var k = c;
c = b;
b = k;
}
var l = isNaN_(b) || isInfinity(b) ? h : b;
var m = isNaN_(c) || isInfinity(c) ? i : c;
if (d) {
if (l <= 0) {
if (m > 1) {
l = 1;
}
else {
l = Math.pow(e, Math.floor(logBase(m, e)));
}
}
if (isNaN_(b) || isInfinity(b)) {
var n = logBase(l, e);
h = Math.pow(e, Math.floor(n));
}
else {
h = l;
}
if (isNaN_(c) || isInfinity(c)) {
i = Math.pow(e, Math.ceil(logBase(m, e)));
}
else {
i = m;
}
}
else {
var o = Math.pow(10, Math.floor(log10(m - l)) - 1);
var p = a.f5();
if (a != null && p > 0 && (!a.qe && !a.qd)) {
var q = new LinearNumericSnapper(0, h, i, p, a.gm(), a.rh);
o = q.g;
}
else if (a.p9 && p > 0 && (!a.qe || !a.qd)) {
var r = h;
var s = i;
if (a.qe) {
r = b;
}
if (a.qd) {
s = c;
}
var t = new LinearNumericSnapper(0, r, s, p, a.gm(), a.rh);
o = t.g;
}
if ((isNaN_(b) || isInfinity(b)) && !isNaN_(h) && !isNaN_(o) && o != 0) {
{
h = o * Math.floor(h / o);
}
}
else {
h = l;
}
if ((isNaN_(c) || isInfinity(c)) && !isNaN_(i) && !isNaN_(o) && o != 0) {
var u = Math.ceil(i / o);
{
i = o * u;
}
}
else {
i = m;
}
if (a.p9) {
if (a.p9 && p > 0 && (!a.qe || !a.qd)) {
var v = new LinearNumericSnapper(0, h, i, p, a.gm(), a.rh);
var w = v.g;
if (w != o) {
o = w;
if ((isNaN_(b) || isInfinity(b)) && !isNaN_(h) && !isNaN_(o) && o != 0) {
{
h = o * Math.floor(h / o);
}
}
else {
h = l;
}
if ((isNaN_(c) || isInfinity(c)) && !isNaN_(i) && !isNaN_(o) && o != 0) {
var x = Math.ceil(i / o);
{
i = o * x;
}
}
else {
i = m;
}
}
}
}
}
}
f = h;
g = i;
return {
p5: f,
p6: g
};
};
AutoRangeCalculator.$t = markType(AutoRangeCalculator, 'AutoRangeCalculator');
return AutoRangeCalculator;
}(Base));
export { AutoRangeCalculator };
/**
* @hidden
*/
var AxisMouseEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisMouseEventArgs, _super);
function AxisMouseEventArgs(a, b, c, d, e, f, g) {
var _this = _super.call(this) || this;
_this.a = null;
_this.c = 0;
_this.b = new Date();
_this.f = null;
_this.g = null;
_this.h = null;
_this.e = null;
_this.d = null;
_this.a = a;
_this.c = b;
_this.b = c;
_this.f = f;
_this.h = g;
_this.e = d;
_this.d = e;
_this.g = { $type: Point_$type, x: _this.f.x - a.b7.y9.left, y: _this.f.y - a.b7.y9.top };
return _this;
}
AxisMouseEventArgs.$t = markType(AxisMouseEventArgs, 'AxisMouseEventArgs');
return AxisMouseEventArgs;
}(Base));
export { AxisMouseEventArgs };
/**
* @hidden
*/
export var IAxisAnnotationManager_$type = new Type(null, 'IAxisAnnotationManager');
/**
* @hidden
*/
var AxisLabelSettings = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisLabelSettings, _super);
function AxisLabelSettings() {
var _this = _super.call(this) || this;
_this.ah = null;
_this.a6 = null;
_this.b = 1;
_this.bb = 0;
_this.i = true;
_this.c = 0;
_this.a = null;
_this.n = 0;
_this.p = NaN;
_this.r = NaN;
_this.s = NaN;
_this.q = 2;
_this.t = 2;
_this.u = 2;
_this.o = 2;
_this.a3 = 0;
_this.a8 = 1;
_this.propertyChanged = null;
_this.propertyUpdated = null;
_this.f = null;
_this.propertyUpdated = delegateCombine(_this.propertyUpdated, function (a, b) { return _this.az(a, b.propertyName, b.oldValue, b.newValue); });
return _this;
}
Object.defineProperty(AxisLabelSettings.prototype, "textStyle", {
get: function () {
return this.ah;
},
set: function (a) {
var b = this.ah;
this.ah = a;
if (this.ah != b) {
this.f = null;
this.a0("TextStyle", b, a);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "textColor", {
get: function () {
return this.a6;
},
set: function (a) {
var b = this.a6;
this.a6 = a;
this.a0("TextColor", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "location", {
get: function () {
return this.b;
},
set: function (a) {
var b = this.b;
this.b = a;
this.a0("Location", enumGetBox(AxisLabelsLocation_$type, b), enumGetBox(AxisLabelsLocation_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "visibility", {
get: function () {
return this.bb;
},
set: function (a) {
var b = this.bb;
this.bb = a;
this.a0("Visibility", enumGetBox(Visibility_$type, b), enumGetBox(Visibility_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "showFirstLabel", {
get: function () {
return this.i;
},
set: function (a) {
var b = this.i;
this.i = a;
this.a0("ShowFirstLabel", b, a);
},
enumerable: false,
configurable: true
});
AxisLabelSettings.prototype.registerAxis = function (a) {
this.a = a;
};
AxisLabelSettings.prototype.unregisterAxis = function (a) {
this.a = null;
};
Object.defineProperty(AxisLabelSettings.prototype, "angle", {
get: function () {
return this.n;
},
set: function (a) {
var b = this.n;
this.n = a;
this.a0("Angle", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "extent", {
get: function () {
return this.p;
},
set: function (a) {
var b = this.p;
this.p = a;
this.a0("Extent", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "maximumExtent", {
get: function () {
return this.r;
},
set: function (a) {
var b = this.r;
this.r = a;
this.a0("MaximumExtent", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "maximumExtentPercentage", {
get: function () {
return this.s;
},
set: function (a) {
var b = this.s;
this.s = a;
this.a0("MaximumExtentPercentage", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "margin", {
set: function (a) {
this.leftMargin = a;
this.bottomMargin = a;
this.rightMargin = a;
this.topMargin = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "leftMargin", {
get: function () {
return this.q;
},
set: function (a) {
var b = this.q;
this.q = a;
this.a0("LeftMargin", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "rightMargin", {
get: function () {
return this.t;
},
set: function (a) {
var b = this.t;
this.t = a;
this.a0("RightMargin", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "topMargin", {
get: function () {
return this.u;
},
set: function (a) {
var b = this.u;
this.u = a;
this.a0("TopMargin", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "bottomMargin", {
get: function () {
return this.o;
},
set: function (a) {
var b = this.o;
this.o = a;
this.a0("BottomMargin", b, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "horizontalAlignment", {
get: function () {
return this.a3;
},
set: function (a) {
var b = this.a3;
this.a3 = a;
this.a0("HorizontalAlignment", enumGetBox(HorizontalAlignment_$type, b), enumGetBox(HorizontalAlignment_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "verticalAlignment", {
get: function () {
return this.a8;
},
set: function (a) {
var b = this.a8;
this.a8 = a;
this.a0("VerticalAlignment", enumGetBox(VerticalAlignment_$type, b), enumGetBox(VerticalAlignment_$type, a));
},
enumerable: false,
configurable: true
});
AxisLabelSettings.prototype.a0 = function (a, b, c) {
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
if (this.propertyUpdated != null) {
this.propertyUpdated(this, new PropertyUpdatedEventArgs(a, b, c));
}
};
AxisLabelSettings.prototype.az = function (a, b, c, d) {
switch (b) {
case "Location":
this.c = this.location;
break;
}
if (this.a == null || this.a.b5 == null) {
return;
}
switch (b) {
case "Angle":
this.a.d0 = true;
this.a.lx();
break;
case "TextStyle":
this.f = null;
this.a.d0 = true;
if (this.a.b7 != null) {
this.a.b7.pr();
}
this.a.lx();
break;
case "Location":
case "Extent":
case "Visibility":
case "HorizontalAlignment":
case "VerticalAlignment":
case "TopMargin":
case "RightMargin":
case "BottomMargin":
case "LeftMargin":
case "ShowFirstLabel":
this.a.d0 = true;
if (this.a.b7 != null) {
this.a.b7.pr();
}
this.a.lx();
break;
case "TextColor":
this.a.lx();
break;
}
};
AxisLabelSettings.prototype.k = function () {
return this.n != 0;
};
AxisLabelSettings.prototype.l = function () {
return !isNaN_(this.p);
};
Object.defineProperty(AxisLabelSettings.prototype, "j", {
get: function () {
return this.textStyle != null || this.f != null;
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelSettings.prototype, "g", {
get: function () {
return this.f;
},
set: function (a) {
this.f = a;
},
enumerable: false,
configurable: true
});
AxisLabelSettings.prototype.h = function (a) {
if (this.f == null) {
this.f = FontUtil.toFontInfo(a, this.textStyle);
}
return this.f;
};
AxisLabelSettings.$t = markType(AxisLabelSettings, 'AxisLabelSettings', Base.$, [INotifyPropertyChanged_$type]);
AxisLabelSettings.extentPropertyDefault = NaN;
return AxisLabelSettings;
}(Base));
export { AxisLabelSettings };
/**
* @hidden
*/
var TitleSettings = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(TitleSettings, _super);
function TitleSettings() {
var _this = _super.call(this) || this;
_this.bd = 0;
_this.horizontalAlignment = 1;
_this.leftMargin = NaN;
_this.rightMargin = NaN;
_this.topMargin = NaN;
_this.bottomMargin = NaN;
return _this;
}
Object.defineProperty(TitleSettings.prototype, "position", {
get: function () {
return this.bd;
},
set: function (a) {
var b = this.bd;
this.bd = a;
this.a0("AxisTitlePosition", enumGetBox(AxisTitlePosition_$type, b), enumGetBox(AxisTitlePosition_$type, a));
},
enumerable: false,
configurable: true
});
TitleSettings.prototype.az = function (a, b, c, d) {
_super.prototype.az.call(this, a, b, c, d);
if (this.a == null || this.a.b7 == null) {
return;
}
switch (b) {
case "AxisTitlePosition":
this.a.d0 = true;
this.a.lx();
break;
}
};
TitleSettings.$t = markType(TitleSettings, 'TitleSettings', AxisLabelSettings.$);
return TitleSettings;
}(AxisLabelSettings));
export { TitleSettings };
/**
* @hidden
*/
var Axis = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(Axis, _super);
function Axis() {
var _this = _super.call(this) || this;
_this.bp = null;
_this.ck = null;
_this.by = null;
_this.j6 = null;
_this.hc = -1;
_this.hb = -1;
_this.hl = 0;
_this.co = false;
_this.cp = false;
_this.ox = { $type: Point_$type, x: Number.NEGATIVE_INFINITY, y: Number.NEGATIVE_INFINITY };
_this.labelMouseDown = null;
_this.labelMouseUp = null;
_this.labelMouseEnter = null;
_this.labelMouseLeave = null;
_this.labelMouseOver = null;
_this.labelMouseClick = null;
_this.panelMouseDown = null;
_this.panelMouseUp = null;
_this.panelMouseEnter = null;
_this.panelMouseLeave = null;
_this.panelMouseOver = null;
_this.panelMouseClick = null;
_this.bw = null;
_this.mf = null;
_this.cc = null;
_this.b6 = null;
_this.cj = null;
_this.cr = false;
_this.ez = NaN;
_this.et = 50;
_this.e5 = 0;
_this.e2 = 150;
_this.ax = 0;
_this.ey = NaN;
_this.e9 = 0;
_this.e4 = 0;
_this.e1 = 180;
_this.b9 = null;
_this.b8 = null;
_this.h1 = "Verdana";
_this.e0 = NaN;
_this.fb = 0;
_this.e6 = 8;
_this.e3 = 16;
_this.hf = -1;
_this.he = 1;
_this.hd = 3;
_this.hg = 0;
_this.pc = 0;
_this.e8 = 0;
_this.e7 = 2;
_this.mg = null;
_this.fc = 0;
_this.dp = false;
_this.cn = false;
_this.eu = 0;
_this.d7 = false;
_this.d9 = false;
_this.cs = false;
_this.rangeChanged = null;
_this.aq = new AxisAnnotationCollection();
_this.ar = new AxisAnnotationCollection();
_this.oy = Rect.empty;
_this.o5 = null;
_this.eq = null;
_this.er = null;
_this.a1 = null;
_this.cq = false;
_this.oz = null;
_this.bq = null;
_this.ha = null;
_this.ai = null;
_this.en = new Dictionary$2(String_$type, Base.$, 0);
_this._coercionMethods = null;
_this.cm = false;
_this.ea = false;
_this.ej = false;
_this.renderRequested = null;
_this.b1 = null;
_this.d1 = false;
_this.ew = NaN;
_this.ex = -1;
_this.d2 = false;
_this.propertyChanged = null;
_this.propertyUpdated = null;
_this.es = null;
_this.em = new Dictionary$2(String_$type, String_$type, 0);
_this.el = new Dictionary$2(String_$type, FastReflectionHelper.$, 0);
_this.pb = new Size();
_this.au = new AxisComponentsForView();
_this.fp = 0;
_this.ev = 0;
_this.ci = null;
_this.ch = null;
_this.cf = null;
_this.ce = null;
_this.cg = null;
_this.a2 = new AxisLabelSettings();
_this.g9 = null;
_this.ao = null;
_this.de = false;
_this.dh = false;
_this.cu = false;
_this.j6 = "AXIS_ID_" + Axis.hp++;
DVContainer.instance.registerIfLoaded("VisualDataFactoryManager");
DVContainer.instance.registerIfLoaded("AnnotationFactoryManager");
_this.oz = Rect.empty;
_this.cs = true;
_this.fp = NaN;
_this.bp = _this.bo();
_this.k6(_this.bp);
_this.bp.ar();
_this.ci = ((function () {
var $ret = new Pool$1(TextBlock.$);
$ret.create = runOn(_this.bp, _this.bp.a9);
$ret.activate = runOn(_this.bp, _this.bp.a2);
$ret.disactivate = runOn(_this.bp, _this.bp.a4);
$ret.destroy = runOn(_this.bp, _this.bp.a3);
return $ret;
})());
_this.ch = ((function () {
var $ret = new Pool$1(TextBlock.$);
$ret.create = runOn(_this.bp, _this.bp.a9);
$ret.activate = runOn(_this.bp, _this.bp.a2);
$ret.disactivate = runOn(_this.bp, _this.bp.a4);
$ret.destroy = runOn(_this.bp, _this.bp.a3);
return $ret;
})());
_this.cf = ((function () {
var $ret = new Pool$1(Rectangle.$);
$ret.create = runOn(_this.bp, _this.bp.bo);
$ret.activate = runOn(_this.bp, _this.bp.w);
$ret.disactivate = runOn(_this.bp, _this.bp.y);
$ret.destroy = runOn(_this.bp, _this.bp.x);
return $ret;
})());
_this.ce = ((function () {
var $ret = new Pool$1(AnnotationBackingArrangedSize.$);
$ret.create = runOn(_this, _this.aj);
$ret.activate = runOn(_this, _this.ke);
$ret.disactivate = runOn(_this, _this.kg);
$ret.destroy = runOn(_this, _this.kf);
return $ret;
})());
_this.cg = ((function () {
var $ret = new Pool$1(AnnotationBadge.$);
$ret.create = runOn(_this.bp, _this.bp.a);
$ret.activate = runOn(_this.bp, _this.bp.z);
$ret.disactivate = runOn(_this.bp, _this.bp.ab);
$ret.destroy = runOn(_this.bp, _this.bp.aa);
return $ret;
})());
_this.o5 = Rect.empty;
_this.eq = new List$1(Base.$, 0);
_this.er = new List$1(LabelPosition.$, 0);
_this.a1 = _this.a0();
_this.a1.ah = _this.a4;
_this.a1.ae = _this;
_this.es = new List$1(Series.$, 0);
var a = _this.aq;
a.collectionResetting = delegateCombine(a.collectionResetting, runOn(_this, _this.ka));
var b = _this.aq;
b.collectionChanged = delegateCombine(b.collectionChanged, runOn(_this, _this.j9));
var c = _this.ar;
c.collectionResetting = delegateCombine(c.collectionResetting, runOn(_this, _this.kc));
var d = _this.ar;
d.collectionChanged = delegateCombine(d.collectionChanged, runOn(_this, _this.kb));
_this.ab = Axis.$;
if (_this.a4 != null) {
_this.a2 = _this.a4;
}
_this.propertyUpdated = delegateCombine(_this.propertyUpdated, function (e, f) { return _this.la(e, f.propertyName, f.oldValue, f.newValue); });
_this.cj = function (e, f) {
if (_this.b7 == null || !_this.b7.fr) {
_this.me(f.oldRect, f.newRect);
}
};
_this.bp.ag();
return _this;
}
Axis.prototype.bo = function () {
return new AxisView(this);
};
Axis.prototype.k6 = function (a) {
};
Axis.prototype.kd = function () {
if (this.dd) {
this.bx.onAddAnnotations(this);
}
};
Object.defineProperty(Axis.prototype, "cl", {
get: function () {
if (this.ck == null) {
this.ck = new SRProvider(this.ha);
}
if (this.ck.l == null) {
this.ck.l = this.ha;
}
return this.ck;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "bz", {
get: function () {
var _this = this;
if (this.by == null) {
this.by = DVContainer.instance.createInstance(IAxisVisualDataManager_$type, function () { return _this.cl.q; });
}
return this.by;
},
enumerable: false,
configurable: true
});
Axis.prototype.f5 = function () {
return this.o0().width;
};
Axis.prototype.hz = function () {
return null;
};
Axis.prototype.hy = function () {
return null;
};
Axis.prototype.get_df = function () {
return false;
};
Object.defineProperty(Axis.prototype, "df", {
get: function () {
return this.get_df();
},
enumerable: false,
configurable: true
});
Axis.prototype.get_dq = function () {
return false;
};
Object.defineProperty(Axis.prototype, "dq", {
get: function () {
return this.get_dq();
},
enumerable: false,
configurable: true
});
Axis.prototype.get_dc = function () {
return false;
};
Object.defineProperty(Axis.prototype, "dc", {
get: function () {
return this.get_dc();
},
enumerable: false,
configurable: true
});
Axis.prototype.get_du = function () {
return false;
};
Object.defineProperty(Axis.prototype, "du", {
get: function () {
return this.get_du();
},
enumerable: false,
configurable: true
});
Axis.prototype.get_dy = function () {
return false;
};
Object.defineProperty(Axis.prototype, "dy", {
get: function () {
return this.get_dy();
},
enumerable: false,
configurable: true
});
Axis.prototype.get_dm = function () {
return !this.dy && !this.du && !this.dc;
};
Object.defineProperty(Axis.prototype, "dm", {
get: function () {
return this.get_dm();
},
enumerable: false,
configurable: true
});
Axis.prototype.get_dv = function () {
return false;
};
Object.defineProperty(Axis.prototype, "dv", {
get: function () {
return this.get_dv();
},
enumerable: false,
configurable: true
});
Axis.prototype.fq = function (a) {
return NaN;
};
Axis.prototype.get_dj = function () {
return false;
};
Object.defineProperty(Axis.prototype, "dj", {
get: function () {
return this.get_dj();
},
enumerable: false,
configurable: true
});
Axis.prototype.get_dr = function () {
return false;
};
Object.defineProperty(Axis.prototype, "dr", {
get: function () {
return this.get_dr();
},
enumerable: false,
configurable: true
});
Axis.prototype.get_ds = function () {
return false;
};
Object.defineProperty(Axis.prototype, "ds", {
get: function () {
return this.get_ds();
},
enumerable: false,
configurable: true
});
Axis.prototype.get_dg = function () {
return false;
};
Object.defineProperty(Axis.prototype, "dg", {
get: function () {
return this.get_dg();
},
enumerable: false,
configurable: true
});
Axis.prototype.get_di = function () {
return true;
};
Object.defineProperty(Axis.prototype, "di", {
get: function () {
return this.get_di();
},
enumerable: false,
configurable: true
});
Axis.prototype.ap = function () {
return this.an;
};
Axis.prototype.aj = function () {
return new AnnotationBackingArrangedSize();
};
Axis.prototype.ke = function (a) {
};
Axis.prototype.kg = function (a) {
};
Axis.prototype.kf = function (a) {
a.d = 0;
a.e = 0;
a.f = 0;
a.c = 0;
};
Object.defineProperty(Axis.prototype, "hk", {
get: function () {
return this.hc;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "hj", {
get: function () {
return this.hb;
},
enumerable: false,
configurable: true
});
Axis.prototype.ht = function (a) {
var b = new ScalerParams(0, this.b7.za, this.b7.y9, this.dn, this.b7.yv);
return this.f9(a, b);
};
Axis.prototype.ki = function (a, b, c, d, e) {
var f = this.ox;
this.ox = a;
if (!e) {
var g = a;
var h = 0;
var i = this.b7.yl(a);
if (this.a1.c6.isEmpty) {
return;
}
var j = this.a1.c6;
var k = { $type: Point_$type, x: this.a1.c6.x + (this.a1.c6.width * 0.5), y: this.a1.c6.y };
if (this.du && this.dq && this.an != null && this.an.dc) {
if (this.hr != null) {
h = Convert.toDouble3(this.hr);
g = GeometryUtil.w(k, a, -h);
}
}
if (j.containsPoint(g)) {
var l = this.dy ? a.y : a.x;
var m = this.dj ? this.ht(l) : dateMinValue();
var n = !this.dj ? this.ht(l) : NaN;
if (!this.co) {
this.lo(new AxisMouseEventArgs(this, n, m, null, null, a, i));
this.co = true;
}
if (f.x != a.x || f.y != a.y) {
this.lq(new AxisMouseEventArgs(this, n, m, null, null, a, i));
}
if (c) {
this.ln(new AxisMouseEventArgs(this, n, m, null, null, a, i));
this.cp = true;
}
else if (d) {
this.lr(new AxisMouseEventArgs(this, n, m, null, null, a, i));
if (this.cp) {
this.lm(new AxisMouseEventArgs(this, n, m, null, null, a, i));
}
this.cp = false;
}
}
else if (this.co) {
var o = this.dy ? a.y : a.x;
var p = this.dj ? this.ht(o) : dateMinValue();
var q = !this.dj ? this.ht(o) : NaN;
this.lp(new AxisMouseEventArgs(this, q, p, null, null, a, i));
this.co = false;
}
var r = -1;
var s = this.a1.bd;
for (var t = s.count - 1; t >= 0; t--) {
var u = s._inner[t];
var v = false;
var w = this.er._inner[t].b;
if (w) {
r++;
var x = this.ce.count - 1;
var y = this.ce.item(x - r);
var z = new Rect(0, y.d, y.e, y.f, y.c);
v = z.containsPoint(a);
if (v) {
var aa = 0;
}
}
else {
if (this.a1.bg._inner[t].j != null) {
var ab = this.a1.bg._inner[t].j;
var ac = this.ow(u, ab, k, h);
var ad = this.a1.ad(u, ac);
if (PolygonUtil.a(ad, a)) {
v = true;
}
}
else {
v = u.containsPoint(a);
}
}
if (v) {
var ae = this.a1.bf._inner[t].f;
var af = this.a1.be._inner[t];
var ag = this.dj ? this.ht(ae) : dateMinValue();
var ah = !this.dj ? this.ht(ae) : NaN;
var ai = null;
var aj = null;
if (typeof af === 'string') {
ai = af;
}
else {
if (typeCast(ContentControl.$, af) !== null) {
aj = af.content;
}
else {
aj = af;
}
}
if (t != this.hk) {
if (this.hk != -1 && this.hk < this.a1.bf.count) {
var ak = this.a1.bf._inner[this.hk].f;
var al = this.dj ? this.ht(ak) : dateMinValue();
var am = !this.dj ? this.ht(ak) : NaN;
var an = this.a1.be._inner[this.hk];
var ao = null;
var ap = null;
if (typeof an === 'string') {
ao = an;
}
else {
if (typeCast(ContentControl.$, an) !== null) {
ap = an.content;
}
else {
ap = an;
}
}
this.lj(new AxisMouseEventArgs(this, am, al, ao, ap, a, i));
}
this.hc = t;
this.hb = w ? this.ce.count - 1 - r : -1;
this.li(new AxisMouseEventArgs(this, ah, ag, ai, aj, a, i));
}
if (f.x != a.x || f.y != a.y) {
this.lk(new AxisMouseEventArgs(this, ah, ag, ai, aj, a, i));
}
if (c) {
this.lh(new AxisMouseEventArgs(this, ah, ag, ai, aj, a, i));
this.hl = t;
}
else if (d) {
this.ll(new AxisMouseEventArgs(this, ah, ag, ai, aj, a, i));
if (t == this.hl) {
this.lg(new AxisMouseEventArgs(this, ah, ag, ai, aj, a, i));
this.hl = -1;
}
}
return;
}
}
}
if (this.hk != -1 && this.hk < this.a1.bf.count) {
if (this.labelMouseLeave != null) {
var aq = this.b7.yl(a);
var ar = this.a1.bf._inner[this.hk].f;
var as = this.a1.be._inner[this.hk];
var at = null;
var au = null;
if (typeof as === 'string') {
at = as;
}
else {
if (typeCast(ContentControl.$, as) !== null) {
au = as.content;
}
else {
au = as;
}
}
var av = this.dj ? this.ht(ar) : dateMinValue();
var aw = !this.dj ? this.ht(ar) : NaN;
this.lj(new AxisMouseEventArgs(this, aw, av, at, au, a, aq));
}
this.hc = -1;
this.hb = -1;
}
if (d) {
this.hl = -1;
}
};
Axis.prototype.ow = function (a, b, c, d) {
var e = new TransformGroup();
e.j.add(b);
e.j.add(((function () {
var $ret = new RotateTransform();
$ret.j = d;
$ret.k = c.x;
$ret.l = c.y;
return $ret;
})()));
return e;
};
Axis.prototype.c4 = function () {
return this.labelMouseDown != null;
};
Axis.prototype.lh = function (a) {
if (this.labelMouseDown != null) {
this.labelMouseDown(this, a);
}
};
Axis.prototype.c8 = function () {
return this.labelMouseUp != null;
};
Axis.prototype.ll = function (a) {
if (this.labelMouseUp != null) {
this.labelMouseUp(this, a);
}
};
Axis.prototype.c5 = function () {
return this.labelMouseEnter != null;
};
Axis.prototype.li = function (a) {
if (this.labelMouseEnter != null) {
this.labelMouseEnter(this, a);
}
};
Axis.prototype.c6 = function () {
return this.labelMouseLeave != null;
};
Axis.prototype.lj = function (a) {
if (this.labelMouseLeave != null) {
this.labelMouseLeave(this, a);
}
};
Axis.prototype.c7 = function () {
return this.labelMouseOver != null;
};
Axis.prototype.lk = function (a) {
if (this.labelMouseOver != null) {
this.labelMouseOver(this, a);
}
};
Axis.prototype.c3 = function () {
return this.labelMouseClick != null;
};
Axis.prototype.lg = function (a) {
if (this.labelMouseClick != null) {
this.labelMouseClick(this, a);
}
};
Axis.prototype.ln = function (a) {
if (this.panelMouseDown != null) {
this.panelMouseDown(this, a);
}
};
Axis.prototype.lr = function (a) {
if (this.panelMouseUp != null) {
this.panelMouseUp(this, a);
}
};
Axis.prototype.lo = function (a) {
if (this.panelMouseEnter != null) {
this.panelMouseEnter(this, a);
}
};
Axis.prototype.lp = function (a) {
if (this.panelMouseLeave != null) {
this.panelMouseLeave(this, a);
}
};
Axis.prototype.lq = function (a) {
if (this.panelMouseOver != null) {
this.panelMouseOver(this, a);
}
};
Axis.prototype.lm = function (a) {
if (this.panelMouseClick != null) {
this.panelMouseClick(this, a);
}
};
Object.defineProperty(Axis.prototype, "bx", {
get: function () {
var _this = this;
if (this.bw == null) {
this.bw = DVContainer.instance.createInstance(IAxisAnnotationManager_$type, function () { return _this.cl.n; });
this.bw.owner = this;
}
return this.bw;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "dd", {
get: function () {
return DVContainer.instance.checkLoaded("AnnotationFactoryManager");
},
enumerable: false,
configurable: true
});
Axis.prototype.kb = function (a, b) {
if (!this.dd) {
return;
}
this.bx.onAutoAnnotionsChanged(this, this.ar, b);
};
Axis.prototype.kc = function (a, b) {
if (!this.dd) {
return;
}
this.bx.onAutoAnnotionsReset(this, this.ar, b);
};
Axis.prototype.j9 = function (a, b) {
if (!this.dd) {
return;
}
this.bx.onAnnotionsChanged(this, this.aq, b);
};
Axis.prototype.ka = function (a, b) {
if (!this.dd) {
return;
}
this.bx.onAnnotionsReset(this, this.aq, b);
};
Axis.prototype.provideRenderer = function (a) {
ImageLoader.d = a;
this.ha = a;
this.kh();
this.a1.ah = this.a4;
};
Axis.prototype.k3 = function (a, b) {
if (!a.equals1(b)) {
this.md(a, b);
}
};
Axis.prototype.ac = function () {
_super.prototype.ac.call(this);
this.bp.au();
};
Object.defineProperty(Axis.prototype, "cd", {
get: function () {
return this.cc;
},
set: function (a) {
if (this.cd != a) {
var b = this.cd;
this.cc = a;
this.ls("FastItemsSourceProvider", b, this.cc);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "b7", {
get: function () {
return this.b6;
},
set: function (a) {
if (this.b7 != a) {
var b = this.b7;
this.b6 = a;
this.ls("SeriesViewer", b, this.b6);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "b5", {
get: function () {
return typeCast(XamDataChart.$, this.b7);
},
set: function (a) {
this.b7 = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "ei", {
get: function () {
return this.cr;
},
set: function (a) {
if (this.cr == a) {
return;
}
this.cr = a;
var b = null;
if (this.a1 != null && Rect.l_op_Inequality(this.a1.c6, null)) {
b = this.a1.c6;
}
this.a1 = this.a0();
this.a1.ae = this;
this.a1.ah = this.a4;
if (Rect.l_op_Inequality(b, null)) {
this.a1.c6 = b;
}
if (this.b7 != null && this.b7.dw != null) {
this.a1.ag.ak(this.b7.dw.y);
this.lw(true);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "gv", {
get: function () {
return this.ez;
},
set: function (a) {
var b = this.ez;
if (b != a) {
this.ez = a;
this.fa = a;
this.lw(true);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "fa", {
get: function () {
return this.et;
},
set: function (a) {
this.et = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "g1", {
get: function () {
return this.e5;
},
set: function (a) {
this.e5 = a;
this.lw(true);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "gy", {
get: function () {
return this.e2;
},
set: function (a) {
this.e2 = a;
this.lw(true);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "ay", {
get: function () {
return this.ax;
},
set: function (a) {
var b = this.ax;
if (b != a) {
this.ax = a;
this.lw(true);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "gu", {
get: function () {
return this.ey;
},
set: function (a) {
this.ey = a;
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "g0", {
get: function () {
return this.e4;
},
set: function (a) {
this.e4 = a;
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "gx", {
get: function () {
return this.e1;
},
set: function (a) {
this.e1 = a;
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "cb", {
get: function () {
if (this.b9 == null) {
if (this.b8 == null) {
this.b8 = this.bp.j();
}
return this.b8;
}
return this.b9;
},
set: function (a) {
this.b9 = a;
this.e0 = FontUtil.getFontSize(this.b9);
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "ju", {
get: function () {
return this.h1;
},
set: function (a) {
this.h1 = a;
var b = this.e0;
if (isNaN_(b)) {
b = 12;
}
this.cb.q = a;
this.cb.f = b;
this.a1.cc();
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "gw", {
get: function () {
return this.e0;
},
set: function (a) {
this.e0 = a;
this.cb = FontUtil.getFontWithNewFontSize(this.cb, this.e0);
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "g2", {
get: function () {
return this.e6;
},
set: function (a) {
this.e6 = a;
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "gz", {
get: function () {
return this.e3;
},
set: function (a) {
this.e3 = a;
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "ho", {
get: function () {
return this.hf;
},
set: function (a) {
this.hf = a;
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "hn", {
get: function () {
return this.he;
},
set: function (a) {
this.he = a;
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "hm", {
get: function () {
return this.hd;
},
set: function (a) {
this.hd = a;
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "ph", {
get: function () {
return this.pc;
},
set: function (a) {
this.pc = a;
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "g4", {
get: function () {
return this.e8;
},
set: function (a) {
this.e8 = a;
this.lv();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "g3", {
get: function () {
return this.e7;
},
set: function (a) {
this.e7 = a;
this.lv();
},
enumerable: false,
configurable: true
});
Axis.prototype.l6 = function () {
this.a1.cu();
};
Axis.prototype.lv = function () {
this.lw(false);
};
Axis.prototype.lw = function (a) {
if (a) {
this.a1.ct();
}
this.d0 = true;
this.lu();
};
Axis.prototype.l9 = function () {
if (this.g6 > 0) {
this.fc = this.g6;
return;
}
var a = typeCast(XamDataChart.$, this.b7);
if (a != null && isNaN_(this.g6) && this.df && (this.dy || this.bm == 0)) {
this.fc = a.z3.ft;
return;
}
this.fc = 0;
};
Object.defineProperty(Axis.prototype, "c1", {
get: function () {
return this.cn;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "da", {
get: function () {
return this.a4 != null && this.a4.k();
},
enumerable: false,
configurable: true
});
Axis.prototype.l5 = function (a) {
this.cn = true;
if (this.eu != a) {
this.eu = a;
this.ly(false);
}
};
Axis.prototype.l0 = function () {
this.cn = false;
this.eu = 0;
this.ly(false);
};
Axis.prototype.f2 = function () {
if (this.c1 && (!this.da || (this.da && this.a4.angle == 0))) {
return this.gj();
}
if (this.da) {
return this.a4.angle;
}
return 0;
};
Axis.prototype.gj = function () {
return this.eu;
};
Object.defineProperty(Axis.prototype, "eg", {
get: function () {
return this.c(Axis.n6);
},
set: function (a) {
this.h(Axis.n6, a);
},
enumerable: false,
configurable: true
});
Axis.prototype.fs = function () {
return 0;
};
Axis.prototype.n9 = function () {
if (this.dy) {
return 2;
}
return 0;
};
Axis.prototype.pe = function () {
return 1;
};
Axis.prototype.oa = function () {
return 1;
};
Axis.prototype.pf = function () {
return 1;
};
Axis.prototype.fu = function () {
if (this.dy) {
return DeviceUtils.g(5);
}
return 0;
};
Axis.prototype.fw = function () {
if (!this.dy && !this.dc) {
return DeviceUtils.g(5);
}
return 0;
};
Axis.prototype.fv = function () {
if (this.dy) {
return DeviceUtils.g(5);
}
return 0;
};
Axis.prototype.ft = function () {
if (!this.dy && !this.dc) {
return DeviceUtils.g(5);
}
return 0;
};
Axis.prototype.fz = function () {
return NaN;
};
Axis.prototype.f1 = function () {
return NaN;
};
Axis.prototype.f0 = function () {
return NaN;
};
Axis.prototype.fy = function () {
return NaN;
};
Axis.prototype.a6 = function () {
if (this.dy) {
return 2;
}
if (this.du) {
return 5;
}
return 1;
};
Axis.prototype.a7 = function () {
return 1;
};
Axis.prototype.lt = function (a) {
if (this.rangeChanged != null) {
this.rangeChanged(this, a);
}
};
Axis.prototype.fx = function () {
if (this.dy) {
return -90;
}
return 0;
};
Axis.prototype.fr = function () {
return NaN;
};
Object.defineProperty(Axis.prototype, "as", {
get: function () {
return this.aq;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "at", {
get: function () {
return this.ar;
},
enumerable: false,
configurable: true
});
Axis.prototype.i6 = function (a) {
return null;
};
Object.defineProperty(Axis.prototype, "o6", {
get: function () {
if (this.o5.isEmpty) {
return this.oy;
}
return this.o5;
},
set: function (a) {
this.oy = a;
},
enumerable: false,
configurable: true
});
Axis.prototype.ma = function () {
var a = 0;
var b = typeCast(XamDataChart.$, this.b7);
if (b != null && b.zu == 0) {
a = 1;
}
this.bp.a7(a);
};
Axis.prototype.ek = function (a, b, c) {
return this.b7 != null;
};
Axis.prototype.dx = function () {
var a = Rect.empty;
if (this.b7 != null) {
a = this.b7.za;
}
return this.ek(this.o6, a, this.bp);
};
Axis.prototype.md = function (a, b) {
this.d1 = false;
this.o6 = b;
this.d0 = true;
this.ed();
this.ly(false);
if (this.b7 != null) {
this.b7.a3.ae(1, this, this.bq, b);
}
};
Object.defineProperty(Axis.prototype, "d0", {
get: function () {
return this.cq;
},
set: function (a) {
this.cq = a;
},
enumerable: false,
configurable: true
});
Axis.prototype.o3 = function () {
if (this.b7 == null || this.b7.yv.isEmpty) {
return Rect.empty;
}
var a = this.b7.yv;
var b = this.o6;
var c = (a.left - b.left) / b.width;
var d = (a.top - b.top) / b.height;
var e = (a.right - b.left) / b.width;
var f = (a.bottom - b.top) / b.height;
return new Rect(0, c, d, e - c, f - d);
};
Axis.prototype.me = function (a, b) {
this.oz = b;
this.d0 = true;
this.ly(true);
};
Axis.prototype.lu = function () {
this.ly(false);
};
Axis.prototype.la = function (a, b, c, d) {
var e_37, _a;
if (stringContains(b, "CompanionAxis")) {
this.kt(b, c, d);
}
switch (b) {
case Axis.$$p[38]:
case Axis.$$p[39]:
if (this.jb != null) {
this.ai = new BindingFormatter();
this.ai.j = this.jb;
this.ai.d = this.ah;
}
else {
this.ai = null;
}
break;
case "SeriesViewer":
var e = typeCast(SeriesViewer.$, c);
if (e != null) {
this.ha = null;
e.actualWindowRectChanged = delegateRemove(e.actualWindowRectChanged, this.cj);
e.a3.ad(1, this);
this.bp.al(e);
}
var f = typeCast(SeriesViewer.$, d);
if (f != null) {
this.ha = f.dw.j.ae;
this.oz = f.yr;
f.actualWindowRectChanged = delegateCombine(f.actualWindowRectChanged, this.cj);
this.bq = f.a3.k(1, this, runOn(this, this.ky));
if (this.a4 == null && this.ha != null) {
this.provideRenderer(this.ha);
}
this.bp.ae(f);
if (this.d2 && !this.bq.e) {
this.d2 = false;
this.ed();
}
this.l8();
this.l9();
}
break;
case Axis.$$p[36]:
this.ly(false);
break;
case Axis.$$p[50]:
this.d9 = this.d8;
this.ly(false);
break;
case Axis.$$p[49]:
this.d7 = this.d6;
this.ly(false);
break;
case Axis.$$p[37]:
this.dp = this.dn;
var g = new AxisRangeChangedEventArgs(0, 0, 0, 1, 1);
this.kx(g);
try {
for (var _b = __values(fromEnum(this.es)), _c = _b.next(); !_c.done; _c = _b.next()) {
var h = _c.value;
h.qp();
if (h.dc != null) {
h.q0();
}
}
}
catch (e_37_1) {
e_37 = { error: e_37_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_37)
throw e_37.error;
}
}
break;
case Axis.$$p[40]:
this.bp.as();
if (typeCast(DataTemplate.$, d) !== null) {
this.ej = true;
}
else {
this.ej = false;
}
this.d0 = true;
this.l2();
this.ly(false);
break;
case Axis.$$p[44]:
case Axis.$$p[47]:
case Axis.$$p[54]:
this.ly(false);
break;
case Axis.$$p[41]:
var i = typeCast(AxisLabelSettings.$, d);
if (i != null) {
i.registerAxis(this);
this.a2 = i;
}
else {
this.a2 = new AxisLabelSettings();
}
if (this.a1 != null) {
this.a1.ah = this.a2;
}
this.k8();
this.d0 = true;
this.ly(false);
break;
case Axis.$$p[59]:
this.bp.av();
break;
case Axis.$$p[60]:
var j = typeCast(TitleSettings.$, d);
if (j != null) {
j.registerAxis(this);
}
else {
j = new TitleSettings();
}
if (this.mg != null) {
this.mg.dataContext = j;
}
this.k9();
this.ly(false);
break;
case Axis.$$p[55]:
this.d0 = true;
this.l9();
this.bp.ao();
this.ly(false);
break;
case Axis.$$p[61]:
case Axis.$$p[33]:
case "UseEnhancedIntervalManagement":
case Axis.$$p[34]:
this.cs = this.eh;
this.d0 = true;
this.ly(false);
break;
case Axis.$$p[31]:
if (this.b7 != null) {
this.b7.pr();
}
break;
case Axis.$$p[46]:
this.l8();
if (d != null) {
this.ea = true;
this.ly(false);
}
else {
this.ea = false;
}
break;
case Axis.$$p[32]:
if (this.an != null) {
this.an.lx();
}
break;
case Axis.$$p[53]:
case Axis.$$p[43]:
this.l8();
this.ly(false);
break;
case Axis.$$p[52]:
case Axis.$$p[42]:
case Axis.$$p[45]:
case Axis.$$p[35]:
case Axis.$$p[57]:
case Axis.$$p[58]:
case Axis.$$p[56]:
case Axis.$$p[2]:
case Axis.$$p[0]:
case Axis.$$p[1]:
case Axis.$$p[51]:
this.ly(false);
break;
case "MinExtent":
this.bp.ao();
break;
}
};
Axis.prototype.dw = function (a) {
return this.en.containsKey(a);
};
Axis.prototype.kt = function (a, b, c) {
if (!stringContains(a, "CompanionAxis")) {
return;
}
if (this.en.containsKey(a)) {
if (c == null || this.en.item(a) == c) {
this.en.removeItem(a);
}
}
else {
this.en.addItem(a, b);
}
switch (a) {
case Axis.$$p[5]:
this.kv();
break;
case Axis.$$p[26]:
this.ku();
break;
case Axis.$$p[6]:
case Axis.$$p[23]:
case Axis.$$p[24]:
case Axis.$$p[25]:
case Axis.$$p[15]:
case Axis.$$p[16]:
case Axis.$$p[18]:
case Axis.$$p[19]:
case Axis.$$p[28]:
case Axis.$$p[29]:
case Axis.$$p[27]:
case Axis.$$p[7]:
case Axis.$$p[8]:
case Axis.$$p[9]:
case Axis.$$p[12]:
case Axis.$$p[11]:
case Axis.$$p[13]:
case Axis.$$p[10]:
case Axis.$$p[14]:
case Axis.$$p[30]:
case Axis.$$p[3]:
case Axis.$$p[4]:
case Axis.$$p[20]:
case Axis.$$p[21]:
case Axis.$$p[22]:
this.kw(a);
break;
}
};
Axis.prototype.kw = function (a) {
switch (a) {
case Axis.$$p[30]:
case Axis.$$p[6]:
case Axis.$$p[16]:
case Axis.$$p[19]:
case Axis.$$p[29]:
case Axis.$$p[28]:
case Axis.$$p[27]:
case Axis.$$p[25]:
case Axis.$$p[3]:
case Axis.$$p[4]:
case Axis.$$p[20]:
case Axis.$$p[21]:
case Axis.$$p[22]:
this.ks(a);
break;
case Axis.$$p[23]:
case Axis.$$p[24]:
case Axis.$$p[15]:
case Axis.$$p[18]:
this.kr(a);
break;
case Axis.$$p[7]:
case Axis.$$p[8]:
case Axis.$$p[9]:
case Axis.$$p[12]:
case Axis.$$p[11]:
case Axis.$$p[13]:
case Axis.$$p[10]:
case Axis.$$p[14]:
this.kq("LabelSettings");
break;
}
};
Axis.prototype.kq = function (a) {
if (this.b5 != null && this.dt) {
this.b5.zi(this.b5).y(this, a);
}
};
Axis.prototype.kr = function (a) {
var b = stringReplace(a, "CompanionAxis", "Actual");
this.kq(b);
};
Axis.prototype.ks = function (a) {
var b = stringReplace(a, "CompanionAxis", "");
this.kq(b);
};
Axis.prototype.k8 = function () {
if (this.bp.r()) {
this.bp.ah(this.a2);
}
};
Axis.prototype.k9 = function () {
this.bp.av();
};
Object.defineProperty(Axis.prototype, "coercionMethods", {
get: function () {
return this._coercionMethods;
},
set: function (a) {
this._coercionMethods = a;
},
enumerable: false,
configurable: true
});
Axis.prototype.get_expectFunctions = function () {
return this.cm;
};
Axis.prototype.set_expectFunctions = function (a) {
this.cm = a;
};
Object.defineProperty(Axis.prototype, "expectFunctions", {
get: function () {
return this.get_expectFunctions();
},
set: function (a) {
this.set_expectFunctions(a);
},
enumerable: false,
configurable: true
});
Axis.prototype.l2 = function () {
this.ci.count = 0;
this.ch.count = 0;
this.cf.count = 0;
this.ce.count = 0;
this.cg.count = 0;
if (this.bp.r()) {
this.bp.az();
}
};
Axis.prototype.k5 = function (a, b, c, d) {
var e = Math.min(b, c);
var f = Math.max(b, c);
if (e < d.bottom && f > d.top) {
var g = new RectangleGeometry();
g.e = new Rect(0, d.left, e, d.width, f - e);
a.add(g);
}
};
Axis.prototype.k4 = function (a, b, c, d, e) {
var f = b <= c.bottom && b >= c.top;
if (!e && f) {
f = !this.dl(b, d.c, c, false);
}
if (f) {
if (d.a) {
b = this.fd(b, c.top, c.bottom, d);
}
var g = new LineGeometry();
g.d = { $type: Point_$type, x: c.left, y: b };
g.c = { $type: Point_$type, x: c.right, y: b };
a.add(g);
}
};
Axis.prototype.mc = function (a, b, c, d) {
var e = Math.min(b, c);
var f = Math.max(b, c);
if (f > d.left && e < d.right) {
var g = new RectangleGeometry();
g.e = new Rect(0, e, d.top, f - e, d.height);
a.add(g);
}
};
Axis.prototype.mb = function (a, b, c, d, e) {
var f = b >= c.left && b <= c.right;
if (!f) {
var g = truncate(Math.round(b));
var h = truncate(Math.round(c.left));
var i = truncate(Math.round(c.right));
if (g >= h && g <= i) {
f = true;
}
}
if (!e && f) {
f = !this.dl(b, d.c, c, true);
}
if (f) {
if (d.a) {
b = this.fd(b, c.left, c.right, d);
}
var j = new LineGeometry();
j.d = { $type: Point_$type, x: b, y: c.top };
j.c = { $type: Point_$type, x: b, y: c.bottom };
a.add(j);
}
};
Axis.prototype.dl = function (a, b, c, d) {
var e_38, _a;
var e = false;
var f = typeCast(XamDataChart.$, this.b7);
if (f != null && (f.aam || f.aan) && !c.isEmpty) {
var g = this.b7.yr.width == 1 && this.b7.yr.height == 1;
try {
for (var _b = __values(fromEnum(f.zq)), _c = _b.next(); !_c.done; _c = _b.next()) {
var h = _c.value;
if (h._visibility != 0 || h.g5 < 1 || h.oe == null || BrushUtilCore.a(h.oe) || h.o6.isEmpty) {
continue;
}
if (h.an != null && h.c2()) {
if (f.aam) {
var i = this.dy ? c.left : c.top;
var j = 0;
var k = h.l4(i, j, h.b7.za, c, h.o1(), d ? c.left : c.top, d ? c.right : c.bottom);
i = k.p0;
j = k.p1;
var l = Rect.empty;
var m = Rect.empty;
if (d && h.dy) {
l = new Rect(0, i - (h.g5 / 2), h.o6.top, h.g5, h.o6.height);
m = new Rect(0, a - (b / 2), c.top, b, c.height);
}
else if (!d && !h.dy) {
l = new Rect(0, h.o6.left, i - (h.g5 / 2), h.o6.width, h.g5);
m = new Rect(0, c.left, a - (b / 2), c.width, b);
}
if (l.left <= m.right && m.left <= l.right && l.top <= m.bottom && m.top <= l.bottom) {
e = true;
break;
}
}
}
else {
var n = Rect.empty;
var o = Rect.empty;
if (d && h.dy) {
n = new Rect(0, h.o6.left, h.o6.top, h.g5, h.o6.height);
o = new Rect(0, a - (b / 2), c.top, b, c.height);
}
else if (!d && !h.dy) {
n = new Rect(0, h.o6.left, h.o6.bottom - (h.g5 / 2), h.o6.width, h.g5);
o = new Rect(0, c.left, a - (b / 2), c.width, b);
}
if (n.left <= o.right && o.left <= n.right && n.top <= o.bottom && o.top <= n.bottom) {
e = true;
break;
}
if (g && f.aan) {
var p = f.abh;
if (isNaN_(p)) {
if (d && h.dy) {
p = 0;
p = Math.max(p, f.aa9);
p = Math.max(p, f.aa6);
}
else if (!d && !h.dy) {
p = 0;
p = Math.max(p, f.aa7);
p = Math.max(p, f.aa8);
}
p += 1;
}
p *= 2;
if (d && h.dy) {
n = new Rect(0, h.o6.left, h.o6.top, h.g5, h.o6.height);
o = new Rect(0, a - (p / 2), c.top, p, c.height);
}
else if (!d && !h.dy) {
n = new Rect(0, h.o6.left, h.o6.bottom - (h.g5 / 2), h.o6.width, h.g5);
o = new Rect(0, c.left, a - (p / 2), c.width, p);
}
if (n.left <= o.right && o.left <= n.right && n.top <= o.bottom && o.top <= n.bottom) {
e = true;
break;
}
}
}
}
}
catch (e_38_1) {
e_38 = { error: e_38_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_38)
throw e_38.error;
}
}
}
return e;
};
Axis.prototype.l4 = function (a, b, c, d, e, f, g) {
var h = Math.abs(f - g);
if (typeCast(Date_$type, this.hr) !== null) {
a = this.hr.getTime();
a = this.an.gt(a);
}
else {
a = this.hr;
a = this.an.gt(a);
}
var i = typeCast(CategoryAxisBase.$, this.an);
if (i != null && i.categoryMode == 2) {
var j = 0.5 * i.getCategorySize(c, d, e);
var k = i.bm == 0;
if (i.dn == k) {
j = -j;
}
a = a + j;
}
b = a - f;
if (a < f) {
a = f;
}
else if (a > g) {
a = g;
}
if (b < 0) {
b = 0;
}
else if (b > h) {
b = h;
}
return {
p0: a,
p1: b
};
};
Axis.prototype.fd = function (a, b, c, d) {
var e = a;
if (d != null && d.c > 0) {
var f = d.c % 2;
if (f == 0 || f == 1) {
var g = 1;
e = Math.floor(a);
if (e + 0.5 < a) {
g = -1;
e = Math.ceil(a);
}
if (f == 1) {
e += 0.5 * g;
}
if (e >= c) {
e -= 1;
}
else if (e <= b) {
e += 1;
}
}
}
return e;
};
Axis.prototype.kk = function (a) {
this.bp.ak(a);
};
Axis.prototype.kj = function () {
this.ci.count = 0;
this.ch.count = 0;
this.cf.count = 0;
this.cg.count = 0;
this.bp.ai();
this.eq.clear();
this.er.clear();
};
Axis.prototype.lx = function () {
this.ly(false);
};
Axis.prototype.ly = function (a) {
if (this.b7 != null) {
this.b7.a3.ac(1, this, this.bq, a);
if (this.renderRequested != null) {
var b = new RenderRequestedEventArgs();
b.animate = a;
this.renderRequested(this, b);
a = b.animate;
}
}
};
Axis.prototype.gn = function () {
if (this.b1 == null) {
return -1;
}
if (isNaN_(this.b1.b)) {
return -1;
}
if (this.f2() != 0) {
return -1;
}
var a = this.b1.b;
var b = this.gr();
var c = this.go();
a = a + b + c;
return Math.max(Axis.gg, a);
};
Axis.prototype.gr = function () {
if (this.a4 == null) {
return 0;
}
else {
return this.a4.topMargin;
}
};
Axis.prototype.gp = function () {
if (this.a4 == null) {
return 0;
}
else {
return this.a4.leftMargin;
}
};
Axis.prototype.gq = function () {
if (this.a4 == null) {
return 0;
}
else {
return this.a4.rightMargin;
}
};
Axis.prototype.go = function () {
if (this.a4 == null) {
return 0;
}
else {
return this.a4.bottomMargin;
}
};
Axis.prototype.gl = function () {
if (this.b1 == null) {
return -1;
}
if (isNaN_(this.b1.d) && isNaN_(this.ew)) {
return -1;
}
if (this.a4 != null && (this.a4.angle != 0)) {
return -1;
}
var a = this.b1.d;
if (!isNaN_(this.ew) && this.hi == -1) {
return this.ew;
}
return Math.max(Axis.gg, this.b1.d);
};
Axis.prototype.fo = function (a, b, c, d, e) {
if (a == 1) {
return 1;
}
if (b) {
return a;
}
var f = 0;
var g = this.gd(a, b, c, d, e);
if (!b && f < 10 && this.eb(g, a, c, d, e)) {
a = g;
g = a - 1;
f += 1;
while (!b && f < 10 && this.eb(g, a, c, d, e)) {
a = g;
g = a - 1;
f += 1;
}
}
return a;
};
Axis.prototype.gd = function (a, b, c, d, e) {
var f = false;
if (this.dy) {
f = this.df && this.cy && this.b1 != null;
}
else {
f = this.df && this.cy && this.c9();
}
if (f) {
var g = this.f3(a, c, d, e);
if (isNaN_(g)) {
return a;
}
var h = this.f4(a, c, d, e);
if (g <= h) {
return a;
}
var i = Math.ceil((h / g) * a) + 1;
if (f && i == a) {
i--;
}
return i;
}
return a;
};
Axis.prototype.f4 = function (a, b, c, d) {
if (this.dy) {
var e = this.b1.b;
return e;
}
else {
var f = this.ew;
if (this.b7 != null && this.b7.go) {
f = this.b1.b;
}
return f;
}
};
Axis.prototype.eb = function (a, b, c, d, e) {
if (this.dy) {
if (this.df && this.cy && this.b1 != null) {
var f = this.b1.b;
if (a >= 1) {
var g = a;
if (g < 1) {
return false;
}
var h = this.f3(g, c, d, e);
if (isNaN_(h)) {
return false;
}
if (h > f) {
return true;
}
}
}
}
else {
if (this.df && this.cy && this.c9()) {
if (a >= 1) {
var i = a;
if (i < 1) {
return false;
}
var j = this.f3(i, c, d, e);
if (isNaN_(j)) {
return false;
}
var k = this.ew;
if (this.b7 != null && this.b7.go) {
k = this.b1.b;
}
if (j > k) {
return true;
}
}
}
}
return false;
};
Axis.prototype.f3 = function (a, b, c, d) {
return NaN;
};
Axis.prototype.gm = function () {
if (this.dy) {
return this.gn();
}
else {
return this.gl();
}
};
Object.defineProperty(Axis.prototype, "ec", {
get: function () {
return this.hi == -1;
},
enumerable: false,
configurable: true
});
Axis.prototype.ky = function (a) {
if (this.bp.p()) {
return;
}
var b = 0;
var c = 0;
if (this.er != null && this.er.count > 0) {
b = this.er._inner[this.er.count - 1].h;
c = this.er.count;
}
if (this.d0 && this.eg) {
this.b1 = this.b0();
}
this.bp.af();
this.lz(a);
this.bp.aw();
if (!this.dy && this.d0 && this.eg && this.ec) {
if (this.cz()) {
this.bp.af();
this.lz(a);
this.bp.aw();
}
}
var d = 1;
var e = 0;
if (this.er != null && this.er.count > 0) {
d = this.er._inner[this.er.count - 1].h;
e = this.er.count;
}
if (this.ei) {
this.d0 = true;
}
var f = false;
if (d != b || e != c || this.d0) {
this.d0 = false;
if (this.bp.r()) {
this.bp.ao();
f = true;
}
}
this.bp.an();
if (!f) {
this.kz();
}
};
Axis.prototype.cz = function () {
if (!isNaN_(this.ew) || this.eq == null || this.eq.count == 0) {
return false;
}
var a = this.ca();
if (a == null) {
return false;
}
var b = -1.7976931348623157E+308;
for (var c = 0; c < this.eq.count; c++) {
var d = this.eq._inner[c];
if (typeof d === 'string') {
var e = FontUtil.measureStringWidth(d, a, this.bp.l);
b = Math.max(e, b);
}
}
b += 5;
if (this.a4 != null) {
b += this.a4.leftMargin + this.a4.rightMargin;
}
this.ew = b;
return true;
};
Axis.prototype.l1 = function () {
this.ew = NaN;
this.ly(false);
};
Axis.prototype.c9 = function () {
return !isNaN_(this.ew) && this.hi == -1;
};
Axis.prototype.fe = function (a, b) {
return a;
};
Axis.prototype.l3 = function () {
this.ew = NaN;
};
Axis.prototype.b0 = function () {
var a = this.ca();
if (a == null) {
return null;
}
if (a.f == 0) {
return null;
}
var b = "W";
if (this.bp.l == null) {
return null;
}
var c = FontUtil.measureStringWidth(b, a, this.bp.l);
if (this.ex != c || this.b1 == null) {
this.ex = c;
var d = FontUtil.getCurrentFontHeight(this.b7.dw.j.ae, a);
if (this.b1 == null) {
this.b1 = new LabelFontHeuristics();
}
this.b1.b = d;
this.b1.c = this.hi;
this.b1.a = this.cy;
this.b1.e = c;
this.b1.d = this.b1.e * this.b1.c;
}
return this.b1;
};
Axis.prototype.ca = function () {
var a = null;
if (this.b7 != null) {
a = this.b7.getFontInfo();
}
if (this.a4 != null && this.a4.j) {
if (this.b7 != null) {
a = this.a4.h(this.b7.dw.j.ae);
}
}
return a;
};
Axis.prototype.kz = function () {
if (!this.bp.r()) {
return;
}
if (!this.db()) {
this.bp.am();
}
};
Axis.prototype.ed = function () {
return this.ee(false);
};
Axis.prototype.ee = function (a) {
if (a || this.b7 == null) {
var b = this.ef();
if (b) {
this.d0 = true;
}
this.d2 = false;
return b;
}
if (!this.d2) {
this.d2 = true;
this.b7.a3.ab(this, this.bq);
}
return false;
};
Axis.prototype.ef = function () {
return false;
};
Axis.prototype.kl = function () {
};
Axis.prototype.lz = function (a) {
if (this.mg != null) {
if ((this.b4 == null || this.b4.visibility == 0) && (this.a4 == null || this.a4.visibility == 0) && this.j3 != null) {
this.mg._visibility = 0;
}
else {
this.mg._visibility = 1;
}
}
};
Axis.prototype.l8 = function () {
var e_39, _a, e_40, _b;
var a = typeCast(XamDataChart.$, this.b7);
if (a == null) {
return;
}
var b = null, c = null, d = null;
if (this.df && !this.dc) {
b = a.adv;
try {
for (var _c = __values(fromEnum(this.es)), _d = _c.next(); !_d.done; _d = _c.next()) {
var e = _d.value;
if (e.fz || e.fw || e.fs || e.fw) {
c = a.adt;
d = a.adu;
break;
}
}
}
catch (e_39_1) {
e_39 = { error: e_39_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_39)
throw e_39.error;
}
}
}
else if (this.dq && !this.dc) {
c = a.adt;
d = a.adu;
b = this.an != null ? a.adv : null;
try {
for (var _e = __values(fromEnum(this.es)), _f = _e.next(); !_f.done; _f = _e.next()) {
var f = _f.value;
if (f.fz || f.fw || f.fs || f.fw) {
b = a.adv;
break;
}
}
}
catch (e_40_1) {
e_40 = { error: e_40_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_40)
throw e_40.error;
}
}
}
else if (this.dc || this.bm == 3) {
b = a.adv;
c = a.adt;
d = a.adu;
}
this.oe = this.op != null ? this.op : b;
this.oc = this.ol != null ? this.ol : c;
this.od = this.om != null ? this.om : d;
};
Axis.prototype.ls = function (a, b, c) {
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
if (this.propertyUpdated != null) {
this.propertyUpdated(this, new PropertyUpdatedEventArgs(a, b, c));
}
};
Axis.prototype.d3 = function (a) {
var b = this.es.contains(a);
if (!b) {
this.es.add(a);
}
this.l8();
return !b;
};
Axis.prototype.cx = function (a) {
var b = this.es.contains(a);
if (b) {
this.es.remove(a);
}
this.l8();
return b;
};
Axis.prototype.hu = function (a, b) {
var c = this.jn(b);
if (c == Axis.$$p[40]) {
return this.hv(a, b, this.hx);
}
return null;
};
Axis.prototype.i7 = function () {
return null;
};
Axis.prototype.dz = function (a) {
if (this.b7 != null) {
var b = AxisMatcherHelper.a(this.b7, a);
if (b != null && b.length == 1) {
return true;
}
}
return false;
};
Axis.prototype.a9 = function () {
var _this = this;
var a = this.i7();
if (a != null) {
var b_1 = this.i6(a);
if (b_1 != null) {
var c = ((function () {
var $ret = new AxisMatcher();
$ret.h = a;
$ret.g = b_1;
return $ret;
})());
if (this.dz(c)) {
return c;
}
}
}
if (this.name != null) {
var d = ((function () {
var $ret = new AxisMatcher();
$ret.i = _this.name;
return $ret;
})());
if (this.dz(d)) {
return d;
}
}
if (this.j3 != null && typeof this.j3 === 'string') {
var e = ((function () {
var $ret = new AxisMatcher();
$ret.j = _this.j3;
return $ret;
})());
if (this.dz(e)) {
return e;
}
}
var f = stringReplace(getInstanceType(this).typeName, "Axis", "");
var g = 0;
if (this.b7 != null) {
var h = new List$1(Axis.$, 0);
for (var i = 0; i < this.b7.zq.count; i++) {
var j = this.b7.zq._inner[i];
var k = stringReplace(getInstanceType(j).typeName, "Axis", "");
if (Base.equalsStatic(k, f)) {
h.add(j);
}
}
var l = h.indexOf(this);
g = l;
}
var m = new AxisMatcher();
m.f = f;
m.e = g;
return m;
};
Axis.prototype.jn = function (a) {
if (!this.em.containsKey(a)) {
var b = a.charAt(0).toUpperCase() + a.substr(1);
this.em.addItem(a, b);
}
return this.em.item(a);
};
Axis.prototype.hv = function (a, b, c) {
var d = null;
if (!this.el.containsKey(b)) {
d = new FastReflectionHelper(false, c);
this.el.addItem(b, d);
}
else {
d = this.el.item(b);
}
d.propertyName = c;
return d.getPropertyValue(a);
};
Axis.prototype.hw = function (a) {
return this.bp.t(a);
};
Axis.prototype.i8 = function (a) {
return this.bp.v(a);
};
Axis.prototype.gi = function () {
return NaN;
};
Axis.prototype.f6 = function (a, b) {
return 0;
};
Axis.prototype.f7 = function (a, b, c) {
return 0;
};
Axis.prototype.o2 = function (a) {
if (this.b7 == null) {
return Rect.empty;
}
if (!a.equals1(this.o6)) {
return Rect.empty;
}
return this.b7.yv;
};
Axis.prototype.o1 = function () {
if (this.b7 == null) {
return Rect.empty;
}
return this.b7.yv;
};
Axis.prototype.o0 = function () {
if (this.b7 == null || this.b7.yu.isEmpty) {
return this.o6;
}
return this.b7.yu;
};
Axis.prototype.o4 = function (a, b) {
if (b.isEmpty) {
return a;
}
return b;
};
Axis.prototype.f8 = function (a, b, c) {
var d = this.o2(c);
var e = new ScalerParams(0, b, c, this.dn, d);
return this.f6(a, e);
};
Axis.prototype.k1 = function (a, b, c, d) {
};
Axis.prototype.k0 = function (a, b, c, d, e) {
};
Axis.prototype.f9 = function (a, b) {
return 0;
};
Axis.prototype.ga = function (a, b, c) {
return 0;
};
Axis.prototype.gb = function (a, b, c) {
var d = this.o2(c);
var e = new ScalerParams(0, b, c, this.dn, d);
return this.f9(a, e);
};
Axis.prototype.k2 = function (a, b, c, d) {
};
Axis.prototype.gt = function (a) {
var b = this.o1();
var c = new ScalerParams(0, this.b7.yr, this.o6, this.dn, b);
return this.f6(a, c);
};
Axis.prototype.k7 = function (a) {
var b = false;
if (this.pb.width == 0 || this.pb.height == 0) {
this.o5 = new Rect(0, 0, 0, a.width, a.height);
}
else {
b = true;
this.o5 = new Rect(0, 0, 0, this.pb.width, this.pb.height);
}
if (b) {
this.bq.c = true;
this.d0 = true;
this.a1.cm();
this.ee(true);
}
};
Axis.prototype.l7 = function () {
this.o5 = Rect.empty;
this.a1.cv();
};
Axis.prototype.av = function () {
this.au.a = this.a1;
return this.au;
};
Object.defineProperty(Axis.prototype, "gf", {
get: function () {
return this.ev;
},
set: function (a) {
var b = this.gf;
if (a != b) {
this.ev = a;
this.ls("MinExtent", b, this.gf);
}
},
enumerable: false,
configurable: true
});
Axis.prototype.db = function () {
if (!isNaN_(this.fp)) {
return true;
}
if (this.a4 == null) {
return false;
}
else {
return this.a4.l();
}
};
Axis.prototype.gc = function () {
if (!isNaN_(this.fp)) {
return this.fp;
}
if (this.a4 == null) {
return 50;
}
return this.a4.extent;
};
Axis.prototype.kh = function () {
this.bp.ad();
};
Axis.prototype.kx = function (a) {
this.lt(a);
};
Object.defineProperty(Axis.prototype, "o7", {
get: function () {
return this.aw().a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "o8", {
get: function () {
return this.aw().b;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "pa", {
get: function () {
return this.bp.d().d;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Axis.prototype, "o9", {
get: function () {
return this.aw().c;
},
enumerable: false,
configurable: true
});
Axis.prototype.b3 = function () {
return SyncManager.a(this.b6);
};
Axis.prototype.aw = function () {
return this.bp.d();
};
Object.defineProperty(Axis.prototype, "a3", {
get: function () {
return this.a2;
},
enumerable: false,
configurable: true
});
Axis.prototype.lb = function (a, b) {
if (this.a1 != null) {
this.a1.cn(a);
}
this.bp.aq(a, b);
};
Axis.prototype.c2 = function () {
return this.hr != null;
};
Axis.prototype.hs = function () {
return this.bz.exportVisualData(this);
};
Axis.prototype._eo = function () {
var a, b;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
a = 0;
_a.label = 1;
case 1:
if (!(a < this.es.count))
return [3 /*break*/, 4];
b = this.es._inner[a];
return [4 /*yield*/, b];
case 2:
_a.sent();
_a.label = 3;
case 3:
a++;
return [3 /*break*/, 1];
case 4: return [2 /*return*/];
}
});
};
Axis.prototype.eo = function () {
var _this = this;
return toEnum(function () { return _this._eo(); });
};
Axis.prototype.ep = function () {
var e_41, _a;
var a = new List$1(Series.$, 0);
for (var b = 0; b < this.es.count; b++) {
var c = this.es._inner[b];
a.add(c);
}
if (this.b7 != null && this.b7.b9 != null) {
try {
for (var _b = __values(fromEnum(this.b7.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var d = _c.value;
if (d.eq) {
a.add(d);
}
}
}
catch (e_41_1) {
e_41 = { error: e_41_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_41)
throw e_41.error;
}
}
}
return a;
};
Axis.prototype.lc = function (a) {
};
Axis.prototype.lf = function (a) {
};
Axis.prototype.le = function (a) {
};
Axis.prototype.ov = function (a, b, c, d, e) {
if (this.dy) {
var f = new LineGeometry();
f.d = { $type: Point_$type, x: c.left, y: a };
f.c = { $type: Point_$type, x: c.right, y: a };
return f;
}
else {
var g = new LineGeometry();
g.d = { $type: Point_$type, x: a, y: c.bottom };
g.c = { $type: Point_$type, x: a, y: c.top };
return g;
}
};
Object.defineProperty(Axis.prototype, "dt", {
get: function () {
return !this.dh;
},
enumerable: false,
configurable: true
});
Axis.prototype.ku = function () {
if (this.ct) {
this.kw("CompanionAxisIsInverted");
this.kw("CompanionAxisStrip");
this.kw("CompanionAxisStroke");
this.kw("CompanionAxisStrokeThickness");
this.kw("CompanionAxisMajorStroke");
this.kw("CompanionAxisMajorStrokeThickness");
this.kw("CompanionAxisMinorStroke");
this.kw("CompanionAxisMinorStrokeThickness");
this.kw("CompanionAxisTickStroke");
this.kw("CompanionAxisTickStrokeThickness");
this.kw("CompanionAxisTickLength");
this.kw("CompanionAxisLabelAngle");
this.kw("CompanionAxisLabelColor");
this.kw("CompanionAxisLabelLocation");
this.kw("CompanionAxisLabelExtent");
this.kw("CompanionAxisTitle");
this.kw("CompanionAxisShouldAvoidAnnotationCollisions");
this.kw("CompanionAxisShouldAutoTruncateAnnotations");
this.kw("CompanionAxisShouldKeepAnnotationsInView");
}
};
Axis.prototype.kv = function () {
if (this.b5 == null) {
return;
}
if (this.ct) {
this.b5.zi(this.b5).b(this);
}
else {
this.b5.zi(this.b5).w(this);
}
};
Axis.prototype.al = function () {
return null;
};
Axis.prototype.ak = function () {
var a = this.al();
if (a == null) {
return null;
}
Axis.hh++;
if (stringIsNullOrEmpty(this.name)) {
a.name = "CompanionAxis" + Axis.hh;
}
else {
a.name = this.name + "_CompanionAxis";
}
a.cu = true;
this.km(a);
a.cu = false;
var msg2_ = this.j6 + " CloneAxis done";
return a;
};
Axis.prototype.km = function (a) {
a.a4 = new AxisLabelSettings();
this.ko(a);
this.kp(a, "IsInverted");
this.kp(a, "CrossingValue");
this.kp(a, "CrossingAxis");
this.kp(a, "EnhancedIntervalPreferMoreCategoryLabels");
this.kp(a, "EnhancedIntervalMinimumCharacters");
this.kp(a, "UseEnhancedIntervalManagement");
this.kp(a, "UsePerLabelHeightMeasurement");
this.kp(a, "ShouldAvoidAnnotationCollisions");
this.kp(a, "ShouldAutoTruncateAnnotations");
this.kp(a, "ShouldKeepAnnotationsInView");
this.kp(a, "ActualStroke");
this.kp(a, "ActualMajorStroke");
this.kp(a, "ActualMinorStroke");
this.kp(a, "StrokeThickness");
this.kp(a, "MajorStrokeThickness");
this.kp(a, "MinorStrokeThickness");
this.kp(a, "TickStrokeThickness");
this.kp(a, "TickStroke");
this.kp(a, "TickLength");
this.kp(a, "Strip");
this.kp(a, "Title");
this.kp(a, "MinExtent");
this.kp(a, "Label");
};
Axis.prototype.kp = function (a, b) {
if (a == null) {
return;
}
var c = this;
if (b == "Title") {
if (this.dw("CompanionAxisTitle")) {
a.j3 = c.iy;
}
}
if (b == "Label") {
a.hx = c.hx;
}
if (b == "IsInverted") {
a.dn = Axis.d4(c.br, c.dn);
}
if (b == "CrossingAxis") {
a.an = c.am != null ? c.am : c.an;
}
if (b == "CrossingValue") {
var d = this.hr;
a.hr = Axis.gs(c.ff, d);
}
if (b == "EnhancedIntervalPreferMoreCategoryLabels") {
a.cy = c.cy;
}
if (b == "EnhancedIntervalMinimumCharacters") {
a.hi = c.hi;
}
if (b == "UseEnhancedIntervalManagement") {
a.eg = c.eg;
}
if (b == "UsePerLabelHeightMeasurement") {
a.eh = c.eh;
}
if (b == "LabelSettings") {
this.ko(a);
}
if (b == "Strip") {
a.oo = Axis.on(c.oi, c.oo);
}
if (b == "ActualStroke") {
a.op = Axis.on(c.oj, c.oe);
}
if (b == "StrokeThickness") {
a.g5 = Axis.gs(c.fl, c.g5);
}
if (b == "ActualMajorStroke") {
a.ol = Axis.on(c.og, c.oc);
}
if (b == "MajorStrokeThickness") {
a.ge = Axis.gs(c.fi, c.ge);
}
if (b == "ActualMinorStroke") {
a.om = Axis.on(c.oh, c.od);
}
if (b == "MinorStrokeThickness") {
a.gh = Axis.gs(c.fk, c.gh);
}
if (b == "TickStrokeThickness") {
a.g7 = Axis.gs(c.fn, c.g7);
}
if (b == "TickStroke") {
a.oq = Axis.on(c.ok, c.oq);
}
if (b == "TickLength") {
a.g6 = Axis.gs(c.fm, c.fc);
}
if (b == "MinExtent") {
a.gf = Axis.gs(c.fj, c.gf);
}
if (b == "ShouldAvoidAnnotationCollisions") {
a.d6 = Axis.d4(c.bu, c.d6);
}
if (b == "ShouldAutoTruncateAnnotations") {
a.d5 = Axis.d4(c.bt, c.d5);
}
if (b == "ShouldKeepAnnotationsInView") {
a.d8 = Axis.d4(c.bv, c.d8);
}
};
Axis.prototype.ko = function (a) {
this.kn(a, "HorizontalAlignment");
this.kn(a, "VerticalAlignment");
this.kn(a, "Location");
this.kn(a, "ShowFirstLabel");
this.kn(a, "Visibility");
this.kn(a, "Angle");
this.kn(a, "Margin");
this.kn(a, "TopMargin");
this.kn(a, "LeftMargin");
this.kn(a, "RightMargin");
this.kn(a, "BottomMargin");
this.kn(a, "Extent");
this.kn(a, "TextColor");
this.kn(a, "TextStyle");
this.kn(a, "Foreground");
this.kn(a, "FontFamily");
this.kn(a, "FontSize");
this.kn(a, "FontStyle");
this.kn(a, "FontWeight");
this.kn(a, "FontStretch");
this.kn(a, "OpacityMask");
this.kn(a, "Opacity");
this.kn(a, "Padding");
this.kn(a, "TextWrapping");
this.kn(a, "TextAlignment");
};
Axis.prototype.kn = function (a, b) {
var c = this;
if (a == null) {
return;
}
if (a.a4 == null) {
return;
}
if (b == "Location") {
a.a4.location = this.a8();
}
if (b == "Angle") {
a.a4.angle = this.gk();
}
if (b == "VerticalAlignment") {
a.a4.verticalAlignment = this.pg();
}
if (b == "HorizontalAlignment") {
a.a4.horizontalAlignment = this.ob();
}
if (b == "ShowFirstLabel") {
a.a4.showFirstLabel = c.a4.showFirstLabel;
}
if (b == "TopMargin") {
a.a4.topMargin = c.a4.topMargin;
}
if (b == "LeftMargin") {
a.a4.leftMargin = c.a4.leftMargin;
}
if (b == "RightMargin") {
a.a4.rightMargin = c.a4.rightMargin;
}
if (b == "BottomMargin") {
a.a4.bottomMargin = c.a4.bottomMargin;
}
if (b == "Extent") {
a.a4.extent = Axis.gs(c.fh, c.a4.extent);
}
if (b == "Visibility") {
if (this.bs == 0) {
a.a4.visibility = c.a4.visibility;
}
else {
a.a4.visibility = this.bs == 1 ? 0 : 1;
}
}
if (b == "TextStyle") {
a.a4.textStyle = c.a4.textStyle;
}
if (b == "FontInfo") {
a.a4.g = c.a4.g;
}
if (b == "TextColor") {
a.a4.textColor = Axis.on(c.of, c.a4.textColor);
}
};
Axis.gs = function (a, b) {
if (!isNaN_(a)) {
return a;
}
return b;
};
Axis.jo = function (a, b) {
if (!stringIsNullOrEmpty(a)) {
return a;
}
return b;
};
Axis.h0 = function (a, b) {
if (a != null) {
return a;
}
return b;
};
Axis.d4 = function (a, b) {
if (a == 0) {
return b;
}
return a == 1 ? true : false;
};
Axis.on = function (a, b) {
if (a != null) {
return a;
}
return b;
};
Axis.prototype.gk = function () {
var a = this.a4.angle;
a = Axis.gs(this.fg, a);
return a;
};
Axis.prototype.ob = function () {
var a = this;
if (a.dw("CompanionAxisLabelHorizontalAlignment")) {
return a.n8;
}
if (a.cv) {
var b = a.a4.horizontalAlignment;
if (b == 0) {
return 2;
}
if (b == 2) {
return 0;
}
return b;
}
return a.a4.horizontalAlignment;
};
Axis.prototype.pg = function () {
var a = this;
if (a.dw("CompanionAxisLabelVerticalAlignment")) {
return a.pd;
}
if (a.cv) {
var b = a.a4.verticalAlignment;
if (b == 0) {
return 2;
}
if (b == 2) {
return 0;
}
}
return a.a4.verticalAlignment;
};
Axis.prototype.a8 = function () {
var a = this;
if (a.dw("CompanionAxisLabelLocation")) {
return a.a5;
}
if (a.cv) {
var b = a.a4.c;
if (b == 0) {
return 1;
}
if (b == 1) {
return 0;
}
if (b == 2) {
return 3;
}
if (b == 3) {
return 2;
}
if (b == 6) {
return 7;
}
if (b == 7) {
return 6;
}
if (b == 4) {
return 5;
}
if (b == 5) {
return 4;
}
}
return a.a4.c;
};
Axis.$t = markType(Axis, 'Axis', Control.$, [INotifyPropertyChanged_$type]);
Axis.hp = 0;
Axis.n6 = DependencyProperty.i("UseEnhancedIntervalManagement", Boolean_$type, Axis.$, new PropertyMetadata(2, false, function (a, b) { return a.ls("UseEnhancedIntervalManagement", b.oldValue, b.newValue); }));
Axis.gg = 7;
Axis.hh = 0;
Axis.$$p = markDep(DependencyProperty, PropertyMetadata, Axis, 'ls', ['ActualMajorStroke:oc:mh', [Brush.$], 'ActualMinorStroke:od:mi', [Brush.$], 'ActualStroke:oe:mj', [Brush.$], 'CompanionAxisCrossingAxis:am:mk', [Axis.$, null], 'CompanionAxisCrossingValue:ff:ml', [1, NaN], 'CompanionAxisEnabled:ct:mm', [0, false], 'CompanionAxisIsInverted:br:mn', [FeatureState_$type, enumGetBox(FeatureState_$type, 0)], 'CompanionAxisLabelAngle:fg:mo', [1, NaN], 'CompanionAxisLabelColor:of:mp', [Brush.$, null], 'CompanionAxisLabelExtent:fh:mq', [1, NaN], 'CompanionAxisLabelHorizontalAlignment:n8:mr', [HorizontalAlignment_$type, enumGetBox(HorizontalAlignment_$type, 1)], 'CompanionAxisLabelLocation:a5:ms', [AxisLabelsLocation_$type, enumGetBox(AxisLabelsLocation_$type, 5)], 'CompanionAxisLabelOpposite:cv:mt', [0, true], 'CompanionAxisLabelVerticalAlignment:pd:mu', [VerticalAlignment_$type, enumGetBox(VerticalAlignment_$type, 1)], 'CompanionAxisLabelVisible:bs:mv', [FeatureState_$type, enumGetBox(FeatureState_$type, 0)], 'CompanionAxisMajorStroke:og:mw', [Brush.$, null], 'CompanionAxisMajorStrokeThickness:fi:mx', [1, NaN], 'CompanionAxisMinExtent:fj:my', [1, NaN], 'CompanionAxisMinorStroke:oh:mz', [Brush.$, null], 'CompanionAxisMinorStrokeThickness:fk:m0', [1, NaN], 'CompanionAxisShouldAutoTruncateAnnotations:bt:m1', [FeatureState_$type, enumGetBox(FeatureState_$type, 0)], 'CompanionAxisShouldAvoidAnnotationCollisions:bu:m2', [FeatureState_$type, enumGetBox(FeatureState_$type, 0)], 'CompanionAxisShouldKeepAnnotationsInView:bv:m3', [FeatureState_$type, enumGetBox(FeatureState_$type, 0)], 'CompanionAxisStrip:oi:m4', [Brush.$, null], 'CompanionAxisStroke:oj:m5', [Brush.$, null], 'CompanionAxisStrokeThickness:fl:m6', [1, NaN], 'CompanionAxisSyncronizedWithPrimaryAxis:cw:m7', [0, true], 'CompanionAxisTickLength:fm:m8', [1, NaN], 'CompanionAxisTickStroke:ok:m9', [Brush.$, null], 'CompanionAxisTickStrokeThickness:fn:na', [1, NaN], 'CompanionAxisTitle:iy:nb', [2, null], 'CrossingAxis:an:nc', [Axis.$], 'CrossingValue:hr:nd', [4, null], 'EnhancedIntervalMinimumCharacters:hi:ne', [1, -1], 'EnhancedIntervalPreferMoreCategoryLabels:cy:nf', [0, false], 'FormatLabel:az:ng', [Delegate_$type], 'IsDisabled:dk:nh', [0, false], 'IsInverted:dn:ni', [0, false], 'LabelFormat:jb:nj', [2, null], 'LabelFormatSpecifiers:ah:nk', [Array_$type, null], 'Label:hx:nl', [4, null], 'LabelSettings:a4:nm', [AxisLabelSettings.$, null], 'MajorStrokeDashArray:or:nn', [DoubleCollection.$], 'MajorStroke:ol:no', [Brush.$], 'MajorStrokeThickness:ge:np', [1, 1], 'MinorStrokeDashArray:os:nq', [DoubleCollection.$], 'MinorStroke:om:nr', [Brush.$], 'MinorStrokeThickness:gh:ns', [1, 1], 'ShouldAutoTruncateAnnotations:d5:nt', [0, false], 'ShouldAvoidAnnotationCollisions:d6:nu', [0, false], 'ShouldKeepAnnotationsInView:d8:nv', [0, false], 'Strip:oo:nw', [Brush.$], 'StrokeDashArray:ot:nx', [DoubleCollection.$], 'Stroke:op:ny', [Brush.$], 'StrokeThickness:g5:nz', [1, DeviceUtils.g(2)], 'TickLength:g6:n0', [1, NaN], 'TickStrokeDashArray:ou:n1', [DoubleCollection.$], 'TickStroke:oq:n2', [Brush.$], 'TickStrokeThickness:g7:n3', [1, DeviceUtils.g(2)], 'Title:j3:n4', [2], 'TitleSettings:b4:n5', [TitleSettings.$, null], 'UsePerLabelHeightMeasurement:eh:n7', [0, true]]);
return Axis;
}(Control));
export { Axis };
/**
* @hidden
*/
var AxisCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisCollection, _super);
function AxisCollection() {
var _this = _super.call(this, Axis.$, 0) || this;
_this.collectionBeforeChanged = null;
_this.collectionAfterChanged = null;
_this.collectionResetting = null;
_this.propertyChanged = delegateCombine(_this.propertyChanged, function (a, b) {
if (b.propertyName == "Name") {
for (var c = 0; c < _this.count; ++c) {
if (_this._inner[c].name == b.propertyName) {
_this.ac(new NotifyCollectionChangedEventArgs(2, 2, _this._inner[c], _this._inner[c], c));
}
}
}
});
return _this;
}
AxisCollection.prototype.ac = function (a) {
if (this.collectionBeforeChanged != null) {
this.collectionBeforeChanged(this, a);
}
_super.prototype.ac.call(this, a);
if (this.collectionAfterChanged != null) {
this.collectionAfterChanged(this, a);
}
};
AxisCollection.prototype.p = function () {
if (this.collectionResetting != null) {
this.collectionResetting(this, null);
}
_super.prototype.p.call(this);
};
AxisCollection.$t = markType(AxisCollection, 'AxisCollection', ObservableCollection$1.$.specialize(Axis.$));
return AxisCollection;
}(ObservableCollection$1));
export { AxisCollection };
/**
* @hidden
*/
var AxisLabelManager = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisLabelManager, _super);
function AxisLabelManager() {
var _this = _super.call(this) || this;
_this.e = null;
_this.f = null;
_this.b = null;
_this.a = null;
_this.c = null;
_this.c = function (a) {
};
return _this;
}
AxisLabelManager.prototype.n = function (a, b) {
this.e.clear();
this.f.clear();
this.b.ae = this.a;
this.b.da = a;
this.b.c9 = b;
if (b.isEmpty || a.isEmpty) {
this.s(0);
this.a.ch.count = 0;
this.a.cf.count = 0;
this.a.ce.count = 0;
this.a.cg.count = 0;
}
if (this.a.ci.count == 0 && this.a.ch.count == 0 && this.a.bp.n()) {
this.b.ab.clear();
}
};
AxisLabelManager.prototype.i = function (a, b) {
this.e.add1(a);
this.f.add(b);
};
AxisLabelManager.prototype.t = function () {
this.b.be = this.e;
this.b.bf = this.f;
this.b.cp();
};
AxisLabelManager.j = function (a, b) {
AxisLabelManager.k(a, false, b);
};
AxisLabelManager.k = function (a, b, c) {
};
AxisLabelManager.l = function (a, b, c) {
};
AxisLabelManager.m = function (a, b) {
AxisLabelManager.l(a, true, b);
};
AxisLabelManager.prototype.h = function (a) {
this.b.ab.add(a);
};
AxisLabelManager.prototype.r = function (a) {
this.b.b1 = a;
};
AxisLabelManager.prototype.o = function (a) {
this.c(a);
};
AxisLabelManager.prototype.u = function (a) {
var b = this.a.ci.item(a);
return b;
};
AxisLabelManager.prototype.s = function (a) {
if (this.a == null) {
return;
}
this.a.ci.count = a;
};
Object.defineProperty(AxisLabelManager.prototype, "d", {
get: function () {
if (this.a == null || this.a.a4 == null) {
return false;
}
return this.a.a4.visibility != 0;
},
enumerable: false,
configurable: true
});
AxisLabelManager.prototype.q = function () {
this.a.ci.count = 0;
this.a.ch.count = 0;
this.a.cf.count = 0;
this.a.ce.count = 0;
this.a.cg.count = 0;
this.a.a1.bg.clear();
};
AxisLabelManager.prototype.p = function () {
this.a.d0 = true;
};
AxisLabelManager.prototype.g = function () {
this.a.kd();
};
AxisLabelManager.$t = markType(AxisLabelManager, 'AxisLabelManager');
return AxisLabelManager;
}(Base));
export { AxisLabelManager };
/**
* @hidden
*/
var AxisLabelPanelBase = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisLabelPanelBase, _super);
function AxisLabelPanelBase() {
var _this = _super.call(this) || this;
_this.c2 = null;
_this.b1 = 0;
_this.ae = null;
_this.am = false;
_this.a8 = null;
_this.bf = null;
_this.c9 = null;
_this.c1 = Rect.empty;
_this.c0 = null;
_this.c7 = null;
_this.bh = 0;
_this.b2 = null;
_this.bg = null;
_this.bd = null;
_this.ah = null;
_this.aq = false;
_this.c8 = null;
_this.at = false;
_this.au = false;
_this.a0 = false;
_this.a1 = false;
_this.a2 = false;
_this.b4 = null;
_this.an = false;
_this.bi = 50;
_this.bj = 0;
_this.bk = 0;
_this.dc = new Size();
_this.bj = NaN;
_this.c9 = Rect.empty;
_this.c7 = Rect.empty;
_this.c6 = Rect.empty;
_this.ag = _this.af();
_this.cl(_this.ag);
_this.ag.am();
_this.bg = new List$1(FrameworkElement.$, 0);
_this.bf = new List$1(LabelPosition.$, 0);
_this.bd = new List$1(Rect.$, 0);
_this.a1 = false;
_this.a0 = false;
_this.a2 = false;
_this.aq = false;
_this.at = false;
_this.c8 = Rect.empty;
_this.am = false;
return _this;
}
AxisLabelPanelBase.prototype.af = function () {
return new AxisLabelPanelBaseView(this);
};
AxisLabelPanelBase.prototype.cl = function (a) {
};
AxisLabelPanelBase.prototype.cc = function () {
};
AxisLabelPanelBase.prototype.cu = function () {
};
AxisLabelPanelBase.prototype.ct = function () {
};
Object.defineProperty(AxisLabelPanelBase.prototype, "a4", {
get: function () {
return this.am;
},
set: function (a) {
this.am = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelPanelBase.prototype, "be", {
get: function () {
return this.a8;
},
set: function (a) {
var b = this.a8;
this.a8 = a;
if (b == null && b != a) {
this.ci();
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelPanelBase.prototype, "da", {
get: function () {
return this.c1;
},
set: function (a) {
var b = this.c1;
this.c1 = a;
this.cy(b, this.c1);
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelPanelBase.prototype, "c6", {
get: function () {
if (!this.c7.isEmpty) {
return this.c7;
}
return this.c0;
},
set: function (a) {
var b = this.c0;
this.c0 = a;
this.ch(b, this.c0);
},
enumerable: false,
configurable: true
});
Object.defineProperty(AxisLabelPanelBase.prototype, "bl", {
get: function () {
return this.bh;
},
set: function (a) {
this.bh = a;
},
enumerable: false,
configurable: true
});
AxisLabelPanelBase.prototype.bs = function () {
var a = 1.7976931348623157E+308;
if (this.bf != null && this.bf.count > 1) {
for (var b = 1; b < this.bf.count; b++) {
var c = this.bf._inner[b];
var d = this.bf._inner[b - 1];
if (c.b || d.b) {
continue;
}
var e = Math.abs(c.h - d.h);
if (e < a) {
a = e;
}
}
}
return a;
};
AxisLabelPanelBase.prototype.cp = function () {
this.at = false;
this.au = false;
this.c8 = Rect.empty;
};
AxisLabelPanelBase.prototype.ap = function (a, b) {
for (var c = 0; c < a.count - 1; c++) {
if (b._inner[c]) {
continue;
}
for (var d = c; d < a.count - 1; d++) {
if (b._inner[d + 1]) {
continue;
}
if (a._inner[c].intersectsWith(a._inner[d + 1])) {
return true;
}
}
}
return false;
};
AxisLabelPanelBase.prototype.b3 = function (a, b, c) {
return {
ret: 0,
p1: b
};
};
AxisLabelPanelBase.prototype.ba = function () {
return null;
};
AxisLabelPanelBase.prototype.ca = function () {
};
AxisLabelPanelBase.prototype.b6 = function (a) {
};
Object.defineProperty(AxisLabelPanelBase.prototype, "ar", {
get: function () {
return this.ah != null && this.ah.k();
},
enumerable: false,
configurable: true
});
AxisLabelPanelBase.prototype.bq = function () {
if (this.ae.c1 && (!this.ar || (this.ar && this.ah.angle == 0))) {
return this.ae.gj();
}
return this.ah != null ? this.ah.angle : 0;
};
AxisLabelPanelBase.prototype.bv = function () {
return this.ae.b4 != null ? this.ae.b4.angle : 0;
};
AxisLabelPanelBase.prototype.aw = function (a, b) {
if (a == 0 && !this.ae.dc && this.ah != null) {
if (this.ae.dy) {
if (!this.ah.showFirstLabel && this.ae.b7.iv() == 1) {
return false;
}
}
else {
if (!this.ah.showFirstLabel && this.ae.b7.iu() == 1) {
return false;
}
}
}
return true;
};
AxisLabelPanelBase.prototype.bp = function (a) {
return this.ag.n(a);
};
AxisLabelPanelBase.prototype.b0 = function (a) {
return this.ag.x(a);
};
AxisLabelPanelBase.prototype.br = function (a) {
return this.ag.o(a);
};
AxisLabelPanelBase.prototype.bo = function (a) {
return this.ag.m(a);
};
AxisLabelPanelBase.prototype.as = function () {
return false;
};
AxisLabelPanelBase.prototype.cy = function (a, b) {
};
AxisLabelPanelBase.prototype.ch = function (a, b) {
};
AxisLabelPanelBase.prototype.bc = function () {
if (this.ab.count < 1 || this.bf.count == 0) {
return new List$1(Rect.$, 0);
}
this.bg = new List$1(FrameworkElement.$, 0);
this.bd = new List$1(Rect.$, 0);
this.ca();
this.ag.ae();
var a = this.bq();
if (a % 360 == 0) {
this.a0 = false;
}
if (this.bg.count == 0) {
return new List$1(Rect.$, 0);
}
this.bd = this.ba();
this.bd = this.bb(this.bd);
this.am = true;
return this.bd;
};
AxisLabelPanelBase.prototype.bb = function (a) {
var _this = this;
if (this.ae.d6 || this.ae.d8) {
var b = this.ag.q();
var c = this.ag.s();
var d = this.ag.r();
var e = this.ag.p();
var f = Math.max(b, Math.max(c, Math.max(d, e)));
var g_1 = new Thickness(0, f);
if (this.a0) {
g_1 = new Thickness(0, Math.sqrt((f * f) / 2));
}
var h = this.a9(a);
var i = new List$1(Thickness.$, 0);
if (h.count < 1) {
return a;
}
h.aa(function (j, k) {
var l = _this.c3(j, a._inner[j], g_1);
var m = _this.c3(k, a._inner[k], g_1);
var n = l.top;
var o = m.top;
if (n < o) {
return -1;
}
if (n > o) {
return 1;
}
return 0;
});
for (var j = 0; j < h.count; j++) {
var k = h._inner[j];
var l = a._inner[k];
var m = this.c3(k, a._inner[k], g_1);
var n = this.ae.b7.y9.top;
if (this.ae.d8) {
if (l.top < (this.ae.b7.y9.top - n)) {
l = new Rect(0, l.left, l.top + ((this.ae.b7.y9.top - n) - l.top), l.width, l.height);
a._inner[k] = l;
}
}
}
var o = this.av(a, h, g_1);
if (o && (this.ae.d6)) {
for (var p = 0; p < h.count - 1; p++) {
var q = h._inner[p];
var r = h._inner[p + 1];
var s = a._inner[q];
var t = a._inner[r];
var u = this.c3(q, a._inner[q], g_1);
var v = this.c3(r, a._inner[r], g_1);
if (u.intersectsWith(v) || u.top > v.bottom) {
var w = new Rect(0, t.left, u.bottom + 1 + (t.top - v.top), t.width, t.height);
a._inner[r] = w;
}
}
}
for (var x = h.count - 1; x >= 0; x--) {
var y = h._inner[x];
var z = a._inner[y];
var aa = this.c3(y, a._inner[y], g_1);
var ab = this.ae.b7.dw.a6;
if (this.ae.d8) {
if (aa.bottom > this.ae.b7.y9.bottom + ab) {
z = new Rect(0, z.left, z.top - (aa.bottom - (this.ae.b7.y9.bottom + ab)), z.width, z.height);
a._inner[y] = z;
}
}
}
if (this.ae.d6) {
for (var ac = h.count - 1; ac >= 1; ac--) {
var ad = h._inner[ac];
var ae = h._inner[ac - 1];
var af = a._inner[ad];
var ag = a._inner[ae];
var ah = this.c3(ad, a._inner[ad], g_1);
var ai = this.c3(ae, a._inner[ae], g_1);
if (ah.intersectsWith(ai) || ah.top < ai.bottom) {
var aj = new Rect(0, ag.left, ah.top - (ai.height + 1 + (ag.top - ai.top)), ag.width, ag.height);
a._inner[ae] = aj;
}
}
}
return a;
}
else {
return a;
}
};
AxisLabelPanelBase.prototype.c3 = function (a, b, c) {
var d = this.bf._inner[a];
var e = d.i;
if (isNaN_(e.left) || isNaN_(e.top) || isNaN_(e.right) || isNaN_(e.bottom)) {
e = c;
}
if (e.left > c.left || e.top > c.top || e.right > c.right || e.bottom > c.bottom) {
e = c;
}
var f = d.a ? d.e : 0;
var g = new Rect(0, b.left - e.left - f, b.top - e.top, b.width + e.left + e.right + f, b.height + e.top + e.bottom);
var h = this.ag.q();
var i = this.ag.r();
var j = this.ag.s();
var k = this.ag.p();
var l = Math.max(0, g.height - (j + k));
var m = Math.max(0, g.width - (h + i));
var n = new Rect(0, g.left + h, g.top + j, m, l);
return n;
};
AxisLabelPanelBase.prototype.av = function (a, b, c) {
if (b.count <= 1) {
return false;
}
for (var d = 0; d < b.count - 1; d++) {
var e = b._inner[d];
var f = b._inner[d + 1];
var g = a._inner[e];
var h = a._inner[f];
var i = this.c3(e, a._inner[e], c);
var j = this.c3(f, a._inner[f], c);
if (i.intersectsWith(j)) {
return true;
}
}
return false;
};
AxisLabelPanelBase.prototype.a9 = function (a) {
var b = new List$1(Number_$type, 0);
for (var c = 0; c < a.count; c++) {
var d = this.bf._inner[c].b;
if (d) {
b.add(c);
}
}
return b;
};
AxisLabelPanelBase.prototype.bu = function (a, b) {
var c = a * (Math.PI / 180);
var d = Math.abs(b.width * Math.cos(c)) + Math.abs(b.height * Math.sin(c));
return d;
};
AxisLabelPanelBase.prototype.bt = function (a, b) {
var c = a * (Math.PI / 180);
var d = Math.abs(b.height * Math.cos(c)) + Math.abs(b.width * Math.sin(c));
return d;
};
AxisLabelPanelBase.prototype.by = function () {
var a = this.ag.l();
return a;
};
AxisLabelPanelBase.prototype.bw = function () {
var a = this.ag.k();
return a;
};
AxisLabelPanelBase.prototype.bx = function () {
if (this.ae.j3 == null || (this.ae.b4 != null && this.ae.b4.visibility == 1)) {
return 0;
}
var a = this.bw();
var b = this.by();
var c = new Rect(0, 0, 0, b, a);
var d = this.bv();
var e = RectUtil.w(c, d);
return e.height + this.ag.w() + this.ag.t();
};
AxisLabelPanelBase.prototype.bz = function () {
if (this.ae.j3 == null || (this.ae.b4 != null && this.ae.b4.visibility == 1)) {
return 0;
}
var a = this.bw();
var b = this.by();
var c = new Rect(0, 0, 0, b, a);
var d = this.bv();
var e = RectUtil.w(c, d);
return e.width + this.ag.u() + this.ag.v();
};
AxisLabelPanelBase.prototype.db = function (a) {
if (this.ae == null || this.ab.count == 0) {
return a;
}
this.b9(a);
this.cd();
this.b8(a);
this.bd = this.bc();
if (this.bg.count != this.bd.count) {
return a;
}
var b = this.ag.q();
var c = this.ag.s();
var d = this.ag.r();
var e = this.ag.p();
if (this.a0) {
for (var f = 0; f < this.bg.count; f++) {
if (this.aw(f, this.bd._inner[f])) {
this.ag.z(this.bg._inner[f], this.bd._inner[f], b, c, d, e);
}
if (this.bf._inner[f].b && this.bf._inner[f].a) {
this.cr(this.bg._inner[f], this.bf._inner[f].e, this.bq());
}
else {
this.cq(this.bg._inner[f], this.bq());
}
}
}
for (var g = 0; g < this.bg.count; g++) {
if (!this.a0) {
this.ag.ad(this.bg._inner[g]);
}
if (this.aw(g, this.bd._inner[g])) {
this.ag.z(this.bg._inner[g], this.bd._inner[g], b, c, d, e);
}
else {
this.ag.z(this.bg._inner[g], new Rect(0, 0, 0, 0, 0), b, c, d, e);
}
}
if (this.ae.ch.count > 0) {
this.ae.bx.arrangeAnnotations(this.ae, this.ag, this.bg, this.bd, this.a0, this.bq(), b, c, d, e);
}
this.b6(a);
if (this.as() && this.ao && this.ae != null && this.ae.b5 != null && !this.ae.d1 && this.ae.b5.z8 && !this.ae.b5.aaf && this.bd != null && this.bd.count > 0) {
var h = this.bd.count - 1;
if (this.ae.ch.count > 0) {
h -= this.ae.ch.count;
}
if (h < 0) {
h = 0;
}
this.ae.b5.acw(this, this.c6, this.bd._inner[0], this.bd._inner[h]);
}
return a;
};
Object.defineProperty(AxisLabelPanelBase.prototype, "ao", {
get: function () {
return this.ae.a4 != null && (this.ae.a4.c != 5 && this.ae.a4.c != 4);
},
enumerable: false,
configurable: true
});
AxisLabelPanelBase.prototype.c5 = function () {
return Rect.empty;
};
AxisLabelPanelBase.prototype.b9 = function (a) {
if (this.ae.mg == null) {
return;
}
this.ag.ah(this.ae.mg, new Size(1, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY));
var b = Math.abs(this.bv() - 0) > 1E-06;
var c = this.c5();
var d = c.left + (c.width / 2);
var e = c.top + (c.height / 2);
var f = this.by() + this.ag.u() + this.ag.v();
var g = this.bw() + this.ag.w() + this.ag.t();
var h = f / 2;
var i = g / 2;
var j = new Rect(0, d - h, e - i, f, g);
if (b) {
this.cs(this.ae.mg);
}
else {
this.ag.ad(this.ae.mg);
}
this.ag.z(this.ae.mg, j, this.ag.u(), this.ag.w(), this.ag.v(), this.ag.t());
if ((this.ae.b4 == null || this.ae.b4.visibility == 0) && (this.ae.a4 == null || this.ae.a4.visibility == 0) && this.ae.j3 != null) {
this.ae.mg._visibility = 0;
}
else {
this.ae.mg._visibility = 1;
this.ag.z(this.ae.mg, new Rect(0, 0, 0, 0, 0), 0, 0, 0, 0);
}
};
AxisLabelPanelBase.prototype.b8 = function (a) {
this.ag.aa(a);
};
AxisLabelPanelBase.prototype.cd = function () {
};
AxisLabelPanelBase.prototype.a7 = function () {
if (typeCast(CategoryAxisBase.$, this.ae) !== null) {
return this.ae.pt;
}
if (typeCast(NumericAxisBase.$, this.ae) !== null) {
var a = new List$1(Number_$type, 0);
var d = this.ae.p1.j();
for (var c = 0; c < d.length; c++) {
var b = d[c];
var e = this.ae.o1();
var f = new ScalerParams(0, this.ae.b7.za, this.ae.o6, this.ae.dp, e);
a.add(this.ae.f6(b, f));
}
return a;
}
return null;
};
Object.defineProperty(AxisLabelPanelBase.prototype, "ai", {
get: function () {
var a = this.ah != null ? this.ah.c : this.aj();
if (this.ae.an == null) {
if (a == 4) {
a = 5;
}
else if (a == 5) {
a = 4;
}
else if (a == 6) {
a = 7;
}
else if (a == 7) {
a = 6;
}
}
return a;
},
enumerable: false,
configurable: true
});
AxisLabelPanelBase.prototype.cx = function (a, b, c, d, e, f) {
var g = b;
var h = b;
if (f != null) {
var i = f.c / 2;
g -= i;
h += i;
}
if (h >= e.left && g <= e.right) {
if (f.a) {
b = this.ae.fd(b, e.left, e.right, f);
}
var j = new LineGeometry();
j.d = { $type: Point_$type, x: b, y: c };
j.c = { $type: Point_$type, x: b, y: d };
a.add(j);
}
};
AxisLabelPanelBase.prototype.cg = function (a, b, c, d, e, f) {
if (b <= e.bottom && b >= e.top) {
if (f.a) {
b = this.ae.fd(b, e.top, e.bottom, f);
}
var g = new LineGeometry();
g.d = { $type: Point_$type, x: c, y: b };
g.c = { $type: Point_$type, x: d, y: b };
a.add(g);
}
};
AxisLabelPanelBase.prototype.cq = function (a, b) {
var c = this.bq();
this.ag.ai(a, c);
};
AxisLabelPanelBase.prototype.cr = function (a, b, c) {
};
AxisLabelPanelBase.prototype.get_az = function () {
return false;
};
Object.defineProperty(AxisLabelPanelBase.prototype, "az", {
get: function () {
return this.get_az();
},
enumerable: false,
configurable: true
});
AxisLabelPanelBase.prototype.ac = function (a, b) {
var c = a.height;
var d = a.width;
var e = 0 + a.left;
var f = (c / 2) + a.top;
var g = new TransformGroup();
var h = AngleSimplifier.a(b);
var i = ((function () {
var $ret = new RotateTransform();
$ret.j = h;
$ret.k = e;
$ret.l = f;
return $ret;
})());
var j = 0;
var k = 0;
if (h != 0 && h != 360) {
if (h > 0 && h < 180) {
j = -Math.sin(MathUtil.p(h)) * (c / 2);
}
else {
i.k = d;
k = -d;
j = -Math.sin(MathUtil.p(h - 180)) * (c / 2);
}
}
var l = ((function () {
var $ret = new TranslateTransform();
$ret.k = j;
$ret.j = k;
return $ret;
})());
g.j.add(i);
g.j.add(l);
var m = TransformMatrixHelpler.f(g);
var n = RectUtil.n(a);
var o = RectUtil.o(a);
var p = RectUtil.k(a);
var q = RectUtil.j(a);
var r = TransformMatrixHelpler.i(m, n);
var s = TransformMatrixHelpler.i(m, o);
var t = TransformMatrixHelpler.i(m, p);
var u = TransformMatrixHelpler.i(m, q);
var v = new Array(4);
v[0] = r;
v[1] = s;
v[2] = t;
v[3] = u;
return v;
};
AxisLabelPanelBase.prototype.ad = function (a, b) {
var c = TransformMatrixHelpler.f(b);
var d = RectUtil.n(a);
var e = RectUtil.o(a);
var f = RectUtil.k(a);
var g = RectUtil.j(a);
var h = TransformMatrixHelpler.i(c, d);
var i = TransformMatrixHelpler.i(c, e);
var j = TransformMatrixHelpler.i(c, f);
var k = TransformMatrixHelpler.i(c, g);
var l = new Array(4);
l[0] = h;
l[1] = i;
l[2] = j;
l[3] = k;
return l;
};
AxisLabelPanelBase.prototype.c4 = function (a, b) {
var c = this.ac(a, b);
var d = 1.7976931348623157E+308;
var e = 1.7976931348623157E+308;
var f = -1.7976931348623157E+308;
var g = -1.7976931348623157E+308;
for (var h = 0; h < c.length; h++) {
d = c[h].x < d ? c[h].x : d;
e = c[h].y < e ? c[h].y : e;
f = c[h].x > f ? c[h].x : f;
g = c[h].y > g ? c[h].y : g;
}
return new Rect(0, d, e, Math.max(f - d, 0), Math.max(g - e, 0));
};
AxisLabelPanelBase.prototype.cs = function (a) {
var b = this.bv();
this.cf(a, b);
};
AxisLabelPanelBase.prototype.cf = function (a, b) {
var c = typeCast(FrameworkElement.$, a);
var d = this.bw();
var e = this.by();
var f = 0.5 * e;
var g = 0.5 * d;
var h = ((function () {
var $ret = new RotateTransform();
$ret.j = b;
$ret.k = f;
$ret.l = g;
return $ret;
})());
var i = new TransformGroup();
i.j.add(h);
c.j = i;
};
AxisLabelPanelBase.prototype.dd = function (a) {
var e_42, _a;
if ((this.ab.contains(this.ae.mg) == false) && this.ae.mg != null) {
this.ab.add(this.ae.mg);
AxisLabelManager.m(this.ae.mg, this.ae.b4);
}
try {
for (var _b = __values(fromEnum(this.ab)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
if (b != this.ae.mg && b != this.ag.aw) {
this.ag.ag(b);
}
}
}
catch (e_42_1) {
e_42 = { error: e_42_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_42)
throw e_42.error;
}
}
var c = (this.ae == null || this.bi <= 0 || isNaN_(this.bi)) ? 50 : this.bi;
if (this.ae != null && (this.ae.es == null || this.ae.es.count == 0)) {
if (this.ae.db()) {
c = this.ae.gc();
}
}
var d = this.as();
c = Math.min(c, d ? a.height : a.width);
c = isInfinity(c) ? 50 : c;
return d ? new Size(1, 50, c) : new Size(1, c, 50);
};
Object.defineProperty(AxisLabelPanelBase.prototype, "bm", {
get: function () {
return this.c(AxisLabelPanelBase.cz);
},
set: function (a) {
this.h(AxisLabelPanelBase.cz, a);
},
enumerable: false,
configurable: true
});
AxisLabelPanelBase.prototype.ax = function () {
if (this.ae.a4 != null) {
var a = this.ae.a4.maximumExtent;
if (!isNaN_(a) && (a > 0)) {
return true;
}
}
return false;
};
AxisLabelPanelBase.prototype.ay = function () {
if (this.ae.a4 != null) {
var a = this.ae.a4.maximumExtentPercentage;
if (!isNaN_(a) && (a > 0) && (a <= 1)) {
return true;
}
}
return false;
};
AxisLabelPanelBase.prototype.ak = function (a) {
if (a == null) {
return this.ae.b7.a1(this.ae);
}
if (a.position == 0) {
if (this.ae != null && this.ae.b7 != null) {
return this.ae.b7.a1(this.ae);
}
return 4;
}
return a.position;
};
AxisLabelPanelBase.prototype.aj = function () {
return 1;
};
AxisLabelPanelBase.prototype.a3 = function (a) {
return true;
};
AxisLabelPanelBase.prototype._a5 = function () {
var _a, _b, a, e_43_1;
var e_43, _c;
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
_d.trys.push([0, 5, 6, 7]);
_a = __values(fromEnum(this.ab)), _b = _a.next();
_d.label = 1;
case 1:
if (!!_b.done)
return [3 /*break*/, 4];
a = _b.value;
if (!(a != this.ae.mg && a != this.ag.aw))
return [3 /*break*/, 3];
return [4 /*yield*/, a];
case 2:
_d.sent();
_d.label = 3;
case 3:
_b = _a.next();
return [3 /*break*/, 1];
case 4: return [3 /*break*/, 7];
case 5:
e_43_1 = _d.sent();
e_43 = { error: e_43_1 };
return [3 /*break*/, 7];
case 6:
try {
if (_b && !_b.done && (_c = _a.return))
_c.call(_a);
}
finally {
if (e_43)
throw e_43.error;
}
return [7 /*endfinally*/];
case 7: return [2 /*return*/];
}
});
};
AxisLabelPanelBase.prototype.a5 = function () {
var _this = this;
return toEnum(function () { return _this._a5(); });
};
AxisLabelPanelBase.prototype.al = function (a, b, c, d, e) {
var f = this.ag.c(b, c, d, e);
return f;
};
AxisLabelPanelBase.prototype.cb = function (a) {
if (this.b4 == null || this.bp(this.b4) < this.bp(a)) {
this.b4 = a;
}
};
AxisLabelPanelBase.prototype.ck = function (a) {
this.bg.add(a);
};
AxisLabelPanelBase.prototype._a6 = function () {
var a, b;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
a = 0;
_a.label = 1;
case 1:
if (!(a < this.ae.ci.count))
return [3 /*break*/, 4];
return [4 /*yield*/, this.ae.ci.item(a)];
case 2:
_a.sent();
_a.label = 3;
case 3:
a++;
return [3 /*break*/, 1];
case 4:
b = 0;
_a.label = 5;
case 5:
if (!(b < this.ae.ch.count))
return [3 /*break*/, 8];
return [4 /*yield*/, this.ae.ch.item(b)];
case 6:
_a.sent();
_a.label = 7;
case 7:
b++;
return [3 /*break*/, 5];
case 8: return [2 /*return*/];
}
});
};
AxisLabelPanelBase.prototype.a6 = function () {
var _this = this;
return toEnum(function () { return _this._a6(); });
};
AxisLabelPanelBase.prototype.ce = function () {
this.ag.af();
this.cw();
};
AxisLabelPanelBase.prototype.cw = function () {
this.bd = this.bc();
};
AxisLabelPanelBase.prototype.ci = function () {
};
AxisLabelPanelBase.prototype.bn = function (a) {
return this.bi;
};
AxisLabelPanelBase.prototype.cm = function () {
this.c7 = new Rect(0, 0, 0, this.dc.width, this.dc.height);
};
AxisLabelPanelBase.prototype.cv = function () {
this.c7 = Rect.empty;
};
AxisLabelPanelBase.prototype.cj = function () {
this.ag.aj();
};
AxisLabelPanelBase.prototype.cn = function (a) {
this.ag.ak(a);
};
AxisLabelPanelBase.prototype.b7 = function () {
this.ag.y();
};
AxisLabelPanelBase.prototype.co = function () {
this.ag.an();
};
AxisLabelPanelBase.$t = markType(AxisLabelPanelBase, 'AxisLabelPanelBase', Panel.$);
AxisLabelPanelBase.cz = DependencyProperty.i("Extent", Number_$type, AxisLabelPanelBase.$, new PropertyMetadata(2, 50, function (a, b) { return a.bi = b.newValue; }));
return AxisLabelPanelBase;
}(Panel));
export { AxisLabelPanelBase };
/**
* @hidden
*/
var CategoryAxisBase = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(CategoryAxisBase, _super);
function CategoryAxisBase() {
var _this = _super.call(this) || this;
_this.pt = null;
_this.pl = null;
_this.p8 = 0;
_this.qa = 0;
_this.pj = 0;
_this.pv = 1;
_this.p9 = 0;
_this.pn = false;
_this.pt = new List$1(Number_$type, 0);
return _this;
}
CategoryAxisBase.prototype.bo = function () {
return new CategoryAxisBaseView(this);
};
CategoryAxisBase.prototype.ag = function () {
return [0, this.qb - 1];
};
CategoryAxisBase.prototype.i6 = function (a) {
var b = this.jn(a);
if (b == Axis.$$p[40]) {
return this.hx != null ? this.hx.toString() : null;
}
return _super.prototype.i6.call(this, a);
};
CategoryAxisBase.prototype.i7 = function () {
return Axis.$$p[40];
};
CategoryAxisBase.prototype.get_di = function () {
return false;
};
CategoryAxisBase.prototype.k6 = function (a) {
_super.prototype.k6.call(this, a);
this.pi = a;
};
CategoryAxisBase.prototype.f3 = function (a, b, c, d) {
var e = this.getCategorySize(b, c, d);
var f = e * a;
return f;
};
CategoryAxisBase.prototype.ek = function (a, b, c) {
var d = _super.prototype.ek.call(this, a, b, c);
if (!d) {
return false;
}
return this.itemsSource != null && this.qa > 0;
};
CategoryAxisBase.prototype.qx = function () {
if (this.pm != null && this.cd != null && this.itemsSource != null) {
this.pm = this.cd.releaseFastItemsSource(this.itemsSource);
}
};
CategoryAxisBase.prototype.qw = function () {
if (this.pm == null && this.cd != null && this.itemsSource != null) {
this.pm = this.cd.getFastItemsSource(this.itemsSource);
}
};
CategoryAxisBase.prototype.get_df = function () {
return true;
};
CategoryAxisBase.prototype.ra = function (a, b, c) {
if (this.dc) {
return Rect.empty;
}
return this.rb(a, b, c, this.dy);
};
CategoryAxisBase.prototype.rb = function (a, b, c, d) {
var e = 0;
var f = a.x;
var g = this.o6.left;
var h = this.o6.right;
if (d) {
f = a.y;
g = this.o6.top;
h = this.o6.bottom;
}
var i = this.pt;
if ((d && !this.dn) || (!d && this.dn)) {
i = new List$1(Number_$type, 0);
for (var j = this.pt.count - 1; j >= 0; j--) {
i.add(this.pt._inner[j]);
}
}
if (this.categoryMode == 0) {
if (b) {
var k = void 0;
if (d) {
k = new Rect(0, this.o6.left, a.y - c / 2, this.o6.width, c);
}
else {
k = new Rect(0, a.x - c / 2, this.o6.top, c, this.o6.height);
}
k.intersect(this.o6);
return k;
}
else {
if (f > h) {
return Rect.empty;
}
if (f < g) {
return Rect.empty;
}
var l = 1.7976931348623157E+308;
var m = -1;
for (e = 0; e < i.count; e++) {
var n = Math.abs(i._inner[e] - f);
if (n < l) {
l = n;
m = e;
}
}
if (m == -1) {
return Rect.empty;
}
var o = i._inner[m];
var p = void 0;
if (d) {
p = new Rect(0, this.o6.left, o - c / 2, this.o6.width, c);
}
else {
p = new Rect(0, o - c / 2, this.o6.top, c, this.o6.height);
}
p.intersect(this.o6);
return p;
}
}
else {
for (e = 0; e < i.count; e++) {
if (i._inner[e] > f) {
break;
}
}
if (e == 0) {
return Rect.empty;
}
if (f > h) {
return Rect.empty;
}
if (f < g) {
return Rect.empty;
}
var q = this.o6.right;
if (d) {
q = this.o6.bottom;
}
if (e < i.count) {
q = i._inner[e];
}
if (d) {
return new Rect(0, this.o6.left, i._inner[e - 1], this.o6.width, q - i._inner[e - 1]);
}
else {
return new Rect(0, i._inner[e - 1], this.o6.top, q - i._inner[e - 1], this.o6.height);
}
}
};
Object.defineProperty(CategoryAxisBase.prototype, "itemsSource", {
get: function () {
return this.c(CategoryAxisBase.q5);
},
set: function (a) {
this.h(CategoryAxisBase.q5, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryAxisBase.prototype, "qb", {
get: function () {
return this.p8;
},
set: function (a) {
this.p8 = a;
this.qa = this.p8;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryAxisBase.prototype, "categoryMode", {
get: function () {
if (this.dh) {
var a = typeCast(CategoryAxisBase.$, this.ao);
if (a != null) {
return a.categoryMode;
}
}
return this.pj;
},
set: function (a) {
if (this.pj != a) {
var b = this.pj;
this.pj = a;
this.ls("CategoryMode", enumGetBox(CategoryMode_$type, b), enumGetBox(CategoryMode_$type, a));
}
},
enumerable: false,
configurable: true
});
CategoryAxisBase.prototype.p6 = function (a, b, c) {
var d = !isNaN_(this.pw) ? MathUtil.e(this.pw, 0, this.pv) : 0;
if (!this.dc && this.p4 > 0) {
var e = this.getCategorySize(a, b, c);
var f = 0.5 * d;
var g = e * f;
if (g < this.p4) {
g = this.p4;
f = g / e;
d = f / 0.5;
d = MathUtil.e(d, 0, this.pv);
}
}
return d;
};
Object.defineProperty(CategoryAxisBase.prototype, "qc", {
get: function () {
return this.p9;
},
set: function (a) {
if (a != this.p9) {
var b = this.p9;
this.p9 = a;
this.ls("GroupCount", b, this.p9);
}
},
enumerable: false,
configurable: true
});
CategoryAxisBase.prototype.f9 = function (a, b) {
return NaN;
};
CategoryAxisBase.prototype.getUnscaledValue3 = function (a, b, c, d) {
return NaN;
};
CategoryAxisBase.prototype.getCategorySize = function (a, b, c) {
return NaN;
};
CategoryAxisBase.prototype.pz = function (a, b, c) {
return NaN;
};
CategoryAxisBase.prototype.getGroupCenter = function (a, b, c, d) {
return NaN;
};
CategoryAxisBase.prototype.p7 = function (a) {
var b = this.b7.za;
var c = this.o6;
var d = this.o1();
var e = new ScalerParams(0, b, c, this.dn, d);
return this.f9(a, e);
};
CategoryAxisBase.prototype._ps = function () {
var _a, _b, a, e_44_1, _c, _d, b, _e, _f, c, e_45_1, e_46_1;
var e_44, _g, e_46, _h, e_45, _j;
return __generator(this, function (_k) {
switch (_k.label) {
case 0:
_k.trys.push([0, 5, 6, 7]);
_a = __values(fromEnum(this.es)), _b = _a.next();
_k.label = 1;
case 1:
if (!!_b.done)
return [3 /*break*/, 4];
a = _b.value;
return [4 /*yield*/, a];
case 2:
_k.sent();
_k.label = 3;
case 3:
_b = _a.next();
return [3 /*break*/, 1];
case 4: return [3 /*break*/, 7];
case 5:
e_44_1 = _k.sent();
e_44 = { error: e_44_1 };
return [3 /*break*/, 7];
case 6:
try {
if (_b && !_b.done && (_g = _a.return))
_g.call(_a);
}
finally {
if (e_44)
throw e_44.error;
}
return [7 /*endfinally*/];
case 7:
if (!(this.b7 != null && this.b7.ga && this.pp(this.b7)))
return [3 /*break*/, 21];
_k.label = 8;
case 8:
_k.trys.push([8, 19, 20, 21]);
_c = __values(fromEnum(this.b7.hl())), _d = _c.next();
_k.label = 9;
case 9:
if (!!_d.done)
return [3 /*break*/, 18];
b = _d.value;
if (!(b != this.b7))
return [3 /*break*/, 17];
_k.label = 10;
case 10:
_k.trys.push([10, 15, 16, 17]);
_e = (e_45 = void 0, __values(fromEnum(b.b9))), _f = _e.next();
_k.label = 11;
case 11:
if (!!_f.done)
return [3 /*break*/, 14];
c = _f.value;
return [4 /*yield*/, c];
case 12:
_k.sent();
_k.label = 13;
case 13:
_f = _e.next();
return [3 /*break*/, 11];
case 14: return [3 /*break*/, 17];
case 15:
e_45_1 = _k.sent();
e_45 = { error: e_45_1 };
return [3 /*break*/, 17];
case 16:
try {
if (_f && !_f.done && (_j = _e.return))
_j.call(_e);
}
finally {
if (e_45)
throw e_45.error;
}
return [7 /*endfinally*/];
case 17:
_d = _c.next();
return [3 /*break*/, 9];
case 18: return [3 /*break*/, 21];
case 19:
e_46_1 = _k.sent();
e_46 = { error: e_46_1 };
return [3 /*break*/, 21];
case 20:
try {
if (_d && !_d.done && (_h = _c.return))
_h.call(_c);
}
finally {
if (e_46)
throw e_46.error;
}
return [7 /*endfinally*/];
case 21: return [2 /*return*/];
}
});
};
CategoryAxisBase.prototype.ps = function () {
var _this = this;
return toEnum(function () { return _this._ps(); });
};
CategoryAxisBase.prototype.po = function (a) {
return this.es.contains(a);
};
CategoryAxisBase.prototype.pp = function (a) {
return false;
};
CategoryAxisBase.prototype._pr = function () {
var a, _a, _b, b, c, _c, _d, d, e_47_1, e_48_1;
var e_48, _e, e_47, _f;
return __generator(this, function (_g) {
switch (_g.label) {
case 0:
a = typeCast(XamDataChart.$, this.b7);
if (!(a != null && a.ga && this.pp(a)))
return [3 /*break*/, 14];
_g.label = 1;
case 1:
_g.trys.push([1, 12, 13, 14]);
_a = __values(fromEnum(a.hl())), _b = _a.next();
_g.label = 2;
case 2:
if (!!_b.done)
return [3 /*break*/, 11];
b = _b.value;
if (!(b != this.b7))
return [3 /*break*/, 10];
c = typeCast(XamDataChart.$, b);
if (!(c != null))
return [3 /*break*/, 10];
_g.label = 3;
case 3:
_g.trys.push([3, 8, 9, 10]);
_c = (e_47 = void 0, __values(fromEnum(c.zq))), _d = _c.next();
_g.label = 4;
case 4:
if (!!_d.done)
return [3 /*break*/, 7];
d = _d.value;
if (!(typeCast(CategoryAxisBase.$, d) !== null))
return [3 /*break*/, 6];
return [4 /*yield*/, typeCast(CategoryAxisBase.$, d)];
case 5:
_g.sent();
_g.label = 6;
case 6:
_d = _c.next();
return [3 /*break*/, 4];
case 7: return [3 /*break*/, 10];
case 8:
e_47_1 = _g.sent();
e_47 = { error: e_47_1 };
return [3 /*break*/, 10];
case 9:
try {
if (_d && !_d.done && (_f = _c.return))
_f.call(_c);
}
finally {
if (e_47)
throw e_47.error;
}
return [7 /*endfinally*/];
case 10:
_b = _a.next();
return [3 /*break*/, 2];
case 11: return [3 /*break*/, 14];
case 12:
e_48_1 = _g.sent();
e_48 = { error: e_48_1 };
return [3 /*break*/, 14];
case 13:
try {
if (_b && !_b.done && (_e = _a.return))
_e.call(_a);
}
finally {
if (e_48)
throw e_48.error;
}
return [7 /*endfinally*/];
case 14: return [2 /*return*/];
}
});
};
CategoryAxisBase.prototype.pr = function () {
var _this = this;
return toEnum(function () { return _this._pr(); });
};
CategoryAxisBase.prototype.q1 = function (a) {
var e_49, _a, e_50, _b;
if (this.pn) {
return;
}
try {
this.pn = true;
var b = 0;
var c = 0;
var d = false;
try {
for (var _c = __values(fromEnum(this.ps())), _d = _c.next(); !_d.done; _d = _c.next()) {
var e = _d.value;
if (!e.e1 && !e.fw && !e.fa) {
continue;
}
if (e.bo != null) {
continue;
}
var f = e;
var g = f.preferredCategoryMode(this);
if (g == 2) {
b = 2;
d = true;
if (this.po(e)) {
c++;
}
}
if (g == 1 && !d) {
b = 1;
}
}
}
catch (e_49_1) {
e_49 = { error: e_49_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_49)
throw e_49.error;
}
}
var h = this.pq;
try {
for (var _e = __values(fromEnum(this.pr())), _f = _e.next(); !_f.done; _f = _e.next()) {
var i = _f.value;
if (i.pq) {
h = true;
}
if (a) {
i.q1(false);
}
}
}
catch (e_50_1) {
e_50 = { error: e_50_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_50)
throw e_50.error;
}
}
if (b == 0 && h) {
b = 2;
if (c == 0) {
c = 1;
}
}
this.categoryMode = b;
this.qc = c;
}
finally {
this.pn = false;
}
};
CategoryAxisBase.prototype.qd = function () {
if (this.pm == null) {
return 0;
}
return this.pm.count;
};
CategoryAxisBase.prototype.km = function (a) {
_super.prototype.km.call(this, a);
this.kp(a, "ItemsSource");
this.kp(a, "Gap");
this.kp(a, "Overlap");
this.kp(a, "MaximumGap");
this.kp(a, "MinimumGapSize");
this.kp(a, "UseClusteringMode");
this.kp(a, "CategoryMode");
};
CategoryAxisBase.prototype.kp = function (a, b) {
_super.prototype.kp.call(this, a, b);
var c = typeCast(CategoryAxisBase.$, a);
if (c == null) {
return;
}
var d = this;
if (b == "ItemsSource") {
c.itemsSource = d.itemsSource;
}
if (b == "Gap") {
c.pw = d.pw;
}
if (b == "Overlap") {
c.p5 = d.p5;
}
if (b == "MaximumGap") {
c.p3 = d.p3;
}
if (b == "MinimumGapSize") {
c.p4 = d.p4;
}
if (b == "UseClusteringMode") {
c.pq = d.pq;
}
if (b == "CategoryMode") {
c.categoryMode = d.categoryMode;
}
};
CategoryAxisBase.prototype.la = function (a, b, c, d) {
var e_51, _a, e_52, _b, e_53, _c;
_super.prototype.la.call(this, a, b, c, d);
switch (b) {
case "FastItemsSourceProvider":
if ((typeCast(IFastItemsSourceProvider_$type, c)) != null) {
this.pm = c.releaseFastItemsSource(this.itemsSource);
}
if ((typeCast(IFastItemsSourceProvider_$type, d)) != null) {
this.pm = d.getFastItemsSource(this.itemsSource);
}
this.qb = 0;
if (this.pm != null) {
this.qb = this.qd();
}
this.q1(true);
break;
case "ItemsSource":
if (this.cd != null) {
this.pm = this.cd.getFastItemsSource(this.itemsSource);
}
break;
case CategoryAxisBase.$$p[0]:
var e = typeCast(IFastItemsSource_$type, c);
this.qo();
this.d0 = true;
if (e != null) {
e.event = delegateRemove(e.event, runOn(this, this.qr));
}
this.qb = 0;
if (this.pm != null) {
this.qb = this.qd();
}
if (this.pm != null) {
var f = this.pm;
f.event = delegateCombine(f.event, runOn(this, this.qr));
this.ly(false);
try {
for (var _d = __values(fromEnum(this.eo())), _e = _d.next(); !_e.done; _e = _d.next()) {
var g = _e.value;
g.r8(false);
if (g.dc != null) {
g.q0();
}
}
}
catch (e_51_1) {
e_51 = { error: e_51_1 };
}
finally {
try {
if (_e && !_e.done && (_a = _d.return))
_a.call(_d);
}
finally {
if (e_51)
throw e_51.error;
}
}
if (this.b7 != null && this.b7.gp) {
this.b7.s4();
}
}
else {
this.kj();
try {
for (var _f = __values(fromEnum(this.eo())), _g = _f.next(); !_g.done; _g = _f.next()) {
var h = _g.value;
h.pi(true, h.cw);
if (h.dc != null) {
h.q0();
}
}
}
catch (e_52_1) {
e_52 = { error: e_52_1 };
}
finally {
try {
if (_g && !_g.done && (_b = _f.return))
_b.call(_f);
}
finally {
if (e_52)
throw e_52.error;
}
}
}
break;
case "ItemsCount":
this.lt(new AxisRangeChangedEventArgs(0, 0, 0, typeGetValue((c)) - 1, typeGetValue((d)) - 1));
this.ly(false);
break;
case CategoryAxisBase.$$p[5]:
this.d0 = true;
this.q2();
this.ly(false);
this.qp();
break;
case "CategoryMode":
this.d0 = true;
this.ly(false);
this.qz();
this.qp();
break;
case CategoryAxisBase.$$p[4]:
case CategoryAxisBase.$$p[3]:
case CategoryAxisBase.$$p[2]:
case CategoryAxisBase.$$p[1]:
this.pv = this.p3;
this.d0 = true;
try {
for (var _h = __values(fromEnum(this.eo())), _j = _h.next(); !_j.done; _j = _h.next()) {
var i = _j.value;
i.g6 = true;
var j = typeCast(IHasCategoryModePreference_$type, i);
if (j != null && j.preferredCategoryMode(this) == 2) {
i.r8(false);
}
}
}
catch (e_53_1) {
e_53 = { error: e_53_1 };
}
finally {
try {
if (_j && !_j.done && (_c = _h.return))
_c.call(_h);
}
finally {
if (e_53)
throw e_53.error;
}
}
this.ly(false);
if (this.b7 != null) {
this.b7.p6();
}
break;
case Axis.$$p[32]:
case Axis.$$p[31]:
this.d0 = true;
this.ly(true);
break;
}
};
CategoryAxisBase.prototype.qp = function () {
var e_54, _a;
try {
for (var _b = __values(fromEnum(this.eo())), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
a.r8(false);
}
}
catch (e_54_1) {
e_54 = { error: e_54_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_54)
throw e_54.error;
}
}
};
CategoryAxisBase.prototype.qr = function (a, b) {
this.qy(b);
};
CategoryAxisBase.prototype.qy = function (a) {
switch (a.action) {
case 3:
case 0:
case 1:
case 2:
case 4:
if (this.pm != null) {
this.qb = this.qd();
}
this.ly(false);
break;
}
if (this.pm != null) {
this.qb = this.qd();
}
};
CategoryAxisBase.prototype.q2 = function () {
var e_55, _a;
var a = false, b = false;
try {
for (var _b = __values(fromEnum(this.es)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
var d = typeCast(IHasCategoryModePreference_$type, c);
if (d == null) {
continue;
}
var e = d.preferredCategoryMode(this);
a = a || e == 1;
b = b || e == 2;
}
}
catch (e_55_1) {
e_55 = { error: e_55_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_55)
throw e_55.error;
}
}
var f = b ? 2 : a ? 1 : 0;
if (f == 0 && this.pq) {
f = 1;
if (this.qc == 0) {
this.qc = 1;
}
}
this.categoryMode = f;
};
CategoryAxisBase.prototype.d3 = function (a) {
var e_56, _a;
var b = _super.prototype.d3.call(this, a);
if (b) {
this.q1(true);
var c = typeCast(IHasCategoryModePreference_$type, a);
if (c != null && c.preferredCategoryMode(this) == 2) {
try {
for (var _b = __values(fromEnum(this.eo())), _c = _b.next(); !_c.done; _c = _b.next()) {
var d = _c.value;
var e = typeCast(IHasCategoryModePreference_$type, d);
if (e != null && e != c && e.preferredCategoryMode(this) == 2) {
d.r8(false);
}
}
}
catch (e_56_1) {
e_56 = { error: e_56_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_56)
throw e_56.error;
}
}
}
this.ly(false);
this.ed();
}
return b;
};
CategoryAxisBase.prototype.cx = function (a) {
var e_57, _a;
var b = _super.prototype.cx.call(this, a);
if (b) {
this.q1(true);
var c = typeCast(IHasCategoryModePreference_$type, a);
if (c != null && c.preferredCategoryMode(this) != 0) {
try {
for (var _b = __values(fromEnum(this.eo())), _c = _b.next(); !_c.done; _c = _b.next()) {
var d = _c.value;
var e = typeCast(IHasCategoryModePreference_$type, d);
if (e != null) {
d.r8(false);
}
}
}
catch (e_57_1) {
e_57 = { error: e_57_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_57)
throw e_57.error;
}
}
}
this.ly(false);
}
return b;
};
CategoryAxisBase.prototype.qz = function () {
var e_58, _a;
var a = null;
try {
for (var _b = __values(fromEnum(this.eo())), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
if (b.e1) {
var c = b.aw(this);
if (c != null && c.an == this) {
a = c;
}
}
}
}
catch (e_58_1) {
e_58 = { error: e_58_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_58)
throw e_58.error;
}
}
if (a != null) {
a.lx();
}
};
CategoryAxisBase.prototype.qo = function () {
this.pl = this.pm;
};
CategoryAxisBase.prototype.q0 = function () {
var a = this.a4;
if (a == null) {
a = new AxisLabelSettings();
}
if (a.visibility == 1) {
this.ci.count = 0;
this.ch.count = 0;
this.cf.count = 0;
this.ce.count = 0;
this.cg.count = 0;
}
else {
var b = 0;
b = this.pi.br(this.eq);
this.ci.count = b;
}
};
CategoryAxisBase.prototype.qq = function (a) {
if (this.pm != null) {
this.pm.handleCollectionChanged(a);
}
};
CategoryAxisBase.prototype.qv = function (a, b, c) {
this.qq(new NotifyCollectionChangedEventArgs(2, 2, c, b, a));
};
CategoryAxisBase.prototype.qs = function () {
this.qq(new NotifyCollectionChangedEventArgs(0, 4));
};
CategoryAxisBase.prototype.qt = function (a, b) {
this.qq(new NotifyCollectionChangedEventArgs(1, 0, b, a));
};
CategoryAxisBase.prototype.qu = function (a, b) {
this.qq(new NotifyCollectionChangedEventArgs(1, 1, b, a));
};
CategoryAxisBase.prototype.p0 = function (a, b, c, d) {
return this.p1(a, b, c, d, this.categoryMode);
};
CategoryAxisBase.prototype.p1 = function (a, b, c, d, e) {
var f = 0;
var g = e;
if (g == 0 && this.categoryMode != 0) {
g = 1;
}
switch (g) {
case 0:
f = 0;
break;
case 1:
f = 0.5 * this.getCategorySize(a, b, c);
break;
case 2:
f = this.getGroupCenter(d, a, b, c);
break;
}
if (this.dy != this.dn) {
f *= -1;
}
return f;
};
CategoryAxisBase.prototype.getSeriesOffset = function (a, b, c, d, e) {
return this.p1(a, b, c, d, e);
};
Object.defineProperty(CategoryAxisBase.prototype, "isVertical", {
get: function () {
return this.dy;
},
enumerable: false,
configurable: true
});
CategoryAxisBase.prototype.j$d = function (a, b) {
return this.f9.apply(this, arguments);
};
CategoryAxisBase.prototype.j$c = function (a, b) {
return this.f6.apply(this, arguments);
};
CategoryAxisBase.prototype.j$e = function (a, b, c, d, e) {
this.k0.apply(this, arguments);
};
CategoryAxisBase.prototype.j$f = function (a, b, c, d) {
this.k1.apply(this, arguments);
};
CategoryAxisBase.prototype.j$g = function (a, b, c, d) {
this.k2.apply(this, arguments);
};
Object.defineProperty(CategoryAxisBase.prototype, "j$b", {
get: function () {
return this.dn;
},
enumerable: false,
configurable: true
});
CategoryAxisBase.prototype.j$a = function () {
return this.ag.apply(this, arguments);
};
CategoryAxisBase.$t = markType(CategoryAxisBase, 'CategoryAxisBase', Axis.$, [ICategoryScaler_$type]);
CategoryAxisBase.q5 = DependencyProperty.i("ItemsSource", IEnumerable_$type, CategoryAxisBase.$, new PropertyMetadata(2, null, function (a, b) {
var c = typeCast(CategoryAxisBase.$, a);
if (c.cd != null) {
c.cd.releaseFastItemsSource(b.oldValue);
}
a.ls("ItemsSource", b.oldValue, b.newValue);
}));
CategoryAxisBase.$$p = markDep(DependencyProperty, PropertyMetadata, CategoryAxisBase, 'ls', ['FastItemsSource:pm:q3', [IFastItemsSource_$type], 'Gap:pw:q4', [1, 0.2], 'MaximumGap:p3:q6', [1, 1], 'MinimumGapSize:p4:q7', [1, 0], 'Overlap:p5:q8', [1, 0], 'UseClusteringMode:pq:q9', [0, false]]);
return CategoryAxisBase;
}(Axis));
export { CategoryAxisBase };
/**
* @hidden
*/
var HorizontalAxisLabelPanelBase = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(HorizontalAxisLabelPanelBase, _super);
function HorizontalAxisLabelPanelBase() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.dr = 0;
_this.dn = 0;
_this.dq = 0;
_this.dp = 0;
return _this;
}
HorizontalAxisLabelPanelBase.prototype.af = function () {
return new HorizontalAxisLabelPanelBaseView(this);
};
HorizontalAxisLabelPanelBase.prototype.cl = function (a) {
_super.prototype.cl.call(this, a);
this.de = a;
};
HorizontalAxisLabelPanelBase.prototype.ca = function () {
this.de.a1();
};
HorizontalAxisLabelPanelBase.prototype.dg = function () {
return ((this.ah != null && this.ah.k()) || this.ae.c1) && this.bq() % 360 != 0;
};
HorizontalAxisLabelPanelBase.prototype.dh = function () {
return this.aq && !this.a0;
};
HorizontalAxisLabelPanelBase.prototype.as = function () {
return true;
};
HorizontalAxisLabelPanelBase.prototype.ba = function () {
var _this = this;
var a = new List$1(Rect.$, 0);
var b = new List$1(Boolean_$type, 0);
this.a1 = false;
this.a0 = false;
this.a2 = false;
var c = this.bq();
var d = c * Math.PI / 180;
if (this.dg()) {
this.a0 = true;
}
this.aq = false;
this.dt(a, b, d);
if (this.ae != null && this.ae.b7 != null && (this.ae.b7.go || this.ae.b7.gn || this.ax() || this.ay()) && a != null) {
for (var e = 0; e < a.count; e++) {
var f = a._inner[e];
if (this.c8.isEmpty) {
this.c8 = new Rect(0, f.left, f.top, f.width, f.height);
}
else {
if (this.c8.width < f.width) {
this.c8 = new Rect(0, f.left, f.top, f.width, f.height);
}
}
}
}
this.aq = this.aq || this.ap(a, b);
if (this.aq) {
this.dv(a, b);
}
else {
this.dw();
}
var g = this.ae.db();
if (!g) {
this.ds(c);
}
else {
this.ag.ab();
}
if (this.a0) {
for (var h = 0; h < a.count; h++) {
var i = a._inner[h];
i.x = this.bf._inner[h].h;
a._inner[h] = i;
}
}
var j = 0;
if (this.dh()) {
j = ((function () { var k = _this.b3(_this.dn, a, b); a = k.p1; return k.ret; })());
}
if (this.aq && !this.a1) {
if (j > 0) {
if (this.de.a0()) {
this.a2 = true;
}
}
}
if (this.aq && this.df()) {
this.at = true;
var k = this.c6.width;
var l = this.dl();
var m = this.dk();
var n = this.bf.count > 1 ? this.bf._inner[1].h - this.bf._inner[0].h : k;
var o = Math.abs(n * 0.8);
var p = 0;
var q = Math.abs(Math.atan(this.dn / n) * 180 / Math.PI);
var r = this.ag.q();
var s = this.ag.r();
for (var t = 0; t < a.count; t++) {
if (b._inner[t]) {
continue;
}
if (this.an) {
if (t > 0 && t < a.count - 1) {
var u = this.bf.count > 1 ? this.bf._inner[t].h - (a._inner[t - 1].x + a._inner[t - 1].width) : k;
var v = this.bf.count > 1 ? a._inner[t + 1].x - this.bf._inner[t].h : k;
o = Math.abs(Math.min(Math.abs(u * 2), Math.abs(v * 2)) * 0.8);
}
else {
if (t == 0) {
var w = this.bf.count > 1 ? a._inner[t + 1].x - this.bf._inner[t].h : k;
o = Math.abs((n * 2) * 0.8);
}
if (t == a.count - 1) {
var x = this.bf.count > 1 ? this.bf._inner[t].h - (a._inner[t - 1].x + a._inner[t - 1].width) : k;
o = Math.abs((x * 2) * 0.8);
}
}
}
var y = Math.min(a._inner[t].width, o);
p = this.a0 ? this.bf._inner[t].h : this.bf._inner[t].h - y / 2;
var z = AngleSimplifier.a(c);
var aa = (z >= q && z <= 180 - q) || (z >= 180 + q && z <= 360 - q);
var ab = a._inner[t];
if (this.a0 && aa) {
var ac = this.b0(this.bg._inner[t]);
o = Math.min((m / Math.abs(Math.sin(d))) + r + s, ac);
}
ab.x = p;
ab.width = Math.min(o, ab.width);
a._inner[t] = ab;
if (!(typeCast(TextBlock.$, this.bg._inner[t]) !== null)) {
this.bg._inner[t].width = Math.min(o, ab.width);
}
var ad = typeCast(TextBlock.$, this.bg._inner[t]);
if (ad != null) {
var ae = this.al(t, ad, o, r, s);
if (this.a2) {
ad.height = m;
}
else if (!Base.equalsStatic(ad.al, ae.b)) {
ad.al = ae.b;
this.bg._inner[t].width = Math.min(o, this.bp(this.bg._inner[t]));
this.dq = Math.min(this.dq, this.bg._inner[t].width);
}
}
}
if (!g) {
this.ds(c);
}
}
if (this.di()) {
this.du(a);
}
return a;
};
HorizontalAxisLabelPanelBase.prototype.dt = function (a, b, c) {
var d = this.bx();
var e = this.dm();
this.dn = -1.7976931348623157E+308;
this.dr = -1.7976931348623157E+308;
this.dp = -1.7976931348623157E+308;
this.dq = -1.7976931348623157E+308;
var f = this.ag.q();
var g = this.ag.r();
var h = this.ag.s();
var i = this.ag.p();
var j = this.c6.top;
var k = (this.c6.height - d);
var l = false;
for (var m = 0; m < this.bg.count; m++) {
if (!this.bf._inner[m].b) {
l = true;
}
}
for (var n = 0; n < this.bg.count; n++) {
if (this.bf == null || n >= this.bf.count) {
break;
}
var o = void 0, p = void 0, q = void 0, r = void 0, s = void 0, t = void 0;
var u = this.bg._inner[n];
s = this.bp(u);
t = this.bo(u);
r = s + this.ag.q() + this.ag.r();
q = t + h + i;
var v = this.bf._inner[n].b;
var w = this.bf._inner[n].a;
var x = this.bf._inner[n].e;
if (this.a0) {
o = this.bf._inner[n].h;
}
else {
o = this.bf._inner[n].h - r / 2;
}
p = j + e;
if (!v || !l) {
this.dn = Math.max(q, this.dn);
this.dr = Math.max(r, this.dr);
this.dp = Math.max(t, this.dp);
this.dq = Math.max(s, this.dq);
}
if (v && w) {
if (this.a0) {
o = o + x;
}
else {
o = o + (x / 2);
}
}
var y = new Rect(0, o, p, r, q);
a.add(y);
b.add(v);
var z = r * Math.abs(Math.sin(c));
this.aq = this.aq || z > k;
}
if (this.ae != null && this.ae.cs) {
var aa = -1;
for (var ab = 0; ab < this.bg.count; ab++) {
var ac = this.bg._inner[ab];
aa = Math.max(ac.ah, aa);
}
if (aa >= 0 && !isNaN_(aa)) {
for (var ad = 0; ad < this.bg.count; ad++) {
var ae = this.bg._inner[ad];
ae.ah = aa;
}
}
}
};
HorizontalAxisLabelPanelBase.prototype.ds = function (a) {
var b = a * (Math.PI / 180);
var c = this.dq;
var d = this.dp;
if (this.ax() || this.ay()) {
var e = this.ag.q();
var f = this.ag.r();
var g = this.ag.s();
var h = this.ag.p();
c = this.c8.width;
d = this.c8.height;
c = this.c8.width - (e + f);
d = this.c8.height - (g + h);
}
var i = Math.abs(c * Math.sin(b)) + Math.abs(d * Math.cos(b));
i += this.ag.s() + this.ag.p();
var j = this.bx();
var k = (i) + (j) + this.ae.fc;
if (this.ae.a4 != null) {
var l = this.ae.a4.maximumExtentPercentage;
var m = this.ae.a4.maximumExtent;
if (!isNaN_(m) && (m > 0)) {
k = Math.min(m, k);
}
else if (!isNaN_(l) && (l > 0) && (l <= 1)) {
var n = this.ae.b5.dw.ba;
m = l * n;
k = Math.min(m, k);
}
}
this.bm = Math.max(this.ae.gf, k);
};
HorizontalAxisLabelPanelBase.prototype.du = function (a) {
this.de.a2(a);
};
HorizontalAxisLabelPanelBase.prototype.dv = function (a, b) {
};
HorizontalAxisLabelPanelBase.prototype.dw = function () {
};
HorizontalAxisLabelPanelBase.prototype.get_az = function () {
return true;
};
HorizontalAxisLabelPanelBase.prototype.cq = function (a, b) {
var c = a.l;
var d = a.m;
var e = 0;
var f = c / 2;
var g = new TransformGroup();
var h = AngleSimplifier.a(this.bq());
var i = ((function () {
var $ret = new RotateTransform();
$ret.j = h;
$ret.k = e;
$ret.l = f;
return $ret;
})());
var j = 0;
var k = 0;
if (h != 0 && h != 360) {
if (h > 0 && h < 180) {
j = -Math.sin(MathUtil.p(h)) * (c / 2);
}
else {
i.k = d;
k = -d;
j = -Math.sin(MathUtil.p(h - 180)) * (c / 2);
}
}
var l = ((function () {
var $ret = new TranslateTransform();
$ret.k = j;
$ret.j = k;
return $ret;
})());
g.j.add(i);
g.j.add(l);
a.j = g;
};
HorizontalAxisLabelPanelBase.prototype.cr = function (a, b, c) {
var d = a.l;
var e = a.m;
var f = -b;
var g = d / 2;
var h = new TransformGroup();
var i = AngleSimplifier.a(this.bq());
var j = ((function () {
var $ret = new RotateTransform();
$ret.j = i;
$ret.k = f;
$ret.l = g;
return $ret;
})());
var k = 0;
var l = 0;
if (i != 0 && i != 360) {
if (i > 0 && i < 180) {
k = -Math.sin(MathUtil.p(i)) * (d / 2);
l = b;
}
else {
j.k = e;
l = -e;
k = -Math.sin(MathUtil.p(i - 180)) * (d / 2);
}
}
var m = ((function () {
var $ret = new TranslateTransform();
$ret.k = k;
$ret.j = l;
return $ret;
})());
h.j.add(j);
h.j.add(m);
a.j = h;
};
HorizontalAxisLabelPanelBase.prototype.di = function () {
return !this.a1 && !this.a0;
};
HorizontalAxisLabelPanelBase.prototype.df = function () {
if (this.ae != null && this.ae.b7 != null && this.ae.b7.gp) {
return false;
}
return true;
};
HorizontalAxisLabelPanelBase.prototype.b3 = function (a, b, c) {
var d = 0;
var e = new List$1(Rect.$, 0);
var f = this.dm() + this.c6.top;
var g = this.dl();
var h = f + g;
if (a * 3 <= this.bi) {
d = 3;
}
else if (a * 2 <= this.bi) {
d = 2;
}
else {
return {
ret: d,
p1: b
};
}
var i = 0;
for (var j = 0; j < b.count; j++) {
var k = RectUtil.p(b._inner[j]);
if (!c._inner[j]) {
if (i % d == 0) {
k.y = f;
}
else if (i % d == d - 1) {
k.y = h - k.height;
}
else {
k.y = (f + (g / 2)) - k.height / 2;
}
i++;
}
e.add(k);
}
this.aq = this.ap(e, c);
if (!this.aq) {
this.a1 = true;
b = e;
}
return {
ret: d,
p1: b
};
};
HorizontalAxisLabelPanelBase.prototype.c5 = function () {
var a = this.ak(this.ae.b4);
var b = this.bx();
var c = this.ai;
var d = 0;
if (a == 3) {
d += this.c6.top;
if (c == 1 || c == 5) {
d += this.ae.fc;
}
}
else {
d = this.c6.bottom - b;
if (c == 4 || c == 0) {
d -= this.ae.fc;
}
}
var e = this.bz();
var f = 0;
var g = this.ae.b4 == null ? 1 : this.ae.b4.horizontalAlignment;
if (g == 0) {
f = this.c6.left;
}
else if (g == 2) {
f = this.c6.right - e;
}
else {
f = (this.c6.left + (this.c6.width / 2)) - (e / 2);
}
return new Rect(0, f, d, e, b);
};
HorizontalAxisLabelPanelBase.prototype.dm = function () {
var a = 0;
var b = this.ak(this.ae.b4);
if (b == 3) {
a += this.bx();
}
var c = this.ai;
if (c == 1 || c == 5) {
a += this.ae.fc;
}
return a;
};
HorizontalAxisLabelPanelBase.prototype.dj = function () {
var a = 0;
var b = this.ak(this.ae.b4);
if (b == 4) {
a += this.bx();
}
var c = this.ai;
if (c == 0 || c == 4) {
a += this.ae.fc;
}
return a;
};
HorizontalAxisLabelPanelBase.prototype.dl = function () {
var a = (this.bi - this.dm()) - this.dj();
if (a < 0) {
a = 0;
}
return a;
};
HorizontalAxisLabelPanelBase.prototype.dk = function () {
var a = ((this.dl() - this.ag.s()) - this.ag.p());
if (a < 0) {
a = 0;
}
return a;
};
HorizontalAxisLabelPanelBase.prototype.cd = function () {
var e_59, _a;
var a = this.ag.at();
this.ae.kk(a);
if (this.ah != null && this.ah.visibility != 0) {
return;
}
var b = this.ae.fc;
if (b == 0) {
return;
}
var c = this.a7();
if (c == null) {
return;
}
var d = this.c6.top;
var e;
var f = this.ai;
if (f == 0 || f == 4) {
d = this.c6.bottom;
e = d - this.ae.fc;
}
else {
e = d + this.ae.fc;
}
var g = this.ag.b();
try {
for (var _b = __values(fromEnum(c)), _c = _b.next(); !_c.done; _c = _b.next()) {
var h = _c.value;
this.cx(a, h, d, e, this.c9, g);
}
}
catch (e_59_1) {
e_59 = { error: e_59_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_59)
throw e_59.error;
}
}
if (!this.ab.contains(this.ag.aw)) {
this.ab.add(this.ag.aw);
}
};
HorizontalAxisLabelPanelBase.prototype.bb = function (a) {
var _this = this;
if (this.ae.d6 || this.ae.d8) {
var b = this.ag.q();
var c = this.ag.s();
var d = this.ag.r();
var e = this.ag.p();
var f = Math.max(b, Math.max(c, Math.max(d, e)));
var g_2 = new Thickness(0, f);
if (this.a0) {
g_2 = new Thickness(0, Math.sqrt((f * f) / 2));
}
var h = this.a9(a);
var i = new List$1(Thickness.$, 0);
if (h.count < 1) {
return a;
}
h.aa(function (j, k) {
var l = _this.c3(j, a._inner[j], g_2);
var m = _this.c3(k, a._inner[k], g_2);
var n = l.left + l.width * 0.5;
var o = m.left + m.width * 0.5;
if (n < o) {
return -1;
}
if (n > o) {
return 1;
}
return 0;
});
if (this.ae.d6 && this.ae.d5 && h.count > 1) {
var j = 10;
var k = 2;
var l = new List$1(OverlayCollisionInfo.$, 0);
for (var m = 0; m < h.count; m++) {
var n = h._inner[m];
var o = this.bf._inner[n];
var p = this.c3(n, a._inner[n], g_2);
var q = p.width * 0.5;
var r = new OverlayCollisionInfo();
r.d = p.width;
r.e = p.width;
r.c = p.width;
l.add(r);
if (m > 0) {
var s = h._inner[m - 1];
var t = this.bf._inner[s];
var u = this.c3(s, a._inner[s], g_2);
var v = u.width * 0.5;
var w = (o.h - t.h) - k;
if (q + v > w) {
var x = w * 0.5;
if (q >= x && v >= x) {
var y = q - x;
r.c = p.width - (y * 2);
}
else if (q > x && v < x) {
var z = q - (w - v);
r.c = p.width - (z * 2);
}
}
}
if (m < h.count - 1) {
var aa = h._inner[m + 1];
var ab = this.bf._inner[aa];
var ac = this.c3(aa, a._inner[aa], g_2);
var ad = ac.width * 0.5;
var ae = (ab.h - o.h) - k;
if (q + ad > ae) {
var af = ae * 0.5;
if (q >= af && ad >= af) {
var ag = q - af;
r.e = p.width - (ag * 2);
}
else if (q > af && ad < af) {
var ah = q - (ae - ad);
r.e = p.width - (ah * 2);
}
}
}
}
for (var ai = 0; ai < h.count; ai++) {
var aj = h._inner[ai];
var ak = l._inner[ai];
if (ak.a) {
if (ai > 0) {
var al = l._inner[ai - 1];
if (al.c < al.e) {
var am = al.e - al.c;
ak.c = Math.min(ak.c + am, ak.d);
}
}
if (ai < h.count - 1) {
var an = l._inner[ai + 1];
if (an.e < an.c) {
var ao = an.c - an.e;
ak.e = Math.min(ak.e + ao, ak.d);
}
}
var ap = a._inner[aj].width - (ak.d - ak.b);
this.dx(aj, a, this.bg, ap, j);
}
}
}
else {
for (var aq = 0; aq < h.count; aq++) {
var ar = h._inner[aq];
var as = a._inner[ar];
var at = this.c3(ar, a._inner[ar], g_2);
var au = this.ae.b7.y9.left;
if (this.ae.d8) {
if (as.left < (this.ae.b7.y9.left - au)) {
as = new Rect(0, as.left + ((this.ae.b7.y9.left - au) - as.left), as.top, as.width, as.height);
a._inner[ar] = as;
}
}
}
var av = this.av(a, h, g_2);
if (av && (this.ae.d6)) {
for (var aw = 0; aw < h.count - 1; aw++) {
var ax = h._inner[aw];
var ay = h._inner[aw + 1];
var az = a._inner[ax];
var a0 = a._inner[ay];
var a1 = this.c3(ax, a._inner[ax], g_2);
var a2 = this.c3(ay, a._inner[ay], g_2);
if (a1.intersectsWith(a2) || a1.left > a2.right) {
var a3 = new Rect(0, a1.right + 1 + (a0.left - a2.left), a0.top, a0.width, a0.height);
a._inner[ay] = a3;
}
}
}
for (var a4 = h.count - 1; a4 >= 0; a4--) {
var a5 = h._inner[a4];
var a6 = a._inner[a5];
var a7 = this.c3(a5, a._inner[a5], g_2);
var a8 = this.ae.b7.dw.a8;
if (this.ae.d8) {
if (a7.right > this.ae.b7.y9.right + a8) {
a6 = new Rect(0, a6.left - (a7.right - (this.ae.b7.y9.right + a8)), a6.top, a6.width, a6.height);
a._inner[a5] = a6;
}
}
}
if (this.ae.d6) {
for (var a9 = h.count - 1; a9 >= 1; a9--) {
var ba = h._inner[a9];
var bb = h._inner[a9 - 1];
var bc = a._inner[ba];
var bd = a._inner[bb];
var be = this.c3(ba, a._inner[ba], g_2);
var bf = this.c3(bb, a._inner[bb], g_2);
if (be.intersectsWith(bf) || be.left < bf.right) {
var bg = new Rect(0, be.left - (bf.width + 1) + (bd.left - bf.left), bd.top, bd.width, bd.height);
a._inner[bb] = bg;
}
}
}
}
}
return a;
};
HorizontalAxisLabelPanelBase.prototype.dx = function (a, b, c, d, e) {
var f = c._inner[a];
var g = b._inner[a];
var h = Math.min(g.width, Math.max(e, d));
if (!(typeCast(TextBlock.$, f) !== null)) {
f.width = Math.min(h, g.width);
}
var i = typeCast(TextBlock.$, f);
if (i != null) {
var j = this.al(a, i, h, 0, 0);
if (!Base.equalsStatic(i.al, j.b)) {
i.al = j.b;
f.width = Math.min(h, this.bp(f));
}
h = j.a;
}
g.x = (g.x + g.width / 2) - h / 2;
g.width = h;
b._inner[a] = g;
};
HorizontalAxisLabelPanelBase.$t = markType(HorizontalAxisLabelPanelBase, 'HorizontalAxisLabelPanelBase', AxisLabelPanelBase.$);
return HorizontalAxisLabelPanelBase;
}(AxisLabelPanelBase));
export { HorizontalAxisLabelPanelBase };
/**
* @hidden
*/
var HorizontalAxisLabelPanel = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(HorizontalAxisLabelPanel, _super);
function HorizontalAxisLabelPanel() {
return _super !== null && _super.apply(this, arguments) || this;
}
HorizontalAxisLabelPanel.prototype.aj = function () {
return 1;
};
HorizontalAxisLabelPanel.prototype.a3 = function (a) {
return a == 5 || a == 4 || a == 1 || a == 0;
};
HorizontalAxisLabelPanel.$t = markType(HorizontalAxisLabelPanel, 'HorizontalAxisLabelPanel', HorizontalAxisLabelPanelBase.$);
return HorizontalAxisLabelPanel;
}(HorizontalAxisLabelPanelBase));
export { HorizontalAxisLabelPanel };
/**
* @hidden
*/
var NumericAxisBase = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(NumericAxisBase, _super);
function NumericAxisBase() {
var _this = _super.call(this) || this;
_this.pn = 0;
_this.qo = 0;
_this.q7 = 0;
_this.qr = 0;
_this.qn = 0;
_this.q6 = 0;
_this.qq = 0;
_this.qm = 0;
_this.re = -1;
_this.rd = 0;
_this.rf = -1;
_this.p6 = false;
_this.qp = 0;
_this.p4 = false;
_this.p5 = false;
_this.rk = 0;
_this.pw = null;
_this.qi = false;
_this.qj = false;
_this.pj = null;
_this.pl = null;
_this.qt = -1;
_this.qs = -1;
_this.po = 0;
_this.qf = false;
_this.p0 = null;
_this.p3 = false;
_this.rk = 10;
return _this;
}
NumericAxisBase.prototype.bo = function () {
return new NumericAxisBaseView(this);
};
NumericAxisBase.prototype.ag = function () {
return [this.qw, this.qv];
};
NumericAxisBase.prototype.k6 = function (a) {
_super.prototype.k6.call(this, a);
this.pt = a;
};
NumericAxisBase.prototype.km = function (a) {
_super.prototype.km.call(this, a);
this.kp(a, "ActualMinimumValue");
this.kp(a, "ActualMaximumValue");
this.kp(a, "ActualMinorInterval");
this.kp(a, "ActualInterval");
this.kp(a, "ActualIsLogarithmic");
this.kp(a, "LogarithmBase");
};
NumericAxisBase.prototype.kp = function (a, b) {
_super.prototype.kp.call(this, a, b);
var c = typeCast(NumericAxisBase.$, a);
if (c == null) {
return;
}
var d = this;
if (b == "ActualMinimumValue") {
c.q9 = Axis.gs(d.q3, d.qw);
}
if (b == "ActualMaximumValue") {
c.q8 = Axis.gs(d.q2, d.qv);
}
if (b == "ActualMinorInterval") {
c.ra = Axis.gs(d.q4, d.qx);
}
if (b == "ActualInterval") {
c.q5 = Axis.gs(d.q0, d.qu);
}
if (b == "ActualIsLogarithmic") {
c.qg = Axis.d4(d.ps, d.p8);
}
if (b == "LogarithmBase") {
c.rj = truncate(Axis.gs(d.q1, d.rj));
}
};
NumericAxisBase.prototype.fe = function (a, b) {
var c = a < this.qw ? this.qw : a;
c = a > this.qv ? this.qv : c;
return c;
};
NumericAxisBase.prototype.get_dq = function () {
return true;
};
Object.defineProperty(NumericAxisBase.prototype, "pp", {
get: function () {
return EnumUtil.getEnumValue(AxisRangeBufferMode_$type, this.c(NumericAxisBase.s5));
},
set: function (a) {
this.h(NumericAxisBase.s5, enumGetBox(AxisRangeBufferMode_$type, a));
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "pq", {
get: function () {
return this.pn;
},
set: function (a) {
this.pn = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "qw", {
get: function () {
return this.qo;
},
set: function (a) {
if (this.qw != a) {
var b = this.qo;
this.qo = a;
this.q7 = Math.log(this.qw);
this.ls("ActualMinimumValue", b, this.qw);
}
},
enumerable: false,
configurable: true
});
NumericAxisBase.prototype.hz = function () {
return this.q9;
};
Object.defineProperty(NumericAxisBase.prototype, "qz", {
get: function () {
return this.qr;
},
set: function (a) {
if (this.qz != a) {
var b = this.qr;
this.qr = a;
this.ls("ActualVisibleMinimumValue", b, this.qz);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "qv", {
get: function () {
return this.qn;
},
set: function (a) {
if (this.qv != a) {
var b = this.qn;
this.qn = a;
this.q6 = Math.log(this.qv);
this.ls("ActualMaximumValue", b, this.qv);
}
},
enumerable: false,
configurable: true
});
NumericAxisBase.prototype.hy = function () {
return this.qv;
};
Object.defineProperty(NumericAxisBase.prototype, "qy", {
get: function () {
return this.qq;
},
set: function (a) {
if (this.qy != a) {
var b = this.qq;
this.qq = a;
this.ls("ActualVisibleMaximumValue", b, this.qy);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "qu", {
get: function () {
return this.qm;
},
set: function (a) {
if (this.qu != a) {
var b = this.qm;
this.qm = a;
this.ls("ActualInterval", b, this.qu);
}
},
enumerable: false,
configurable: true
});
NumericAxisBase.prototype.gi = function () {
return this.qu;
};
Object.defineProperty(NumericAxisBase.prototype, "rh", {
get: function () {
return this.re;
},
set: function (a) {
this.re = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "rg", {
get: function () {
return this.rd;
},
set: function (a) {
if (this.rg != a) {
var b = this.rd;
this.rd = a;
this.ls("ActualMaxPrecision", b, this.rg);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "ri", {
get: function () {
return this.rf;
},
set: function (a) {
this.rf = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "qa", {
get: function () {
return this.p6;
},
set: function (a) {
this.p6 = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "qx", {
get: function () {
return this.qp;
},
set: function (a) {
if (this.qx != a) {
var b = this.qp;
this.qp = a;
this.ls("ActualMinorInterval", b, this.qx);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "p8", {
get: function () {
return this.p4;
},
set: function (a) {
if (this.p8 != a) {
var b = this.p4;
if (b != a) {
this.p4 = a;
this.ls("ActualIsLogarithmic", b, this.p8);
}
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "p9", {
get: function () {
return this.p5;
},
set: function (a) {
this.p5 = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "qh", {
get: function () {
return this.p8 && this.qw > 0 && this.rk > 1;
},
enumerable: false,
configurable: true
});
NumericAxisBase.prototype.lz = function (a) {
_super.prototype.lz.call(this, a);
if (this.qh && this.b7 != null) {
var b = this.o1();
var c = this.o0();
var d = this.px(this.o6, this.b7.yr, b, c);
if (d == null) {
return;
}
var _loop_4 = function (e) {
var f = this_2.rj;
var g = d.k._inner[e];
var h = Math.min(g.d, g.c);
var i = Math.max(g.d, g.c);
var j = Math.floor(logBase(h, f));
var k = Math.ceil(logBase(i, f));
if (k - j < 2) {
if (typeCast(LogarithmicTickmarkValues.$, this_2.p0) !== null) {
this_2.p0 = new LinearTickmarkValues();
}
}
else {
this_2.p0 = this_2.p2 != null ? this_2.p2 : ((function () {
var $ret = new LogarithmicTickmarkValues();
$ret.x = f;
return $ret;
})());
}
};
var this_2 = this;
for (var e = 0; e < d.k.count; e++) {
_loop_4(e);
}
}
};
NumericAxisBase.prototype.me = function (a, b) {
_super.prototype.me.call(this, a, b);
if (this.rl != -1) {
this.rg = this.rm();
}
else {
if (this.rg != -1) {
this.rg = -1;
}
}
};
NumericAxisBase.prototype.lf = function (a) {
_super.prototype.lf.call(this, a);
this.q9 = a;
};
NumericAxisBase.prototype.le = function (a) {
_super.prototype.lf.call(this, a);
this.q8 = a;
};
NumericAxisBase.prototype.la = function (a, b, c, d) {
_super.prototype.la.call(this, a, b, c, d);
switch (b) {
case "SeriesViewer":
this.rg = this.rm();
break;
case NumericAxisBase.$$p[18]:
this.qa = this.qk;
this.rg = this.rm();
break;
case NumericAxisBase.$$p[13]:
this.ri = this.rl;
this.rg = this.rm();
break;
case "ActualMaxPrecision":
this.rh = this.rg;
this.ed();
this.ly(false);
break;
case NumericAxisBase.$$p[0]:
case NumericAxisBase.$$p[1]:
if (this.rn != null) {
this.pj = new BindingFormatter();
this.pj.j = this.rn;
this.pj.d = this.pi;
}
else {
this.pj = null;
}
break;
case "AutoRangeBufferMode":
this.pq = this.pp;
this.kl();
this.ed();
this.ly(false);
break;
case NumericAxisBase.$$p[15]:
this.ed();
this.ly(false);
break;
case NumericAxisBase.$$p[14]:
this.ed();
this.ly(false);
break;
case NumericAxisBase.$$p[8]:
this.p9 = this.qb;
this.ed();
this.ly(false);
break;
case NumericAxisBase.$$p[11]:
this.qi = true;
this.p8 = this.qg;
break;
case Axis.$$p[32]:
case Axis.$$p[31]:
case NumericAxisBase.$$p[10]:
case NumericAxisBase.$$p[16]:
this.d0 = true;
this.ly(false);
break;
case NumericAxisBase.$$p[12]:
this.qi = true;
this.rk = this.rj;
if (this.p8) {
this.ed();
this.sl();
this.ly(false);
}
break;
case NumericAxisBase.$$p[17]:
var e = new AxisRangeChangedEventArgs(0, this.qw, this.qw, this.qv, this.qv);
this.lt(e);
this.d0 = true;
this.ly(false);
break;
case Axis.$$p[41]:
this.pw = this.pu();
this.d0 = true;
this.ly(false);
break;
case "TickmarkValues":
this.sn();
break;
case "ActualIsLogarithmic":
this.ed();
this.sl();
this.d0 = true;
this.sn();
this.ly(false);
break;
case "ActualTickmarkValues":
this.d0 = true;
this.ly(false);
break;
case "AbbreviateLargeNumbers":
this.ly(false);
break;
case NumericAxisBase.$$p[2]:
case NumericAxisBase.$$p[7]:
this.kw(b);
break;
}
};
NumericAxisBase.prototype.kw = function (a) {
_super.prototype.kw.call(this, a);
switch (a) {
case NumericAxisBase.$$p[3]:
case NumericAxisBase.$$p[4]:
this.ks(a);
break;
case NumericAxisBase.$$p[2]:
case NumericAxisBase.$$p[7]:
case NumericAxisBase.$$p[6]:
case NumericAxisBase.$$p[5]:
this.kr(a);
break;
}
};
NumericAxisBase.prototype.sl = function () {
var e_60, _a;
try {
for (var _b = __values(fromEnum(this.eo())), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
a.r8(false);
}
}
catch (e_60_1) {
e_60 = { error: e_60_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_60)
throw e_60.error;
}
}
};
NumericAxisBase.prototype.pm = function () {
var e_61, _a;
var a = new AxisRange(Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY);
var b = false;
if (this.b7 != null) {
try {
for (var _b = __values(fromEnum(this.eo())), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
var d = c.ay(this);
if (d != null) {
b = true;
a = new AxisRange(Math.min(a.c, d.c), Math.max(a.b, d.b));
}
}
}
catch (e_61_1) {
e_61 = { error: e_61_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_61)
throw e_61.error;
}
}
}
if (b) {
if (this.qt >= 0) {
a = new AxisRange(a.c - this.qt, a.b);
}
if (this.qs >= 0) {
a = new AxisRange(a.c, a.b + this.qs);
}
this.pl = a;
return a;
}
this.pl = null;
return null;
};
NumericAxisBase.prototype.ql = function (a) {
var e_62, _a;
if (a == 1 || a == 2 || a == 3) {
var b = this.pl;
if (b == null) {
b = this.pm();
}
if (b == null) {
return false;
}
if (this.b7 == null || this.b7.y9.isEmpty || this.b7.y9.height == 0 || this.b7.y9.width == 0) {
return false;
}
var c = -1;
var d = -1;
try {
for (var _b = __values(fromEnum(this.ep())), _c = _b.next(); !_c.done; _c = _b.next()) {
var e = _c.value;
var f = e.ax(b, this, new Rect(0, 0, 0, 1, 1));
if (f.c != b.c) {
if (a == 1 || a == 2) {
c = Math.max(c, b.c - f.c);
}
}
if (f.b != b.b) {
if (a == 1 || a == 3) {
d = Math.max(d, f.b - b.b);
}
}
}
}
catch (e_62_1) {
e_62 = { error: e_62_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_62)
throw e_62.error;
}
}
if (c >= 0 || d >= 0) {
this.qt = c;
this.qs = d;
return true;
}
return false;
}
return false;
};
NumericAxisBase.prototype.pr = function () {
if (this.pq == 0) {
if (this.b7 != null) {
if (this.dy) {
if (this.b7.ck == 2) {
return 1;
}
if (this.dp) {
if (this.b7.ck == 4) {
return 3;
}
if (this.b7.ck == 3) {
return 2;
}
}
else {
if (this.b7.ck == 4) {
return 2;
}
if (this.b7.ck == 3) {
return 3;
}
}
}
else {
if (this.b7.ci == 2) {
return 1;
}
if (this.dp) {
if (this.b7.ci == 4) {
return 3;
}
if (this.b7.ci == 3) {
return 2;
}
}
else {
if (this.b7.ci == 4) {
return 2;
}
if (this.b7.ci == 3) {
return 3;
}
}
}
}
return 4;
}
else {
return this.pq;
}
};
NumericAxisBase.prototype.sj = function (a, b, c, d, e, f, g) {
var h = AutoRangeCalculator.a(a, b, c, d, e, f, g);
f = h.p5;
g = h.p6;
return {
p5: f,
p6: g
};
};
NumericAxisBase.prototype.ef = function () {
if (this.d0 && this.eg) {
this.b1 = this.b0();
}
var a = this.p8 && !isNaN_(this.rj) && !isInfinity(this.rj) && this.rj > 1;
var b;
var c;
var d = this.pr();
if (d != this.po) {
this.po = d;
this.kl();
}
var e = false;
if (!this.o6.isEmpty && d != 4) {
if (this.qt == -1 && this.qs == -1) {
e = true;
}
}
var f = this.sj(this, this.q9, this.q8, a, this.rj, b, c);
b = f.p5;
c = f.p6;
if (b != this.qw || c != this.qv || this.qi) {
if (d != 4 && (this.qt >= 0 || this.qs >= 0)) {
this.kl();
var g = this.sj(this, this.q9, this.q8, a, this.rj, b, c);
b = g.p5;
c = g.p6;
}
}
if (b != this.qw || c != this.qv || this.qi || e) {
this.qi = false;
var h = new AxisRangeChangedEventArgs(0, this.qw, b, this.qv, c);
this.qw = b;
this.qv = c;
if (!this.o6.isEmpty && d != 4) {
if (this.ql(d)) {
var i = this.sj(this, this.q9, this.q8, a, this.rj, b, c);
b = i.p5;
c = i.p6;
h = new AxisRangeChangedEventArgs(0, h.oldMinimumValue, b, h.oldMaximumValue, c);
this.qw = b;
this.qv = c;
}
}
this.lt(h);
this.sm(h);
this.ly(true);
return true;
}
return false;
};
NumericAxisBase.prototype.kl = function () {
this.qt = -1;
this.qs = -1;
};
NumericAxisBase.prototype.sm = function (a) {
};
NumericAxisBase.prototype.d3 = function (a) {
var b = _super.prototype.d3.call(this, a);
if (b) {
this.ed();
}
return b;
};
NumericAxisBase.prototype.cx = function (a) {
var b = _super.prototype.cx.call(this, a);
if (b) {
this.ed();
}
return b;
};
NumericAxisBase.prototype.pv = function (a) {
return new NumericAxisRenderer(a);
};
NumericAxisBase.prototype.pu = function () {
var _this = this;
var a = ((function () {
var $ret = new AxisLabelManager();
$ret.a = _this;
$ret.f = _this.er;
$ret.e = _this.eq;
$ret.b = _this.a1;
return $ret;
})());
if (this.a4 != null) {
this.a4.registerAxis(this);
}
var b = this.pv(a);
b.u = function () {
var c = _this.bp.ba();
var d = _this.bp.bd();
var e = _this.bp.bb();
var f = _this.bp.bc();
_this.ma();
_this.kk(c);
_this.kk(d);
_this.kk(e);
_this.kk(f);
};
b.o = function (c, d) { return !d.isEmpty && !c.isEmpty; };
b.d = function (c, d, e, f) { return _this.px(c, d, e, f); };
b.g = function (c, d) {
_this.qf = d;
var e = _this.hw(c);
_this.qf = false;
return e;
};
return b;
};
NumericAxisBase.prototype.py = function () {
return new NumericAxisRenderingParameters();
};
NumericAxisBase.prototype.sk = function () {
};
NumericAxisBase.prototype.pz = function () {
return null;
};
NumericAxisBase.prototype.rm = function () {
if (!this.qa && (this.oz.isEmpty || this.oz.width < 1 || this.oz.height < 1)) {
return -1;
}
return this.ri;
};
NumericAxisBase.prototype.px = function (a, b, c, d) {
var e = this.py();
var f = this.bp.ba();
var g = this.bp.bd();
var h = this.bp.bb();
var i = this.bp.bc();
var j = this.bp.f();
var k = this.bp.g();
var l = this.bp.h();
e.u = f;
e.x = g;
e.v = h;
e.w = i;
e.a = j;
e.c = k;
e.d = l;
e.l = this.qv;
e.m = this.qw;
e.h = this.qd;
e.f = this.p1;
e.aa = a;
e.z = c;
e.y = d;
e.ab = b;
e.o = this.gm();
e.s = this.rh;
e.g = this.qc();
e.p = this.q5;
e.q = this.ra;
e.t = this.hx;
if (this.hx == null && (this.az != null || this.ai != null || this.pt.o())) {
e.t = "Format";
}
e.j = this.ea;
e.ac = this.p7;
return e;
};
NumericAxisBase.prototype.rc = function (a) {
var b = this.o1();
var c = new ScalerParams(0, this.b7.yr, this.o6, this.dn, b);
return this.f9(a, c);
};
NumericAxisBase.prototype.qc = function () {
return !isNaN_(this.q5);
};
Object.defineProperty(NumericAxisBase.prototype, "qe", {
get: function () {
return !isNaN_(this.q9);
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "qd", {
get: function () {
return !isNaN_(this.q8);
},
enumerable: false,
configurable: true
});
NumericAxisBase.prototype.sn = function () {
if (this.p2 != null) {
this.p1 = this.p2;
}
else if (this.p8) {
this.p1 = new LogarithmicTickmarkValues();
this.pt.br();
}
else {
this.p1 = new LinearTickmarkValues();
}
};
Object.defineProperty(NumericAxisBase.prototype, "p2", {
get: function () {
return typeCast(TickmarkValues.$, this.c(NumericAxisBase.s8));
},
set: function (a) {
this.h(NumericAxisBase.s8, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "p1", {
get: function () {
if (this.p0 == null) {
this.sn();
}
return this.p0;
},
set: function (a) {
var b = this.p0;
var c = b != a;
if (c) {
this.p0 = a;
this.ls("ActualTickmarkValues", b, a);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(NumericAxisBase.prototype, "p7", {
get: function () {
return this.p3;
},
set: function (a) {
var b = this.p7;
if (a != b) {
this.p3 = a;
this.ls("AbbreviateLargeNumbers", b, this.p7);
}
},
enumerable: false,
configurable: true
});
NumericAxisBase.$t = markType(NumericAxisBase, 'NumericAxisBase', Axis.$);
NumericAxisBase.s5 = DependencyProperty.i("AutoRangeBufferMode", AxisRangeBufferMode_$type, NumericAxisBase.$, new PropertyMetadata(2, enumGetBox(AxisRangeBufferMode_$type, 0), function (a, b) { return a.ls("AutoRangeBufferMode", b.oldValue, b.newValue); }));
NumericAxisBase.s8 = DependencyProperty.i("TickmarkValues", TickmarkValues.$, NumericAxisBase.$, new PropertyMetadata(1, function (a, b) { return a.ls("TickmarkValues", b.oldValue, b.newValue); }));
NumericAxisBase.$$p = markDep(DependencyProperty, PropertyMetadata, NumericAxisBase, 'ls', ['AbbreviatedLabelFormat:rn:so', [2, null], 'AbbreviatedLabelFormatSpecifiers:pi:sp', [Array_$type, null], 'CompanionAxisInterval:q0:sq', [1, NaN], 'CompanionAxisIsLogarithmic:ps:sr', [FeatureState_$type, enumGetBox(FeatureState_$type, 0)], 'CompanionAxisLogarithmBase:q1:ss', [1, NaN], 'CompanionAxisMaximumValue:q2:st', [1, NaN], 'CompanionAxisMinimumValue:q3:su', [1, NaN], 'CompanionAxisMinorInterval:q4:sv', [1, NaN], 'FavorLabellingScaleEnd:qb:sw', [0, false], 'FormatAbbreviatedLabel:pk:sx', [Delegate_$type], 'Interval:q5:sy', [1, NaN], 'IsLogarithmic:qg:sz', [0, false], 'LogarithmBase:rj:s0', [1, 10], 'MaxPrecision:rl:s2', [1, -1], 'MaximumValue:q8:s1', [1, NaN], 'MinimumValue:q9:s3', [1, NaN], 'MinorInterval:ra:s4', [1, NaN], 'ReferenceValue:rb:s6', [1, 0], 'ShouldApplyMaxPrecisionWhenZoomed:qk:s7', [0, false]]);
return NumericAxisBase;
}(Axis));
export { NumericAxisBase };
/**
* @hidden
*/
var NumericScaler = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(NumericScaler, _super);
function NumericScaler() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.o = 0;
_this.n = 0;
_this.m = 0;
return _this;
}
NumericScaler.prototype.y = function (a) {
this.l = a;
};
NumericScaler.prototype.x = function (a) {
this.k = a;
};
NumericScaler.prototype.w = function (a, b, c) {
switch (a) {
case NumericScaler.$$p[1]:
this.o = this.l;
this.z();
break;
case NumericScaler.$$p[0]:
this.n = this.k;
this.z();
break;
}
};
NumericScaler.prototype.z = function () {
if (isNaN_(this.l) || isNaN_(this.k) || isInfinity(this.l) || isInfinity(this.k) || this.l < (-7.9228162514264338E+28) || this.k > (7.9228162514264338E+28)) {
this.m = this.k - this.l;
}
else {
this.m = this.k - this.l;
}
};
NumericScaler.prototype.j = function (a, b, c, d) {
var e = new List$1(Number_$type, 2, a.count);
for (var f = b; f < c; f++) {
e.add(this.q(a.item(f), d));
}
return e;
};
NumericScaler.prototype.v = function (a, b, c, d) {
for (var e = b; e < c; e++) {
a.item(e, this.p(a.item(e), d));
}
};
NumericScaler.prototype.u = function (a, b, c, d, e) {
for (var f = 0; f < b.count; f++) {
var g = b.item(f);
for (var h = c; h < d; h++) {
a.item(h)[g] = this.p(a.item(h)[g], e);
}
}
};
NumericScaler.$t = markType(NumericScaler, 'NumericScaler', DependencyObject.$);
NumericScaler.ac = new Rect(0, 0, 0, 1, 1);
NumericScaler.$$p = markDep(DependencyProperty, PropertyMetadata, NumericScaler, 'w', ['ActualMaximumValue:k:aa', [1, NaN], 'ActualMinimumValue:l:ab', [1, NaN]]);
return NumericScaler;
}(DependencyObject));
export { NumericScaler };
/**
* @hidden
*/
var AxisRendererBase = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisRendererBase, _super);
function AxisRendererBase(a) {
var _this = _super.call(this) || this;
_this.u = null;
_this.o = null;
_this.v = null;
_this.m = null;
_this.l = null;
_this.k = null;
_this.q = null;
_this.n = null;
_this.j = null;
_this.e = null;
_this.p = null;
_this.h = null;
_this.t = null;
_this.b = null;
_this.g = null;
_this.d = null;
_this.r = null;
_this.a = null;
_this.f = null;
_this.i = null;
_this.u = function () {
};
_this.o = function (b, c) { return false; };
_this.v = function () {
};
_this.m = function (b, c) { return c; };
_this.l = function (b, c, d, e) {
};
_this.k = function (b, c, d) {
};
_this.q = function (b, c) { return false; };
_this.n = function (b, c) { return _this.q(b, c); };
_this.j = function (b) {
};
_this.e = function (b) {
};
_this.p = function (b, c, d) { return false; };
_this.h = function (b, c) { return new LabelPosition(0, c); };
_this.t = function (b, c) { return c; };
_this.g = function (b, c) { return null; };
_this.r = function (b, c, d, e) { return c; };
_this.a = function (b, c, d, e) { return c; };
_this.b = a;
_this.d = function (b, c, d, e) { return null; };
return _this;
}
AxisRendererBase.prototype.c = function (a, b, c, d, e) {
var e_63, _a;
this.x(c, b);
if (this.o(b, c)) {
this.v();
var f_1 = this.d(b, c, d, e);
this.x(c, b);
if (f_1 == null) {
this.aa();
return null;
}
if (f_1.k.count > 1 && !f_1.g) {
this.ab(f_1);
}
var _loop_5 = function (g) {
f_1.e = g;
if (isNaN_(g.c) || isInfinity(g.c) || isNaN_(g.d) || isInfinity(g.d)) {
return "continue";
}
if (g.d == g.c) {
return "continue";
}
this_3.e(f_1);
this_3.b.o(f_1.r);
var h = 0;
var i = 0;
var j = false;
var k = function (l) { return l; };
if (this_3.f != null) {
k = this_3.i;
}
if (typeCast(CategoryAxisRenderingParameters.$, f_1) !== null) {
h = f_1.ac;
i = f_1.ag;
j = f_1.ad;
}
f_1.f = this_3.s(f_1);
f_1.f.s(((function () {
var $ret = new TickmarkValuesInitializationParameters();
$ret.n = f_1.e.d;
$ret.m = f_1.e.c;
$ret.g = f_1.m;
$ret.f = f_1.l;
$ret.k = f_1.e.b;
$ret.d = f_1.g;
$ret.l = f_1.p;
$ret.j = f_1.q;
$ret.h = f_1.o;
$ret.i = f_1.e.a;
$ret.q = f_1.e.e;
$ret.a = h;
$ret.r = i;
$ret.t = f_1.ab;
$ret.s = f_1.aa;
$ret.e = j;
$ret.c = k;
$ret.p = f_1.s;
return $ret;
})()));
this_3.y(f_1);
};
var this_3 = this;
try {
for (var _b = __values(fromEnum(f_1.k)), _c = _b.next(); !_c.done; _c = _b.next()) {
var g = _c.value;
_loop_5(g);
}
}
catch (e_63_1) {
e_63 = { error: e_63_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_63)
throw e_63.error;
}
}
this.z();
return f_1;
}
return null;
};
AxisRendererBase.prototype.aa = function () {
this.b.q();
};
AxisRendererBase.prototype.ab = function (a) {
var e_64, _a, e_65, _b;
var b = -1.7976931348623157E+308;
var c = -2147483648;
var d = 0;
var e = 0;
var f = false;
var g = function (h) { return h; };
if (this.f != null) {
g = this.i;
}
if (typeCast(CategoryAxisRenderingParameters.$, a) !== null) {
d = a.ac;
e = a.ag;
f = a.ad;
}
var _loop_6 = function (h) {
a.e = h;
a.f.s(((function () {
var $ret = new TickmarkValuesInitializationParameters();
$ret.n = h.d;
$ret.m = h.c;
$ret.g = a.m;
$ret.f = a.l;
$ret.k = h.b;
$ret.d = a.g;
$ret.l = a.p;
$ret.i = h.a;
$ret.q = h.e;
$ret.h = a.o;
$ret.j = a.q;
$ret.a = d;
$ret.r = e;
$ret.t = a.ab;
$ret.s = a.aa;
$ret.e = f;
$ret.c = g;
$ret.p = a.s;
return $ret;
})()));
h.a = a.f.m;
h.e = a.f.r;
if (!isNaN_(a.f.m)) {
b = Math.max(b, a.f.m);
c = Math.max(c, a.f.r);
}
};
try {
for (var _c = __values(fromEnum(a.k)), _d = _c.next(); !_d.done; _d = _c.next()) {
var h = _d.value;
_loop_6(h);
}
}
catch (e_64_1) {
e_64 = { error: e_64_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_64)
throw e_64.error;
}
}
try {
for (var _e = __values(fromEnum(a.k)), _f = _e.next(); !_f.done; _f = _e.next()) {
var i = _f.value;
if (i.a == b) {
i.a = -1;
i.e = -1;
}
else {
i.a = b;
i.e = c;
}
}
}
catch (e_65_1) {
e_65 = { error: e_65_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_65)
throw e_65.error;
}
}
};
AxisRendererBase.prototype.x = function (a, b) {
this.u();
this.b.n(a, b);
this.b.t();
};
AxisRendererBase.prototype.z = function () {
var e_66, _a;
this.b.t();
var a = false;
if (this.b.d) {
this.b.s(0);
}
else {
var b = 0;
try {
for (var _b = __values(fromEnum(this.b.e)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
var d = typeCast(FrameworkElement.$, c);
if (d == null) {
d = this.b.u(b);
var e = d.al;
var f = c.toString();
var g = 0;
var h = 0;
if (e != null) {
g = e.length;
}
if (f != null) {
h = f.length;
}
if (g != h) {
a = true;
}
d.al = f;
b++;
}
else {
}
}
}
catch (e_66_1) {
e_66 = { error: e_66_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_66)
throw e_66.error;
}
}
if (a) {
this.b.p();
}
this.b.g();
this.b.s(b);
}
};
AxisRendererBase.prototype.s = function (a) {
return a.f;
};
AxisRendererBase.prototype.y = function (a) {
var b = a.f.j();
var c = a.f.k();
this.b.r(this.m(a, a.f.m));
this.j(a);
for (var d = 0; d < b.length; d++) {
var e = a.f.p + d;
var f = b[d];
var g = f;
var h = 0;
if (d < b.length - 1) {
h = b[d + 1];
}
else {
h = Number.POSITIVE_INFINITY;
}
g = this.r(a, g, e, a.f.m);
h = this.r(a, h, e, a.f.m);
var i = this.m(a, g);
var j = this.m(a, h);
if (this.q(a, i)) {
if (e % 2 == 0 && this.n(a, j) && !isInfinity(j)) {
this.l(a, a.x, i, j);
}
a.b = a.c;
this.k(a, a.v, i);
a.b = null;
}
i = this.a(a, i, e, a.f.m);
if (!isNaN_(i) && !isInfinity(i) && this.p(a, i, d == b.length - 1)) {
var k = this.w(a, g, e, a.f.m);
if (k != null) {
this.b.i(k, this.h(a, i));
}
}
}
if (a.j) {
for (var l = 0; l < c.length; l++) {
var m = c[l];
var n = this.m(a, m);
a.b = a.d;
this.k(a, a.w, n);
a.b = null;
}
}
};
AxisRendererBase.prototype.w = function (a, b, c, d) {
return null;
};
AxisRendererBase.$t = markType(AxisRendererBase, 'AxisRendererBase');
return AxisRendererBase;
}(Base));
export { AxisRendererBase };
/**
* @hidden
*/
var NumericAxisRenderer = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(NumericAxisRenderer, _super);
function NumericAxisRenderer(a) {
var _this = _super.call(this, a) || this;
_this.ac = null;
_this.ad = false;
return _this;
}
NumericAxisRenderer.prototype.w = function (a, b, c, d) {
var e;
if (a.t != null) {
if (a.i() && a.ac) {
return this.ae(b, this.g);
}
e = this.g(b, false);
}
else {
b = Math.round(b * 1000000) / 1000000;
if (a.i() && a.ac) {
return this.ae(b, null);
}
e = MathUtil.t(b);
}
return e;
};
NumericAxisRenderer.prototype.ae = function (a, b) {
if (this.ad) {
return a.toString();
}
if (this.ac == null) {
this.ac = NumberAbbreviatorFactory.a(this.b.a.cl);
if (this.ac == null) {
this.ad = true;
return MathUtil.t(a);
}
}
return this.ac.abbreviate(a, b);
};
NumericAxisRenderer.$t = markType(NumericAxisRenderer, 'NumericAxisRenderer', AxisRendererBase.$);
return NumericAxisRenderer;
}(AxisRendererBase));
export { NumericAxisRenderer };
/**
* @hidden
*/
var VerticalAxisLabelPanel = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(VerticalAxisLabelPanel, _super);
function VerticalAxisLabelPanel() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.dn = 0;
_this.dk = 0;
_this.dm = 0;
_this.dl = 0;
return _this;
}
VerticalAxisLabelPanel.prototype.af = function () {
return new VerticalAxisLabelPanelView(this);
};
VerticalAxisLabelPanel.prototype.cl = function (a) {
_super.prototype.cl.call(this, a);
this.de = a;
};
VerticalAxisLabelPanel.prototype.ca = function () {
this.de.a0();
};
VerticalAxisLabelPanel.prototype.bv = function () {
return this.ae.b4 != null ? this.ae.b4.angle : -90;
};
VerticalAxisLabelPanel.prototype.dg = function () {
var a = 0;
var b = this.ak(this.ae.b4);
if (b == 1) {
a += this.bz();
}
var c = this.ai;
if (c == 3 || c == 7) {
a += this.ae.fc;
}
return a;
};
VerticalAxisLabelPanel.prototype.di = function () {
var a = 0;
var b = this.ak(this.ae.b4);
if (b == 2) {
a += this.bz();
}
var c = this.ai;
if (c == 2 || c == 6) {
a += this.ae.fc;
}
return a;
};
VerticalAxisLabelPanel.prototype.dj = function () {
var a = (this.bi - this.dg()) - this.di();
if (a < 0) {
a = 0;
}
return a;
};
VerticalAxisLabelPanel.prototype.dh = function () {
var a = ((this.dj() - this.ag.q()) - this.ag.r());
if (a < 0) {
a = 0;
}
return a;
};
VerticalAxisLabelPanel.prototype.ba = function () {
var a = new List$1(Rect.$, 0);
this.a1 = false;
this.a0 = false;
if (this.ah != null && this.ah.k() && this.bq() % 360 != 0) {
this.a0 = true;
}
this.dn = -1.7976931348623157E+308;
this.dk = -1.7976931348623157E+308;
this.dm = -1.7976931348623157E+308;
this.dl = -1.7976931348623157E+308;
var b = this.ag.q();
var c = this.ag.s();
var d = this.ag.r();
var e = this.ag.p();
var f = this.dg();
var g = false;
if (!isNaN_(this.bj)) {
this.dn = Math.max(this.bj, this.dn);
this.dm = Math.max(this.bk, this.dm);
}
for (var h = 0; h < this.bg.count; h++) {
var i = this.bg._inner[h];
var j = this.bf._inner[h].b;
var k = this.bo(i);
var l = this.bp(i);
var m = k + c + e;
var n = l + b + d;
var o = this.c6.left + f;
var p = this.bf._inner[h].h - m / 2;
if (j) {
var q = this.bf._inner[h].a;
var r = this.bf._inner[h].e;
var s = n + r;
var t = this.bj;
if ((isNaN_(this.bj) || s > this.bj || this.bf._inner[h].d) && !g) {
if (this.bf._inner[h].d) {
g = true;
}
this.bf._inner[h].d = false;
this.bj = s;
this.bk = s;
}
this.dn = Math.max(this.bj, this.dn);
this.dk = Math.max(m, this.dk);
this.dm = Math.max(this.bk, this.dm);
this.dl = Math.max(k, this.dl);
}
else {
this.dn = Math.max(n, this.dn);
this.dk = Math.max(m, this.dk);
this.dm = Math.max(l, this.dm);
this.dl = Math.max(k, this.dl);
}
var u = new Rect(0, o, p, n, m);
a.add(u);
}
if (this.ae != null && this.ae.b7 != null && (this.ax() || this.ay()) && a != null) {
for (var v = 0; v < a.count; v++) {
var w = a._inner[v];
if (this.c8.isEmpty) {
this.c8 = new Rect(0, w.left, w.top, w.width, w.height);
}
else {
if (this.c8.width < w.width) {
this.c8 = new Rect(0, w.left, w.top, w.width, w.height);
}
}
}
}
var x = 0;
if (this.a0) {
x = this.bq() % 360;
if (x < 0) {
x += 360;
}
}
var y = this.ae.db();
if (!y) {
this.dp(x, b, d);
}
else {
this.ag.ab();
}
if (this.a0) {
for (var z = 0; z < a.count; z++) {
var aa = a._inner[z];
aa.y = this.bf._inner[z].h - this.dk / 2;
a._inner[z] = aa;
}
}
var ab = false;
if (!this.a0 && this.dn <= this.bi) {
ab = true;
}
if (!ab) {
this.at = true;
var ac = this.c6.height;
var ad = this.dj();
var ae = ad;
var af = this.bf.count > 1 ? Math.abs(this.bf._inner[1].h - this.bf._inner[0].h) : ac;
var ag = Math.abs(Math.asin(af / this.dn) * (180 / Math.PI));
var ah = (x >= ag && x <= 180 - ag) || (x - 180 >= ag && x - 180 <= 180 - ag);
for (var ai = 0; ai < a.count; ai++) {
if (this.a0) {
var aj = x * (Math.PI / 180);
var ak = this.b0(this.bg._inner[ai]);
ae = Math.min(ad / Math.abs(Math.cos(aj)), ak);
if (ah) {
var al = void 0;
if (x > 0 && x < 90) {
al = (Math.PI / 180) * (90 - x);
}
else if (x > 270 && x < 360) {
al = (Math.PI / 180) * (x - 270);
}
else {
al = 0;
}
ae = af / Math.cos(al);
}
}
var am = a._inner[ai];
am.width = Math.min(am.width, ae);
a._inner[ai] = am;
if (!(typeCast(TextBlock.$, this.bg._inner[ai]) !== null)) {
this.bg._inner[ai].width = ae;
}
var an = typeCast(TextBlock.$, this.bg._inner[ai]);
if (an != null) {
var ao = this.al(ai, an, ae, b, d);
if (!Base.equalsStatic(an.al, ao.b)) {
an.al = ao.b;
this.bg._inner[ai].width = ae;
}
}
}
if (!y) {
this.dp(x, b, d);
}
}
if (this.df()) {
this.dq(a);
}
return a;
};
VerticalAxisLabelPanel.prototype.dp = function (a, b, c) {
var d = a * (Math.PI / 180);
var e = this.dm;
var f = this.dl;
if (this.ax() || this.ay()) {
var g = this.ag.q();
var h = this.ag.r();
var i = this.ag.s();
var j = this.ag.p();
e = this.c8.width;
f = this.c8.height;
e = this.c8.width - (g + h);
f = this.c8.height - (i + j);
}
var k = Math.abs(e * Math.cos(d)) + Math.abs(f * Math.sin(d));
var l = this.bz();
var m = (k + b + c) + (l) + this.ae.fc;
if (this.ae.a4 != null) {
var n = this.ae.a4.maximumExtentPercentage;
var o = this.ae.a4.maximumExtent;
if (!isNaN_(o) && (o > 0)) {
m = Math.min(o, m);
}
else if (!isNaN_(n) && (n > 0) && (n <= 1)) {
var p = this.ae.b5.dw.bb;
o = n * p;
m = Math.min(o, m);
}
}
this.bm = Math.max(this.ae.gf, m);
};
VerticalAxisLabelPanel.prototype.dq = function (a) {
this.de.a1(a, this.dn);
};
VerticalAxisLabelPanel.prototype.cq = function (a, b) {
var c = 0;
var d = this.dl / 2;
var e = new TransformGroup();
var f = AngleSimplifier.a(this.bq());
var g = ((function () {
var $ret = new RotateTransform();
$ret.j = f;
$ret.k = c;
$ret.l = d;
return $ret;
})());
var h = 0;
var i = 0;
if (f != 0 && f != 360) {
f -= 90;
if (f > 0 && f < 180) {
g.k = this.dm;
h = -this.dm + this.dl / 2;
h = h + Math.sin(MathUtil.p(f - 180)) * (this.dl / 2);
}
else {
if (f >= 180) {
h = h - Math.cos(MathUtil.p(f)) * (this.dl / 2);
}
else {
h = h + Math.cos(MathUtil.p(f)) * (this.dl / 2);
}
}
}
var j = ((function () {
var $ret = new TranslateTransform();
$ret.j = h;
$ret.k = i;
return $ret;
})());
e.j.add(g);
e.j.add(j);
a.j = e;
};
VerticalAxisLabelPanel.prototype.df = function () {
return !this.a1 && !this.a0;
};
VerticalAxisLabelPanel.prototype.c5 = function () {
var a = this.ak(this.ae.b4);
var b = this.bz();
var c = this.ai;
var d = 0;
if (a == 1) {
d += this.c6.left;
if (c == 3 || c == 7) {
d += this.ae.fc;
}
}
else {
d = this.c6.right - b;
if (c == 6 || c == 2) {
d -= this.ae.fc;
}
}
var e = this.bx();
var f = 0;
var g = this.ae.b4 == null ? 1 : this.ae.b4.verticalAlignment;
if (g == 0) {
f = this.c6.top;
}
else if (g == 2) {
f = this.c6.bottom - e;
}
else {
f = (this.c6.top + (this.c6.height / 2)) - (e / 2);
}
return new Rect(0, d, f, b, e);
};
VerticalAxisLabelPanel.prototype.ak = function (a) {
if (a == null) {
return this.ae.b7.a2(this.ae);
}
if (a.position == 0) {
if (this.ae != null && this.ae.b7 != null) {
return this.ae.b7.a2(this.ae);
}
return 1;
}
return a.position;
};
VerticalAxisLabelPanel.prototype.aj = function () {
return 2;
};
VerticalAxisLabelPanel.prototype.a3 = function (a) {
return a == 2 || a == 3 || a == 6 || a == 7;
};
VerticalAxisLabelPanel.prototype.cd = function () {
var e_67, _a;
var a = this.ag.at();
this.ae.kk(a);
if (this.ah != null && this.ah.visibility != 0) {
return;
}
var b = this.ae.fc;
if (b == 0) {
return;
}
var c = this.a7();
if (c == null) {
return;
}
var d = this.c6.left;
var e;
var f = this.ai;
if (f == 2 || f == 6) {
d = this.c6.right;
e = d - b;
}
else {
e = d + b;
}
var g = this.ag.b();
try {
for (var _b = __values(fromEnum(c)), _c = _b.next(); !_c.done; _c = _b.next()) {
var h = _c.value;
this.cg(a, h, d, e, this.c9, g);
}
}
catch (e_67_1) {
e_67 = { error: e_67_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_67)
throw e_67.error;
}
}
if (!this.ab.contains(this.ag.aw)) {
this.ab.add(this.ag.aw);
}
};
VerticalAxisLabelPanel.$t = markType(VerticalAxisLabelPanel, 'VerticalAxisLabelPanel', AxisLabelPanelBase.$);
return VerticalAxisLabelPanel;
}(AxisLabelPanelBase));
export { VerticalAxisLabelPanel };
/**
* @hidden
*/
var ViewportUtils = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ViewportUtils, _super);
function ViewportUtils() {
return _super !== null && _super.apply(this, arguments) || this;
}
ViewportUtils.e = function (a, b, c, d) {
if (!d.isEmpty) {
var e = NumericScaler.ac;
var f = d.left + d.width * (a - e.left) / e.width;
f = (f - c.left) / c.width;
return c.left + c.width * (f - b.left) / b.width;
}
return c.left + c.width * (a - b.left) / b.width;
};
ViewportUtils.b = function (a, b, c, d) {
if (!d.isEmpty) {
var e = NumericScaler.ac;
var f = b.left + b.width * (a - c.left) / c.width;
f = (f * c.width) + c.left;
f = ((f - d.left) * e.width / d.width) + e.left;
return f;
}
return ((a - c.left) * b.width / c.width) + b.left;
};
ViewportUtils.i = function (a, b, c, d) {
if (!d.isEmpty) {
var e = NumericScaler.ac;
var f = d.top + d.height * (a - e.top) / e.height;
f = (f - c.top) / c.height;
return c.top + c.height * (f - b.top) / b.height;
}
return c.top + c.height * (a - b.top) / b.height;
};
ViewportUtils.g = function (a, b, c, d) {
if (!d.isEmpty) {
var e = NumericScaler.ac;
var f = b.top + b.height * (a - c.top) / c.height;
f = (f * c.height) + c.top;
f = ((f - d.top) * e.height / d.height) + e.top;
return f;
}
return ((a - c.top) * b.height / c.height) + b.top;
};
ViewportUtils.d = function (a, b, c, d) {
var e = d;
if (e.isEmpty) {
e = c;
}
return e.width * a / b.width;
};
ViewportUtils.a = function (a, b, c, d) {
var e = d;
if (e.isEmpty) {
e = c;
}
return b.width * a / e.width;
};
ViewportUtils.h = function (a, b, c, d) {
var e = d;
if (e.isEmpty) {
e = c;
}
return e.height * a / b.height;
};
ViewportUtils.f = function (a, b, c) {
return c.width * a / b.width;
};
ViewportUtils.c = function (a, b, c) {
return b.width * a / c.width;
};
ViewportUtils.j = function (a, b, c) {
return c.height * a / b.height;
};
ViewportUtils.$t = markType(ViewportUtils, 'ViewportUtils');
return ViewportUtils;
}(Base));
export { ViewportUtils };
/**
* @hidden
*/
export var IHasCategoryAxis_$type = new Type(null, 'IHasCategoryAxis');
/**
* @hidden
*/
export var IHasCategoryModePreference_$type = new Type(null, 'IHasCategoryModePreference', null, [IHasCategoryAxis_$type]);
/**
* @hidden
*/
var AutomaticAxesManager = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AutomaticAxesManager, _super);
function AutomaticAxesManager(a, b, c) {
var _this = _super.call(this) || this;
_this.j = new HashSet$1(AutomaticAxisPurpose_$type, 0);
_this.f = null;
_this.d = null;
_this.e = null;
_this.i = false;
_this.a = null;
_this.a = new AutomaticAxisRequestCollection();
var d = _this.a;
d.collectionChanged = delegateCombine(d.collectionChanged, runOn(_this, _this.m));
_this.f = a;
_this.d = b;
_this.e = c;
return _this;
}
AutomaticAxesManager.prototype.o = function (a, b) {
this.q();
};
AutomaticAxesManager.prototype.p = function (a, b) {
this.q();
};
AutomaticAxesManager.prototype.m = function (a, b) {
this.q();
};
AutomaticAxesManager.prototype.q = function () {
if (this.i) {
return;
}
this.i = true;
try {
this.r();
}
finally {
this.i = false;
}
};
AutomaticAxesManager.prototype.l = function (a, b) {
this.j.add_1(b.a);
var c = b.c.ao;
if (c != null) {
c.cv = b.h;
c.cw = b.i;
c.ko(b.c);
AxisSynchronizer.e(c, b.c);
}
a.add(b.c);
};
AutomaticAxesManager.prototype.r = function () {
var a = new List$1(AutomaticAxisRequest.$, 0);
var b = new List$1(AutomaticAxisRequest.$, 0);
var c = new List$1(AutomaticAxisRequest.$, 0);
var d = new Dictionary$2(Axis.$, List$1.$.specialize(AutomaticAxisRequest.$), 0);
var e = new Dictionary$2(Axis.$, List$1.$.specialize(AutomaticAxisRequest.$), 0);
this.j.clear();
for (var f = 0; f < this.a.count; f++) {
var g = this.a._inner[f];
if (g.f) {
a.add(g);
}
else if (g.g) {
b.add(g);
}
else if (g.d != null) {
if (!d.containsKey(g.d)) {
d.addItem(g.d, new List$1(AutomaticAxisRequest.$, 0));
}
d.item(g.d).add(g);
}
else if (g.b != null) {
if (!e.containsKey(g.b)) {
e.addItem(g.b, new List$1(AutomaticAxisRequest.$, 0));
}
e.item(g.b).add(g);
}
else {
c.add(g);
}
}
var h = new List$1(Axis.$, 0);
for (var i = 0; i < a.count; i++) {
this.j.add_1(a._inner[i].a);
this.l(h, a._inner[i]);
}
var j = false;
for (var k = 0; k < this.d.count; k++) {
var l = this.d._inner[k];
if (d.containsKey(l)) {
var m = d.item(l);
for (var n = 0; n < m.count; n++) {
this.l(h, m._inner[n]);
}
}
h.add(l);
if (e.containsKey(l)) {
var o = e.item(l);
for (var p = 0; p < o.count; p++) {
this.l(h, o._inner[p]);
}
}
}
for (var q = 0; q < c.count; q++) {
this.l(h, c._inner[q]);
}
for (var r = 0; r < b.count; r++) {
this.l(h, b._inner[r]);
}
this.x(h, this.e);
};
AutomaticAxesManager.prototype.x = function (a, b) {
var c = new HashSet$1(Axis.$, 0);
for (var d = 0; d < a.count; d++) {
c.add_1(a._inner[d]);
}
var e = new HashSet$1(Axis.$, 0);
for (var f = 0; f < b.count; f++) {
e.add_1(b._inner[f]);
}
var g = new List$1(Number_$type, 0);
var h = 0;
for (var i = 0; i < b.count; i++) {
if (b._inner[i] == null) {
g.add(i);
continue;
}
if (h > a.count - 1) {
g.add(i);
continue;
}
if (Base.equalsStatic(b._inner[i], a._inner[h])) {
h++;
continue;
}
if (e.contains(a._inner[h])) {
var j = b.indexOf(a._inner[h]);
if (j > i) {
this.f.skipDataCleanup = true;
b.removeAt(j);
this.f.skipDataCleanup = false;
}
}
b.insert(i, a._inner[h]);
h++;
}
for (var k = g.count - 1; k >= 0; k--) {
if (c.contains(b._inner[g._inner[k]])) {
this.f.skipDataCleanup = true;
b.removeAt(g._inner[k]);
this.f.skipDataCleanup = false;
}
else {
if (b._inner[g._inner[k]].de) {
this.n(b._inner[g._inner[k]]);
}
b.removeAt(g._inner[k]);
}
}
for (; h < a.count; h++) {
b.add(a._inner[h]);
}
};
AutomaticAxesManager.prototype.n = function (a) {
if (a.ao != null) {
AxisSynchronizer.b(a.ao, a);
a.ao = null;
}
};
AutomaticAxesManager.prototype.h = function (a) {
return this.j.contains(a);
};
AutomaticAxesManager.prototype.u = function (a) {
for (var b = this.a.count - 1; b >= 0; b--) {
if (this.a._inner[b].j == a) {
this.a.removeAt(b);
}
}
};
AutomaticAxesManager.prototype.w = function (a) {
if (a == null) {
return;
}
for (var b = this.a.count - 1; b >= 0; b--) {
if (this.a._inner[b].e != null && this.a._inner[b].e.j6 == a.j6) {
this.a.removeAt(b);
}
}
};
AutomaticAxesManager.prototype.t = function (a) {
for (var b = this.a.count - 1; b >= 0; b--) {
if (this.a._inner[b].a == a) {
this.a.removeAt(b);
}
}
};
AutomaticAxesManager.prototype.s = function () {
for (var a = this.a.count - 1; a >= 0; a--) {
this.a.removeAt(a);
}
};
AutomaticAxesManager.prototype.v = function () {
this.t(1);
};
AutomaticAxesManager.prototype.b = function (a) {
if (a == null) {
return null;
}
var b = this.c(a);
if (b != null) {
return b;
}
var c = a.ak();
c.ao = a;
c.dh = true;
var d = new AutomaticAxisRequest();
d.e = a;
d.c = c;
d.a = 1;
d.h = true;
d.i = true;
this.k(d);
return c;
};
AutomaticAxesManager.prototype.k = function (a) {
this.a.add(a);
};
AutomaticAxesManager.prototype.y = function (a, b) {
for (var c = this.a.count - 1; c >= 0; c--) {
if (this.a._inner[c].e != null && this.a._inner[c].e.j6 == a.j6) {
var d = this.a._inner[c].c;
a.kp(d, b);
}
}
};
AutomaticAxesManager.prototype.c = function (a) {
for (var b = this.a.count - 1; b >= 0; b--) {
if (this.a._inner[b].e != null && this.a._inner[b].e.j6 == a.j6) {
return this.a._inner[b].c;
}
}
return null;
};
AutomaticAxesManager.prototype.g = function (a) {
return this.c(a) != null;
};
AutomaticAxesManager.$t = markType(AutomaticAxesManager, 'AutomaticAxesManager');
return AutomaticAxesManager;
}(Base));
export { AutomaticAxesManager };
/**
* @hidden
*/
var AutomaticAxisRequest = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AutomaticAxisRequest, _super);
function AutomaticAxisRequest() {
var _this = _super.call(this) || this;
_this.a = 0;
_this.e = null;
_this.j = null;
_this.c = null;
_this.b = null;
_this.d = null;
_this.g = false;
_this.f = false;
_this.h = false;
_this.i = false;
_this.h = true;
_this.i = true;
_this.a = 1;
return _this;
}
AutomaticAxisRequest.$t = markType(AutomaticAxisRequest, 'AutomaticAxisRequest');
return AutomaticAxisRequest;
}(Base));
export { AutomaticAxisRequest };
/**
* @hidden
*/
var AutomaticAxisRequestCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AutomaticAxisRequestCollection, _super);
function AutomaticAxisRequestCollection() {
return _super.call(this, AutomaticAxisRequest.$, 0) || this;
}
AutomaticAxisRequestCollection.$t = markType(AutomaticAxisRequestCollection, 'AutomaticAxisRequestCollection', ObservableCollection$1.$.specialize(AutomaticAxisRequest.$));
return AutomaticAxisRequestCollection;
}(ObservableCollection$1));
export { AutomaticAxisRequestCollection };
/**
* @hidden
*/
var AxisSyncInfo = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisSyncInfo, _super);
function AxisSyncInfo() {
var _this = _super.call(this) || this;
_this.a = null;
_this.b = null;
_this.b = new AxisSyncLookup();
return _this;
}
AxisSyncInfo.$t = markType(AxisSyncInfo, 'AxisSyncInfo');
return AxisSyncInfo;
}(Base));
export { AxisSyncInfo };
/**
* @hidden
*/
var AxisSynchronizer = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisSynchronizer, _super);
function AxisSynchronizer() {
return _super !== null && _super.apply(this, arguments) || this;
}
AxisSynchronizer.e = function (a, b) {
if (a == null) {
return;
}
if (b == null) {
return;
}
if (!AxisSynchronizer.a.containsKey(a.j6)) {
var c = new AxisSyncInfo();
c.a = a;
AxisSynchronizer.a.addItem(a.j6, c);
}
if (!AxisSynchronizer.a.item(a.j6).b.containsKey(b.j6)) {
AxisSynchronizer.a.item(a.j6).b.addItem(b.j6, b);
}
if (AxisSynchronizer.a.item(a.j6).b.count == 1) {
a.propertyUpdated = delegateCombine(a.propertyUpdated, AxisSynchronizer.c);
}
};
AxisSynchronizer.b = function (a, b) {
if (a == null) {
return;
}
if (b == null) {
return;
}
if (AxisSynchronizer.a.containsKey(a.j6)) {
if (AxisSynchronizer.a.item(a.j6).b.containsKey(b.j6)) {
AxisSynchronizer.a.item(a.j6).b.removeItem(b.j6);
}
if (AxisSynchronizer.a.item(a.j6).b.count == 0) {
a.propertyUpdated = delegateRemove(a.propertyUpdated, AxisSynchronizer.c);
}
}
};
AxisSynchronizer.c = function (a, b) {
var e_68, _a, e_69, _b;
var c = a;
if (!c.cw) {
return;
}
try {
for (var _c = __values(fromEnum(AxisSynchronizer.a.keys)), _d = _c.next(); !_d.done; _d = _c.next()) {
var d = _d.value;
if (d == c.j6) {
var e = AxisSynchronizer.a.item(d);
try {
for (var _e = (e_69 = void 0, __values(fromEnum(e.b.keys))), _f = _e.next(); !_f.done; _f = _e.next()) {
var f = _f.value;
var g = e.b.item(f);
e.a.kp(g, b.propertyName);
}
}
catch (e_69_1) {
e_69 = { error: e_69_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_69)
throw e_69.error;
}
}
}
}
}
catch (e_68_1) {
e_68 = { error: e_68_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_68)
throw e_68.error;
}
}
};
AxisSynchronizer.d = function (a, b) {
var e_70, _a, e_71, _b;
var c = a;
try {
for (var _c = __values(fromEnum(AxisSynchronizer.a.keys)), _d = _c.next(); !_d.done; _d = _c.next()) {
var d = _d.value;
if (d == c.j6) {
var e = AxisSynchronizer.a.item(d);
try {
for (var _e = (e_71 = void 0, __values(fromEnum(e.b.keys))), _f = _e.next(); !_f.done; _f = _e.next()) {
var f = _f.value;
var g = e.b.item(f);
e.a.kn(g, b.propertyName);
}
}
catch (e_71_1) {
e_71 = { error: e_71_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_71)
throw e_71.error;
}
}
}
}
}
catch (e_70_1) {
e_70 = { error: e_70_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_70)
throw e_70.error;
}
}
};
AxisSynchronizer.$t = markType(AxisSynchronizer, 'AxisSynchronizer');
AxisSynchronizer.a = new Dictionary$2(String_$type, AxisSyncInfo.$, 0);
return AxisSynchronizer;
}(Base));
export { AxisSynchronizer };
/**
* @hidden
*/
var AxisSyncLookup = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisSyncLookup, _super);
function AxisSyncLookup() {
return _super.call(this, String_$type, Axis.$, 0) || this;
}
AxisSyncLookup.$t = markType(AxisSyncLookup, 'AxisSyncLookup', Dictionary$2.$.specialize(String_$type, Axis.$));
return AxisSyncLookup;
}(Dictionary$2));
export { AxisSyncLookup };
/**
* @hidden
*/
var AutomaticSeriesManager = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AutomaticSeriesManager, _super);
function AutomaticSeriesManager(a, b, c) {
var _this = _super.call(this) || this;
_this.i = new HashSet$1(AutomaticSeriesPurpose_$type, 0);
_this.e = null;
_this.h = false;
_this.a = null;
_this.c = null;
_this.d = null;
_this.e = a;
_this.a = new AutomaticSeriesRequestCollection();
var d = _this.a;
d.collectionChanged = delegateCombine(d.collectionChanged, runOn(_this, _this.k));
_this.c = b;
_this.d = c;
return _this;
}
AutomaticSeriesManager.prototype.n = function (a, b) {
this.p();
};
AutomaticSeriesManager.prototype.o = function (a, b) {
this.p();
};
AutomaticSeriesManager.prototype.f = function (a) {
return this.i.contains(a);
};
AutomaticSeriesManager.prototype.k = function (a, b) {
this.p();
};
AutomaticSeriesManager.prototype.p = function () {
if (this.h) {
return;
}
this.h = true;
try {
this.q();
}
finally {
this.h = false;
}
};
AutomaticSeriesManager.prototype.q = function () {
var a = new List$1(AutomaticSeriesRequest.$, 0);
var b = new List$1(AutomaticSeriesRequest.$, 0);
var c = new List$1(AutomaticSeriesRequest.$, 0);
var d = new Dictionary$2(Series.$, List$1.$.specialize(AutomaticSeriesRequest.$), 0);
var e = new Dictionary$2(Series.$, List$1.$.specialize(AutomaticSeriesRequest.$), 0);
var f = new List$1(AutomaticSeriesRequest.$, 0);
this.i.clear();
for (var g = 0; g < this.a.count; g++) {
var h = this.a._inner[g];
if (h.f) {
a.add(h);
}
else if (h.e) {
b.add(h);
}
else if (h.g) {
c.add(h);
}
else if (h.c != null) {
if (!d.containsKey(h.c)) {
d.addItem(h.c, new List$1(AutomaticSeriesRequest.$, 0));
}
d.item(h.c).add(h);
}
else if (h.b != null) {
if (!e.containsKey(h.c)) {
e.addItem(h.c, new List$1(AutomaticSeriesRequest.$, 0));
}
e.item(h.b).add(h);
}
else {
f.add(h);
}
}
var i = new List$1(Series.$, 0);
for (var j = 0; j < a.count; j++) {
this.i.add_1(a._inner[j].a);
i.add(a._inner[j].d);
}
var k = false;
for (var l = 0; l < this.c.count; l++) {
var m = this.c._inner[l];
if (d.containsKey(m)) {
var n = d.item(m);
for (var o = 0; o < n.count; o++) {
this.l(i, n._inner[o]);
}
}
if (this.g(m) && !k) {
k = true;
for (var p = 0; p < c.count; p++) {
this.l(i, c._inner[p]);
}
}
i.add(m);
if (e.containsKey(m)) {
var q = e.item(m);
for (var r = 0; r < q.count; r++) {
this.l(i, q._inner[r]);
}
}
}
for (var s = 0; s < f.count; s++) {
this.l(i, f._inner[s]);
}
if (!k) {
for (var t = 0; t < c.count; t++) {
this.l(i, c._inner[t]);
}
}
for (var u = 0; u < b.count; u++) {
this.l(i, b._inner[u]);
}
this.u(i, this.d);
};
AutomaticSeriesManager.prototype.l = function (a, b) {
this.i.add_1(b.a);
b.d.ez = true;
a.add(b.d);
};
AutomaticSeriesManager.prototype.u = function (a, b) {
var c = new HashSet$1(Series.$, 0);
for (var d = 0; d < a.count; d++) {
c.add_1(a._inner[d]);
}
var e = new HashSet$1(Series.$, 0);
for (var f = 0; f < b.count; f++) {
e.add_1(b._inner[f]);
}
var g = new List$1(Number_$type, 0);
var h = 0;
for (var i = 0; i < b.count; i++) {
if (b._inner[i] == null) {
g.add(i);
continue;
}
if (h > a.count - 1) {
g.add(i);
continue;
}
if (Base.equalsStatic(b._inner[i], a._inner[h])) {
h++;
continue;
}
if (e.contains(a._inner[h])) {
var j = b.indexOf(a._inner[h]);
if (j > i) {
this.e.skipDataCleanup = true;
b.removeAt(j);
this.e.skipDataCleanup = false;
}
}
b.insert(i, a._inner[h]);
h++;
}
for (var k = g.count - 1; k >= 0; k--) {
if (c.contains(b._inner[g._inner[k]])) {
this.e.skipDataCleanup = true;
b.removeAt(g._inner[k]);
this.e.skipDataCleanup = false;
}
else {
if (b._inner[g._inner[k]].ez) {
this.m(b._inner[g._inner[k]]);
}
b.removeAt(g._inner[k]);
}
}
for (; h < a.count; h++) {
b.add(a._inner[h]);
}
};
AutomaticSeriesManager.prototype.m = function (a) {
};
AutomaticSeriesManager.prototype.r = function (a) {
for (var b = this.a.count - 1; b >= 0; b--) {
if (this.a._inner[b].a == a) {
this.a.removeAt(b);
}
}
};
AutomaticSeriesManager.prototype.t = function (a) {
for (var b = this.a.count - 1; b >= 0; b--) {
if (this.a._inner[b].d == a) {
this.a.removeAt(b);
}
}
};
AutomaticSeriesManager.prototype.s = function (a, b) {
for (var c = this.a.count - 1; c >= 0; c--) {
if (this.a._inner[c].a == b && this.a._inner[c].d != null && this.a._inner[c].d.mb == a) {
this.a.removeAt(c);
}
}
};
AutomaticSeriesManager.prototype.j = function (a, b) {
var c = new List$1(Series.$, 0);
for (var d = this.a.count - 1; d >= 0; d--) {
if (this.a._inner[d].a == b && this.a._inner[d].d != null && this.a._inner[d].d.mb == a) {
c.add(this.a._inner[d].d);
}
}
return c;
};
AutomaticSeriesManager.prototype.g = function (a) {
if (a.ev) {
if (a.f7 || a.er || a.et) {
return true;
}
}
return false;
};
Object.defineProperty(AutomaticSeriesManager.prototype, "b", {
get: function () {
return this.a;
},
enumerable: false,
configurable: true
});
AutomaticSeriesManager.$t = markType(AutomaticSeriesManager, 'AutomaticSeriesManager');
return AutomaticSeriesManager;
}(Base));
export { AutomaticSeriesManager };
/**
* @hidden
*/
var AutomaticSeriesRequest = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AutomaticSeriesRequest, _super);
function AutomaticSeriesRequest() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.a = 0;
_this.d = null;
_this.b = null;
_this.c = null;
_this.g = false;
_this.e = false;
_this.f = false;
return _this;
}
AutomaticSeriesRequest.$t = markType(AutomaticSeriesRequest, 'AutomaticSeriesRequest');
return AutomaticSeriesRequest;
}(Base));
export { AutomaticSeriesRequest };
/**
* @hidden
*/
var AutomaticSeriesRequestCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AutomaticSeriesRequestCollection, _super);
function AutomaticSeriesRequestCollection() {
return _super.call(this, AutomaticSeriesRequest.$, 0) || this;
}
AutomaticSeriesRequestCollection.$t = markType(AutomaticSeriesRequestCollection, 'AutomaticSeriesRequestCollection', ObservableCollection$1.$.specialize(AutomaticSeriesRequest.$));
return AutomaticSeriesRequestCollection;
}(ObservableCollection$1));
export { AutomaticSeriesRequestCollection };
/**
* @hidden
*/
var ChartSelection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ChartSelection, _super);
function ChartSelection() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this._item = null;
_this._series = null;
_this.b = null;
return _this;
}
Object.defineProperty(ChartSelection.prototype, "item", {
get: function () {
return this._item;
},
set: function (a) {
this._item = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartSelection.prototype, "series", {
get: function () {
return this._series;
},
set: function (a) {
this._series = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartSelection.prototype, "c", {
get: function () {
if (this.b == null && this.series != null) {
this.b = this.series.cg();
}
return this.b;
},
set: function (a) {
this.b = a;
},
enumerable: false,
configurable: true
});
ChartSelection.prototype.equals = function (a) {
var b = typeCast(ChartSelection.$, a);
if (b == null) {
return false;
}
return b.series == this.series && b.item == this.item;
};
ChartSelection.prototype.f = function (a) {
if (this.b != null && this.series == null) {
var b = SeriesMatcherHelper.a(a, this.b);
if (b != null && b.length > 0) {
this.series = b[0];
}
}
};
ChartSelection.$t = markType(ChartSelection, 'ChartSelection');
return ChartSelection;
}(Base));
export { ChartSelection };
/**
* @hidden
*/
var ChartSelectedItemCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ChartSelectedItemCollection, _super);
function ChartSelectedItemCollection() {
var _this = _super.call(this, ChartSelection.$, 0) || this;
_this.collectionResetting = null;
return _this;
}
ChartSelectedItemCollection.prototype.p = function () {
if (this.collectionResetting != null) {
this.collectionResetting(this, null);
}
_super.prototype.p.call(this);
};
ChartSelectedItemCollection.$t = markType(ChartSelectedItemCollection, 'ChartSelectedItemCollection', ObservableCollection$1.$.specialize(ChartSelection.$));
return ChartSelectedItemCollection;
}(ObservableCollection$1));
export { ChartSelectedItemCollection };
/**
* @hidden
*/
var ChartSelectionEqualityComparer = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ChartSelectionEqualityComparer, _super);
function ChartSelectionEqualityComparer() {
return _super !== null && _super.apply(this, arguments) || this;
}
ChartSelectionEqualityComparer.prototype.equalsC = function (a, b) {
if (a == b) {
return true;
}
if (a == null && b != null) {
return false;
}
if (a != null && b == null) {
return false;
}
return a.series == b.series && a.item == b.item;
};
ChartSelectionEqualityComparer.prototype.getHashCodeC = function (a) {
var b = 31;
if (a.item != null) {
b ^= Base.getHashCodeStatic(a.item);
}
if (a.series != null) {
b ^= Base.getHashCodeStatic(a.series);
}
return b;
};
ChartSelectionEqualityComparer.$t = markType(ChartSelectionEqualityComparer, 'ChartSelectionEqualityComparer', Base.$, [IEqualityComparer$1_$type.specialize(ChartSelection.$)]);
return ChartSelectionEqualityComparer;
}(Base));
export { ChartSelectionEqualityComparer };
/**
* @hidden
*/
var SeriesMatcherHelper = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesMatcherHelper, _super);
function SeriesMatcherHelper() {
return _super !== null && _super.apply(this, arguments) || this;
}
SeriesMatcherHelper.a = function (a, b) {
var c = new List$1(Series.$, 0);
a.pi(function (d) {
if (SeriesMatcherHelper.b(b, d)) {
c.add(d);
}
});
return c.toArray();
};
SeriesMatcherHelper.b = function (a, b) {
if (a.d >= 0) {
if (b.index == a.d) {
return true;
}
}
if (a.g != null) {
if (Base.equalsStatic(a.g, b.name)) {
return true;
}
}
if (a.h != null) {
if (Base.equalsStatic(a.h, b.title)) {
return true;
}
}
if (a.f != null && a.e != null) {
var c = a.f;
if (!stringEndsWith(c, "MemberPath")) {
c += "MemberPath";
}
var d = b.mo(c);
if (Base.equalsStatic(a.e, d)) {
return true;
}
}
return false;
};
SeriesMatcherHelper.$t = markType(SeriesMatcherHelper, 'SeriesMatcherHelper');
return SeriesMatcherHelper;
}(Base));
export { SeriesMatcherHelper };
/**
* @hidden
*/
var AxisMatcherHelper = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisMatcherHelper, _super);
function AxisMatcherHelper() {
return _super !== null && _super.apply(this, arguments) || this;
}
AxisMatcherHelper.a = function (a, b) {
var c = new List$1(Axis.$, 0);
if (typeCast(XamDataChart.$, a) !== null) {
var d = a;
var e = new List$1(Axis.$, 0);
for (var f = 0; f < d.zq.count; f++) {
var g = d.zq._inner[f];
if (g.dh) {
continue;
}
e.add(g);
}
for (var h = 0; h < e.count; h++) {
var i = e._inner[h];
if (AxisMatcherHelper.b(b, i, h)) {
c.add(i);
}
}
if (b.f != null && b.e > 0) {
var j = new List$1(Axis.$, 0);
for (var k = 0; k < d.zq.count; k++) {
var l = e._inner[k];
var m = stringReplace(getInstanceType(l).typeName, "Axis", "");
if (Base.equalsStatic(b.f.toLowerCase(), m.toLowerCase())) {
j.add(l);
}
}
for (var n = 0; n < j.count; n++) {
var o = e._inner[n];
var p = stringReplace(getInstanceType(o).typeName, "Axis", "");
if (Base.equalsStatic(b.f.toLowerCase(), p.toLowerCase()) && (b.e == n)) {
c.add(o);
}
}
}
}
return c.toArray();
};
AxisMatcherHelper.b = function (a, b, c) {
if (a.d >= 0) {
if (c == a.d) {
return true;
}
}
if (a.i != null) {
if (Base.equalsStatic(a.i, b.name)) {
return true;
}
}
if (a.j != null) {
if (Base.equalsStatic(a.j, b.j3)) {
return true;
}
}
if (a.h != null && a.g != null) {
var d = a.h;
if (!stringEndsWith(d, "MemberPath")) {
d += "MemberPath";
}
var e = b.i6(d);
if (Base.equalsStatic(a.g, e)) {
return true;
}
}
if (a.f != null) {
var f = stringReplace(getInstanceType(b).typeName, "Axis", "");
if (Base.equalsStatic(a.f.toLowerCase(), f.toLowerCase()) && (a.e == -1 || a.e == 0)) {
return true;
}
}
return false;
};
AxisMatcherHelper.$t = markType(AxisMatcherHelper, 'AxisMatcherHelper');
return AxisMatcherHelper;
}(Base));
export { AxisMatcherHelper };
/**
* @hidden
*/
var SeriesLayer = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesLayer, _super);
function SeriesLayer() {
var _this = _super.call(this) || this;
_this._source = null;
_this._target = null;
_this.z = null;
_this.n = null;
_this.u = new Dictionary$2(String_$type, Delegate_$type, 0);
_this.y = new Dictionary$2(String_$type, Stack$1.$.specialize(Boolean_$type), 0);
_this.p = false;
_this.aa = new HashSet$1(SeriesLayerPropertyOverlay.$, 0);
_this.ab = new HashSet$1(SeriesLayerPropertyOverlay.$, 0);
_this.v = new Dictionary$2(String_$type, List$1.$.specialize(SeriesLayerPropertyOverlay.$), 0);
_this.w = new Dictionary$2(String_$type, SeriesLayerPropertyOverlay.$, 0);
_this.x = new Dictionary$2(String_$type, SeriesLayerPropertyOverlay.$, 0);
_this.propertyChanged = null;
_this.q = false;
_this.l = new SeriesLayerPropertyOverlayCollection();
_this.o = false;
_this.z = new HashSet$1(String_$type, 0);
_this.z.add_1("FastItemsSource");
var a = _this.l;
a.collectionResetting = delegateCombine(a.collectionResetting, runOn(_this, _this.al));
var b = _this.l;
b.collectionChanged = delegateCombine(b.collectionChanged, runOn(_this, _this.ak));
return _this;
}
Object.defineProperty(SeriesLayer.prototype, "source", {
get: function () {
return this._source;
},
set: function (a) {
this._source = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesLayer.prototype, "target", {
get: function () {
return this._target;
},
set: function (a) {
this._target = a;
},
enumerable: false,
configurable: true
});
SeriesLayer.prototype.ak = function (a, b) {
if (b.oldItems != null) {
for (var c = 0; c < b.oldItems.count; c++) {
var d = b.oldItems.item(c);
if (d == null) {
continue;
}
var e = d;
e.propertyUpdated = delegateRemove(e.propertyUpdated, runOn(this, this.av));
if (this.p && (this.aa.contains(e) || this.ab.contains(e))) {
this.aq(e);
}
}
}
if (b.newItems != null) {
for (var f = 0; f < b.newItems.count; f++) {
var g = b.newItems.item(f);
if (g == null) {
continue;
}
var h = g;
if (h.ad != null) {
if (h.r) {
this.x.item(h.aa, h);
}
else {
this.w.item(h.aa, h);
}
}
if (h.y != null) {
var i = h.y;
if (!h.q) {
i = Series.n8(i);
}
if (!this.v.containsKey(i)) {
this.v.addItem(i, new List$1(SeriesLayerPropertyOverlay.$, 0));
}
this.v.item(i).add(h);
}
h.propertyUpdated = delegateCombine(h.propertyUpdated, runOn(this, this.av));
}
}
if (this.target != null && this.target.fy) {
this.a3();
}
else {
this.a5();
}
};
SeriesLayer.prototype.au = function () {
if (this.target != null) {
this.target.ro();
}
};
SeriesLayer.prototype.at = function () {
if (this.target != null) {
this.target.rm();
}
};
Object.defineProperty(SeriesLayer.prototype, "t", {
get: function () {
return this.target != null && this.target.ha;
},
enumerable: false,
configurable: true
});
SeriesLayer.prototype.a3 = function () {
var e_72, _a;
if (this.p) {
try {
for (var _b = __values(fromEnum(this.l)), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
if (!this.aa.contains(a) && !this.ab.contains(a)) {
this.a2(a, this.source, this.target);
}
}
}
catch (e_72_1) {
e_72 = { error: e_72_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_72)
throw e_72.error;
}
}
}
};
SeriesLayer.prototype.a4 = function () {
var e_73, _a;
if (this.p) {
try {
for (var _b = __values(fromEnum(this.l)), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
if (!this.aa.contains(a) && !this.ab.contains(a)) {
this.a2(a, this.source, null);
}
}
}
catch (e_73_1) {
e_73 = { error: e_73_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_73)
throw e_73.error;
}
}
}
};
SeriesLayer.prototype.a5 = function () {
var e_74, _a;
if (this.p) {
try {
for (var _b = __values(fromEnum(this.l)), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
if (!this.aa.contains(a) && !this.ab.contains(a)) {
this.a2(a, null, this.target);
}
}
}
catch (e_74_1) {
e_74 = { error: e_74_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_74)
throw e_74.error;
}
}
}
};
SeriesLayer.prototype.a2 = function (a, b, c) {
if (a.p) {
if (a.r && b != null) {
if (!this.aa.contains(a)) {
this.aa.add_1(a);
this.an(a, b);
}
}
else if (!a.r && c != null) {
if (!this.ab.contains(a)) {
this.ab.add_1(a);
this.an(a, c);
}
}
}
else {
if (a.r) {
this.aa.add_1(a);
}
else {
this.ab.add_1(a);
}
}
};
SeriesLayer.prototype.ah = function (a) {
if (a == null) {
return null;
}
if (this.source == null) {
return null;
}
if (this.x.containsKey(a.name) && this.aa.contains(this.x.item(a.name))) {
return this.x.item(a.name).w;
}
return this.source.c(a);
};
SeriesLayer.prototype.an = function (a, b) {
if (b == null) {
return;
}
var c = a.aa;
var d = b.t5(c);
if (d == null) {
return;
}
var e = b.c(d);
if (!a.r) {
e = this.ah(d);
}
var f = this.ag(e, a, b);
var g = this.af(a, e, f, b);
this.ao(b, d, g);
};
SeriesLayer.prototype.ag = function (a, b, c) {
var d = a;
if (b.y != null) {
var e = b.y;
if (!b.q) {
e = Series.n8(b.y);
}
var f = c.t5(e);
if (f != null) {
d = c.c(f);
if (!b.r) {
d = this.ah(f);
}
}
}
return d;
};
SeriesLayer.prototype.ao = function (a, b, c) {
var _this = this;
if (a.f8(b.name) || a.f8("Actual" + b.name)) {
this.ar(b.name, function () {
_this.az(a, b);
a.h(b, c);
_this.a0(a, b);
});
}
else {
this.az(a, b);
a.h(b, c);
this.a0(a, b);
}
};
SeriesLayer.prototype.ar = function (a, b) {
if (this.n == null) {
this.n = this.source.cw.k();
}
if (!this.o) {
this.o = true;
this.n.enqueueAction(runOn(this, this.as));
}
this.u.item(a, b);
};
SeriesLayer.prototype.as = function () {
var e_75, _a;
this.o = false;
var a = new List$1(Delegate_$type, 0);
try {
for (var _b = __values(fromEnum(this.u.values)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
a.add(b);
}
}
catch (e_75_1) {
e_75 = { error: e_75_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_75)
throw e_75.error;
}
}
this.u.clear();
for (var c = 0; c < a.count; c++) {
var d = a._inner[c];
d();
}
};
SeriesLayer.prototype.az = function (a, b) {
var c = b.name;
var d = null;
if (!this.y.containsKey(c)) {
this.y.addItem(c, new Stack$1(Boolean_$type));
}
this.y.item(c).h(true);
};
SeriesLayer.prototype.a0 = function (a, b) {
var c = b.name;
if (this.y.containsKey(c)) {
this.y.item(c).e();
if (this.y.item(c).f == 0) {
this.y.removeItem(c);
}
}
};
SeriesLayer.prototype.r = function (a, b) {
if (this.y.containsKey(b.name) && this.y.item(b.name).d()) {
return true;
}
return false;
};
SeriesLayer.prototype.af = function (a, b, c, d) {
return a.t(b, c, d);
};
SeriesLayer.prototype.al = function (a, b) {
for (var c = 0; c < this.l.count; c++) {
var d = this.l._inner[c];
if (d == null) {
continue;
}
d.propertyUpdated = delegateRemove(d.propertyUpdated, runOn(this, this.av));
if (this.p && (this.aa.contains(d) || this.ab.contains(d))) {
this.aq(d);
}
}
};
SeriesLayer.prototype.av = function (a, b) {
var c = a;
if (b.propertyName == SeriesLayerPropertyOverlay.$$p[0]) {
if (b.oldValue != null) {
var d = b.oldValue;
if (!c.q) {
d = Series.n8(d);
}
if (this.v.containsKey(d)) {
var e = this.v.item(d);
e.remove(c);
if (e.count == 0) {
this.v.removeItem(d);
}
}
}
if (b.newValue != null) {
var f = b.newValue;
if (!c.q) {
f = Series.n8(f);
}
if (!this.v.containsKey(f)) {
this.v.addItem(f, new List$1(SeriesLayerPropertyOverlay.$, 0));
}
this.v.item(f).add(c);
}
}
if (this.aa.contains(c) || this.ab.contains(c)) {
this.a2(c, this.source, this.target);
}
};
SeriesLayer.prototype.ax = function (a, b, c) {
this.aw(a, b, c);
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
};
SeriesLayer.prototype.am = function (a, b) {
this.source = a;
this.target = b;
this.p = true;
this.a5();
var c = this.target;
c.renderValid = delegateCombine(c.renderValid, runOn(this, this.a1));
a.propertyUpdated = delegateCombine(a.propertyUpdated, runOn(this, this.ay));
};
SeriesLayer.prototype.ay = function (a, b) {
if (this.p) {
if (!this.source.gs(b.propertyName)) {
var c = this.source.t5(b.propertyName);
if (c != null) {
this.ai(this.source, this.target, c, b.newValue);
}
}
}
};
SeriesLayer.prototype.a1 = function (a, b) {
if (this.source == null || this.source.f5()) {
return;
}
this.a4();
if (this.target != null) {
var c = this.target;
c.renderValid = delegateRemove(c.renderValid, runOn(this, this.a1));
}
};
SeriesLayer.prototype.ap = function (a) {
var e_76, _a;
var b = this.source;
b.propertyUpdated = delegateRemove(b.propertyUpdated, runOn(this, this.ay));
this.p = false;
var c = new List$1(SeriesLayerPropertyOverlay.$, 1, this.ab);
c.o(this.aa);
try {
for (var _b = __values(fromEnum(c)), _c = _b.next(); !_c.done; _c = _b.next()) {
var d = _c.value;
this.aq(d);
}
}
catch (e_76_1) {
e_76 = { error: e_76_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_76)
throw e_76.error;
}
}
};
SeriesLayer.prototype.aq = function (a) {
if (a.y != null) {
if (this.v.containsKey(a.y)) {
var b = this.v.item(a.y);
b.remove(a);
if (b.count == 0) {
this.v.removeItem(a.y);
}
}
}
if (a.r) {
if (this.x.containsKey(a.aa)) {
this.x.removeItem(a.aa);
}
}
else {
if (this.w.containsKey(a.aa)) {
this.w.removeItem(a.aa);
}
}
if (this.aa.contains(a) || this.ab.contains(a)) {
if (this.aa.contains(a)) {
this.aa.remove(a);
}
if (this.ab.contains(a)) {
this.ab.remove(a);
}
if (a.r) {
if (this.source == null) {
return;
}
var c = this.source.t5(a.aa);
if (c == null) {
return;
}
this.ao(this.source, c, a.w);
}
}
};
SeriesLayer.prototype.aw = function (a, b, c) {
this.q = true;
};
SeriesLayer.prototype.ai = function (a, b, c, d) {
var e_77, _a;
var e = d;
if (this.r(a, c)) {
return this.ah(c);
}
var f = false;
if (this.s(a, b, c)) {
f = true;
}
if (this.v.containsKey(c.name)) {
if (this.p) {
var g = this.v.item(c.name);
try {
for (var _b = __values(fromEnum(g)), _c = _b.next(); !_c.done; _c = _b.next()) {
var h = _c.value;
if (h.y != null) {
var i = h.ad;
if (!h.q) {
i = Series.n8(i);
}
var j = a.t5(i);
var k = a.c(j);
k = this.ad(a, b, j, k);
if (h.r) {
if (!a.gs(c.name)) {
var l = this.ae(a, b, j, k);
this.az(a, c);
this.ao(a, j, l);
this.a0(a, c);
}
}
else {
b.h(j, k);
}
}
}
}
catch (e_77_1) {
e_77 = { error: e_77_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_77)
throw e_77.error;
}
}
}
}
if (!f) {
d = this.ad(a, b, c, d);
b.h(c, d);
}
return e;
};
SeriesLayer.prototype.s = function (a, b, c) {
if (this.z.contains(c.name)) {
return true;
}
if (c.name != null && stringStartsWith(c.name, "Actual")) {
return true;
}
return false;
};
SeriesLayer.prototype.ad = function (a, b, c, d) {
if (this.w.containsKey(c.name)) {
var e = false;
if (this.source == null) {
this.source = a;
e = true;
}
var f = this.w.item(c.name);
var g = this.ag(d, f, a);
d = this.w.item(c.name).t(d, g, a);
if (e) {
this.source = null;
}
}
return d;
};
SeriesLayer.prototype.ae = function (a, b, c, d) {
if (this.p && this.x.containsKey(c.name)) {
var e = false;
if (this.source == null) {
this.source = a;
e = true;
}
if (this.r(a, c)) {
d = this.ah(c);
}
var f = this.x.item(c.name);
var g = this.ag(d, f, a);
d = this.x.item(c.name).t(d, g, a);
if (e) {
this.source = null;
}
}
return d;
};
Object.defineProperty(SeriesLayer.prototype, "m", {
get: function () {
return this.l;
},
enumerable: false,
configurable: true
});
SeriesLayer.$t = markType(SeriesLayer, 'SeriesLayer', DependencyObject.$, [INotifyPropertyChanged_$type]);
SeriesLayer.$$p = markDep(DependencyProperty, PropertyMetadata, SeriesLayer, 'ax', ['ZIndex:ac:a6', [1, 0]]);
return SeriesLayer;
}(DependencyObject));
export { SeriesLayer };
/**
* @hidden
*/
var SeriesLayerCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesLayerCollection, _super);
function SeriesLayerCollection() {
var _this = _super.call(this, SeriesLayer.$, 0) || this;
_this.collectionResetting = null;
return _this;
}
SeriesLayerCollection.prototype.p = function () {
if (this.collectionResetting != null) {
this.collectionResetting(this, null);
}
_super.prototype.p.call(this);
};
SeriesLayerCollection.$t = markType(SeriesLayerCollection, 'SeriesLayerCollection', ObservableCollection$1.$.specialize(SeriesLayer.$));
return SeriesLayerCollection;
}(ObservableCollection$1));
export { SeriesLayerCollection };
/**
* @hidden
*/
var SeriesLayerManager = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesLayerManager, _super);
function SeriesLayerManager() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.a = null;
return _this;
}
SeriesLayerManager.prototype.b = function (a, b) {
if (b.propertyName == "ZIndex") {
this.n(this.a);
}
};
SeriesLayerManager.prototype.i = function (a, b) {
if (b.oldItems != null) {
for (var c = 0; c < b.oldItems.count; c++) {
var d = b.oldItems.item(c);
if (d == null) {
continue;
}
var e = d;
e.propertyChanged = delegateRemove(e.propertyChanged, runOn(this, this.b));
}
}
if (b.newItems != null) {
for (var f = 0; f < b.newItems.count; f++) {
var g = b.newItems.item(f);
if (g == null) {
continue;
}
var h = g;
h.propertyChanged = delegateCombine(h.propertyChanged, runOn(this, this.b));
}
}
this.n(a);
};
SeriesLayerManager.prototype.n = function (a) {
var e_78, _a, e_79, _b;
var b = new SeriesLayerCollection();
try {
for (var _c = __values(fromEnum(a.cb)), _d = _c.next(); !_d.done; _d = _c.next()) {
var c = _d.value;
b.add(c);
}
}
catch (e_78_1) {
e_78 = { error: e_78_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_78)
throw e_78.error;
}
}
try {
for (var _e = __values(fromEnum(a.cc)), _f = _e.next(); !_f.done; _f = _e.next()) {
var d = _f.value;
b.add(d);
}
}
catch (e_79_1) {
e_79 = { error: e_79_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_79)
throw e_79.error;
}
}
var e = function (f, g) {
if (f.ac < g.ac) {
return -1;
}
else if (f.ac > g.ac) {
return 1;
}
else {
return 0;
}
};
ArrayExtension.quickSort(b, function (f, g) { return e(f, g); });
this.m(b, a.actualLayers);
};
SeriesLayerManager.prototype.m = function (a, b) {
var c = new List$1(Number_$type, 0);
var d = 0;
for (var e = 0; e < b.count; e++) {
if (b._inner[e] == null) {
c.add(e);
continue;
}
if (d > a.count - 1) {
c.add(e);
continue;
}
if (Base.equalsStatic(b._inner[e], a._inner[d])) {
d++;
continue;
}
b.insert(e, a._inner[d]);
d++;
}
for (var f = c.count - 1; f >= 0; f--) {
b.removeAt(f);
}
for (; d < a.count; d++) {
b.add(a._inner[d]);
}
};
SeriesLayerManager.prototype.h = function (a, b, c) {
this.i(a, c);
};
SeriesLayerManager.prototype.j = function (a, b, c) {
var e_80, _a;
try {
for (var _b = __values(fromEnum(b)), _c = _b.next(); !_c.done; _c = _b.next()) {
var d = _c.value;
d.propertyChanged = delegateRemove(d.propertyChanged, runOn(this, this.b));
}
}
catch (e_80_1) {
e_80 = { error: e_80_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_80)
throw e_80.error;
}
}
};
SeriesLayerManager.prototype.e = function (a, b, c) {
this.i(a, c);
};
SeriesLayerManager.prototype.f = function (a, b, c) {
var e_81, _a;
try {
for (var _b = __values(fromEnum(b)), _c = _b.next(); !_c.done; _c = _b.next()) {
var d = _c.value;
d.propertyChanged = delegateRemove(d.propertyChanged, runOn(this, this.b));
}
}
catch (e_81_1) {
e_81 = { error: e_81_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_81)
throw e_81.error;
}
}
};
SeriesLayerManager.prototype.c = function (a, b, c) {
var e_82, _a;
switch (c.action) {
case 0:
if (c.newItems != null) {
for (var d = 0; d < c.newItems.count; d++) {
var e = c.newItems.item(d);
this.k(d + c.newStartingIndex, e);
}
}
break;
case 1:
if (c.oldItems != null) {
for (var f = 0; f < c.oldItems.count; f++) {
var g = c.oldItems.item(f);
this.l(g, c.oldStartingIndex);
}
}
break;
case 2:
if (c.oldItems != null) {
for (var h = 0; h < c.oldItems.count; h++) {
var i = c.oldItems.item(h);
this.l(i, c.oldStartingIndex);
}
}
if (c.newItems != null) {
for (var j = 0; j < c.newItems.count; j++) {
var k = c.newItems.item(j);
this.k(j + c.newStartingIndex, k);
}
}
break;
case 4:
this.g();
var l = 0;
try {
for (var _b = __values(fromEnum(b)), _c = _b.next(); !_c.done; _c = _b.next()) {
var m = _c.value;
var n = m;
this.k(l, n);
l++;
}
}
catch (e_82_1) {
e_82 = { error: e_82_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_82)
throw e_82.error;
}
}
break;
}
};
SeriesLayerManager.prototype.g = function () {
var e_83, _a;
try {
for (var _b = __values(fromEnum(this.a.actualLayers)), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
this.a.pu(a);
}
}
catch (e_83_1) {
e_83 = { error: e_83_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_83)
throw e_83.error;
}
}
};
SeriesLayerManager.prototype.l = function (a, b) {
this.a.pu(a);
};
SeriesLayerManager.prototype.k = function (a, b) {
this.a.bn(a, b);
};
SeriesLayerManager.prototype.d = function (a, b, c) {
this.g();
};
SeriesLayerManager.$t = markType(SeriesLayerManager, 'SeriesLayerManager');
return SeriesLayerManager;
}(Base));
export { SeriesLayerManager };
/**
* @hidden
*/
var SeriesLayerPropertyOverlay = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesLayerPropertyOverlay, _super);
function SeriesLayerPropertyOverlay() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.o = false;
_this.k = null;
_this.propertyChanged = null;
_this.propertyUpdated = null;
_this.q = false;
_this.n = false;
_this.m = false;
_this.w = null;
_this.s = null;
_this.valueResolving = null;
return _this;
}
SeriesLayerPropertyOverlay.prototype.ah = function (a, b, c) {
this.ag(a, b, c);
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
if (this.propertyUpdated != null) {
this.propertyUpdated(this, new PropertyUpdatedEventArgs(a, b, c));
}
};
SeriesLayerPropertyOverlay.prototype.ag = function (a, b, c) {
this.n = true;
switch (a) {
case SeriesLayerPropertyOverlay.$$p[4]:
this.m = true;
break;
default: break;
}
};
SeriesLayerPropertyOverlay.prototype.t = function (a, b, c) {
this.w = a;
var d = this.x;
if (a == null && this.y != null) {
a = b;
if (this.x == null) {
d = b;
}
}
if (d == this.s && this.s != null) {
return d;
}
if (this.valueResolving != null) {
var e_84 = a;
var f = ((function () {
var $ret = new SeriesLayerPropertyOverlayValueResolvingEventArgs();
$ret.value = e_84;
return $ret;
})());
if (!this.q) {
this.ai(f, c);
d = f.value;
}
{
this.valueResolving(this, f);
}
if (f.b) {
if (!this.q) {
this.aj(f, c);
}
d = f.value;
}
}
else {
if (!this.q) {
d = this.v(d, c);
}
}
this.s = d;
return d;
};
SeriesLayerPropertyOverlay.prototype.aj = function (a, b) {
var c = b.t5(this.aa);
if (c == null) {
return;
}
var d = PlatformAPIHelper.o(c.propertyType, a.value);
a.value = d;
a.b = false;
};
SeriesLayerPropertyOverlay.prototype.v = function (a, b) {
var c = b.t5(this.aa);
if (c == null) {
return a;
}
var d = PlatformAPIHelper.o(c.propertyType, a);
a = d;
return a;
};
SeriesLayerPropertyOverlay.prototype.ai = function (a, b) {
var c = b.t5(this.aa);
if (c == null) {
return;
}
var d = PlatformAPIHelper.f(c.propertyType, a.value);
a.value = d;
a.b = false;
};
SeriesLayerPropertyOverlay.prototype.u = function (a, b) {
var c = b.t5(this.aa);
if (c == null) {
return a;
}
var d = PlatformAPIHelper.f(c.propertyType, a);
a = d;
return a;
};
Object.defineProperty(SeriesLayerPropertyOverlay.prototype, "aa", {
get: function () {
if (!this.q) {
return Series.n8(this.ad);
}
return this.ad;
},
enumerable: false,
configurable: true
});
SeriesLayerPropertyOverlay.$t = markType(SeriesLayerPropertyOverlay, 'SeriesLayerPropertyOverlay', DependencyObject.$, [INotifyPropertyChanged_$type]);
SeriesLayerPropertyOverlay.$$p = markDep(DependencyProperty, PropertyMetadata, SeriesLayerPropertyOverlay, 'ah', ['CurrentValuePropertyName:y:ak', [2, null], 'IsAlwaysApplied:p:al', [0, false], 'IsSourceOverlay:r:am', [0, false], 'PropertyName:ad:an', [2, null], 'Value:x:ao', [4]]);
return SeriesLayerPropertyOverlay;
}(DependencyObject));
export { SeriesLayerPropertyOverlay };
/**
* @hidden
*/
var SeriesLayerPropertyOverlayCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesLayerPropertyOverlayCollection, _super);
function SeriesLayerPropertyOverlayCollection() {
var _this = _super.call(this, SeriesLayerPropertyOverlay.$, 0) || this;
_this.collectionResetting = null;
return _this;
}
SeriesLayerPropertyOverlayCollection.prototype.p = function () {
if (this.collectionResetting != null) {
this.collectionResetting(this, null);
}
_super.prototype.p.call(this);
};
SeriesLayerPropertyOverlayCollection.$t = markType(SeriesLayerPropertyOverlayCollection, 'SeriesLayerPropertyOverlayCollection', ObservableCollection$1.$.specialize(SeriesLayerPropertyOverlay.$));
return SeriesLayerPropertyOverlayCollection;
}(ObservableCollection$1));
export { SeriesLayerPropertyOverlayCollection };
/**
* @hidden
*/
export var IDataChartToolbarProvider_$type = new Type(null, 'IDataChartToolbarProvider');
/**
* @hidden
*/
export var ISeriesViewerScrollbarManager_$type = new Type(null, 'ISeriesViewerScrollbarManager');
/**
* @hidden
*/
export var IAnnotationLayerProxy_$type = new Type(null, 'IAnnotationLayerProxy');
/**
* @hidden
*/
export var ISeriesInteractionManager_$type = new Type(null, 'ISeriesInteractionManager');
/**
* @hidden
*/
export var ISeriesViewerInteractionManager_$type = new Type(null, 'ISeriesViewerInteractionManager');
/**
* @hidden
*/
export var IDataChartVisualDataManager_$type = new Type(null, 'IDataChartVisualDataManager');
/**
* @hidden
*/
export var IAxisVisualDataManager_$type = new Type(null, 'IAxisVisualDataManager');
/**
* @hidden
*/
export var ISeriesVisualDataManager_$type = new Type(null, 'ISeriesVisualDataManager');
/**
* @hidden
*/
var XamDataChart = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(XamDataChart, _super);
function XamDataChart() {
var _this = _super.call(this) || this;
_this._xsr = null;
_this.zv = null;
_this.zh = null;
_this.aay = 1;
_this.aaz = 1;
_this.aaf = false;
_this.aak = false;
_this.aaj = false;
_this.aa0 = 0;
_this.aa1 = 0;
_this.abi = NaN;
_this.abj = NaN;
_this.zo = new AxisCollection();
_this.zn = new AxisCollection();
_this.aah = false;
_this.axisRangeChanged = null;
_this.z4 = null;
_this.z7 = false;
_this.aav = 0;
_this.aax = 0;
_this.aaw = 0;
_this.aau = 0;
_this.aa3 = NaN;
_this.aa5 = NaN;
_this.aa4 = NaN;
_this.aa2 = NaN;
_this.ab = XamDataChart.$;
_this.aaj = true;
var a = _this.axes;
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.acx));
var b = _this.axes;
b.collectionResetting = delegateCombine(b.collectionResetting, runOn(_this, _this.acy));
var c = _this.zq;
c.collectionChanged = delegateCombine(c.collectionChanged, runOn(_this, _this.acp));
var d = _this.zq;
d.collectionAfterChanged = delegateCombine(d.collectionAfterChanged, runOn(_this, _this.acq));
var e = _this.zq;
e.collectionResetting = delegateCombine(e.collectionResetting, runOn(_this, _this.acr));
return _this;
}
Object.defineProperty(XamDataChart.prototype, "XSRP", {
get: function () {
if (this._xsr == null) {
this._xsr = new SRProvider(this.dw.j.ae);
}
return this._xsr;
},
enumerable: false,
configurable: true
});
Object.defineProperty(XamDataChart.prototype, "zw", {
get: function () {
var _this = this;
if (this.zv == null) {
this.zv = DVContainer.instance.createInstance(IDataChartVisualDataManager_$type, function () { return _this.XSRP.q; });
}
return this.zv;
},
enumerable: false,
configurable: true
});
XamDataChart.staticInit = function () {
XamDataChart.abf = -1.7976931348623157E+308;
XamDataChart.abe = 1.7976931348623157E+308;
};
XamDataChart.prototype.zi = function (a) {
if (this.zh == null) {
this.zh = new AutomaticAxesManager(this, this.axes, this.zq);
}
return this.zh;
};
XamDataChart.prototype.o3 = function (a, b, c, d, e) {
_super.prototype.o3.call(this, a, b, c, d, e);
var f;
if (e) {
f = { $type: Point_$type, x: a.x + this.y9.x, y: a.y + this.y9.y };
}
else {
f = { $type: Point_$type, x: a.x, y: a.y };
}
for (var g = 0; g < this.zq.count; g++) {
var h = this.zq._inner[g];
h.ki(f, b, c, d, false);
}
};
XamDataChart.prototype.f7 = function (a) {
var e_85, _a, e_86, _b;
try {
for (var _c = __values(fromEnum(this.zq)), _d = _c.next(); !_d.done; _d = _c.next()) {
var b = _d.value;
if (b.a4 != null && b.a4.visibility != 1 && b.a1.c6.containsPoint(a)) {
return true;
}
else {
try {
for (var _e = (e_86 = void 0, __values(fromEnum(b.a1.bd))), _f = _e.next(); !_f.done; _f = _e.next()) {
var c = _f.value;
if (c.containsPoint(a)) {
return true;
}
}
}
catch (e_86_1) {
e_86 = { error: e_86_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_86)
throw e_86.error;
}
}
}
}
}
catch (e_85_1) {
e_85 = { error: e_85_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_85)
throw e_85.error;
}
}
return false;
};
XamDataChart.abr = function (a) {
if (a.dc == null) {
return -1;
}
if (!a.fj) {
return -1;
}
var b = XamDataChartView.az(a);
if (b.count == 0) {
return -1;
}
var c = -1;
for (var d = 0; d < b.count; d++) {
c = Math.max(c, b._inner[d].index);
}
var e = c + 1;
if (a.isFragment) {
e = a.kb();
if (e == -1) {
return -1;
}
var f = a.bq();
e = f.index + e;
}
if (a.bo != null) {
e = a.kf() + a.bo.index;
if (e == -1) {
return -1;
}
}
return e;
};
XamDataChart.prototype.r8 = function (a, b, c, d) {
var e_87, _a, e_88, _b, e_89, _c;
_super.prototype.r8.call(this, a, b, c, d);
switch (b) {
case XamDataChart.$$p[23]:
this.aba = this.abp;
break;
case XamDataChart.$$p[24]:
this.abb = this.abq;
break;
case "ActualWindowScaleHorizontal":
case "ActualWindowScaleVertical":
if (!this.g8) {
this.ua(this.iu(), this.iv());
}
break;
case XamDataChart.$$p[8]:
this.dw.fu(d);
{
try {
for (var _d = __values(fromEnum(this.zq)), _e = _d.next(); !_e.done; _e = _d.next()) {
var e = _e.value;
e.lx();
}
}
catch (e_87_1) {
e_87 = { error: e_87_1 };
}
finally {
try {
if (_e && !_e.done && (_a = _d.return))
_a.call(_d);
}
finally {
if (e_87)
throw e_87.error;
}
}
}
break;
case XamDataChart.$$p[9]:
this.aae = this.aad;
break;
case XamDataChart.$$p[22]:
this.aai = this.aar;
break;
case XamDataChart.$$p[11]:
case XamDataChart.$$p[13]:
this.t5();
break;
case XamDataChart.$$p[0]:
case XamDataChart.$$p[17]:
if (c != d) {
try {
for (var _f = __values(fromEnum(this.zq)), _g = _f.next(); !_g.done; _g = _f.next()) {
var f = _g.value;
f.d0 = true;
f.lx();
}
}
catch (e_88_1) {
e_88 = { error: e_88_1 };
}
finally {
try {
if (_g && !_g.done && (_b = _f.return))
_b.call(_f);
}
finally {
if (e_88)
throw e_88.error;
}
}
}
break;
case XamDataChart.$$p[7]:
case XamDataChart.$$p[5]:
case XamDataChart.$$p[6]:
try {
for (var _h = __values(fromEnum(this.zq)), _j = _h.next(); !_j.done; _j = _h.next()) {
var g = _j.value;
g.l8();
}
}
catch (e_89_1) {
e_89 = { error: e_89_1 };
}
finally {
try {
if (_j && !_j.done && (_c = _h.return))
_c.call(_h);
}
finally {
if (e_89)
throw e_89.error;
}
}
break;
case XamDataChart.$$p[4]:
this.acu();
break;
}
};
XamDataChart.prototype.s4 = function () {
_super.prototype.s4.call(this);
if (this.zg == 1 || this.zg == 2) {
this.ac0();
}
};
XamDataChart.prototype.qk = function () {
_super.prototype.qk.call(this);
if (this.z8 && this.zg != 0) {
if (!this.aaq) {
this.ac0();
}
}
};
XamDataChart.prototype.p9 = function (a, b) {
_super.prototype.p9.call(this, a, b);
if (this.z8 && this.zg == 2) {
if (!a.isEmpty && !b.isEmpty) {
if (Math.abs(a.width - b.width) > 1E-10) {
if (!this.aaq) {
this.ac0();
}
}
}
}
};
XamDataChart.prototype.qf = function () {
_super.prototype.qf.call(this);
if (this.zr == 1) {
this.acu();
}
};
XamDataChart.prototype.ac1 = function () {
this.acu();
};
XamDataChart.prototype.acu = function () {
var e_90, _a, e_91, _b;
var a = this.adw();
this.z7 = false;
if (!isNaN_(this.abl)) {
this.aa7 = this.abl;
}
else {
this.aa7 = a.left;
}
if (!isNaN_(this.abn)) {
this.aa9 = this.abn;
}
else {
this.aa9 = a.top;
}
if (!isNaN_(this.abm)) {
this.aa8 = this.abm;
}
else {
this.aa8 = a.right;
}
if (!isNaN_(this.abk)) {
this.aa6 = this.abk;
}
else {
this.aa6 = a.bottom;
}
this.yv = this.yt(this.y9);
if (this.z7) {
this.z7 = false;
try {
for (var _c = __values(fromEnum(this.zq)), _d = _c.next(); !_d.done; _d = _c.next()) {
var b = _d.value;
b.d0 = true;
b.lx();
}
}
catch (e_90_1) {
e_90 = { error: e_90_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_90)
throw e_90.error;
}
}
try {
for (var _e = __values(fromEnum(this.b9)), _f = _e.next(); !_f.done; _f = _e.next()) {
var c = _f.value;
c.r8(false);
}
}
catch (e_91_1) {
e_91 = { error: e_91_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_91)
throw e_91.error;
}
}
}
};
XamDataChart.prototype.adw = function () {
this.ac3();
switch (this.zr) {
case 1:
var a = this.adx();
return a;
default: return new Thickness(1, 0, 0, 0, 0);
}
};
XamDataChart.prototype.ac3 = function () {
this.ci = this.zy();
this.ck = this.z1();
};
XamDataChart.prototype.z1 = function () {
var e_92, _a;
var a = 1;
try {
for (var _b = __values(fromEnum(this.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
var c = b.cm();
a = this.z0(a, c);
}
}
catch (e_92_1) {
e_92 = { error: e_92_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_92)
throw e_92.error;
}
}
return a;
};
XamDataChart.prototype.z0 = function (a, b) {
switch (a) {
case 2: return 2;
case 4:
if (b == 2 || b == 3) {
return 2;
}
return a;
case 3:
if (b == 2 || b == 4) {
return 2;
}
return a;
case 1: return b;
}
return a;
};
XamDataChart.prototype.zy = function () {
var e_93, _a;
var a = 1;
try {
for (var _b = __values(fromEnum(this.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
var c = b.cl();
a = this.zx(a, c);
}
}
catch (e_93_1) {
e_93 = { error: e_93_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_93)
throw e_93.error;
}
}
return a;
};
XamDataChart.prototype.zx = function (a, b) {
switch (a) {
case 2: return 2;
case 4:
if (b == 2 || b == 3) {
return 2;
}
return a;
case 3:
if (b == 2 || b == 4) {
return 2;
}
return a;
case 1: return b;
}
return a;
};
XamDataChart.prototype.adx = function () {
var a = new Thickness(1, 0, 0, 0, 0);
for (var b = 0; b < this.b9.count; b++) {
var c = this.b9._inner[b];
var d = c.xf();
a = new Thickness(1, Math.max(d.left, a.left), Math.max(d.top, a.top), Math.max(d.right, a.right), Math.max(d.bottom, a.bottom));
}
return a;
};
XamDataChart.prototype.ady = function (a, b) {
var c = new Thickness(1, 0, 0, 0, 0);
for (var d = 0; d < this.b9.count; d++) {
var e = this.b9._inner[d];
var f = e.xh(a, b);
c = new Thickness(1, Math.max(f.left, c.left), Math.max(f.top, c.top), Math.max(f.right, c.right), Math.max(f.bottom, c.bottom));
}
return c;
};
XamDataChart.prototype.get_fn = function () {
return this.zr == 1;
};
XamDataChart.prototype.iu = function () {
return this.aba;
};
XamDataChart.prototype.iv = function () {
return this.abb;
};
XamDataChart.prototype.ty = function () {
_super.prototype.ty.call(this);
this.aba = this.yr.width;
this.abb = this.yr.height;
};
Object.defineProperty(XamDataChart.prototype, "aba", {
get: function () {
return this.aay;
},
set: function (a) {
var b = this.aay;
this.aay = a;
this.sr("ActualWindowScaleHorizontal", b, this.aay);
},
enumerable: false,
configurable: true
});
Object.defineProperty(XamDataChart.prototype, "abb", {
get: function () {
return this.aaz;
},
set: function (a) {
var b = this.aaz;
this.aaz = a;
this.sr("ActualWindowScaleVertical", b, this.aaz);
},
enumerable: false,
configurable: true
});
XamDataChart.prototype.gg = function () {
return this.aae;
};
XamDataChart.prototype.gh = function () {
return this.aai;
};
Object.defineProperty(XamDataChart.prototype, "z8", {
get: function () {
return this.aal || this.aao;
},
enumerable: false,
configurable: true
});
XamDataChart.prototype.get_gp = function () {
return this.z9;
};
Object.defineProperty(XamDataChart.prototype, "z9", {
get: function () {
return this.aap;
},
enumerable: false,
configurable: true
});
XamDataChart.prototype.get_go = function () {
return this.aao;
};
XamDataChart.prototype.get_gn = function () {
return this.aal;
};
XamDataChart.prototype.ac0 = function () {
this.aaf = false;
this.aak = true;
this.aaj = true;
for (var a = 0; a < this.zq.count; a++) {
this.zq._inner[a].d0 = true;
this.zq._inner[a].lx();
}
};
XamDataChart.prototype.acz = function () {
this.aaf = false;
this.aaj = true;
for (var a = 0; a < this.zq.count; a++) {
this.zq._inner[a].d0 = true;
this.zq._inner[a].lx();
}
};
XamDataChart.prototype.acw = function (a, b, c, d) {
if (a.ae == null) {
return;
}
if (a.ae.d0 || a.ae.o6.isEmpty) {
return;
}
if (a.ae.dh) {
return;
}
var e = false;
for (var f = 0; f < this.zq.count; f++) {
var g = this.zq._inner[f].a1.bm;
this.zq._inner[f].a1.ce();
if (this.zq._inner[f].a1.bm != g) {
e = true;
}
}
if (e) {
return;
}
if (isNaN_(this.abi)) {
this.abi = this.dw.a7;
this.abj = this.dw.a8;
}
var h = false;
var i = false;
var j = 0;
if (a.az) {
var k = this.aaj;
if (this.aao && this.aaj) {
j = this.abo(a, b, c, d);
this.aaj = false;
if (a.bq() != j) {
if (j == 0 && a.ae.c1) {
if (k) {
this.aak = true;
a.ae.l0();
h = true;
i = true;
}
}
else {
if ((j > a.bq()) || k) {
this.aak = true;
a.ae.l5(j);
h = true;
i = true;
}
}
}
}
}
this.e7 = h;
if (a.bq() != 0 || j != 0 || h) {
var l = a.bq();
var m = c.left + c.width / 2;
var n = d.left + d.width / 2;
if (a.a0) {
m = c.left;
n = d.left;
}
if (l == 0) {
m = m - a.c8.width / 2;
n = n - a.c8.width / 2;
}
var o = a.c4(new Rect(0, m, c.top, a.c8.width, a.c8.height), l);
var p = a.c4(new Rect(0, n, d.top, a.c8.width, a.c8.height), l);
c = o;
d = p;
}
var q = false;
if (this.aak) {
this.aak = false;
q = true;
}
this.aaf = true;
var r = 0;
var s = 0;
var t = 0;
var u = c.left + t;
var v = d.right + t;
var w = 0;
w = this.y9.right + this.dw.a8;
if (u < 0) {
r = -u;
r += this.abc;
}
if (v > w) {
s = v - w;
s += this.abc;
}
if (q) {
if (u > 0) {
r = -u;
r += this.abc;
}
if (v < w) {
s = -(w - v);
s += this.abc;
}
}
var x = false;
var y = false;
if (r != 0 || s != 0) {
x = true;
this.aa0 = this.aa0 + r;
this.aa1 = this.aa1 + s;
if (this.aa0 > this.abd) {
this.aa0 = this.abd;
y = true;
}
if (this.aa1 > this.abd) {
this.aa1 = this.abd;
y = true;
}
if (this.aa0 < 0) {
this.aa0 = 0;
y = true;
}
if (this.aa1 < 0) {
this.aa1 = 0;
y = true;
}
}
else {
if (this.e7) {
this.act();
}
return;
}
this.g7 = true;
this.i7 = this.abi + this.aa0;
this.jc = this.abj + this.aa1;
this.g7 = false;
this.gl = x;
if (y) {
if (q && (this.gl || this.e7)) {
this.act();
}
return;
}
if (this.gl || this.e7) {
this.act();
}
};
XamDataChart.prototype.abo = function (a, b, c, d) {
var e = this.abg(-1, a, b, c, d);
var f = a.bq();
if (e < f) {
var g = c.left + c.width / 2;
var h = d.left + d.width / 2;
if (a.a0) {
g = c.left;
h = d.left;
}
var i = a.c4(new Rect(0, g, c.top, a.c8.width, a.c8.height), e);
var j = a.c4(new Rect(0, h, d.top, a.c8.width, a.c8.height), e);
if (e == 0) {
i = new Rect(0, g - a.c8.width / 2, c.top, a.c8.width, a.c8.height);
j = new Rect(0, h - a.c8.width / 2, d.top, a.c8.width, a.c8.height);
}
var k = a.c4(new Rect(0, g, c.top, a.c8.width, a.c8.height), f);
var l = a.c4(new Rect(0, h, d.top, a.c8.width, a.c8.height), f);
var m = j.right - l.right;
var n = 0;
var o = 0;
o = this.y9.right + this.dw.a8;
var p = i.left + n;
var q = j.right + n;
var r = 0;
var s = 0;
if (p < 0) {
r = -p;
r += this.abc;
}
if (q > o) {
s = q - o;
s += this.abc;
}
var t = false;
if (this.aak || this.aaj) {
t = true;
}
if (t) {
if (p > 0) {
r = -p;
r += this.abc;
}
if (q < o) {
s = -(o - q);
s += this.abc;
}
}
var u = false;
var v = false;
var w = 0;
var x = 0;
if (r != 0 || s != 0) {
v = true;
w = this.aa0 + r;
x = this.aa1 + s;
if (w > this.abd) {
w = this.abd;
u = true;
}
if (x > this.abd) {
x = this.abd;
u = true;
}
if (w < 0) {
w = 0;
u = true;
}
if (x < 0) {
x = 0;
u = true;
}
}
var y = this.dw.a7;
var z = this.dw.a8;
var aa = new Thickness(1, this.abi + w, 0, this.abj + x, 0);
var ab = (aa.left - y) + (aa.right - z);
var ac = a.ae.o0().width;
var ad = ac - ab;
var ae = ad / ac;
var af = a.bs() * ae;
var ag = this.abg(af, a, b, c, d);
if (ag == e) {
return e;
}
else {
return f;
}
}
return e;
};
XamDataChart.prototype.abg = function (a, b, c, d, e) {
var f = b.c8;
var g = b.bs();
if (a < 0) {
}
if (a > 0) {
g = a;
}
if (f.width < g) {
return 0;
}
var h = 45;
var i = new Rect(0, 0, f.top, f.width, f.height);
var j = new Rect(0, g, f.top, f.width, f.height);
var k = b.ac(i, h);
var l = b.ac(j, h);
var m = true;
for (var n = 0; n < k.length; n++) {
if (PolygonUtil.a(l, k[n])) {
m = false;
break;
}
}
if (!m) {
h = 90;
}
return h;
};
XamDataChart.prototype.act = function () {
for (var a = 0; a < this.zq.count; a++) {
this.zq._inner[a].d0 = true;
this.zq._inner[a].ly(false);
}
this.pf(true, false, false);
this.aaf = false;
for (var b = 0; b < this.zq.count; b++) {
this.zq._inner[b].d0 = true;
this.zq._inner[b].ly(false);
}
this.pf(true, false, false);
};
XamDataChart.prototype.zs = function (a) {
var e_94, _a;
var b = a;
if (b == 0) {
var c = true;
var d = false;
var e = false;
var f = false;
var g = false;
var h = false;
var i = false;
var j = false;
var k = false;
var l = false;
var m = false;
try {
for (var _b = __values(fromEnum(this.zq)), _c = _b.next(); !_c.done; _c = _b.next()) {
var n = _c.value;
if (n == null || !n.dx()) {
continue;
}
if (!n.dq) {
c = false;
}
if (n.df && n.dh && n.dm) {
d = true;
}
if (n.df && n.dh && n.dy) {
e = true;
}
if (n.df && n.dt && n.dm) {
f = true;
}
if (n.df && n.dt && n.dy) {
g = true;
}
if (n.dq && n.dh && n.dm) {
h = true;
}
if (n.dq && n.dh && n.dy) {
i = true;
}
if (n.dq && n.dt && n.dm) {
j = true;
}
if (n.dq && n.dt && n.dy) {
k = true;
}
if (n.dq && n.dm) {
l = true;
}
if (n.dq && n.dy) {
m = true;
}
}
}
catch (e_94_1) {
e_94 = { error: e_94_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_94)
throw e_94.error;
}
}
if (d) {
b = 7;
}
else if (e) {
b = 8;
}
else if (f) {
b = 9;
}
else if (g) {
b = 10;
}
else if (h) {
b = 7;
}
else if (i) {
b = 8;
}
else if (j) {
b = 9;
}
else if (k) {
b = 10;
}
else {
b = 1;
}
}
return b;
};
XamDataChart.prototype.aat = function (a) {
var e_95, _a;
var b = new List$1(Axis.$, 0);
if (this.zq == null || this.zq.count == 0) {
return b;
}
var c = this.zs(a);
try {
for (var _b = __values(fromEnum(this.zq)), _c = _b.next(); !_c.done; _c = _b.next()) {
var d = _c.value;
if (d == null || !d.dx()) {
continue;
}
if (c == 1 && (d.df || d.dj)) {
b.add(d);
}
else if (c == 4 && d.dj) {
b.add(d);
}
else if (c == 3 && d.dy) {
b.add(d);
}
else if (c == 2 && d.dm) {
b.add(d);
}
else if (c == 5 && d.df && d.dm) {
b.add(d);
}
else if (c == 6 && d.df && d.dy) {
b.add(d);
}
else if (c == 9 && d.dt && d.dm) {
b.add(d);
}
else if (c == 10 && d.dt && d.dy) {
b.add(d);
}
else if (c == 7 && d.dh && d.dm) {
b.add(d);
}
else if (c == 8 && d.dh && d.dy) {
b.add(d);
}
else if (c == 11 && d.dq && d.dm) {
b.add(d);
}
else if (c == 12 && d.dq && d.dy) {
b.add(d);
}
}
}
catch (e_95_1) {
e_95 = { error: e_95_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_95)
throw e_95.error;
}
}
return b;
};
XamDataChart.prototype.zl = function () {
var a = this.aat(9);
if (a.count > 0) {
return a._inner[a.count - 1];
}
return null;
};
XamDataChart.prototype.zm = function () {
var a = this.aat(10);
if (a.count > 0) {
return a._inner[a.count - 1];
}
return null;
};
XamDataChart.prototype.zj = function () {
var a = this.aat(7);
if (a.count > 0) {
return a._inner[a.count - 1];
}
return null;
};
XamDataChart.prototype.zk = function () {
var a = this.aat(8);
if (a.count > 0) {
return a._inner[a.count - 1];
}
return null;
};
Object.defineProperty(XamDataChart.prototype, "axes", {
get: function () {
return this.zn;
},
enumerable: false,
configurable: true
});
Object.defineProperty(XamDataChart.prototype, "zq", {
get: function () {
return this.zo;
},
enumerable: false,
configurable: true
});
XamDataChart.prototype.acy = function (a, b) {
if (this.zh != null) {
this.zh.p(a, b);
}
else {
this.zq.clear();
}
};
XamDataChart.prototype.acx = function (a, b) {
var e_96, _a;
if (this.zh != null) {
this.zh.o(a, b);
}
else {
switch (b.action) {
case 0:
if (b.newItems != null) {
for (var c = 0; c < b.newItems.count; c++) {
var d = b.newItems.item(c);
this.zq.insert(c + b.newStartingIndex, d);
}
}
break;
case 1:
if (b.oldItems != null) {
for (var e = 0; e < b.oldItems.count; e++) {
this.zq.removeAt(b.oldStartingIndex);
}
}
break;
case 2:
if (b.oldItems != null) {
for (var f = 0; f < b.oldItems.count; f++) {
this.zq.removeAt(b.oldStartingIndex);
}
}
if (b.newItems != null) {
for (var g = 0; g < b.newItems.count; g++) {
var h = b.newItems.item(g);
this.zq.insert(g + b.newStartingIndex, h);
}
}
break;
case 4:
this.zq.clear();
try {
for (var _b = __values(fromEnum(this.axes)), _c = _b.next(); !_c.done; _c = _b.next()) {
var i = _c.value;
this.zq.add(i);
}
}
catch (e_96_1) {
e_96 = { error: e_96_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_96)
throw e_96.error;
}
}
break;
}
}
};
XamDataChart.prototype.acp = function (a, b) {
var e_97, _a, e_98, _b, e_99, _c;
if (b.oldItems != null) {
try {
for (var _d = __values(fromEn(b.oldItems)), _e = _d.next(); !_e.done; _e = _d.next()) {
var c = _e.value;
if (c != null) {
c.cd = null;
c.b7 = null;
this.s8(c);
this.dw.dz(c);
c.rangeChanged = delegateRemove(c.rangeChanged, runOn(this, this.acs));
this.dw.d0(c);
c.labelMouseClick = delegateRemove(c.labelMouseClick, runOn(this, this.sd));
c.labelMouseEnter = delegateRemove(c.labelMouseEnter, runOn(this, this.sf));
c.labelMouseLeave = delegateRemove(c.labelMouseLeave, runOn(this, this.sg));
c.labelMouseDown = delegateRemove(c.labelMouseDown, runOn(this, this.se));
c.labelMouseUp = delegateRemove(c.labelMouseUp, runOn(this, this.si));
c.labelMouseOver = delegateRemove(c.labelMouseOver, runOn(this, this.sh));
c.panelMouseEnter = delegateRemove(c.panelMouseEnter, runOn(this, this.sl));
c.panelMouseLeave = delegateRemove(c.panelMouseLeave, runOn(this, this.sm));
c.panelMouseOver = delegateRemove(c.panelMouseOver, runOn(this, this.sn));
c.panelMouseDown = delegateRemove(c.panelMouseDown, runOn(this, this.sk));
c.panelMouseUp = delegateRemove(c.panelMouseUp, runOn(this, this.so));
c.panelMouseClick = delegateRemove(c.panelMouseClick, runOn(this, this.sj));
if (c.es != null) {
try {
for (var _f = (e_98 = void 0, __values(fromEnum(c.eo()))), _g = _f.next(); !_g.done; _g = _f.next()) {
var d = _g.value;
d.r8(false);
}
}
catch (e_98_1) {
e_98 = { error: e_98_1 };
}
finally {
try {
if (_g && !_g.done && (_b = _f.return))
_b.call(_f);
}
finally {
if (e_98)
throw e_98.error;
}
}
}
}
}
}
catch (e_97_1) {
e_97 = { error: e_97_1 };
}
finally {
try {
if (_e && !_e.done && (_a = _d.return))
_a.call(_d);
}
finally {
if (e_97)
throw e_97.error;
}
}
if (this.zq.count == 0) {
this.te();
}
}
if (b.newItems != null) {
try {
for (var _h = __values(fromEn(b.newItems)), _j = _h.next(); !_j.done; _j = _h.next()) {
var e = _j.value;
if (e != null) {
this.t1(e);
e.cd = this.actualSyncLink;
e.b7 = this;
e.bp.a8();
this.dw.br(e);
e.rangeChanged = delegateCombine(e.rangeChanged, runOn(this, this.acs));
this.dw.bo(e);
e.labelMouseClick = delegateCombine(e.labelMouseClick, runOn(this, this.sd));
e.labelMouseEnter = delegateCombine(e.labelMouseEnter, runOn(this, this.sf));
e.labelMouseLeave = delegateCombine(e.labelMouseLeave, runOn(this, this.sg));
e.labelMouseDown = delegateCombine(e.labelMouseDown, runOn(this, this.se));
e.labelMouseUp = delegateCombine(e.labelMouseUp, runOn(this, this.si));
e.labelMouseOver = delegateCombine(e.labelMouseOver, runOn(this, this.sh));
e.panelMouseEnter = delegateCombine(e.panelMouseEnter, runOn(this, this.sl));
e.panelMouseLeave = delegateCombine(e.panelMouseLeave, runOn(this, this.sm));
e.panelMouseOver = delegateCombine(e.panelMouseOver, runOn(this, this.sn));
e.panelMouseDown = delegateCombine(e.panelMouseDown, runOn(this, this.sk));
e.panelMouseUp = delegateCombine(e.panelMouseUp, runOn(this, this.so));
e.panelMouseClick = delegateCombine(e.panelMouseClick, runOn(this, this.sj));
}
}
}
catch (e_99_1) {
e_99 = { error: e_99_1 };
}
finally {
try {
if (_j && !_j.done && (_c = _h.return))
_c.call(_h);
}
finally {
if (e_99)
throw e_99.error;
}
}
}
this.p6();
if (!this.aaq && this.gp) {
this.s4();
}
};
XamDataChart.prototype.acr = function (a, b) {
var e_100, _a, e_101, _b, e_102, _c, e_103, _d;
var c = new List$1(Series.$, 0);
try {
for (var _e = __values(fromEnum(this.zq)), _f = _e.next(); !_f.done; _f = _e.next()) {
var d = _f.value;
if (d.es != null) {
try {
for (var _g = (e_101 = void 0, __values(fromEnum(d.eo()))), _h = _g.next(); !_h.done; _h = _g.next()) {
var e = _h.value;
if (!c.contains(e)) {
c.add(e);
}
}
}
catch (e_101_1) {
e_101 = { error: e_101_1 };
}
finally {
try {
if (_h && !_h.done && (_b = _g.return))
_b.call(_g);
}
finally {
if (e_101)
throw e_101.error;
}
}
}
d.cd = null;
d.b7 = null;
this.s8(d);
this.dw.dz(d);
d.rangeChanged = delegateRemove(d.rangeChanged, runOn(this, this.acs));
this.dw.d0(d);
this.te();
}
}
catch (e_100_1) {
e_100 = { error: e_100_1 };
}
finally {
try {
if (_f && !_f.done && (_a = _e.return))
_a.call(_e);
}
finally {
if (e_100)
throw e_100.error;
}
}
try {
for (var _j = __values(fromEnum(this.b9)), _k = _j.next(); !_k.done; _k = _j.next()) {
var f = _k.value;
if (!c.contains(f)) {
c.add(f);
}
}
}
catch (e_102_1) {
e_102 = { error: e_102_1 };
}
finally {
try {
if (_k && !_k.done && (_c = _j.return))
_c.call(_j);
}
finally {
if (e_102)
throw e_102.error;
}
}
try {
for (var _l = __values(fromEnum(c)), _m = _l.next(); !_m.done; _m = _l.next()) {
var g = _m.value;
g.r8(false);
}
}
catch (e_103_1) {
e_103 = { error: e_103_1 };
}
finally {
try {
if (_m && !_m.done && (_d = _l.return))
_d.call(_l);
}
finally {
if (e_103)
throw e_103.error;
}
}
};
XamDataChart.prototype.acq = function (a, b) {
var e_104, _a, e_105, _b;
if (this.aah) {
return;
}
this.aah = true;
if (b.oldItems != null) {
try {
for (var _c = __values(fromEn(b.oldItems)), _d = _c.next(); !_d.done; _d = _c.next()) {
var c = _d.value;
if (c != null) {
if (c.ct) {
this.zi(this).w(c);
}
}
}
}
catch (e_104_1) {
e_104 = { error: e_104_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_104)
throw e_104.error;
}
}
}
if (b.newItems != null && this.zh != null) {
try {
for (var _e = __values(fromEn(b.newItems)), _f = _e.next(); !_f.done; _f = _e.next()) {
var d = _f.value;
if (d != null) {
if (d.ct) {
this.zi(this).b(d);
}
}
}
}
catch (e_105_1) {
e_105 = { error: e_105_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_105)
throw e_105.error;
}
}
}
this.aah = false;
};
XamDataChart.prototype.acs = function (a, b) {
var e_106, _a, e_107, _b, e_108, _c;
var c = typeCast(Axis.$, a);
if (c == null) {
return;
}
this.p6();
if (this.axisRangeChanged != null) {
this.axisRangeChanged(this, new ChartAxisRangeChangedEventArgs(this, c, b.oldMinimumValue, b.minimumValue, b.oldMaximumValue, b.maximumValue));
}
if (c.an != null) {
c.an.lu();
}
c.lu();
var d = this.e8;
if (typeCast(CategoryAxisBase.$, c) !== null) {
d = true;
}
try {
for (var _d = __values(fromEnum(c.eo())), _e = _d.next(); !_e.done; _e = _d.next()) {
var e = _e.value;
e.g6 = true;
this.p6();
e.r8(d);
}
}
catch (e_106_1) {
e_106 = { error: e_106_1 };
}
finally {
try {
if (_e && !_e.done && (_a = _d.return))
_a.call(_d);
}
finally {
if (e_106)
throw e_106.error;
}
}
if (c.b7 != null) {
try {
for (var _f = __values(fromEnum(c.b7.b9)), _g = _f.next(); !_g.done; _g = _f.next()) {
var f = _g.value;
f.qr();
XamDataChart.acv(c, d, f);
}
}
catch (e_107_1) {
e_107 = { error: e_107_1 };
}
finally {
try {
if (_g && !_g.done && (_b = _f.return))
_b.call(_f);
}
finally {
if (e_107)
throw e_107.error;
}
}
}
try {
for (var _h = __values(fromEnum(this.zq)), _j = _h.next(); !_j.done; _j = _h.next()) {
var g = _j.value;
if (g != c && g.an != null && g.an == c) {
g.lu();
}
}
}
catch (e_108_1) {
e_108 = { error: e_108_1 };
}
finally {
try {
if (_j && !_j.done && (_c = _h.return))
_c.call(_h);
}
finally {
if (e_108)
throw e_108.error;
}
}
};
XamDataChart.acv = function (a, b, c) {
};
XamDataChart.prototype.t7 = function (a, b) {
var e_109, _a;
_super.prototype.t7.call(this, a, b);
if (this.zq == null) {
return;
}
try {
for (var _b = __values(fromEnum(this.zq)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
c.cd = this.actualSyncLink;
c.b7 = this;
}
}
catch (e_109_1) {
e_109 = { error: e_109_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_109)
throw e_109.error;
}
}
};
XamDataChart.prototype.getFontInfo = function () {
this.z4 = this.z3.fr;
return this.z4;
};
XamDataChart.prototype.ac2 = function () {
var e_110, _a, e_111, _b;
this.dw.eh();
try {
for (var _c = __values(fromEnum(this.zq)), _d = _c.next(); !_d.done; _d = _c.next()) {
var a = _d.value;
a.ly(false);
}
}
catch (e_110_1) {
e_110 = { error: e_110_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_110)
throw e_110.error;
}
}
try {
for (var _e = __values(fromEnum(this.b9)), _f = _e.next(); !_f.done; _f = _e.next()) {
var b = _f.value;
b.cw.bx();
b.r8(false);
}
}
catch (e_111_1) {
e_111 = { error: e_111_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_111)
throw e_111.error;
}
}
};
XamDataChart.prototype.getFontBrush = function () {
return this.z3.fz;
};
XamDataChart.prototype.o2 = function () {
_super.prototype.o2.call(this);
var a = new List$1(Axis.$, 0);
for (var b = 0; b < this.axes.count; b++) {
a.add(this.axes._inner[b]);
}
for (var c = 0; c < a.count; c++) {
this.axes.remove(a._inner[c]);
if (typeCast(CategoryAxisBase.$, a._inner[c]) !== null) {
var d = a._inner[c];
this.ta(d.name, true);
d.itemsSource = null;
}
a._inner[c].lb(null, null);
}
};
XamDataChart.prototype.xv = function () {
return this.z3.fv;
};
XamDataChart.prototype.gz = function () {
return true;
};
XamDataChart.prototype.t2 = function () {
var e_112, _a;
_super.prototype.t2.call(this);
if (!this.gj) {
return;
}
try {
for (var _b = __values(fromEnum(this.axes)), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
this.t1(a);
}
}
catch (e_112_1) {
e_112 = { error: e_112_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_112)
throw e_112.error;
}
}
};
XamDataChart.prototype.fj = function () {
if (this.aag) {
return true;
}
return this.aac();
};
XamDataChart.prototype.aac = function () {
for (var a = 0; a < this.b9.count; a++) {
if (this.b9._inner[a].fw || this.b9._inner[a].fs) {
return true;
}
}
for (var b = 0; b < this.zq.count; b++) {
if (this.zq._inner[b].dc || this.zq._inner[b].du) {
return true;
}
}
return false;
};
XamDataChart.prototype.dv = function () {
return new XamDataChartView(this);
};
XamDataChart.prototype.rw = function (a) {
_super.prototype.rw.call(this, a);
this.z3 = a;
};
XamDataChart.prototype.s5 = function () {
for (var a = 0; a < this.zn.count; a++) {
this.zn._inner[a].d0 = true;
this.zn._inner[a].ly(false);
}
_super.prototype.s5.call(this);
};
Object.defineProperty(XamDataChart.prototype, "aa7", {
get: function () {
return this.aav;
},
set: function (a) {
var b = this.aav;
this.aav = a;
if (this.aav != b) {
this.z7 = true;
this.sr(XamDataChart.abu, b, this.aav);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(XamDataChart.prototype, "aa9", {
get: function () {
return this.aax;
},
set: function (a) {
var b = this.aax;
this.aax = a;
if (this.aax != b) {
this.z7 = true;
this.sr(XamDataChart.abw, b, this.aax);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(XamDataChart.prototype, "aa8", {
get: function () {
return this.aaw;
},
set: function (a) {
var b = this.aaw;
this.aaw = a;
if (this.aaw != b) {
this.z7 = true;
this.sr(XamDataChart.abv, b, this.aaw);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(XamDataChart.prototype, "aa6", {
get: function () {
return this.aau;
},
set: function (a) {
var b = this.aau;
this.aau = a;
if (this.aau != b) {
this.z7 = true;
this.sr(XamDataChart.abt, b, this.aau);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(XamDataChart.prototype, "abl", {
get: function () {
return this.aa3;
},
set: function (a) {
this.aa3 = a;
this.acu();
},
enumerable: false,
configurable: true
});
Object.defineProperty(XamDataChart.prototype, "abn", {
get: function () {
return this.aa5;
},
set: function (a) {
this.aa5 = a;
this.acu();
},
enumerable: false,
configurable: true
});
Object.defineProperty(XamDataChart.prototype, "abm", {
get: function () {
return this.aa4;
},
set: function (a) {
this.aa4 = a;
this.acu();
},
enumerable: false,
configurable: true
});
Object.defineProperty(XamDataChart.prototype, "abk", {
get: function () {
return this.aa2;
},
set: function (a) {
this.aa2 = a;
this.acu();
},
enumerable: false,
configurable: true
});
XamDataChart.prototype.yt = function (a) {
var b = _super.prototype.yt.call(this, a);
if (a.isEmpty) {
return Rect.empty;
}
if (this.aa7 == 0 && this.aa9 == 0 && this.aa8 == 0 && this.aa6 == 0) {
return b;
}
if (this.aa7 + this.aa8 >= a.width || this.aa9 + this.aa6 >= a.height) {
return b;
}
var c = new Rect(0, a.left + this.aa7, a.top + this.aa9, a.width - this.aa7 - this.aa8, a.height - this.aa9 - this.aa6);
if (this.fj()) {
var d = void 0;
if (c.width > c.height) {
var e = intDivide(truncate((c.width - c.height)), 2);
d = new Rect(0, c.left + e, c.top, c.height, c.height);
}
else {
var f = intDivide(truncate((c.height - c.width)), 2);
d = new Rect(0, c.left, c.top + f, c.width, c.width);
}
return d;
}
return c;
};
XamDataChart.prototype.y0 = function () {
var a = this.y9;
var b = this.za;
var c = this.yv;
if (c.isEmpty || a.isEmpty) {
return a;
}
if (c.containsRect(a)) {
return a;
}
if (a.containsRect(c)) {
return c;
}
return a;
};
XamDataChart.prototype.abs = function () {
return this.zw.exportVisualData(this);
};
XamDataChart.prototype.ab7 = function () {
var cvd_ = this.abs();
cvd_.scaleByViewport();
return (cvd_.serialize());
};
XamDataChart.prototype.r5 = function () {
_super.prototype.r5.call(this);
for (var a = 0; a < this.zq.count; a++) {
var b = this.zq._inner[a];
var c = 50;
if (!isNaN_(b.a1.bm)) {
c = b.a1.bm;
}
b.fp = c;
}
};
XamDataChart.prototype.s7 = function () {
_super.prototype.s7.call(this);
for (var a = 0; a < this.zq.count; a++) {
var b = this.zq._inner[a];
b.fp = NaN;
b.d0 = true;
b.ly(false);
}
};
XamDataChart.prototype.aas = function (a) {
var e_113, _a;
var b = new List$1(Axis.$, 0);
try {
for (var _b = __values(fromEnum(this.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
var d = c.aw(a);
if (d != null) {
b.add(d);
}
}
}
catch (e_113_1) {
e_113 = { error: e_113_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_113)
throw e_113.error;
}
}
return b;
};
XamDataChart.$t = markType(XamDataChart, 'XamDataChart', SeriesViewer.$);
XamDataChart.abf = 0;
XamDataChart.abe = 0;
XamDataChart.abu = "ActualPlotAreaMarginLeft";
XamDataChart.abw = "ActualPlotAreaMarginTop";
XamDataChart.abv = "ActualPlotAreaMarginRight";
XamDataChart.abt = "ActualPlotAreaMarginBottom";
XamDataChart.$$p = markDep(DependencyProperty, PropertyMetadata, XamDataChart, 'sr', ['AlignsGridLinesToPixels:aaa:ac4', [0, true], 'AutoExpandMarginExtraPadding:abc:ac5', [1, DeviceUtils.g(2)], 'AutoExpandMarginMaximumValue:abd:ac6', [1, 60], 'AutoMarginAndAngleUpdateMode:zg:ac7', [AutoMarginsAndAngleUpdateMode_$type, enumGetBox(AutoMarginsAndAngleUpdateMode_$type, 0)], 'ComputedPlotAreaMarginMode:zr:ac8', [ComputedPlotAreaMarginMode_$type, enumGetBox(ComputedPlotAreaMarginMode_$type, 0)], 'DefaultAxisMajorStroke:adt:ac9', [Brush.$, null], 'DefaultAxisMinorStroke:adu:ada', [Brush.$, null], 'DefaultAxisStroke:adv:adb', [Brush.$, null], 'GridMode:zu:adc', [GridMode_$type, enumGetBox(GridMode_$type, 2)], 'HorizontalZoomable:aad:add', [0, false], 'InitialCloseGridlinesThreshold:abh:ade', [1, NaN], 'IsHorizontalZoomEnabled:aae:adf', [0, false], 'IsSquare:aag:adg', [0, false], 'IsVerticalZoomEnabled:aai:adh', [0, false], 'SeriesPlotAreaMarginHorizontalMode:zz:adi', [SeriesPlotAreaMarginHorizontalMode_$type, enumGetBox(SeriesPlotAreaMarginHorizontalMode_$type, 0)], 'SeriesPlotAreaMarginVerticalMode:z2:adj', [SeriesPlotAreaMarginVerticalMode_$type, enumGetBox(SeriesPlotAreaMarginVerticalMode_$type, 0)], 'ShouldAutoExpandMarginForInitialLabels:aal:adk', [0, false], 'ShouldClipGridlines:aam:adl', [0, true], 'ShouldClipInitialCloseGridlines:aan:adm', [0, true], 'ShouldConsiderAutoRotationForInitialLabels:aao:adn', [0, false], 'ShouldSuppressAxisLabelTruncation:aap:ado', [0, false], 'SuppressAutoMarginAndAngleRecalculation:aaq:adp', [0, false], 'VerticalZoomable:aar:adq', [0, false], 'WindowScaleHorizontal:abp:adr', [1, NaN], 'WindowScaleVertical:abq:ads', [1, NaN]]);
return XamDataChart;
}(SeriesViewer));
export { XamDataChart };
/**
* @hidden
*/
var LabelPanelArranger = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(LabelPanelArranger, _super);
function LabelPanelArranger() {
return _super !== null && _super.apply(this, arguments) || this;
}
LabelPanelArranger.e = function (a, b) {
var e_114, _a;
try {
for (var _b = __values(fromEnum(a)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
var d = c.ae;
var e = d.an;
e = LabelPanelArranger.a(c, d, e);
var f = LabelPanelArranger.b(c);
var g = 0;
var h = 0;
var i = 0;
if (d.db()) {
c.ag.ab();
i = c.bm;
}
else {
i = c.bn(b);
}
g = i;
h = i;
if (c.ae.a4 != null && c.ae.a4.visibility != 0) {
h = 0;
g = 0;
}
if (c.as()) {
switch (f) {
case 0:
b.y = Math.max(0, b.top + h);
b.height = Math.max(0, b.height - h);
d.a4.c = 0;
break;
case 4:
if (e != null && (c.bl - b.top < h && typeCast(HorizontalAxisLabelPanel.$, c) !== null)) {
d.a4.c = 5;
}
else {
d.a4.c = 4;
}
break;
case 5:
if (e != null && (b.bottom - c.bl < h && typeCast(HorizontalAxisLabelPanel.$, c) !== null)) {
if (d.a4 != null) {
d.a4.c = 4;
}
}
else {
if (d.a4 != null) {
d.a4.c = 5;
}
}
break;
case 1:
default:
if (d.a4 != null) {
d.a4.c = 1;
}
b.height = Math.max(0, b.height - h);
break;
}
}
if (typeCast(VerticalAxisLabelPanel.$, c) !== null) {
switch (f) {
case 3:
b.width = Math.max(0, b.width - g);
d.a4.c = 3;
break;
case 6:
if (e != null && c.bl - b.left < g) {
d.a4.c = 7;
}
else {
d.a4.c = 6;
}
break;
case 7:
if (e != null && b.right - c.bl < g) {
d.a4.c = 6;
}
else {
d.a4.c = 7;
}
break;
case 2:
default:
if (d.a4 != null) {
d.a4.c = 2;
}
b.x = Math.max(0, b.left + g);
b.width = Math.max(0, b.width - g);
break;
}
}
if (c.ae.dc) {
if (d.a4 != null) {
d.a4.c = f;
}
}
}
}
catch (e_114_1) {
e_114 = { error: e_114_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_114)
throw e_114.error;
}
}
return b;
};
LabelPanelArranger.a = function (a, b, c) {
return b.ap();
};
LabelPanelArranger.b = function (a) {
if (a == null) {
return 1;
}
else {
var b = a.ae;
if (b != null && b.a4 != null) {
var c = b.a4.c;
if (!a.a3(c)) {
return a.aj();
}
return c;
}
else {
return a.aj();
}
}
};
LabelPanelArranger.c = function (a, b, c, d) {
var e = a.ae;
var f = e.an;
f = LabelPanelArranger.a(a, e, f);
var g = LabelPanelArranger.b(a);
var h;
var i = a.bn(c);
var j = Math.max(0, i);
var k = Math.max(0, i);
if (a.ae != null && a.ae.a4 != null && a.ae.a4.visibility == 1) {
return;
}
switch (g) {
case 3:
b.g = b.g - k;
b.d = b.d - k;
h = new Rect(0, b.g, c.top, k, c.height);
d(a, h);
break;
case 2:
h = new Rect(0, b.f, c.top, k, c.height);
d(a, h);
b.f = b.f + k;
b.c = b.c + k;
break;
case 7:
if (f != null) {
h = new Rect(0, b.f + a.bl, c.top, k, c.height);
}
else {
b.d = b.d - k;
h = new Rect(0, b.d, c.top, k, c.height);
}
d(a, h);
break;
case 6:
if (f != null) {
h = new Rect(0, b.f + a.bl - k, c.top, k, c.height);
}
else {
h = new Rect(0, b.c, c.top, k, c.height);
b.c = b.c + k;
}
d(a, h);
break;
case 1:
b.a = b.a - j;
b.b = b.b - j;
h = new Rect(0, c.left, b.a, c.width, j);
d(a, h);
break;
case 0:
h = new Rect(0, c.left, b.h, c.width, j);
d(a, h);
b.h = b.h + j;
b.e = b.e + j;
break;
case 5:
if (f != null) {
h = new Rect(0, c.left, b.h + a.bl, c.width, j);
}
else {
b.b = b.b - j;
h = new Rect(0, c.left, b.b, c.width, j);
}
d(a, h);
break;
case 4:
if (f != null) {
h = new Rect(0, c.left, b.h + a.bl - j, c.width, j);
}
else {
h = new Rect(0, c.left, b.e, c.width, j);
b.e = b.e + j;
}
d(a, h);
break;
}
if (a.ae.dc) {
h = new Rect(0, c.left, c.top, c.width, c.height);
d(a, h);
}
};
LabelPanelArranger.d = function (a, b, c, d) {
var e_115, _a, e_116, _b, e_117, _c;
var e = new List$1(AxisLabelPanelBase.$, 0);
var f = new List$1(AxisLabelPanelBase.$, 0);
try {
for (var _d = __values(fromEnum(a)), _e = _d.next(); !_e.done; _e = _d.next()) {
var g = _e.value;
var h = LabelPanelArranger.b(g);
switch (h) {
case 1:
case 2:
case 0:
case 3:
f.add(g);
break;
case 5:
case 6:
case 4:
case 7:
e.add(g);
break;
}
}
}
catch (e_115_1) {
e_115 = { error: e_115_1 };
}
finally {
try {
if (_e && !_e.done && (_a = _d.return))
_a.call(_d);
}
finally {
if (e_115)
throw e_115.error;
}
}
try {
for (var _f = __values(fromEnum(f)), _g = _f.next(); !_g.done; _g = _f.next()) {
var i = _g.value;
LabelPanelArranger.c(i, b, c, d);
}
}
catch (e_116_1) {
e_116 = { error: e_116_1 };
}
finally {
try {
if (_g && !_g.done && (_b = _f.return))
_b.call(_f);
}
finally {
if (e_116)
throw e_116.error;
}
}
try {
for (var _h = __values(fromEnum(e)), _j = _h.next(); !_j.done; _j = _h.next()) {
var j = _j.value;
LabelPanelArranger.c(j, b, c, d);
}
}
catch (e_117_1) {
e_117 = { error: e_117_1 };
}
finally {
try {
if (_j && !_j.done && (_c = _h.return))
_c.call(_h);
}
finally {
if (e_117)
throw e_117.error;
}
}
};
LabelPanelArranger.$t = markType(LabelPanelArranger, 'LabelPanelArranger');
return LabelPanelArranger;
}(Base));
export { LabelPanelArranger };
/**
* @hidden
*/
var ChartContentManager = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ChartContentManager, _super);
function ChartContentManager(a) {
var _this = _super.call(this) || this;
_this.l = null;
_this.r = new Dictionary$2(ChartContentType_$type, Dictionary$2.$.specialize(DependencyObject.$, ContentInfo.$), 0);
_this.t = new List$1(Series.$, 0);
_this.m = false;
_this.v = null;
_this.q = false;
_this.o = false;
_this.n = false;
_this.p = false;
_this.p = true;
_this.o = true;
_this.n = true;
_this.r.addItem(0, new Dictionary$2(DependencyObject.$, ContentInfo.$, 0));
_this.r.addItem(1, new Dictionary$2(DependencyObject.$, ContentInfo.$, 0));
_this.r.addItem(2, new Dictionary$2(DependencyObject.$, ContentInfo.$, 0));
_this.l = a;
return _this;
}
Object.defineProperty(ChartContentManager.prototype, "u", {
get: function () {
return this.t;
},
set: function (a) {
this.t = a;
},
enumerable: false,
configurable: true
});
ChartContentManager.prototype.k = function (a, b, c) {
var d = this.j(a, b);
d.a = c;
return d;
};
ChartContentManager.prototype.ad = function (a, b) {
var c = this.r.item(a);
if (c.containsKey(b)) {
c.removeItem(b);
}
var d = typeCast(Series.$, b);
if (d != null && this.u.contains(d)) {
this.u.remove(d);
}
};
ChartContentManager.prototype.aa = function (a) {
var b = this.v;
this.v = a;
if (this.m && b == null && this.v != null) {
this.v.setTimeout(runOn(this, this.w), 0);
}
};
ChartContentManager.prototype.z = function () {
if (!this.m) {
this.m = true;
if (this.v != null) {
this.v.setTimeout(runOn(this, this.w), 0);
}
else {
}
}
};
ChartContentManager.prototype.ac = function (a, b, c, d) {
var e = c;
if (!e.c) {
e.b = d;
}
else {
if (!d) {
e.b = false;
}
}
if (!e.c) {
e.c = true;
this.z();
}
};
ChartContentManager.prototype.j = function (a, b) {
var c = this.r.item(a);
var d = null;
if (!((function () { var e = c.tryGetValue(b, d); d = e.p1; return e.ret; })())) {
d = new ContentInfo();
d.h = b;
c.addItem(b, d);
var e = typeCast(Series.$, b);
if (e != null && !this.u.contains(e)) {
if (e.isFragment) {
var f = e.bq();
var g = this.u.indexOf(f) + 1;
g += e.kg();
if (this.u.count <= g || f.kl() == 0 || g == -1) {
this.u.add(e);
}
else {
this.u.insert(g, e);
}
}
else {
this.u.add(e);
}
}
}
return d;
};
ChartContentManager.prototype.y = function () {
this.w();
};
ChartContentManager.prototype.w = function () {
var e_118, _a;
if (this.l == null || this.r == null) {
return;
}
if (!this.m) {
return;
}
this.m = false;
if (this.l != null) {
this.l.oo();
}
try {
for (var _b = __values(fromEnum(this.s())), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
a.f();
}
}
catch (e_118_1) {
e_118 = { error: e_118_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_118)
throw e_118.error;
}
}
if (!this.m) {
this.l.ss();
}
};
ChartContentManager.prototype._s = function () {
var a, _a, _b, b, e_119_1, c, _c, _d, d, _e, _f, e, _g, _h, f, e_120_1, _j, _k, g, e_121_1;
var e_119, _l, e_122, _m, e_123, _o, e_120, _p, e_121, _q;
return __generator(this, function (_r) {
switch (_r.label) {
case 0:
a = null;
a = this.r.item(1);
_r.label = 1;
case 1:
_r.trys.push([1, 6, 7, 8]);
_a = __values(fromEnum(a.values)), _b = _a.next();
_r.label = 2;
case 2:
if (!!_b.done)
return [3 /*break*/, 5];
b = _b.value;
return [4 /*yield*/, b];
case 3:
_r.sent();
_r.label = 4;
case 4:
_b = _a.next();
return [3 /*break*/, 2];
case 5: return [3 /*break*/, 8];
case 6:
e_119_1 = _r.sent();
e_119 = { error: e_119_1 };
return [3 /*break*/, 8];
case 7:
try {
if (_b && !_b.done && (_l = _a.return))
_l.call(_a);
}
finally {
if (e_119)
throw e_119.error;
}
return [7 /*endfinally*/];
case 8:
a = this.r.item(0);
c = new List$1(ContentInfo.$, 0);
try {
for (_c = __values(fromEnum(this.u)), _d = _c.next(); !_d.done; _d = _c.next()) {
d = _d.value;
if (!d.ev) {
c.add(a.item(d));
}
}
}
catch (e_122_1) {
e_122 = { error: e_122_1 };
}
finally {
try {
if (_d && !_d.done && (_m = _c.return))
_m.call(_c);
}
finally {
if (e_122)
throw e_122.error;
}
}
try {
for (_e = __values(fromEnum(this.u)), _f = _e.next(); !_f.done; _f = _e.next()) {
e = _f.value;
if (e.ev) {
c.add(a.item(e));
}
}
}
catch (e_123_1) {
e_123 = { error: e_123_1 };
}
finally {
try {
if (_f && !_f.done && (_o = _e.return))
_o.call(_e);
}
finally {
if (e_123)
throw e_123.error;
}
}
_r.label = 9;
case 9:
_r.trys.push([9, 14, 15, 16]);
_g = __values(fromEnum(c)), _h = _g.next();
_r.label = 10;
case 10:
if (!!_h.done)
return [3 /*break*/, 13];
f = _h.value;
return [4 /*yield*/, f];
case 11:
_r.sent();
_r.label = 12;
case 12:
_h = _g.next();
return [3 /*break*/, 10];
case 13: return [3 /*break*/, 16];
case 14:
e_120_1 = _r.sent();
e_120 = { error: e_120_1 };
return [3 /*break*/, 16];
case 15:
try {
if (_h && !_h.done && (_p = _g.return))
_p.call(_g);
}
finally {
if (e_120)
throw e_120.error;
}
return [7 /*endfinally*/];
case 16:
a = this.r.item(2);
_r.label = 17;
case 17:
_r.trys.push([17, 22, 23, 24]);
_j = __values(fromEnum(a.values)), _k = _j.next();
_r.label = 18;
case 18:
if (!!_k.done)
return [3 /*break*/, 21];
g = _k.value;
return [4 /*yield*/, g];
case 19:
_r.sent();
_r.label = 20;
case 20:
_k = _j.next();
return [3 /*break*/, 18];
case 21: return [3 /*break*/, 24];
case 22:
e_121_1 = _r.sent();
e_121 = { error: e_121_1 };
return [3 /*break*/, 24];
case 23:
try {
if (_k && !_k.done && (_q = _j.return))
_q.call(_j);
}
finally {
if (e_121)
throw e_121.error;
}
return [7 /*endfinally*/];
case 24: return [2 /*return*/];
}
});
};
ChartContentManager.prototype.s = function () {
var _this = this;
return toEnum(function () { return _this._s(); });
};
ChartContentManager.prototype.x = function (a) {
var e_124, _a, e_125, _b, e_126, _c;
try {
for (var _d = __values(fromEnum(this.r.item(1).values)), _e = _d.next(); !_e.done; _e = _d.next()) {
var b = _e.value;
b.h.k7(a);
}
}
catch (e_124_1) {
e_124 = { error: e_124_1 };
}
finally {
try {
if (_e && !_e.done && (_a = _d.return))
_a.call(_d);
}
finally {
if (e_124)
throw e_124.error;
}
}
try {
for (var _f = __values(fromEnum(this.r.item(1).values)), _g = _f.next(); !_g.done; _g = _f.next()) {
var c = _g.value;
c.f();
}
}
catch (e_125_1) {
e_125 = { error: e_125_1 };
}
finally {
try {
if (_g && !_g.done && (_b = _f.return))
_b.call(_f);
}
finally {
if (e_125)
throw e_125.error;
}
}
try {
for (var _h = __values(fromEnum(this.r.item(1).values)), _j = _h.next(); !_j.done; _j = _h.next()) {
var d = _j.value;
d.h.l7();
}
}
catch (e_126_1) {
e_126 = { error: e_126_1 };
}
finally {
try {
if (_j && !_j.done && (_c = _h.return))
_c.call(_h);
}
finally {
if (e_126)
throw e_126.error;
}
}
};
ChartContentManager.prototype.ae = function (a, b, c, d) {
c.i = d;
};
ChartContentManager.prototype.ab = function (a, b) {
if (!b.e) {
b.e = true;
this.z();
}
};
ChartContentManager.$t = markType(ChartContentManager, 'ChartContentManager', DependencyObject.$);
return ChartContentManager;
}(DependencyObject));
export { ChartContentManager };
/**
* @hidden
*/
var ContentInfo = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ContentInfo, _super);
function ContentInfo() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.h = null;
_this.a = null;
_this.b = false;
_this.c = false;
_this.i = null;
_this.e = false;
return _this;
}
Object.defineProperty(ContentInfo.prototype, "d", {
get: function () {
if (this.i.isEmpty) {
return false;
}
if (this.i.width == 0 && this.i.height == 0) {
return false;
}
return true;
},
enumerable: false,
configurable: true
});
ContentInfo.prototype.g = function () {
if (this.e && typeCast(Axis.$, this.h) !== null) {
this.e = false;
var a = this.c;
this.c = true;
var b = this.h.ee(true);
if (!b) {
this.c = a;
}
}
};
ContentInfo.prototype.f = function () {
this.g();
if (typeCast(Axis.$, this.h) !== null) {
var a = typeCast(Axis.$, this.h);
if (a.an != null) {
var b = a.an;
if (b.bq != null && b.bq.e) {
b.bq.g();
}
}
}
if (this.c) {
this.c = false;
this.a(this.b);
this.b = false;
}
};
ContentInfo.$t = markType(ContentInfo, 'ContentInfo');
return ContentInfo;
}(Base));
export { ContentInfo };
/**
* @hidden
*/
var Series = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(Series, _super);
function Series() {
var _this = _super.call(this) || this;
_this.mb = null;
_this.cw = null;
_this.kp = 0;
_this.w3 = null;
_this.ez = false;
_this.j7 = null;
_this.cd = null;
_this.dr = null;
_this.bb = null;
_this.a9 = null;
_this.dd = null;
_this.td = null;
_this.hn = new Dictionary$2(String_$type, String_$type, 0);
_this.hm = new Dictionary$2(String_$type, FastReflectionHelper.$, 0);
_this.kr = null;
_this.propertyChanged = null;
_this.propertyUpdated = null;
_this.d9 = false;
_this.transitionOutCompleted = null;
_this.renderRequested = null;
_this.bu = 1;
_this.ce = new SeriesLayerPropertyOverlayCollection();
_this.b5 = null;
_this.dw = false;
_this.renderValid = null;
_this.g7 = false;
_this.ha = false;
_this.gq = false;
_this.cv = null;
_this.a1 = null;
_this.dz = true;
_this.h1 = new Stack$1(String_$type);
_this.gx = false;
_this.gy = false;
_this.d0 = false;
_this.d1 = false;
_this.as = null;
_this.at = null;
_this.d8 = false;
_this.c3 = null;
_this.db = null;
_this.h4 = null;
_this.bi = null;
_this.dq = null;
_this.j4 = null;
_this.ta = null;
_this.a4 = null;
_this.c2 = 0;
_this.c1 = 0;
_this.ec = false;
_this.dy = false;
_this.h8 = DeviceUtils.g(1);
_this.ic = NaN;
_this.h9 = NaN;
_this.ia = NaN;
_this.ib = NaN;
_this.v0 = null;
_this.v2 = null;
_this.v3 = BrushUtil.j(255, 255, 0, 0);
_this.v1 = BrushUtil.j(255, 255, 0, 0);
_this.is = DeviceUtils.g(2);
_this.bx = 1;
_this.co = 1;
_this.cn = 1;
_this.h6 = 0.2;
_this.h7 = 0.2;
_this.d3 = false;
_this.dx = false;
_this.eh = false;
_this.h0 = null;
_this.dv = false;
_this.cx = 1;
_this.ch = 1;
_this.ku = null;
_this.eb = false;
_this.br = new SeriesComponentsForView();
_this.d2 = false;
_this.lb = null;
_this.j6 = null;
_this._coercionMethods = null;
_this.du = false;
_this.b1 = 0;
_this.b0 = 0;
_this.dt = null;
_this.wq = { $type: Point_$type, x: NaN, y: NaN };
_this.id = NaN;
_this.ie = NaN;
_this.hr = new Dictionary$2(SeriesLayer.$, Series.$, 0);
_this.hx = new List$1(Series.$, 0);
_this.b6 = null;
_this.b9 = new SeriesLayerCollection();
_this.b8 = new SeriesLayerCollection();
_this.b7 = new SeriesLayerCollection();
_this.hu = new HashSet$1(String_$type, 0);
_this.bo = null;
_this.bl = null;
_this.hs = new Dictionary$2(String_$type, Number_$type, 0);
_this.ho = new Dictionary$2(String_$type, Stack$1.$.specialize(Boolean_$type), 0);
_this.a8 = null;
DVContainer.instance.registerIfLoaded("AnnotationFactoryManager");
DVContainer.instance.registerIfLoaded("InteractivityFactoryManager");
DVContainer.instance.registerIfLoaded("VisualDataFactoryManager");
_this.kp = Series.j9++;
_this.g6 = true;
_this.w3 = Rect.empty;
_this.cw = _this.ct();
_this.cw.b9 = Rect.empty;
_this.rh(_this.cw);
_this.cw.q = true;
_this.cw.a4();
_this.cw.q = false;
_this.ab = Series.$;
_this.cd = new SeriesLayerManager();
_this.cd.a = _this;
_this.dq = function (a, b) {
if (_this.dc == null || !_this.dc.fr) {
_this.s9(b.oldRect, b.newRect);
}
};
_this.bi = function (a, b) { return _this.rq(a, b.propertyName, b.oldValue, b.newValue); };
_this.j4 = function (a, b) {
if (_this.dc != null) {
_this.g6 = true;
_this.dc.p7();
}
_this.po(b.action, b.position, b.count, b.propertyName);
};
_this.propertyUpdated = delegateCombine(_this.propertyUpdated, function (a, b) { return _this.rq(a, b.propertyName, b.oldValue, b.newValue); });
var a = _this.b9;
a.collectionResetting = delegateCombine(a.collectionResetting, runOn(_this, _this.o7));
var b = _this.b9;
b.collectionChanged = delegateCombine(b.collectionChanged, runOn(_this, _this.o6));
var c = _this.b8;
c.collectionResetting = delegateCombine(c.collectionResetting, runOn(_this, _this.o3));
var d = _this.b8;
d.collectionChanged = delegateCombine(d.collectionChanged, runOn(_this, _this.o2));
var e = _this.b7;
e.collectionResetting = delegateCombine(e.collectionResetting, runOn(_this, _this.o1));
var f = _this.b7;
f.collectionChanged = delegateCombine(f.collectionChanged, runOn(_this, _this.o0));
var g = _this.ce;
g.collectionResetting = delegateCombine(g.collectionResetting, runOn(_this, _this.o5));
var h = _this.ce;
h.collectionChanged = delegateCombine(h.collectionChanged, runOn(_this, _this.o4));
_this.td = new Canvas();
_this.dd = new DoubleAnimator(0, 1, _this.km);
var i = _this.dd;
i.propertyChanged = delegateCombine(i.propertyChanged, runOn(_this, _this.o8));
_this.g(Series.vn, ((function () {
var $ret = new Binding(1, "Visibility");
$ret.d = _this;
return $ret;
})()));
_this.b2 = _this.b3();
_this.cy = _this.cz();
return _this;
}
Series.prototype.p0 = function (a) {
Series.pz(this, a, false);
};
Series.prototype.gi = function () {
if (this.dc != null && this.dc.gx()) {
return true;
}
return false;
};
Series.prototype.get_dataLegendKey = function () {
if (!stringIsNullOrEmpty(this.name)) {
return this.name;
}
return "Index___" + this.index.toString();
};
Object.defineProperty(Series.prototype, "dataLegendKey", {
get: function () {
return this.get_dataLegendKey();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "group", {
get: function () {
if (this.bo != null && !stringIsNullOrEmpty(this.mu)) {
return this.mu;
}
if (!stringIsNullOrEmpty(this.me)) {
return this.me;
}
return this.mn();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "parentKey", {
get: function () {
return this.bo != null ? this.bo.dataLegendKey : this.dataLegendKey;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "parentTitle", {
get: function () {
if (this.bo != null) {
return this.bo.title.toString();
}
if (this.title != null) {
return this.title.toString();
}
return "SeriesNoTitle";
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "j8", {
get: function () {
return this.j7;
},
set: function (a) {
this.j7 = a;
this.dd.u(this.j7);
},
enumerable: false,
configurable: true
});
Series.prototype.provideRenderer = function (a) {
this.j8 = a;
};
Series.prototype.np = function () {
return this.ba.a$v(this);
};
Series.prototype.kf = function () {
return this.bo.actualLayers.indexOf(this.b6);
};
Series.prototype.o6 = function (a, b) {
this.cd.h(this, this.b9, b);
};
Series.prototype.o7 = function (a, b) {
this.cd.j(this, this.b9, b);
};
Series.prototype.o2 = function (a, b) {
this.cd.e(this, this.b9, b);
};
Series.prototype.o3 = function (a, b) {
this.cd.f(this, this.b9, b);
};
Series.prototype.o0 = function (a, b) {
this.cd.c(this, this.b9, b);
if (this.dc != null) {
this.dc.p0();
}
};
Series.prototype.o1 = function (a, b) {
this.cd.d(this, this.b9, b);
if (this.dc != null) {
this.dc.p0();
}
};
Series.prototype.o4 = function (a, b) {
var e_127, _a;
switch (b.action) {
case 0:
if (b.newItems != null) {
for (var c = 0; c < b.newItems.count; c++) {
var d = b.newItems.item(c);
d.o = true;
this.rb(c + b.newStartingIndex, d);
}
}
break;
case 1:
if (b.oldItems != null) {
for (var e = 0; e < b.oldItems.count; e++) {
var f = b.oldItems.item(e);
this.rc(f, b.oldStartingIndex);
}
}
break;
case 2:
if (b.oldItems != null) {
for (var g = 0; g < b.oldItems.count; g++) {
var h = b.oldItems.item(g);
this.rc(h, b.oldStartingIndex);
}
}
if (b.newItems != null) {
for (var i = 0; i < b.newItems.count; i++) {
var j = b.newItems.item(i);
this.rb(i + b.newStartingIndex, j);
}
}
break;
case 4:
this.q5();
var k = 0;
try {
for (var _b = __values(fromEnum(this.ce)), _c = _b.next(); !_c.done; _c = _b.next()) {
var l = _c.value;
var m = l;
this.rb(k, m);
k++;
}
}
catch (e_127_1) {
e_127 = { error: e_127_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_127)
throw e_127.error;
}
}
break;
}
};
Series.prototype.q5 = function () {
var e_128, _a, e_129, _b, e_130, _c;
var a = this.b5;
if (a != null) {
var b = new List$1(SeriesLayerPropertyOverlay.$, 0);
var c = new List$1(SeriesLayerPropertyOverlay.$, 0);
try {
for (var _d = __values(fromEnum(a.m)), _e = _d.next(); !_e.done; _e = _d.next()) {
var d = _e.value;
if (d.o) {
b.add(d);
}
}
}
catch (e_128_1) {
e_128 = { error: e_128_1 };
}
finally {
try {
if (_e && !_e.done && (_a = _d.return))
_a.call(_d);
}
finally {
if (e_128)
throw e_128.error;
}
}
try {
for (var _f = __values(fromEnum(b)), _g = _f.next(); !_g.done; _g = _f.next()) {
var e = _g.value;
a.m.remove(e);
if (e.k != null) {
c.add(e.k);
}
}
}
catch (e_129_1) {
e_129 = { error: e_129_1 };
}
finally {
try {
if (_g && !_g.done && (_b = _f.return))
_b.call(_f);
}
finally {
if (e_129)
throw e_129.error;
}
}
try {
for (var _h = __values(fromEnum(c)), _j = _h.next(); !_j.done; _j = _h.next()) {
var f = _j.value;
a.m.add(f);
}
}
catch (e_130_1) {
e_130 = { error: e_130_1 };
}
finally {
try {
if (_j && !_j.done && (_c = _h.return))
_c.call(_h);
}
finally {
if (e_130)
throw e_130.error;
}
}
}
};
Series.prototype.rc = function (a, b) {
var c = this.b5;
if (c != null) {
var d = c.m.indexOf(a);
if (d >= 0) {
var e = c.m._inner[d];
c.m.removeAt(d);
if (e.k != null) {
c.m.insert(d, a);
}
}
}
};
Series.prototype.rb = function (a, b) {
var e_131, _a;
var c = this.b5;
if (c != null) {
var d = new Dictionary$2(String_$type, SeriesLayerPropertyOverlay.$, 0);
try {
for (var _b = __values(fromEnum(c.m)), _c = _b.next(); !_c.done; _c = _b.next()) {
var e = _c.value;
d.addItem(e.ad, b);
}
}
catch (e_131_1) {
e_131 = { error: e_131_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_131)
throw e_131.error;
}
}
if (d.containsKey(b.ad)) {
b.k = d.item(b.ad);
c.m.remove(d.item(b.ad));
}
c.m.add(b);
}
};
Series.prototype.o5 = function (a, b) {
this.q5();
};
Series.prototype.s3 = function (a) {
};
Series.prototype.s2 = function (a) {
};
Series.prototype.s4 = function (a) {
};
Series.prototype.o8 = function (a, b) {
this.jz = this.dd.o;
};
Object.defineProperty(Series.prototype, "ds", {
get: function () {
if (this.dr == null) {
this.dr = new SRProvider(this.j8);
}
if (this.dr.l == null) {
if (this.j8 != null) {
this.dr.l = this.j8;
}
else if (this.dc != null && this.dc.dw != null && this.dc.dw.j != null && this.dc.dw.j.ae != null) {
this.dr.l = this.dc.dw.j.ae;
}
}
return this.dr;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "bc", {
get: function () {
var _this = this;
if (this.bb == null) {
this.bb = DVContainer.instance.createInstance(ISeriesVisualDataManager_$type, function () { return _this.ds.q; });
}
return this.bb;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "ht", {
get: function () {
return this.ba.a$k;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "ba", {
get: function () {
var _this = this;
if (this.a9 == null) {
this.a9 = DVContainer.instance.createInstance(ISeriesInteractionManager_$type, function () { return _this.ds.n; });
if (this.toolTip != null) {
this.a9.a$at(this, this.toolTip);
}
}
return this.a9;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "fl", {
get: function () {
return DVContainer.instance.checkLoaded("InteractivityFactoryManager");
},
enumerable: false,
configurable: true
});
Series.prototype.rh = function (a) {
};
Series.prototype.re = function () {
this.o9(this.a5, this.a5);
if (this.dp == null && this.c4 != null && this.itemsSource != null) {
this.dp = this.c4.getFastItemsSource(this.itemsSource);
}
this.cw.a7();
};
Series.prototype.rf = function () {
this.ph();
if (this.dp != null && this.c4 != null && this.itemsSource != null) {
this.dp = this.c4.releaseFastItemsSource(this.itemsSource);
}
this.cw.a8();
};
Series.prototype.cu = function () {
return this.ct();
};
Series.prototype.ct = function () {
return new SeriesView(this);
};
Series.prototype.hh = function () {
return false;
};
Series.prototype.kz = function (a, b) {
return null;
};
Series.prototype.mo = function (a) {
return null;
};
Series.prototype.onLegendItemOver = function (a) {
};
Series.prototype.onLegendItemPointerUp = function (a) {
};
Series.prototype.onLegendItemPointerDown = function (a) {
};
Series.prototype.onLegendItemEnter = function (a) {
if (this.fh && this.fl && this.dc != null && (this.dc.bs == 0 || this.dc.bs == 2) && this.by != 1) {
this.ba.a$ac(this, a, { $type: Point_$type, x: NaN, y: NaN }, false, true, false, a == null, this == this.dc.b5, false);
}
};
Series.prototype.onLegendItemLeave = function (a) {
if (this.fh && this.fl && this.dc != null && (this.dc.bs == 0 || this.dc.bs == 2) && this.by != 1) {
this.ba.a$ac(this, a, { $type: Point_$type, x: NaN, y: NaN }, false, true, true, a == null, this == this.dc.b5, a != null);
}
};
Series.prototype.no = function (a) {
if (!this.hn.containsKey(a)) {
var b = a.substr(0, 1).toUpperCase() + a.substr(1);
this.hn.addItem(a, b);
}
return this.hn.item(a);
};
Series.prototype.k0 = function (a, b, c) {
var d = null;
if (!this.hm.containsKey(b)) {
d = new FastReflectionHelper(false, c);
this.hm.addItem(b, d);
}
else {
d = this.hm.item(b);
}
d.propertyName = c;
var e = d.getPropertyValue(a);
if (this.expectFunctions) {
var func_ = e;
var item_ = a;
if ((typeof func_ === 'function')) {
e = func_.apply(item_);
}
}
return e;
};
Series.prototype.iy = function (a) {
return this.kc(a);
};
Series.prototype.ke = function (a) {
return -1;
};
Series.prototype.get_fv = function () {
return false;
};
Object.defineProperty(Series.prototype, "fv", {
get: function () {
return this.get_fv();
},
enumerable: false,
configurable: true
});
Series.prototype.a0 = function () {
return null;
};
Series.prototype.kc = function (a) {
return -1;
};
Series.prototype.xf = function () {
var a = 1;
var b = 1;
if (this.dc != null) {
a = this.dc.ci;
b = this.dc.ck;
}
return this.xg(a, b);
};
Series.prototype.xh = function (a, b) {
return this.xg(a, b);
};
Series.prototype.xg = function (a, b) {
return new Thickness(1, 0, 0, 0, 0);
};
Series.prototype.cl = function () {
return 1;
};
Series.prototype.cm = function () {
return 1;
};
Series.prototype.kw = function (a) {
return null;
};
Series.prototype.qi = function (a, b, c) {
};
Series.prototype.ak = function (a, b) {
return null;
};
Series.prototype.k5 = function (a, b) {
return a.kw(b);
};
Series.prototype.dj = function (a, b, c, d) {
return a.dh(b, c, d);
};
Series.prototype.dk = function (a, b, c, d) {
return a.di(b, c, d);
};
Series.prototype.kb = function () {
return -1;
};
Series.prototype.kg = function () {
return -1;
};
Series.prototype.kl = function () {
return -1;
};
Object.defineProperty(Series.prototype, "container", {
get: function () {
return this.dc;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "hasSubItems", {
get: function () {
return this.ej();
},
enumerable: false,
configurable: true
});
Series.prototype.ej = function () {
if (this.d3 && this.h0 != null) {
return true;
}
return false;
};
Series.prototype.forSubItems = function (a) {
this.qg(a);
};
Series.prototype.qg = function (a) {
var e_132, _a;
if (this.d3 && this.h0 != null) {
try {
for (var _b = __values(fromEnum(this.h0)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
a(b);
}
}
catch (e_132_1) {
e_132 = { error: e_132_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_132)
throw e_132.error;
}
}
}
};
Series.prototype.qh = function (a) {
};
Object.defineProperty(Series.prototype, "ei", {
get: function () {
return this.b7.count > 0;
},
enumerable: false,
configurable: true
});
Series.prototype.qf = function (a) {
for (var b = 0; b < this.hx.count; b++) {
var c = this.hx._inner[b];
if (!a(c)) {
break;
}
}
};
Series.prototype.nn = function () {
return null;
};
Series.prototype.wg = function () {
return this.vz;
};
Series.prototype.wh = function () {
return this.wf;
};
Series.prototype.resolveLegendIndex = function () {
return this.index;
};
Series.prototype.bq = function () {
return null;
};
Series.prototype.get_f7 = function () {
return false;
};
Object.defineProperty(Series.prototype, "f7", {
get: function () {
return this.get_f7();
},
enumerable: false,
configurable: true
});
Series.prototype.get_ev = function () {
return false;
};
Object.defineProperty(Series.prototype, "ev", {
get: function () {
return this.get_ev();
},
enumerable: false,
configurable: true
});
Series.prototype.get_er = function () {
return false;
};
Object.defineProperty(Series.prototype, "er", {
get: function () {
return this.get_er();
},
enumerable: false,
configurable: true
});
Series.prototype.get_eq = function () {
return false;
};
Object.defineProperty(Series.prototype, "eq", {
get: function () {
return this.get_eq();
},
enumerable: false,
configurable: true
});
Series.prototype.get_eu = function () {
return false;
};
Object.defineProperty(Series.prototype, "eu", {
get: function () {
return this.get_eu();
},
enumerable: false,
configurable: true
});
Series.prototype.get_et = function () {
return false;
};
Object.defineProperty(Series.prototype, "et", {
get: function () {
return this.get_et();
},
enumerable: false,
configurable: true
});
Series.prototype.get_f9 = function () {
return false;
};
Object.defineProperty(Series.prototype, "f9", {
get: function () {
return this.get_f9();
},
enumerable: false,
configurable: true
});
Series.prototype.get_ga = function () {
return false;
};
Object.defineProperty(Series.prototype, "ga", {
get: function () {
return this.get_ga();
},
enumerable: false,
configurable: true
});
Series.prototype.get_ew = function () {
return false;
};
Object.defineProperty(Series.prototype, "ew", {
get: function () {
return this.get_ew();
},
enumerable: false,
configurable: true
});
Series.prototype.get_es = function () {
return false;
};
Object.defineProperty(Series.prototype, "es", {
get: function () {
return this.get_es();
},
enumerable: false,
configurable: true
});
Series.prototype.get_isVertical = function () {
return false;
};
Object.defineProperty(Series.prototype, "isVertical", {
get: function () {
return this.get_isVertical();
},
enumerable: false,
configurable: true
});
Series.prototype.get_isFragment = function () {
return false;
};
Object.defineProperty(Series.prototype, "isFragment", {
get: function () {
return this.get_isFragment();
},
enumerable: false,
configurable: true
});
Series.prototype.get_ey = function () {
return false;
};
Object.defineProperty(Series.prototype, "ey", {
get: function () {
return this.get_ey();
},
enumerable: false,
configurable: true
});
Series.prototype.get_ex = function () {
return false;
};
Object.defineProperty(Series.prototype, "ex", {
get: function () {
return this.get_ex();
},
enumerable: false,
configurable: true
});
Series.prototype.get_em = function () {
return false;
};
Object.defineProperty(Series.prototype, "em", {
get: function () {
return this.get_em();
},
enumerable: false,
configurable: true
});
Series.prototype.get_gb = function () {
return false;
};
Object.defineProperty(Series.prototype, "gb", {
get: function () {
return this.get_gb();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fn = function () {
return false;
};
Object.defineProperty(Series.prototype, "fn", {
get: function () {
return this.get_fn();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fm = function () {
return false;
};
Object.defineProperty(Series.prototype, "fm", {
get: function () {
return this.get_fm();
},
enumerable: false,
configurable: true
});
Series.prototype.get_f3 = function () {
return false;
};
Object.defineProperty(Series.prototype, "f3", {
get: function () {
return this.get_f3();
},
enumerable: false,
configurable: true
});
Series.prototype.get_e2 = function () {
return false;
};
Object.defineProperty(Series.prototype, "e2", {
get: function () {
return this.get_e2();
},
enumerable: false,
configurable: true
});
Series.prototype.get_e0 = function () {
return false;
};
Object.defineProperty(Series.prototype, "e0", {
get: function () {
return this.get_e0();
},
enumerable: false,
configurable: true
});
Series.prototype.get_gc = function () {
return false;
};
Object.defineProperty(Series.prototype, "gc", {
get: function () {
return this.get_gc();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fu = function () {
return false;
};
Object.defineProperty(Series.prototype, "fu", {
get: function () {
return this.get_fu();
},
enumerable: false,
configurable: true
});
Series.prototype.get_ft = function () {
return false;
};
Object.defineProperty(Series.prototype, "ft", {
get: function () {
return this.get_ft();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fr = function () {
return false;
};
Object.defineProperty(Series.prototype, "fr", {
get: function () {
return this.get_fr();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fq = function () {
return false;
};
Object.defineProperty(Series.prototype, "fq", {
get: function () {
return this.get_fq();
},
enumerable: false,
configurable: true
});
Series.prototype.get_f6 = function () {
return false;
};
Object.defineProperty(Series.prototype, "f6", {
get: function () {
return this.get_f6();
},
enumerable: false,
configurable: true
});
Series.prototype.get_f4 = function () {
return false;
};
Object.defineProperty(Series.prototype, "f4", {
get: function () {
return this.get_f4();
},
enumerable: false,
configurable: true
});
Series.prototype.get_f1 = function () {
return false;
};
Object.defineProperty(Series.prototype, "f1", {
get: function () {
return this.get_f1();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fs = function () {
return false;
};
Object.defineProperty(Series.prototype, "fs", {
get: function () {
return this.get_fs();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fz = function () {
return false;
};
Object.defineProperty(Series.prototype, "fz", {
get: function () {
return this.get_fz();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fw = function () {
return false;
};
Object.defineProperty(Series.prototype, "fw", {
get: function () {
return this.get_fw();
},
enumerable: false,
configurable: true
});
Series.prototype.get_isStacked = function () {
return false;
};
Object.defineProperty(Series.prototype, "isStacked", {
get: function () {
return this.get_isStacked();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fa = function () {
return false;
};
Object.defineProperty(Series.prototype, "fa", {
get: function () {
return this.get_fa();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fx = function () {
return false;
};
Object.defineProperty(Series.prototype, "fx", {
get: function () {
return this.get_fx();
},
enumerable: false,
configurable: true
});
Series.prototype.get_e1 = function () {
return false;
};
Object.defineProperty(Series.prototype, "e1", {
get: function () {
return this.get_e1();
},
enumerable: false,
configurable: true
});
Series.prototype.get_ff = function () {
return false;
};
Object.defineProperty(Series.prototype, "ff", {
get: function () {
return this.get_ff();
},
enumerable: false,
configurable: true
});
Series.prototype.get_f0 = function () {
return false;
};
Object.defineProperty(Series.prototype, "f0", {
get: function () {
return this.get_f0();
},
enumerable: false,
configurable: true
});
Series.prototype.get_isValueOverlay = function () {
return false;
};
Object.defineProperty(Series.prototype, "isValueOverlay", {
get: function () {
return this.get_isValueOverlay();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fi = function () {
return this.bo != null;
};
Object.defineProperty(Series.prototype, "fi", {
get: function () {
return this.get_fi();
},
enumerable: false,
configurable: true
});
Series.prototype.get_isSummarizationSupported = function () {
return !this.isValueOverlay;
};
Object.defineProperty(Series.prototype, "isSummarizationSupported", {
get: function () {
return this.get_isSummarizationSupported();
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "isLayer", {
get: function () {
return this.bo != null;
},
enumerable: false,
configurable: true
});
Series.prototype.bp = function () {
return null;
};
Series.prototype.get_ek = function () {
return false;
};
Object.defineProperty(Series.prototype, "ek", {
get: function () {
return this.get_ek();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fd = function () {
return false;
};
Object.defineProperty(Series.prototype, "fd", {
get: function () {
return this.get_fd();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fc = function () {
return false;
};
Object.defineProperty(Series.prototype, "fc", {
get: function () {
return this.get_fc();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fb = function () {
return false;
};
Object.defineProperty(Series.prototype, "fb", {
get: function () {
return this.get_fb();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fe = function () {
return false;
};
Object.defineProperty(Series.prototype, "fe", {
get: function () {
return this.get_fe();
},
enumerable: false,
configurable: true
});
Series.prototype.get_e4 = function () {
return false;
};
Object.defineProperty(Series.prototype, "e4", {
get: function () {
return this.get_e4();
},
enumerable: false,
configurable: true
});
Series.prototype.get_e5 = function () {
return false;
};
Object.defineProperty(Series.prototype, "e5", {
get: function () {
return this.get_e5();
},
enumerable: false,
configurable: true
});
Series.prototype.get_e6 = function () {
return false;
};
Object.defineProperty(Series.prototype, "e6", {
get: function () {
return this.get_e6();
},
enumerable: false,
configurable: true
});
Series.prototype.iw = function (a, b, c, d, e) {
return Number.POSITIVE_INFINITY;
};
Series.prototype.ix = function (a, b, c, d, e, f, g) {
return this.ba.a$n(this, a, b, c, d, e, f, g);
};
Series.prototype.get_hj = function () {
return false;
};
Object.defineProperty(Series.prototype, "hj", {
get: function () {
return this.get_hj();
},
enumerable: false,
configurable: true
});
Series.prototype.jf = function (a, b, c, d, e, f, g, h) {
return this.ba.a$q(this, a, b, c, d, e, f, g, h);
};
Series.prototype.i2 = function (a, b, c, d, e, f, g, h) {
return this.ba.a$p(this, a, b, c, d, e, f, g, h);
};
Series.prototype.kk = function (a, b, c, d, e) {
return this.ba.a$s(this, a, b, c, d, e);
};
Series.prototype.i1 = function (a) {
return (a ? 10 : 3);
};
Series.prototype.aj = function (a) {
return null;
};
Series.prototype.al = function (a) {
return null;
};
Series.prototype.g1 = function (a, b) {
return this.ba.a$g(this, a, b);
};
Series.prototype.an = function (a, b, c, d, e, f) {
return this.ba.a$b(this, a, b, c, d, e, f);
};
Series.prototype.am = function (a, b, c, d, e, f) {
return this.ba.a$a(this, a, b, c, d, e, f);
};
Series.prototype.g3 = function (a, b, c) {
return this.ba.a$h(this, a, b, c);
};
Series.prototype.g4 = function (a, b) {
return this.ba.a$i(this, a, b);
};
Series.prototype.ki = function (a, b, c, d, e) {
return this.ba.a$r(this, a, b, c, d, e);
};
Series.prototype.i0 = function (a, b) {
return this.ba.a$o(this, a, b);
};
Series.prototype.kj = function (a, b) {
return -1;
};
Series.prototype.kh = function (a, b) {
return -1;
};
Series.prototype.jd = function (a, b, c) {
return NaN;
};
Series.prototype.ww = function (a, b, c) {
return { $type: Point_$type, x: NaN, y: NaN };
};
Series.prototype.w8 = function (a) {
return Rect.empty;
};
Series.prototype.ao = function (a) {
var b = this.w8(a);
if (!b.isEmpty) {
var c = new Array(1);
c[0] = b;
return c;
}
return null;
};
Series.prototype.w9 = function (a) {
return this.w8(this.w2(a));
};
Series.prototype.ap = function (a) {
return this.ao(this.w2(a));
};
Series.prototype.ar = function (a, b) {
return null;
};
Series.prototype.xa = function (a) {
return Rect.empty;
};
Series.prototype.xb = function (a) {
return this.xa(this.w2(a));
};
Series.prototype.g5 = function (a, b) {
return this.ba.a$j(this, a, b);
};
Series.prototype.wy = function (a, b, c, d, e, f, g, h, i) {
return this.ba.a$av(this, a, b, c, d, e, f, g, h, i);
};
Series.prototype.i9 = function (a, b, c) {
return this.jd(a, b, c);
};
Series.prototype.ws = function (a, b, c) {
return this.ww(a, b, c);
};
Series.prototype.jb = function (a, b, c) {
return this.jd(a, b, c);
};
Series.prototype.wu = function (a, b, c) {
return this.ww(a, b, c);
};
Series.prototype.wx = function (a, b, c) {
var d = this.w2(a);
return this.ww(d, b, c);
};
Series.prototype.je = function (a, b, c) {
var d = this.w2(a);
return this.jd(d, b, c);
};
Series.prototype.wt = function (a, b, c) {
var d = this.w2(a);
return this.ws(d, b, c);
};
Series.prototype.ja = function (a, b, c) {
var d = this.w2(a);
return this.i9(d, b, c);
};
Series.prototype.wv = function (a, b, c) {
var d = this.w2(a);
return this.wu(d, b, c);
};
Series.prototype.jc = function (a, b, c) {
var d = this.w2(a);
return this.jb(d, b, c);
};
Series.prototype.kd = function (a) {
var b = this.w2(a);
return this.kc(b);
};
Series.prototype.i3 = function () {
return 0;
};
Series.pz = function (a, b, c) {
if (b != null && b.dw.j.ae != null) {
b.dw.j.ae.getExternal(a, b.dw.j.ae.rootWrapper, b.dw.j.ae.getExternal(b, null, null));
}
var d = a;
};
Series.prototype.iz = function (a) {
var b = this.w2(a);
return this.iy(b);
};
Series.prototype.kx = function (a) {
var b = this.w2(a);
return this.kw(b);
};
Series.prototype.pc = function (a, b) {
a.kr = b;
};
Series.prototype.k9 = function (a) {
return a.kr;
};
Series.prototype.au = function (a) {
if (a && this.as != null) {
return this.as;
}
if (this.at != null) {
return this.at;
}
return this.kr;
};
Series.prototype.ed = function (a, b, c, d, e) {
return false;
};
Series.prototype.jl = function (a) {
var b = this.mp();
if (b == null) {
return NaN;
}
if (a.content == null) {
return NaN;
}
if (a.content.item == null) {
return NaN;
}
return FastItemColumn.i(this.kz(a.content.item, b));
};
Series.prototype.jk = function (a) {
var b = this.mp();
if (b == null) {
return NaN;
}
if (a == null) {
return NaN;
}
return FastItemColumn.i(this.kz(a, b));
};
Series.prototype.mp = function () {
return null;
};
Series.prototype.jg = function (a, b) {
return NaN;
};
Series.prototype.aq = function (a) {
return [NaN, NaN];
};
Series.prototype.wz = function (a) {
return { $type: Point_$type, x: NaN, y: NaN };
};
Series.prototype.w0 = function (a) {
return { $type: Point_$type, x: NaN, y: NaN };
};
Series.prototype.raisePropertyChanged = function (a, b, c) {
this.sr(a);
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
c = this.lc(a, b, c);
if (this.propertyUpdated != null) {
if (a == Series.$$p[20] && b != null && c != null) {
this.d9 = true;
}
this.propertyUpdated(this, new PropertyUpdatedEventArgs(a, b, c));
if (a == Series.$$p[20] && b != null && c != null) {
this.d9 = false;
}
}
this.st(a);
};
Series.prototype.lc = function (a, b, c) {
this.hu.add_1(a);
if (this.ee) {
c = this.k7(a, b, c);
}
return c;
};
Series.prototype.k7 = function (a, b, c) {
if (this.gs(a)) {
return c;
}
for (var d = 0; d < this.hx.count; d++) {
var e = this.hx._inner[d];
var f = e.b6;
var g = this.t5(a);
if (g == null) {
continue;
}
c = f.ai(this, e, g, c);
}
return c;
};
Series.prototype.t5 = function (a) {
if (Series.hl == null) {
Series.hl = new Dictionary$2(String_$type, Dictionary$2.$.specialize(Type.$, DependencyProperty.$), 0);
}
if (Series.hl.containsKey(a) && Series.hl.item(a).containsKey(getInstanceType(this))) {
return Series.hl.item(a).item(getInstanceType(this));
}
var b = DependencyProperty.h(a, getInstanceType(this));
if (b == null) {
return null;
}
if (!Series.hl.containsKey(a)) {
Series.hl.addItem(a, new Dictionary$2(Type.$, DependencyProperty.$, 0));
}
Series.hl.item(a).addItem(getInstanceType(this), b);
return b;
};
Series.prototype.get_hasMarkers = function () {
return false;
};
Object.defineProperty(Series.prototype, "hasMarkers", {
get: function () {
return this.get_hasMarkers();
},
enumerable: false,
configurable: true
});
Series.prototype.get_en = function () {
return false;
};
Object.defineProperty(Series.prototype, "en", {
get: function () {
return this.get_en();
},
enumerable: false,
configurable: true
});
Series.prototype.ql = function () {
};
Series.prototype.qm = function () {
this.ql();
};
Series.prototype.v7 = function (a) {
if (this.dc == null) {
return this.vt;
}
var b = this.dc.xx(this.index + a);
b = this.wd(b);
return b;
};
Series.prototype.wd = function (a) {
if (this.actualLayers != null && this.actualLayers.count > 0) {
var b = true;
for (var c = 0; c < this.actualLayers.count; c++) {
var d = this.actualLayers._inner[c];
if (!d.target.fy) {
b = false;
}
}
if (!b) {
return a;
}
a = BrushUtil.s(a, this.ih);
return a;
}
return a;
};
Series.prototype.wa = function (a) {
if (this.dc == null) {
return this.vt;
}
var b = this.dc.x3(this.index + a);
b = this.wd(b);
return b;
};
Series.prototype.v8 = function (a) {
if (this.dc == null) {
return this.vt;
}
var b = this.dc.x1(this.index + a);
b = this.wd(b);
return b;
};
Series.prototype.v9 = function (a) {
if (this.dc == null) {
return this.vx;
}
var b = this.dc.x2(this.index + a);
b = this.wd(b);
return b;
};
Series.prototype.v5 = function () {
return null;
};
Series.prototype.v6 = function () {
return null;
};
Series.prototype.th = function () {
return null;
};
Series.prototype.iu = function () {
return NaN;
};
Series.prototype.w2 = function (a) {
var b = this.cw.b9;
var c = this.cw.ca;
var d = this.cw.getEffectiveViewport();
var e = { $type: Point_$type, x: ViewportUtils.b(a.x, c, b, d), y: ViewportUtils.g(a.y, c, b, d) };
return e;
};
Series.prototype.xc = function (a) {
var b = this.w2({ $type: Point_$type, x: a.left, y: a.bottom });
var c = this.w2({ $type: Point_$type, x: a.right, y: a.top });
return new Rect(2, b, c);
};
Series.prototype.wr = function (a) {
var b = this.dc != null ? this.dc.yu : this.cw.b9;
var c = this.cw.ca;
var d = this.cw.getEffectiveViewport();
var e = ViewportUtils.e(a.x, c, b, d);
var f = ViewportUtils.i(a.y, c, b, d);
return { $type: Point_$type, x: e, y: f };
};
Series.prototype.k6 = function (a, b) {
var c = this.cw.c(a);
var d = c != null ? c.item : null;
if (d == null) {
var e = this.w2(b);
d = this.kw(e);
}
return d;
};
Series.prototype.gj = function (a) {
return false;
};
Series.prototype.ay = function (a) {
return new AxisRange(NaN, NaN);
};
Series.prototype.az = function (a) {
return new AxisRange(NaN, NaN);
};
Series.prototype.xe = function () {
return new Size(1, 0, 0);
};
Series.prototype.ax = function (a, b, c) {
this.qc();
if (!this.isVertical) {
if (this.im == 0 && this.iq == 0) {
return a;
}
var d = new ScalerParams(0, c, this.dc.y9, b.dn, this.getEffectiveViewport());
d.b = this.i5();
var e = b.f6(a.c, d);
var f = b.f6(a.b, d);
if (b.dn) {
f += this.im;
e -= this.iq;
}
else {
f -= this.iq;
e += this.im;
}
var g = b.f9(e, d);
var h = b.f9(f, d);
return new AxisRange(g, h);
}
else {
if (this.io == 0 && this.ip == 0) {
return a;
}
var i = new ScalerParams(0, c, this.dc.y9, b.dn, this.getEffectiveViewport());
i.b = this.i5();
var j = b.f6(a.c, i);
var k = b.f6(a.b, i);
if (!b.dn) {
k += this.ip;
j -= this.io;
}
else {
k -= this.io;
j += this.ip;
}
var l = b.f9(j, i);
var m = b.f9(k, i);
return new AxisRange(l, m);
}
};
Series.prototype.qc = function () {
if (isNaN_(this.iq)) {
var a = this.xh(1, 1);
this.iq = a.top;
if (isNaN_(this.iq)) {
this.iq = 0;
}
}
if (isNaN_(this.im)) {
var b = this.xh(1, 1);
this.im = b.bottom;
if (isNaN_(this.im)) {
this.im = 0;
}
}
if (isNaN_(this.io)) {
var c = this.xh(1, 1);
this.io = c.left;
if (isNaN_(this.io)) {
this.io = 0;
}
}
if (isNaN_(this.ip)) {
var d = this.xh(1, 1);
this.ip = d.right;
if (isNaN_(this.ip)) {
this.ip = 0;
}
}
};
Series.prototype.r8 = function (a) {
this.gx = false;
if (this.dc != null) {
this.dc.a3.ac(0, this, this.a1, a);
if (this.renderRequested != null) {
var b = new RenderRequestedEventArgs();
b.animate = a;
this.renderRequested(this, b);
a = b.animate;
}
}
};
Series.prototype.pv = function (a) {
this.r9(a);
if (this.hk(this.cw.b9, this.cw.ca, this.cw)) {
this.p7();
}
this.gx = false;
};
Object.defineProperty(Series.prototype, "bv", {
get: function () {
return this.bu;
},
set: function (a) {
this.bu = a;
},
enumerable: false,
configurable: true
});
Series.prototype.r9 = function (a) {
{
this.rv();
}
if (this.g9 && !this.gt()) {
this.g8 = false;
}
if (this.hc && !this.gu()) {
this.hb = false;
this.rg();
}
};
Object.defineProperty(Series.prototype, "cf", {
get: function () {
return this.ce;
},
enumerable: false,
configurable: true
});
Series.prototype.get_eo = function () {
return this.gh();
};
Object.defineProperty(Series.prototype, "eo", {
get: function () {
return this.get_eo();
},
enumerable: false,
configurable: true
});
Series.prototype.gh = function () {
return this.highlightedItemsSource != null;
};
Series.prototype.rv = function () {
var a = false;
if (this.bo != null) {
a = true;
}
var b = this.bw;
if (b == 0) {
if (this.dc != null) {
if (this.dc.cb != 0) {
b = this.dc.cb;
}
}
}
if (b == 0) {
b = 1;
}
if (!this.eo || a) {
b = 1;
}
if (this.bv != b) {
if (this.bv == 1 && b != 1) {
this.bv = b;
this.px();
}
else {
this.bv = b;
this.pt();
}
}
};
Series.prototype.pt = function () {
if (!this.gz) {
return;
}
if (this.b5 != null) {
this.b5.au();
}
};
Series.p1 = function () {
if (Series.hp == null) {
Series.hp = new Dictionary$2(String_$type, String_$type, 0);
Series.hq = new Dictionary$2(String_$type, String_$type, 0);
Series.pm(Series.hp, Series.hq);
}
};
Series.n7 = function (a) {
Series.p1();
if (Series.hp.containsKey(a)) {
return Series.hp.item(a);
}
return PlatformAPIHelper.r(a);
return a;
};
Series.n8 = function (a) {
Series.p1();
if (Series.hq.containsKey(a)) {
return Series.hq.item(a);
}
return PlatformAPIHelper.s(a);
return a;
};
Series.prototype.q7 = function () {
};
Series.pm = function (a, b) {
Series.hp.item("ItemsSource", "dataSource");
Series.hq.item("dataSource", "ItemsSource");
Series.hp.item("HighlightedItemsSource", "highlightedDataSource");
Series.hq.item("highlightedDataSource", "HighlightedItemsSource");
};
Series.prototype.si = function (a, b) {
var c = typeCast(Brush.$, b.value);
if (c == null) {
return;
}
b.value = BrushUtil.s(c, this.ih);
};
Series.prototype.sg = function (a, b) {
var c = typeCast(String_$type, b.value);
if (c != null) {
c += this.ms;
b.value = c;
}
};
Series.prototype.sf = function (a, b) {
if (this.highlightedItemsSource != null) {
b.value = this.highlightedItemsSource;
return;
}
b.value = this.itemsSource;
};
Series.prototype.sh = function (a, b) {
var c = this.km / 1000;
if (c != 0) {
b.value = this.km;
return;
}
b.value = this.kn;
};
Series.prototype.get_gz = function () {
return true;
};
Object.defineProperty(Series.prototype, "gz", {
get: function () {
return this.get_gz();
},
enumerable: false,
configurable: true
});
Series.prototype.px = function () {
var e_133, _a;
if (!this.gz) {
return;
}
if (this.b5 == null || !this.cb.contains(this.b5)) {
var a = new SeriesLayer();
var b = this.hy();
try {
for (var _b = __values(fromEnum(b)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
a.m.add(c);
}
}
catch (e_133_1) {
e_133 = { error: e_133_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_133)
throw e_133.error;
}
}
this.b5 = a;
this.cb.add(a);
}
else {
this.b5.at();
}
};
Series.prototype.hy = function () {
var e_134, _a, e_135, _b;
var a = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.ad = "ItemsSource";
$ret.y = "HighlightedItemsSource";
$ret.q = true;
return $ret;
})());
a.valueResolving = delegateCombine(a.valueResolving, runOn(this, this.sf));
var b = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.ad = "ShouldAnimateOnDataSourceSwap";
$ret.q = true;
$ret.x = true;
$ret.p = true;
return $ret;
})());
var c = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.ad = "TransitionDuration";
$ret.y = "TransitionInDuration";
$ret.q = true;
$ret.p = true;
return $ret;
})());
c.valueResolving = delegateCombine(c.valueResolving, runOn(this, this.sh));
var d = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.ad = "Title";
$ret.p = true;
$ret.q = true;
return $ret;
})());
d.valueResolving = delegateCombine(d.valueResolving, runOn(this, this.sg));
var e = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.ad = "LegendItemVisibility";
$ret.q = true;
$ret.y = "HighlightedLegendItemVisibility";
$ret.p = true;
return $ret;
})());
e.valueResolving = delegateCombine(e.valueResolving, runOn(this, this.qn));
var f = new List$1(SeriesLayerPropertyOverlay.$, 0);
var g = this.hz();
{
f.add(a);
}
f.add(d);
f.add(b);
f.add(c);
f.add(e);
f.o(g);
if (this.cf.count > 0) {
var h = new Dictionary$2(String_$type, SeriesLayerPropertyOverlay.$, 0);
try {
for (var _c = __values(fromEnum(f)), _d = _c.next(); !_d.done; _d = _c.next()) {
var i = _d.value;
h.addItem(i.ad, i);
}
}
catch (e_134_1) {
e_134 = { error: e_134_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_134)
throw e_134.error;
}
}
try {
for (var _e = __values(fromEnum(this.cf)), _f = _e.next(); !_f.done; _f = _e.next()) {
var j = _f.value;
if (h.containsKey(j.ad)) {
j.k = h.item(j.ad);
f.remove(h.item(j.ad));
}
f.add(j);
}
}
catch (e_135_1) {
e_135 = { error: e_135_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_135)
throw e_135.error;
}
}
}
return f;
};
Series.prototype.qn = function (a, b) {
if (this.xi == 1) {
b.value = enumGetBox(Visibility_$type, 1);
return;
}
b.value = enumGetBox(Visibility_$type, this.legendItemVisibility);
};
Series.prototype.hz = function () {
return new List$1(SeriesLayerPropertyOverlay.$, 0);
};
Object.defineProperty(Series.prototype, "fy", {
get: function () {
return this.dw;
},
enumerable: false,
configurable: true
});
Series.prototype.rd = function () {
if (!this.dw) {
this.pr();
}
this.dw = true;
if (this.renderValid != null) {
this.renderValid(this, new RenderValidEventArgs());
}
};
Series.prototype.pe = function () {
if (this.g7 && !this.g9) {
this.dd.r = truncate(Math.max(this.jh(), this.ji()));
this.pj();
}
if (this.ha && !this.hc) {
this.dd.r = truncate(Math.max(this.jh(), this.jj()));
this.pj();
}
};
Series.prototype.q3 = function () {
if (!this.d4()) {
if (this.dc != null) {
this.dc.rj(this);
}
}
};
Series.prototype.rg = function () {
if (this.gq) {
if (this.bo != null) {
this.bo.r5(this);
}
else if (this.dc != null) {
this.dc.series.remove(this);
}
}
if (this.bo != null) {
if (this.bo.gp) {
if (this.bo.highlightedItemsSource != null) {
this.bo.highlightedItemsSource = null;
}
}
}
if (this.transitionOutCompleted != null) {
this.transitionOutCompleted(this, new TransitionOutCompletedEventArgs());
}
};
Series.prototype.r5 = function (a) {
if (a.b6 != null) {
if (this.cc.contains(a.b6)) {
this.cc.remove(a.b6);
}
if (this.cb.contains(a.b6)) {
this.cb.remove(a.b6);
}
}
};
Series.prototype.pj = function () {
};
Series.prototype.sa = function (a, b) {
if (this.cv == null) {
this.cv = this.ct();
this.cv.t = true;
if (this.dc != null) {
this.dc.am.o(this.cv);
this.cv.a = this.dc.am;
}
this.cv.a4();
}
this.cv.b9 = a;
};
Series.prototype.rp = function () {
};
Series.prototype.sb = function () {
if (this.cv == null) {
this.cv = this.ct();
this.cv.t = true;
if (this.dc != null) {
this.dc.am.o(this.cv);
this.cv.a = this.dc.am;
}
this.cv.a4();
}
};
Series.prototype.r7 = function (a, b, c, d, e) {
this.ba.a$aa(this, a, b, d, e);
};
Series.prototype.bd = function () {
return null;
};
Series.prototype.getEffectiveViewport1 = function (a) {
if (this.dc == null) {
return Rect.empty;
}
if (a.s) {
return this.dc.yv;
}
if (a.t) {
if (this.dc.yv.isEmpty) {
return this.dc.yv;
}
var b = this.dc.y1(a.b9, this.dc.y9, this.dc.yv);
return b;
}
return this.dc.yv;
};
Series.prototype.getMainContentViewport = function () {
return this.w4(this.cw);
};
Series.prototype.w4 = function (a) {
if (this.dc == null || this.dc.yu.isEmpty) {
return a.b9;
}
if (a.s) {
return a.b9;
}
if (a.t) {
if (this.dc.yv.isEmpty) {
return a.b9;
}
if (this.dc.yu.equals1(this.dc.y9)) {
return a.b9;
}
var b = this.dc.y1(a.b9, this.dc.y9, this.dc.yv);
var c = this.dc.yz(a.b9, b, this.dc.yr);
return c;
}
return this.dc.yu;
};
Series.prototype.w7 = function (a) {
if (!this.xd.equals1(a)) {
return Rect.empty;
}
return this.getEffectiveViewport();
};
Series.prototype.w6 = function (a) {
if (this.dc == null || this.dc.yv.isEmpty) {
return Rect.empty;
}
var b = this.dc.yv;
var c = a.b9;
var d = (b.left - c.left) / c.width;
var e = (b.top - c.top) / c.height;
var f = (b.right - c.left) / c.width;
var g = (b.bottom - c.top) / c.height;
return new Rect(0, d, e, f - d, g - e);
};
Series.prototype.getEffectiveViewport = function () {
return this.getEffectiveViewport1(this.cw);
};
Series.prototype.r1 = function () {
this.r2(null);
};
Series.prototype.get_ef = function () {
return false;
};
Object.defineProperty(Series.prototype, "ef", {
get: function () {
return this.get_ef();
},
enumerable: false,
configurable: true
});
Series.prototype.get_el = function () {
return this.by == 2 || this.by == 4;
};
Object.defineProperty(Series.prototype, "el", {
get: function () {
return this.get_el();
},
enumerable: false,
configurable: true
});
Series.prototype.r2 = function (a) {
if (this.fl) {
this.ba.a$al(this, a);
}
};
Series.prototype.r3 = function (a) {
if (this.fl) {
this.ba.a$am(this, a, this.dc);
}
};
Series.prototype.getViewInfo = function (a, b) {
a = this.cw.b9;
b = this.cw.ca;
return {
p0: a,
p1: b
};
};
Series.prototype.hk = function (a, b, c) {
if (a.width == 0 || a.height == 0) {
return false;
}
if (this.isFragment) {
return true;
}
return this._visibility == 0;
};
Series.prototype.pi = function (a, b) {
if (a) {
this.g6 = true;
}
};
Series.prototype.d6 = function () {
return this.d7(this.cw);
};
Series.prototype.d7 = function (a) {
var b = a.b9;
var c = a.ca;
if (!this.hk(b, c, a)) {
this.pi(true, a);
return true;
}
return false;
};
Series.prototype.ri = function (a, b) {
this.cw.b9 = b;
this.s8(a, b);
if (this.dc != null) {
this.dc.a3.ae(0, this, this.a1, b);
if (a.isEmpty || a.width == 0 || a.height == 0) {
this.dc.p0();
}
}
};
Series.prototype.s9 = function (a, b) {
};
Series.prototype.s8 = function (a, b) {
};
Object.defineProperty(Series.prototype, "g6", {
get: function () {
return this.dz;
},
set: function (a) {
this.dz = a;
},
enumerable: false,
configurable: true
});
Series.prototype.qe = function (a) {
a.pw(null);
};
Series.prototype.q1 = function () {
this.gy = false;
this.g6 = true;
if (this.dc != null) {
this.dc.p7();
}
};
Series.prototype.rw = function (a) {
this.h1.h(a);
this.sz();
this.h1.e();
};
Series.prototype.qv = function () {
this.sz();
this.rj();
};
Series.prototype.q0 = function () {
this.gy = false;
this.g6 = true;
if (this.dc != null) {
this.dc.p6();
}
};
Series.prototype.get_fj = function () {
return true;
};
Object.defineProperty(Series.prototype, "fj", {
get: function () {
return this.get_fj();
},
enumerable: false,
configurable: true
});
Series.prototype.get_isUsableInLegend = function () {
return true;
};
Object.defineProperty(Series.prototype, "isUsableInLegend", {
get: function () {
return this.get_isUsableInLegend();
},
enumerable: false,
configurable: true
});
Series.prototype.q9 = function () {
this.cw.a0();
};
Series.prototype.q2 = function () {
this.rj();
};
Series.prototype.rj = function () {
this.cw.bb();
this.rl(false);
this.s0();
if (this.isStacked) {
this.qh(function (a) {
a.rj();
if (a.ei) {
a.qf(function (b) {
b.rk();
return true;
});
}
return true;
});
}
if (this.ei) {
this.qf(function (a) {
a.rk();
return true;
});
}
};
Series.prototype.rk = function () {
this.cw.bb();
this.rl(true);
if (this.isStacked) {
this.qh(function (a) {
a.rk();
if (a.ei) {
a.qf(function (b) {
b.rk();
return true;
});
}
return true;
});
}
if (this.ei) {
this.qf(function (a) {
a.rk();
return true;
});
}
};
Series.prototype.gg = function () {
return false;
};
Series.prototype.rl = function (a) {
if (this.a1 == null || this.a1.c) {
return;
}
var b = this.cw.b9;
var c = this.cw.ca;
var d = this.hk(b, c, this.cw);
var e = this.dc != null && this.dc.gb && this.cv != null && this.hk(this.cv.b9, this.cv.ca, this.cv);
if (d) {
if (a) {
this.gx = !this.gg();
this.pv(false);
}
else {
this.r8(false);
this.gx = !this.gg();
}
}
if (e) {
if (!this.g6) {
this.q0();
this.gy = true;
}
}
};
Object.defineProperty(Series.prototype, "g8", {
get: function () {
return this.d0;
},
set: function (a) {
this.d0 = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "hb", {
get: function () {
return this.d1;
},
set: function (a) {
this.d1 = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "g9", {
get: function () {
if (this.g8 == false) {
return false;
}
return this.ji() > 0;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "hc", {
get: function () {
if (this.hb == false) {
return false;
}
return this.jj() > 0;
},
enumerable: false,
configurable: true
});
Series.prototype.v = function () {
_super.prototype.v.call(this);
this.raisePropertyChanged("Opacity", this._opacity, this._opacity);
};
Series.prototype.w = function (a, b) {
_super.prototype.w.call(this, a, b);
this.raisePropertyChanged("Visibility", enumGetBox(Visibility_$type, a), enumGetBox(Visibility_$type, b));
};
Series.prototype.q8 = function () {
};
Series.prototype.qu = function () {
if (this.dc != null) {
this.dc.p0();
}
};
Series.prototype.qa = function () {
if (this.dc != null) {
for (var a = 0; a < this.dc.selectedSeriesItems.count; a++) {
var b = this.dc.selectedSeriesItems._inner[a];
b.f(this.dc);
}
for (var c = 0; c < this.dc.selectedSeriesItems.count; c++) {
var d = this.dc.selectedSeriesItems._inner[c];
if (d.series != null && d.series != this) {
continue;
}
if (d.item == null) {
this.qb();
}
else {
this.p6(d.item);
}
}
}
};
Series.prototype.p2 = function () {
if (this.dc != null) {
for (var a = 0; a < this.dc.focusedSeriesItems.count; a++) {
var b = this.dc.focusedSeriesItems._inner[a];
if (b.series != null && b.series != this) {
continue;
}
this.p5(b.item);
}
}
};
Series.prototype.rq = function (a, b, c, d) {
switch (b) {
case "SyncLink":
if (typeCast(SyncLink.$, c) !== null) {
var e = c;
e.propertyUpdated = delegateRemove(e.propertyUpdated, this.bi);
this.r0(typeCast(IFastItemsSourceProvider_$type, c));
}
if (typeCast(SyncLink.$, d) !== null) {
var f = d;
f.propertyUpdated = delegateCombine(f.propertyUpdated, this.bi);
this.rz(typeCast(IFastItemsSourceProvider_$type, d));
}
if (this.index == -1) {
this.index = XamDataChart.abr(this);
}
break;
case Series.$$p[41]:
this.ci = this.ck();
this.sy();
this.pw(null);
this.rj();
break;
case Series.$$p[68]:
this.d3 = this.hf;
this.pr();
this.rj();
break;
case SeriesViewer.$$p[1]:
case SeriesViewer.$$p[22]:
case SeriesViewer.$$p[21]:
case SeriesViewer.$$p[23]:
this.pw(null);
break;
case "HighlightingMode":
this.by = this.bz();
break;
case "SelectionMode":
this.cq = this.cs();
break;
case "FocusMode":
this.cp = this.cr();
break;
case "SeriesViewer":
if (typeCast(SeriesViewer.$, c) !== null) {
this.j8 = null;
var g = c;
g.windowRectChanged = delegateRemove(g.windowRectChanged, this.dq);
var h = c.b9;
h.collectionChanged = delegateRemove(h.collectionChanged, this.h4);
var i = c;
i.propertyUpdated = delegateRemove(i.propertyUpdated, this.bi);
c.a3.ad(0, this);
this.r2(c);
this.cw.at(c);
}
if (typeCast(SeriesViewer.$, d) !== null) {
this.j8 = d.dw.j.ae;
var j = d;
j.windowRectChanged = delegateCombine(j.windowRectChanged, this.dq);
var k = d.b9;
k.collectionChanged = delegateCombine(k.collectionChanged, this.h4);
var l = d;
l.propertyUpdated = delegateCombine(l.propertyUpdated, this.bi);
this.a1 = d.a3.k(0, this, runOn(this, this.pv));
this.cw.ao(d);
this.by = this.bz();
this.ii = this.i8();
this.cq = this.cs();
this.cp = this.cr();
this.vy = this.wc();
this.vu = this.wb();
this.sv();
this.pr();
if (this.f3) {
this.ik = this.js();
}
this.py();
this.kp = this.dc.j8();
this.qa();
this.p2();
}
if (this.dc == null) {
this.externalObject._ensureTooltipDestroyed();
this.dd.w();
if (c != null) {
var m = c;
m.rj(this);
}
}
if (this.index != -1) {
this.rw(null);
}
if (this.index == -1 || d == null) {
this.index = XamDataChart.abr(this);
}
this.a5 = this.a6();
this.pa(typeCast(SeriesViewer.$, c), typeCast(SeriesViewer.$, d));
break;
case Series.$$p[57]:
if (this.cw != null) {
this.cw.ba();
}
break;
case "HitTestMode":
this.b2 = this.b3();
break;
case "ActualHitTestMode":
if (this.dc != null) {
this.dc.s3();
}
break;
case Series.$$p[26]:
this.r8(true);
break;
case Series.$$p[19]:
case Series.$$p[25]:
this.qu();
break;
case "LegendItemBadgeTemplate":
case "LegendItemTemplate":
case Series.$$p[34]:
case Series.$$p[33]:
this.rw(b);
this.rj();
this.qu();
break;
case Series.$$p[38]:
this.sx();
break;
case Series.$$p[27]:
this.sw();
break;
case Series.$$p[12]:
case Series.$$p[13]:
if (this.l4 != null) {
this.as = new BindingFormatter();
this.as.j = this.l4;
this.as.d = this.ag;
}
else {
this.as = null;
}
break;
case Series.$$p[14]:
case Series.$$p[15]:
if (this.l4 != null) {
this.at = new BindingFormatter();
this.at.j = this.l7;
this.at.d = this.ah;
}
else {
this.at = null;
}
break;
case Series.$$p[6]:
case Series.$$p[16]:
case Series.$$p[42]:
case Series.$$p[17]:
case Series.$$p[18]:
this.pw(b);
this.rj();
break;
case "Index":
if (typeGetValue(c) != typeGetValue(d)) {
this.q8();
this.ci = this.ck();
this.sy();
this.sx();
this.pw(null);
this.rj();
}
break;
case "RadiusX":
case "RadiusY":
case "RoundedCornersLocation":
this.rj();
break;
case Series.$$p[10]:
this.sv();
this.rj();
break;
case Series.$$p[37]:
case Series.$$p[36]:
case Series.$$p[39]:
this.rj();
break;
case Series.$$p[31]:
this.q9();
this.rj();
break;
case Series.$$p[69]:
case Series.$$p[48]:
case Series.$$p[47]:
case Series.$$p[49]:
case Series.$$p[50]:
this.rj();
break;
case Series.$$p[56]:
this.sy();
if (this.be == 1) {
this.s0();
}
break;
case Series.$$p[3]:
case Series.$$p[4]:
this.pr();
this.rj();
break;
case Series.$$p[21]:
this.vu = this.wb();
break;
case Series.$$p[45]:
this.vy = this.wc();
break;
case Series.$$p[8]:
this.v3 = this.vy;
this.rj();
break;
case Series.$$p[2]:
this.v1 = this.vu;
this.rj();
break;
case Series.$$p[1]:
case Series.$$p[7]:
case Series.$$p[9]:
this.safeActualBrush = this.we(this.vt);
this.v0 = this.vt;
this.v2 = this.vx;
this.is = this.il;
this.vw = this.vx;
this.vv = this.vt;
this.rj();
this.cw.bx();
if (this.toolTip != null && this.a9 != null) {
this.ba.a$at(this, this.toolTip);
}
break;
case "Visibility":
this.cw.by();
break;
case Series.$$p[22]:
this.r8(true);
break;
case "ItemsSource":
if (this.c4 != null) {
this.rz(this.c4);
}
break;
case Series.$$p[20]:
this.pr();
if (c != d && d != null) {
if (!this.gm || !this.d9) {
this.g8 = true;
}
this.hb = false;
this.gq = false;
}
this.q1();
if (typeCast(IFastItemsSource_$type, c) != null) {
var n = c;
n.event = delegateRemove(n.event, this.j4);
}
if (typeCast(IFastItemsSource_$type, d) != null) {
var o = d;
o.event = delegateCombine(o.event, this.j4);
}
this.qa();
this.p2();
break;
case "Legend":
if (d != null) {
if (a == this) {
d.seriesOwner = this;
}
else if (typeCast(XamDataChart.$, a) !== null) {
d.chartOwner = a;
}
}
this.a5 = this.a6();
break;
case "ActualLegend":
if (this.a5 != null && this.a5.isItemwise) {
this.pr();
this.eh = true;
}
else {
this.eh = false;
}
if (c != null && c.isItemwise) {
c.clearLegendItemsForSeries(this);
}
this.ep = this.a5 == null ? false : this.a5.isFinancial;
this.o9(typeCast(IChartLegend_$type, c), typeCast(IChartLegend_$type, d));
this.p7();
break;
case "LegendItem":
this.pb(typeCast(Control.$, c), typeCast(Control.$, d));
break;
case Series.$$p[35]:
this.pr();
this.cw.a5();
this.qu();
break;
case Series.$$p[58]:
if (this.a9 != null || this.fl) {
this.ba.a$at(this, this.toolTip);
}
break;
case "CrosshairPoint":
if (this.dc != null) {
this.s6(this.dc.yi);
}
if (this.dc != null) {
if (!this.d8) {
this.dc.sv(this, this.kw(this.dc.yi));
}
}
break;
case Series.$$p[43]:
this.ik = this.js();
break;
case "ActualResolution":
this.r8(false);
this.q0();
break;
case Series.$$p[73]:
this.iq = this.j3;
if (this.dc != null) {
this.dc.pt();
}
break;
case Series.$$p[70]:
this.im = this.j0;
if (this.dc != null) {
this.dc.pt();
}
break;
case Series.$$p[59]:
case Series.$$p[60]:
var p = this.dd.f();
this.dd.w();
if (p) {
this.q3();
}
this.dd.r = this.km;
this.dd.b = this.de;
this.r8(false);
break;
case "DiscreteLegendItemTemplate":
this.r8(false);
break;
case "VisibilityProxy":
if (c != d) {
this.r8(false);
}
this.q0();
this.cw.by();
break;
case Series.$$p[32]:
this.by = this.bz();
this.r8(false);
break;
case Series.$$p[28]:
this.ii = this.i8();
break;
case Series.$$p[55]:
this.py();
break;
case "FinalValue":
this.s5();
break;
case Series.$$p[74]:
this.cy = this.cz();
break;
}
};
Series.prototype.wb = function () {
if (this.v4 != null) {
return this.v4;
}
else {
if (this.dc != null && this.dc.xu != null) {
return this.dc.xu;
}
else {
return BrushUtil.j(255, 255, 0, 0);
}
}
};
Series.prototype.wc = function () {
if (this.wj != null) {
return this.wj;
}
else {
if (this.dc != null && this.dc.yb != null) {
return this.dc.yb;
}
else {
return BrushUtil.j(255, 255, 0, 0);
}
}
};
Series.prototype.we = function (a) {
if (this.gr) {
return this.cw.b2(a);
}
return a;
};
Series.prototype.sy = function () {
var a = this.ci;
var b = this.jy;
if (isNaN_(b)) {
b = DeviceUtils.g(2);
}
if (a == 2) {
b = 1;
}
if (this.il != b) {
this.il = b;
}
this.is = this.il;
};
Series.prototype.s6 = function (a) {
if (this.dc != null && this.dc.f3 && this.by != 1 && this.dc.fy) {
if (isNaN_(a.x) || isNaN_(a.y)) {
this.ba.a$ac(this, null, a, false, false, false, false, this.dc.b5 == this, true);
}
else {
this.ba.a$ac(this, this.kw(a), a, false, false, false, false, this.dc.b5 == this, false);
}
}
};
Series.prototype.p6 = function (a) {
if (this.dp == null) {
return;
}
var b = this.dp.indexOf(a);
if (b < 0) {
return;
}
if (this.fl) {
this.ba.a$y(this, a, b);
}
};
Series.prototype.qb = function () {
if (this.dp == null) {
return;
}
if (this.fl) {
this.ba.a$w(this);
}
};
Series.prototype.p9 = function () {
if (this.dp == null) {
return;
}
if (this.fl) {
this.ba.a$ap(this);
}
};
Series.prototype.p5 = function (a) {
if (this.dp == null) {
return;
}
var b = this.dp.indexOf(a);
if (b < 0) {
return;
}
if (this.fl) {
this.ba.a$x(this, a, b);
}
};
Series.prototype.p4 = function (a) {
if (this.dp == null) {
return;
}
var b = this.dp.indexOf(a);
if (b < 0) {
return;
}
if (this.fl) {
this.ba.a$ao(this, a, b);
}
};
Series.prototype.eg = function (a) {
if (this.dp != null && this.dp.indexOf(a) >= 0) {
return true;
}
return false;
};
Series.prototype.p3 = function (a) {
if (this.dp == null) {
return;
}
var b = this.dp.indexOf(a);
if (b < 0) {
return;
}
if (this.fl) {
this.ba.a$an(this, a, b);
}
};
Series.prototype.py = function () {
var vwr_ = this.dc;
if (vwr_ != null) {
if (vwr_.fz) {
var host_ = vwr_.kh;
if (host_ != null) {
Series.pz(this, this.dc, false);
this.externalObject.owner = (this.externalObject.owner) ? this.externalObject.owner : ((host_) ? host_.externalObject : null);
}
}
else {
Series.pz(this, this.dc, false);
this.externalObject.owner = (this.externalObject.owner) ? this.externalObject.owner : ((vwr_) ? vwr_.externalObject : null);
}
}
if (this.dc != null && (this.externalObject.owner)) {
var sv_ = this.dc;
this.externalObject.owner._ensureDefaultTooltip(this.externalObject);
;
}
};
Series.prototype.get_fh = function () {
return false;
};
Object.defineProperty(Series.prototype, "fh", {
get: function () {
return this.get_fh();
},
enumerable: false,
configurable: true
});
Series.prototype.ps = function (a) {
a.d8 = true;
};
Object.defineProperty(Series.prototype, "c4", {
get: function () {
return this.c3;
},
set: function (a) {
if (this.c4 != a) {
var b = this.c4;
this.c3 = a;
this.raisePropertyChanged("SyncLink", b, this.c4);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "dc", {
get: function () {
return this.db;
},
set: function (a) {
if (this.dc != a) {
var b = this.dc;
this.db = a;
this.raisePropertyChanged("SeriesViewer", b, this.db);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "da", {
get: function () {
return typeCast(XamDataChart.$, this.dc);
},
set: function (a) {
this.dc = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "itemsSource", {
get: function () {
return this.c(Series.ui);
},
set: function (a) {
this.h(Series.ui, a);
},
enumerable: false,
configurable: true
});
Series.prototype.po = function (a, b, c, d) {
this.pr();
if (this.dc != null) {
this.dc.sw();
}
};
Object.defineProperty(Series.prototype, "legend", {
get: function () {
return this.c(Series.uo);
},
set: function (a) {
this.h(Series.uo, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "tc", {
get: function () {
if (this.ta == null && this.a5 != null) {
this.ta = this.tb();
}
return this.ta;
},
set: function (a) {
if (this.tc != a) {
var b = this.tc;
this.ta = a;
this.raisePropertyChanged("LegendItem", b, this.ta);
}
},
enumerable: false,
configurable: true
});
Series.prototype.k8 = function () {
return this.tb();
};
Series.prototype.tb = function () {
var _this = this;
var a = typeCast(ContentControl.$, this.ta);
var b = this.legendItemTemplate;
if (b == null) {
b = this.cw.bz(this.c2);
}
if (b != null) {
if (a == null) {
a = new ContentControl();
}
a.content = ((function () {
var $ret = new DataContext();
$ret.series = _this;
$ret.item = null;
return $ret;
})());
a.ah = b;
}
else {
a = null;
}
return a;
};
Object.defineProperty(Series.prototype, "a5", {
get: function () {
return this.a4;
},
set: function (a) {
if (this.a5 != a) {
var b = this.a4;
this.a4 = a;
this.raisePropertyChanged("ActualLegend", b, this.a4);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "legendItemBadgeTemplate", {
get: function () {
return this.c(Series.ul);
},
set: function (a) {
this.h(Series.ul, a);
},
enumerable: false,
configurable: true
});
Series.prototype.tg = function () {
return this.legendItemBadgeTemplate;
};
Object.defineProperty(Series.prototype, "legendItemTemplate", {
get: function () {
return this.c(Series.um);
},
set: function (a) {
this.h(Series.um, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "tf", {
get: function () {
return this.c(Series.t2);
},
set: function (a) {
this.h(Series.t2, a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "index", {
get: function () {
return typeGetValue(this.c(Series.ud));
},
set: function (a) {
this.h(Series.ud, a);
},
enumerable: false,
configurable: true
});
Series.prototype.s7 = function () {
this.rw(null);
};
Series.prototype.pw = function (a) {
this.rw(a);
};
Series.prototype.fk = function (a, b, c, d) {
if (!BrushUtil.d(c, d)) {
return true;
}
return false;
};
Series.prototype.sz = function () {
this.q0();
if (this.index < 0) {
return;
}
if (this.vz != null) {
this.sq("ActualBrush");
var a = this.vt;
this.cw.bk();
this.cw.aq();
var b = this.vt;
var c = this.fk("ActualBrush", this.h1.f > 0 ? this.h1.d() : null, a, b);
this.ss("ActualBrush", c);
}
else {
this.vt = this.dc == null ? null : this.dc.xx(this.index);
}
if (this.ci == 2) {
this.sq("ActualOutline");
var d = this.vx;
this.cw.bl();
this.vx = this.vt;
var e = this.vx;
var f = this.fk("ActualOutline", this.h1.f > 0 ? this.h1.d() : null, d, e);
this.ss("ActualOutline", f);
}
else {
if (this.wf != null) {
this.sq("ActualOutline");
var g = this.vx;
this.cw.bl();
this.cw.ar();
var h = this.vx;
var i = this.fk("ActualOutline", this.h1.f > 0 ? this.h1.d() : null, g, h);
this.ss("ActualOutline", i);
}
else {
this.vx = this.dc == null ? null : this.dc.x3(this.index);
}
}
if ((this.fz || this.ff) && this.fu) {
this.vt = this.vx;
}
else if ((this.fz || this.ff) && this.ex) {
this.vx = this.vt;
}
else if ((this.fz || this.ff) && this.fm) {
this.vx = this.vt;
}
else if (this.f6 && this.legendItemBadgeShape == 2) {
this.vt = this.vx;
}
};
Series.prototype.d4 = function () {
return this.dd.f();
};
Series.prototype.sp = function () {
this.dd.v();
};
Object.defineProperty(Series.prototype, "ik", {
get: function () {
if (!this.dy) {
this.dy = true;
this.h8 = this.js();
}
return this.h8;
},
set: function (a) {
var b = this.h8;
this.h8 = a;
if (b != this.h8) {
this.raisePropertyChanged("ActualResolution", b, this.h8);
}
},
enumerable: false,
configurable: true
});
Series.prototype.js = function () {
if (!isNaN_(this.jr)) {
return this.jr;
}
return DeviceUtils.g(1);
};
Object.defineProperty(Series.prototype, "iq", {
get: function () {
return this.ic;
},
set: function (a) {
this.ic = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "im", {
get: function () {
return this.h9;
},
set: function (a) {
this.h9 = a;
},
enumerable: false,
configurable: true
});
Series.prototype.se = function () {
this.iq = NaN;
this.io = NaN;
this.ip = NaN;
this.im = NaN;
};
Object.defineProperty(Series.prototype, "io", {
get: function () {
return this.ia;
},
set: function (a) {
this.ia = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "ip", {
get: function () {
return this.ib;
},
set: function (a) {
this.ib = a;
},
enumerable: false,
configurable: true
});
Series.prototype.iv = function () {
if (isNaN_(this.ju)) {
return NaN;
}
if (this.ju < 0) {
return 0;
}
return DeviceUtils.g(this.ju);
};
Object.defineProperty(Series.prototype, "by", {
get: function () {
return this.bx;
},
set: function (a) {
var b = this.bx;
this.bx = a;
if (b != this.bx) {
this.raisePropertyChanged("ActualHighlightingMode", enumGetBox(SeriesHighlightingMode_$type, b), enumGetBox(SeriesHighlightingMode_$type, this.bx));
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "cq", {
get: function () {
return this.co;
},
set: function (a) {
var b = this.co;
this.co = a;
if (b != this.co) {
this.raisePropertyChanged("ActualSelectionMode", enumGetBox(SeriesSelectionMode_$type, b), enumGetBox(SeriesSelectionMode_$type, this.co));
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "cp", {
get: function () {
return this.cn;
},
set: function (a) {
var b = this.cn;
this.cn = a;
if (b != this.cn) {
this.raisePropertyChanged("ActualFocusMode", enumGetBox(SeriesSelectionMode_$type, b), enumGetBox(SeriesSelectionMode_$type, this.cn));
}
},
enumerable: false,
configurable: true
});
Series.prototype.get_gk = function () {
return !this.ef;
};
Object.defineProperty(Series.prototype, "gk", {
get: function () {
return this.get_gk();
},
enumerable: false,
configurable: true
});
Series.prototype.p8 = function () {
};
Series.prototype.bz = function () {
if (!this.fh) {
return 1;
}
if (this.dc != null) {
if (this.dc.cg != 1 && this.dc.cg != 0 && !this.e3) {
return this.dc.cg;
}
}
if (this.fg) {
return 2;
}
return 1;
};
Series.prototype.i8 = function () {
if (!isNaN_(this.jn)) {
return this.jn;
}
if (this.dc != null && !isNaN_(this.dc.iy)) {
return this.dc.iy;
}
return 0.2;
};
Series.prototype.cs = function () {
if (!this.fh) {
return 1;
}
if (this.dc != null) {
if (this.dc.ct != 1 && this.dc.ct != 0) {
return this.dc.ct;
}
}
return 1;
};
Series.prototype.cr = function () {
if (!this.fh) {
return 1;
}
if (this.dc != null) {
if (this.dc.ct != 1 && this.dc.ct != 0) {
return this.dc.cr;
}
}
return 1;
};
Series.prototype.f2 = function (a) {
switch (a) {
case 2:
case 4: return true;
}
return false;
};
Object.defineProperty(Series.prototype, "ih", {
get: function () {
return this.h6;
},
set: function (a) {
var b = this.h6;
this.h6 = a;
if (b != this.h6) {
this.raisePropertyChanged("ActualHighlightedValuesFadeOpacity", b, this.h6);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "ii", {
get: function () {
return this.h7;
},
set: function (a) {
var b = this.h7;
this.h7 = a;
if (b != this.h7) {
this.raisePropertyChanged("ActualHighlightingFadeOpacity", b, this.h7);
}
},
enumerable: false,
configurable: true
});
Series.prototype.pr = function () {
this.dx = true;
};
Series.prototype.p7 = function () {
if (this.dx) {
this.dx = false;
if (this.d3) {
if (this.eh) {
this.rx();
}
}
}
};
Series.prototype.rx = function () {
if (this.dc == null) {
return;
}
if (this.a5 == null) {
return;
}
if (this.a5.isItemwise) {
var a = this.a5;
this.a5.clearLegendItemsForSeries(this);
if (this.legendItemVisibility == 0) {
this.pn();
a.renderItemwiseContent(this);
}
this.a5.flushTextContentChangedCheck();
}
};
Series.prototype.g0 = function (a) {
return false;
};
Series.prototype.pn = function () {
var _this = this;
if (this.dp == null) {
return;
}
var a = typeCast(IChartItemLegend_$type, this.a5);
if (a == null || this.dp == null) {
return;
}
this.h0 = new List$1(UIElement.$, 0);
var b = this.dp;
var c = new List$1(SeriesPointOfInterest.$, 0);
this.ed(c, false, false, 0, true);
var _loop_7 = function (d) {
var e = c._inner[d];
var f = this_4.v8(e.c);
var g = this_4.v7(e.c);
var h = this_4.v9(e.c);
var i = this_4.wa(e.c);
var j = new ContentControl();
var k = this_4.k1(e.c, true);
var l = this_4.k3(e.c);
var m = null;
if (typeCast(Date_$type, k) !== null) {
var n = k;
m = (n.toString());
}
else {
if (k != null) {
m = k.toString();
}
}
var o = null;
if (typeCast(Date_$type, l) !== null) {
var p = l;
o = (p.toString());
}
else {
if (l != null) {
o = l.toString();
}
else {
o = m;
}
}
if (this_4.ek) {
g = f;
i = h;
}
var q = this_4.k2(e.c);
j.content = ((function () {
var $ret = new DataContext();
$ret.series = _this;
$ret.item = q;
$ret.itemBrush = g;
$ret.outline = i;
$ret.itemLabel = m;
$ret.legendLabel = o;
return $ret;
})());
var r = this_4.tf;
if (r == null) {
r = this_4.cw.bz(this_4.c1);
}
j.ah = r;
this_4.h0.add(j);
};
var this_4 = this;
for (var d = 0; d < c.count; d++) {
_loop_7(d);
}
};
Series.prototype.k2 = function (a) {
return this.dp.item(a);
};
Series.prototype.k1 = function (a, b) {
if (this.e1 || this.fa || this.fw) {
var c = this.a0();
if (c != null) {
if (!c.dx()) {
return null;
}
if (c.dv) {
var d = a;
if (d < 0) {
return null;
}
var e = c;
var f = e.i$d(d);
var g = this.h5(f);
return g;
}
else {
if (c.dr) {
var h = a;
if (h < 0) {
h = 0;
}
var i = c;
var j = i.getDateTime(h);
return j;
}
else {
var k = a;
if (k < 0) {
return null;
}
var l = c.pm;
if (l == null || l.count == 0) {
return null;
}
var m = false;
if (c.dc && c.ds) {
m = true;
}
if (!m) {
if (k >= l.count) {
k = l.count - 1;
}
}
var n = c.i8(k);
return n;
}
}
}
}
return null;
};
Series.prototype.k3 = function (a) {
return null;
};
Series.prototype.get_isColoredItemwise = function () {
return this.d3;
};
Object.defineProperty(Series.prototype, "isColoredItemwise", {
get: function () {
return this.get_isColoredItemwise();
},
enumerable: false,
configurable: true
});
Series.prototype.get_e9 = function () {
return true;
};
Object.defineProperty(Series.prototype, "e9", {
get: function () {
return this.get_e9();
},
enumerable: false,
configurable: true
});
Series.prototype.sv = function () {
var a = (typeCast(XamDataChart.$, this.dc));
if (a != null) {
this.ig = isNaN_(this.ir) ? a.z3.fs : this.ir;
}
};
Series.prototype.sx = function () {
this.ij = isNaN_(this.jo) ? this.jt() : this.jo;
};
Series.prototype.sw = function () {
this.ih = isNaN_(this.jm) ? 0.2 : this.jm;
};
Series.prototype.jt = function () {
return 1;
};
Object.defineProperty(Series.prototype, "e7", {
get: function () {
return this.dv;
},
set: function (a) {
this.dv = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "cy", {
get: function () {
return this.cx;
},
set: function (a) {
this.cx = a;
},
enumerable: false,
configurable: true
});
Series.prototype.cz = function () {
if (this.c0 == 0) {
return 1;
}
return this.c0;
};
Object.defineProperty(Series.prototype, "ci", {
get: function () {
return this.ch;
},
set: function (a) {
this.ch = a;
},
enumerable: false,
configurable: true
});
Series.prototype.ck = function () {
if (this.cj == 0) {
return 1;
}
return this.cj;
};
Series.prototype.a3 = function (a) {
var _this = this;
return ((function () {
var $ret = new DataContext();
$ret.series = _this;
$ret.item = a;
return $ret;
})());
};
Series.prototype.c5 = function () {
return 1;
};
Series.prototype.c8 = function () {
return 1;
};
Series.prototype.r6 = function () {
this.cw.bg();
};
Series.prototype.sd = function () {
this.eb = true;
this.hb = false;
this.g8 = true;
this.gq = false;
this.r8(true);
};
Series.prototype.rn = function () {
this.g8 = false;
this.hb = true;
this.gq = false;
this.r8(true);
};
Series.prototype.rm = function () {
this.hb = false;
this.g8 = true;
this.gq = false;
this.r8(true);
};
Series.prototype.ro = function () {
this.gq = true;
if (!this.gu() || this.jj() == 0 || !this.hk(this.cw.b9, this.cw.ca, this.cw)) {
this.rg();
}
this.g8 = false;
this.hb = true;
this.r8(true);
};
Series.prototype.r4 = function () {
this.pf();
};
Series.prototype.pf = function () {
};
Series.prototype.qp = function () {
};
Series._hw = function (a, b, c) {
var d;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
d = b;
_a.label = 1;
case 1:
if (!(d < c))
return [3 /*break*/, 4];
return [4 /*yield*/, a(d)];
case 2:
_a.sent();
_a.label = 3;
case 3:
d++;
return [3 /*break*/, 1];
case 4: return [2 /*return*/];
}
});
};
Series.hw = function (a, b, c) {
return toEnum(function () { return Series._hw(a, b, c); });
};
Series.hv = function (a, b) {
return Series.hw(a, 0, b);
};
Series.prototype.bs = function () {
return this.br;
};
Series.prototype.sk = function (a) {
this.s1(a);
};
Series.prototype.jh = function () {
return this.km;
};
Series.prototype.ji = function () {
return this.kn;
};
Series.prototype.jj = function () {
return this.ko;
};
Series.prototype.get_hd = function () {
return this.d2;
};
Series.prototype.set_hd = function (a) {
this.d2 = a;
};
Object.defineProperty(Series.prototype, "hd", {
get: function () {
return this.get_hd();
},
set: function (a) {
this.set_hd(a);
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "gn", {
get: function () {
return this.hd;
},
enumerable: false,
configurable: true
});
Series.prototype.pg = function () {
this.ba.a$z();
};
Series.prototype.dh = function (a, b, c) {
return null;
};
Series.prototype.di = function (a, b, c) {
return null;
};
Series.prototype.ra = function (a, b, c, d) {
this.ba.a$af(this, a, b, c, d);
};
Series.prototype.so = function (a) {
this.ba.a$as(this, a);
};
Series.prototype.pa = function (a, b) {
if (this.a5 != null && this.tc != null) {
if (b == null && this.a5.containsChild(this.tc)) {
this.a5.removeChild(this.tc);
}
if (b != null && !this.a5.containsChild(this.tc) && this.legendItemVisibility != 1) {
this.a5.addChildInOrder(this.tc, this);
}
this.a5.flushTextContentChangedCheck();
}
};
Series.prototype.ph = function () {
if (this.a5 == null || this.tc == null) {
return;
}
this.a5.removeChild(this.tc);
this.a5.flushTextContentChangedCheck();
};
Series.prototype.o9 = function (a, b) {
if (this.tc != null) {
if (a != null && a.containsChild(this.tc)) {
a.removeChild(this.tc);
}
if (this.dc != null && b != null && !b.containsChild(this.tc) && this.legendItemVisibility != 1) {
b.addChildInOrder(this.tc, this);
}
}
if (a != null) {
a.flushTextContentChangedCheck();
}
if (b != null) {
b.flushTextContentChangedCheck();
}
};
Series.prototype.pb = function (a, b) {
if (this.a5 != null) {
if (a != null && this.a5.containsChild(a)) {
this.a5.removeChild(a);
}
if (this.dc != null && b != null && this.legendItemVisibility != 1) {
this.a5.addChildInOrder(b, this);
}
this.a5.flushTextContentChangedCheck();
}
};
Series.prototype.r0 = function (a) {
this.dp = a.releaseFastItemsSource(this.itemsSource);
};
Series.prototype.rz = function (a) {
this.dp = a.getFastItemsSource(this.itemsSource);
};
Series.prototype.a6 = function () {
if (this.legend != null) {
return this.legend;
}
if (this.dc != null && this.dc.legend != null) {
return this.dc.legend;
}
return null;
};
Series.prototype.gt = function () {
return false;
};
Series.prototype.gu = function () {
return false;
};
Series.prototype.gl = function (a) {
return (a && this.jh() > 0) || this.d4() || (this.g9 && this.gt() && this.ji() > 0) || (this.hc && this.gu() && this.jj() > 0);
};
Series.prototype.pp = function (a) {
if (a != null) {
a.cx(this);
}
};
Series.prototype.ry = function (a) {
if (a != null) {
a.d3(this);
}
};
Series.prototype.bt = function () {
return this.cw.h();
};
Series.prototype.s1 = function (a) {
this.cw.bm(a);
};
Series.prototype.sn = function (a, b) {
this.ba.a$ar(this, a, b);
};
Series.prototype.get_hg = function () {
return false;
};
Object.defineProperty(Series.prototype, "hg", {
get: function () {
return this.get_hg();
},
enumerable: false,
configurable: true
});
Series.prototype.rr = function (a, b) {
this.cw.a3(a, b);
};
Series.prototype.rt = function (a) {
this.ri(this.xd, a);
};
Series.prototype.qk = function (a) {
if (this.dp != null) {
this.dp.handleCollectionChanged(a);
}
};
Series.prototype.qy = function (a, b, c) {
this.qk(new NotifyCollectionChangedEventArgs(2, 2, c, b, a));
};
Series.prototype.qt = function () {
this.qk(new NotifyCollectionChangedEventArgs(0, 4));
};
Series.prototype.qw = function (a, b) {
this.qk(new NotifyCollectionChangedEventArgs(1, 0, b, a));
};
Series.prototype.qx = function (a, b) {
this.qk(new NotifyCollectionChangedEventArgs(1, 1, b, a));
};
Series.prototype.su = function () {
this.r8(false);
};
Series.prototype.g2 = function (a, b) {
return false;
};
Series.prototype.get_coercionMethods = function () {
return this._coercionMethods;
};
Series.prototype.set_coercionMethods = function (a) {
this._coercionMethods = a;
};
Object.defineProperty(Series.prototype, "coercionMethods", {
get: function () {
return this.get_coercionMethods();
},
set: function (a) {
this.set_coercionMethods(a);
},
enumerable: false,
configurable: true
});
Series.prototype.get_expectFunctions = function () {
return this.du;
};
Series.prototype.set_expectFunctions = function (a) {
var b = this.du;
this.du = a;
if (b != this.du) {
this.raisePropertyChanged("ExpectFunctions", b, this.du);
}
};
Object.defineProperty(Series.prototype, "expectFunctions", {
get: function () {
return this.get_expectFunctions();
},
set: function (a) {
this.set_expectFunctions(a);
},
enumerable: false,
configurable: true
});
Series.prototype.a2 = function (a, b) {
return null;
};
Object.defineProperty(Series.prototype, "b4", {
get: function () {
return this.b1;
},
set: function (a) {
var b = this.b1;
this.b1 = a;
if (b != this.b1) {
this.raisePropertyChanged("HitTestMode", enumGetBox(SeriesHitTestMode_$type, b), enumGetBox(SeriesHitTestMode_$type, this.b1));
}
},
enumerable: false,
configurable: true
});
Series.prototype.b3 = function () {
return this.b4 == 0 ? 2 : this.b4;
};
Object.defineProperty(Series.prototype, "b2", {
get: function () {
return this.b0;
},
set: function (a) {
var b = this.b0;
this.b0 = a;
if (b != this.b0) {
this.raisePropertyChanged("ActualHitTestMode", enumGetBox(SeriesHitTestMode_$type, b), enumGetBox(SeriesHitTestMode_$type, this.b0));
}
},
enumerable: false,
configurable: true
});
Series.prototype.dl = function (a) {
if (a == null) {
return this.dp.registerColumn(null, null, false);
}
var b = null;
var c = SeriesViewer.de(a, this.coercionMethods);
b = c.a;
return this.dp.registerColumn(a, b, this.expectFunctions);
};
Series.prototype.dm = function (a) {
if (a == null) {
return this.dp.registerColumnInt(null, null, false);
}
var b = null;
var c = SeriesViewer.de(a, this.coercionMethods);
b = c.a;
return this.dp.registerColumnInt(a, b, this.expectFunctions);
};
Series.prototype.dn = function (a) {
if (a == null) {
return this.dp.registerColumnObject(null, null, false);
}
var b = null;
var c = SeriesViewer.de(a, this.coercionMethods);
b = c.a;
return this.dp.registerColumnObject(a, b, this.expectFunctions);
};
Object.defineProperty(Series.prototype, "xd", {
get: function () {
return this.cw != null ? this.cw.b9 : Rect.empty;
},
enumerable: false,
configurable: true
});
Series.prototype.get_fp = function () {
return false;
};
Object.defineProperty(Series.prototype, "fp", {
get: function () {
return this.get_fp();
},
enumerable: false,
configurable: true
});
Series.prototype.get_fo = function () {
return false;
};
Object.defineProperty(Series.prototype, "fo", {
get: function () {
return this.get_fo();
},
enumerable: false,
configurable: true
});
Series.prototype.sm = function (a) {
};
Series.prototype.sl = function (a, b) {
};
Series.prototype.pl = function (a, b) {
this.bc.copyVisualData(a, b);
};
Series.prototype.kv = function () {
var a = this.bc.exportVisualData(this, this.xd);
this.qd(a);
this.cw.ax(a);
this.bc.exportLayerVisualData(this, a);
return a;
};
Series.prototype.qd = function (a) {
};
Series.prototype.qq = function (a) {
if (this.wq.x != a.x || this.wq.y != a.y) {
this.wq = a;
this.q6(a);
}
};
Series.prototype.q6 = function (a) {
};
Series.prototype.qs = function () {
};
Series.prototype.qz = function () {
};
Series.prototype.aw = function (a) {
return null;
};
Series.prototype.ai = function () {
return null;
};
Series.prototype.i5 = function () {
return NaN;
};
Series.i6 = function (a, b) {
if (a == null || a.count == 0) {
return NaN;
}
if (b != null && b.i$b != null) {
if (b.i$b.count != a.count) {
return NaN;
}
for (var c = 0; c < a.count; c++) {
if (!isNaN_(a.item(b.i$b._inner[c])) && a.item(b.i$b._inner[c]) != 0) {
return a.item(b.i$b._inner[c]);
}
}
}
for (var d = 0; d < a.count; d++) {
if (!isNaN_(a.item(d)) && a.item(d) != 0) {
return a.item(d);
}
}
return NaN;
};
Series.i7 = function (a, b) {
if (a == null || a.count == 0) {
return NaN;
}
if (b != null && b.i$b != null) {
if (b.i$b.count != a.count) {
return NaN;
}
for (var c = 0; c < a.count; c++) {
if (!isNaN_(a.item(b.i$b._inner[c])) && a.item(b.i$b._inner[c]) != 0) {
return a.item(b.i$b._inner[c]);
}
}
}
for (var d = 0; d < a.count; d++) {
if (!isNaN_(a.item(d)) && a.item(d) != 0) {
return a.item(d);
}
}
return NaN;
};
Series.prototype.q4 = function () {
};
Object.defineProperty(Series.prototype, "it", {
get: function () {
return this.id;
},
set: function (a) {
var b = this.it;
if (a != b) {
this.id = a;
this.raisePropertyChanged("FinalValue", b, this.it);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "jq", {
get: function () {
return this.ie;
},
set: function (a) {
var b = this.jq;
if (a != b) {
this.ie = a;
this.raisePropertyChanged("PercentChange", b, this.jq);
}
},
enumerable: false,
configurable: true
});
Series.prototype.s5 = function () {
var a = this.i5();
this.jq = (this.it - a) / a * 100;
};
Series.prototype.ky = function (a) {
return null;
};
Object.defineProperty(Series.prototype, "lt", {
get: function () {
return !stringIsNullOrWhiteSpace(this.ds.bz) ? this.ds.bz : "Open";
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "lf", {
get: function () {
return !stringIsNullOrWhiteSpace(this.ds.bw) ? this.ds.bw : "Close";
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "li", {
get: function () {
return !stringIsNullOrWhiteSpace(this.ds.bx) ? this.ds.bx : "High";
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "lr", {
get: function () {
return !stringIsNullOrWhiteSpace(this.ds.by) ? this.ds.by : "Low";
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "l1", {
get: function () {
return !stringIsNullOrWhiteSpace(this.ds.b0) ? this.ds.b0 : "Volume";
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "l0", {
get: function () {
return !stringIsNullOrWhiteSpace(this.ds.b9) ? this.ds.b9 : "Value";
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "lv", {
get: function () {
return !stringIsNullOrWhiteSpace(this.ds.m) ? this.ds.m : "Radius";
},
enumerable: false,
configurable: true
});
Series.prototype.s0 = function () {
this.te = this.tg();
this.cw.bx();
};
Series.prototype.av = function () {
var a = this.legendItemBadgeShape;
if (a == 0) {
a = this.bg();
}
var b = 0;
if (a == 3) {
if (this.fd || this.gc) {
b = 6;
}
else if (this.fb) {
b = 7;
}
else {
b = 5;
}
}
else if (a == 4) {
if (this.hasMarkers && !this.fc) {
b = 8;
}
else {
b = 0;
}
}
else if (a == 2) {
if (this.hasMarkers && !this.ev) {
b = 1;
}
else {
b = 2;
}
}
else if (a == 1) {
b = 0;
}
else if (a == 5) {
b = 3;
}
else if (a == 6) {
b = 4;
}
else if (a == 7) {
b = 9;
}
return b;
};
Series.prototype.bf = function (a) {
return a;
};
Series.prototype.bg = function () {
if (this.ex || this.e0 || this.e2 || this.ft || this.f1 || this.fd || this.fb || this.fc || this.f6 || this.gc) {
return this.bf(3);
}
else if (this.fn || this.f3 || this.fu || this.fm || this.isValueOverlay) {
return this.bf(2);
}
else if (this.ev || this.fr || this.fq) {
return this.bf(1);
}
else if (this.ek) {
return this.bf(4);
}
return this.bf(1);
};
Series.prototype.bk = function () {
return null;
};
Series.prototype.bm = function () {
return this.bk();
};
Object.defineProperty(Series.prototype, "cc", {
get: function () {
return this.b9;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "cb", {
get: function () {
return this.b8;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "actualLayers", {
get: function () {
return this.b7;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Series.prototype, "ee", {
get: function () {
return this.hx.count > 0;
},
enumerable: false,
configurable: true
});
Series.prototype.sj = function (a, b) {
if (b != null) {
a.legendItemVisibility = 1;
}
else {
a.legendItemVisibility = 0;
}
a.bl = b;
};
Series.prototype.sr = function (a) {
if (!this.hs.containsKey(a)) {
this.hs.addItem(a, 0);
}
this.hs.item(a, this.hs.item(a) + 1);
};
Series.prototype.st = function (a) {
if (this.hs.containsKey(a)) {
this.hs.item(a, this.hs.item(a) - 1);
if (this.hs.item(a) == 0) {
this.hs.removeItem(a);
}
}
};
Series.prototype.f8 = function (a) {
if (this.hs.containsKey(a) && this.hs.item(a) > 0) {
return true;
}
return false;
};
Series.prototype.sq = function (a) {
if (!this.ho.containsKey(a)) {
this.ho.addItem(a, new Stack$1(Boolean_$type));
}
this.ho.item(a).h(true);
};
Series.prototype.ss = function (a, b) {
if (this.ho.containsKey(a)) {
this.ho.item(a).e();
if (this.ho.item(a).f == 0) {
this.ho.removeItem(a);
var c = this.t5(a);
if (b && this.ei && !this.f8(a) && !this.f8("Actual" + a)) {
{
if (c != null) {
this.sr(a);
this.lc(a, this.c(c), this.c(c));
this.st(a);
}
}
}
}
}
};
Series.prototype.gs = function (a) {
if (this.ho.containsKey(a) && this.ho.item(a).d()) {
return true;
}
return false;
};
Series.prototype.f5 = function () {
return this.ho.count > 0;
};
Series.prototype.k4 = function () {
return null;
};
Series.prototype.bn = function (a, b) {
if (this.hr.containsKey(b)) {
return this.hr.item(b);
}
var c = this.bm();
if (c == null) {
return null;
}
c.bo = this;
c.b6 = b;
this.qo(c);
this.sc(c);
b.am(this, c);
this.pd(a, c);
this.hr.item(b, c);
this.hx.insert(a, c);
return c;
};
Series.prototype.qo = function (a) {
if (this.lb != null) {
a.lb = this.lb;
}
if (this.gv) {
a.gv = true;
}
};
Series.prototype.pd = function (a, b) {
this.cw.ap(a, b);
};
Series.prototype.pq = function (a) {
this.cw.au(a);
};
Series.prototype.sc = function (a) {
var e_136, _a;
try {
for (var _b = __values(fromEnum(this.hu)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
var c = this.t5(b);
if (c == null) {
continue;
}
this.pk(a, c);
}
}
catch (e_136_1) {
e_136 = { error: e_136_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_136)
throw e_136.error;
}
}
};
Series.prototype.gf = function (a) {
if (a.name == "ToolTip") {
return true;
}
return false;
};
Series.prototype.gw = function (a) {
if (a.name == "ToolTip" && this.gv) {
return true;
}
return false;
};
Series.prototype.pk = function (a, b) {
var c = a.b6;
if (c != null) {
var d = this.c(b);
if (this.gw(b)) {
return;
}
if (this.gf(b)) {
d = this.ks(b, d);
}
c.ai(this, a, b, d);
}
};
Series.prototype.ks = function (a, b) {
if (a.name == "ToolTip") {
return null;
}
return b;
};
Series.prototype.pu = function (a) {
if (this.hr.containsKey(a)) {
var b = this.hr.item(a);
this.hr.removeItem(a);
a.ap(b);
this.pq(b);
this.hx.remove(b);
}
};
Series.prototype.getDataLegendBadge = function () {
var a = this.tg();
if (a == null) {
a = LegendTemplates.af(this);
}
return a;
};
Series.prototype.getDataLegendBadgeContext = function () {
var _this = this;
if (this.a8 == null) {
this.a8 = ((function () {
var $ret = new DataContext();
$ret.series = _this;
$ret.item = null;
return $ret;
})());
}
return this.a8;
};
Series.prototype.getDataLegendBadgeContextAtPosition = function (a, b) {
var c = this.getDataLegendBadgeContext();
var d = this.getDataLegendResolvedWorldPositionX(a);
var e = this.getDataLegendResolvedWorldPositionY(b);
var f = this.kc({ $type: Point_$type, x: d, y: e });
if (this.dp == null || f < 0 || f > (this.dp.count - 1)) {
return null;
}
if (this.d3) {
c.itemBrush = this.v7(f);
c.outline = this.wa(f);
}
return c;
};
Series.prototype.getDataLegendBadgeShapeAndMarker = function () {
var a = this.av();
if (a == 8) {
return this.ml();
}
else if (a == 1) {
if (this.be == 0) {
return "Line";
}
return "LineWith" + this.ml();
}
else if (a == 3) {
return "Bar";
}
else if (a == 4) {
return "Column";
}
else if (a == 9) {
return "None";
}
else if (a == 0) {
return "Circle";
}
else if (a == 2) {
return "Line";
}
else if (a == 5) {
return "Square";
}
else if (a == 6) {
if (this.be == 0) {
return "Square";
}
else {
return "TwoColumns";
}
}
else if (a == 7) {
if (this.be == 0) {
return "Square";
}
else {
return "TwoBars";
}
}
return EnumUtil.getName(ActualLegendItemBadgeShape_$type, a);
};
Series.prototype.ml = function () {
return null;
};
Series.prototype.mm = function (a, b) {
if (b == a.dc.uh) {
return "Circle";
}
else if (b == a.dc.ui) {
return "Diamond";
}
else if (b == a.dc.uj) {
return "Hexagon";
}
else if (b == a.dc.uk) {
return "Hexagram";
}
else if (b == a.dc.ul) {
return "Pentagon";
}
else if (b == a.dc.um) {
return "Pentagram";
}
else if (b == a.dc.un) {
return "Pyramid";
}
else if (b == a.dc.uo) {
return "Square";
}
else if (b == a.dc.up) {
return "Tetragram";
}
else if (b == a.dc.uq) {
return "Triangle";
}
else if (b != null) {
return "Custom";
}
else {
return "None";
}
};
Series.prototype.getDataLegendSeriesTitle = function () {
return this.title == null ? null : this.title.toString();
};
Series.prototype.i4 = function (a, b) {
return FastItemColumn.i(this.kz(a, b));
};
Series.prototype.getDataLegendResolvedWorldPositionX = function (a) {
if (isNaN_(a) || a < 0) {
if (this.isVertical) {
a = 1;
}
else {
var b = this.a0();
if (b != null) {
if (b.dn) {
a = 0;
}
else {
a = 1;
}
}
else {
a = 1;
}
}
}
return a;
};
Series.prototype.getDataLegendResolvedWorldPositionY = function (a) {
if (isNaN_(a) || a < 0) {
if (this.isVertical) {
var b = this.a0();
if (b != null) {
if (b.dn) {
a = 1;
}
else {
a = 0;
}
}
else {
a = 0;
}
}
else {
a = 0;
}
}
return a;
};
Series.prototype.getDataLegendSeriesContextAt = function (a, b) {
var c = new DataLegendSeriesValueInfo();
c.l = this.jd({ $type: Point_$type, x: a, y: b }, false, false);
c.a = 0;
c.q = "Value";
c.r = "Value";
c.s = "";
var d = new DataLegendSeriesContext();
d.e = ((function () {
var $ret = new List$1(DataLegendSeriesValueInfo.$, 0);
$ret.add(c);
return $ret;
})());
d.h = this.mn();
return d;
};
Series.prototype.mn = function () {
var a = "Category";
if (this.ff) {
a = "Geographic";
}
if (this.fx) {
a = "Range";
}
if (this.f0) {
a = "Shape";
}
if (this.fz) {
a = "Scatter";
}
if (this.fs) {
a = "Polar";
}
if (this.fw) {
a = "Radial";
}
if (this.isStacked || this.isFragment) {
a = "Stacked";
}
if (this.fe) {
a = "Category";
}
if (this.fa) {
if (this.fd) {
a = "Financial";
}
else {
a = getInstanceType(this).typeName.toString();
}
}
if (this.fi) {
a += " Highlight";
}
else if (this.isValueOverlay) {
a += " Overlay";
}
else {
a += " Series";
}
return a;
};
Series.prototype.getDataLegendAxisLabelFromCursorPosition = function (a, b) {
if (this.e1 || this.fa || this.fw) {
var c = this.a0();
if (c != null) {
if (!c.dx()) {
return null;
}
var d = this.getDataLegendResolvedWorldPositionX(a);
var e = this.getDataLegendResolvedWorldPositionY(b);
var f = { $type: Point_$type, x: d, y: e };
if (c.dv) {
var g = this.ke(f);
if (g < 0) {
return null;
}
var h = c;
var i = h.i$d(g);
var j = this.h5(i);
return j;
}
else {
if (c.dr) {
var k = this.iy(f);
if (k < 0) {
k = 0;
}
var l = c;
var m = l.getDateTime(k);
return m;
}
else {
var n = this.kc(f);
if (n < 0) {
return null;
}
var o = c.pm;
if (o == null || o.count == 0) {
return null;
}
var p = false;
if (c.dc && c.ds) {
p = true;
}
if (!p) {
if (n >= o.count) {
n = o.count - 1;
}
}
var q = c.i8(n);
return q;
}
}
}
}
return null;
};
Series.prototype.h5 = function (ticks_) {
var a = (new Date(ticks_));
return a;
};
Series.prototype.wk = function (a) {
if (a == null) {
return null;
}
if (this.b5 == null) {
return a;
}
a = BrushUtil.s(a, this.ih);
return a;
};
Series.prototype.cg = function () {
var _this = this;
var a = this.mp();
if (a != null) {
var b_2 = this.mo(a);
if (b_2 != null) {
var c = ((function () {
var $ret = new SeriesMatcher();
$ret.f = a;
$ret.e = b_2;
return $ret;
})());
if (this.gd(c)) {
return c;
}
}
}
if (this.name != null) {
var d = ((function () {
var $ret = new SeriesMatcher();
$ret.g = _this.name;
return $ret;
})());
if (this.gd(d)) {
return d;
}
}
var e = "Series Title";
if (this.title != null && typeof this.title === 'string' && !Base.equalsStatic(this.title, e)) {
var f = ((function () {
var $ret = new SeriesMatcher();
$ret.h = _this.title;
return $ret;
})());
if (this.gd(f)) {
return f;
}
}
if (this.index != -1) {
var g = ((function () {
var $ret = new SeriesMatcher();
$ret.d = _this.index;
return $ret;
})());
return g;
}
return null;
};
Series.prototype.gd = function (a) {
if (this.dc != null) {
var b = SeriesMatcherHelper.a(this.dc, a);
if (b != null && b.length == 1) {
return true;
}
}
return false;
};
Series.prototype.qr = function () {
};
Series.prototype.w1 = function (a) {
var b = this.ai();
if (b == null) {
return { $type: Point_$type, x: NaN, y: NaN };
}
var c = null;
var d = null;
for (var e = 0; e < b.length; e++) {
var f = b[e];
if (!f.dy) {
c = f;
}
else {
d = f;
}
}
if (c == null || d == null) {
return { $type: Point_$type, x: NaN, y: NaN };
}
var g = 0;
var h = 0;
if (c.df && c.categoryMode != 0) {
if (this.fa) {
g = this.getOffsetValue();
}
else if (this.e1) {
g = this.getOffsetValue();
}
}
if (d.df && d.categoryMode != 0) {
if (this.e1) {
h = this.getOffsetValue();
}
}
var i = a.x;
var j = a.y;
i -= g;
j -= h;
var k = new ScalerParams(1, this.dc.yr, this.dc.y9, c.dn);
k.c = this.getEffectiveViewport();
var l = c.f9(i, k);
var m = new ScalerParams(1, this.dc.yr, this.dc.y9, d.dn);
m.c = this.getEffectiveViewport();
var n = d.f9(j, m);
return { $type: Point_$type, x: l, y: n };
};
Series.prototype.oz = function (a, b) {
var c = { $type: Point_$type, x: b.x, y: b.y };
if (a.isVertical) {
if (isNaN_(b.y)) {
return new Tuple$2(Boolean_$type, Point_$type, false, c);
}
if (isNaN_(b.x)) {
c.x = 0;
return new Tuple$2(Boolean_$type, Point_$type, true, c);
}
}
else {
if (isNaN_(b.x)) {
return new Tuple$2(Boolean_$type, Point_$type, false, c);
}
if (isNaN_(b.y)) {
c.y = 0;
return new Tuple$2(Boolean_$type, Point_$type, true, c);
}
}
return new Tuple$2(Boolean_$type, Point_$type, true, c);
};
Series.$t = markType(Series, 'Series', Control.$, [INotifyPropertyChanged_$type, IProvidesViewport_$type, ILegendSeries_$type, ILegendSeriesInternal_$type, ILegendOwner_$type, ILegendTemplateProvider_$type, IDataLegendSeries_$type]);
Series.j9 = 0;
Series.vn = DependencyProperty.i("VisibilityProxy", Visibility_$type, Series.$, new PropertyMetadata(2, enumGetBox(Visibility_$type, 0), function (a, b) { return a.raisePropertyChanged("VisibilityProxy", b.oldValue, b.newValue); }));
Series.hl = null;
Series.hp = null;
Series.hq = null;
Series.ui = DependencyProperty.i("ItemsSource", IEnumerable_$type, Series.$, new PropertyMetadata(2, null, function (a, b) {
var c = typeCast(Series.$, a);
if (c.c4 != null) {
c.c4.releaseFastItemsSource(b.oldValue);
}
a.raisePropertyChanged("ItemsSource", b.oldValue, b.newValue);
}));
Series.uo = DependencyProperty.i("Legend", IChartLegend_$type, Series.$, new PropertyMetadata(2, null, function (a, b) {
var c = typeCast(Series.$, a);
c.raisePropertyChanged("Legend", b.oldValue, b.newValue);
}));
Series.ul = DependencyProperty.i("LegendItemBadgeTemplate", DataTemplate.$, Series.$, new PropertyMetadata(2, null, function (a, b) {
var c = typeCast(Series.$, a);
c.raisePropertyChanged("LegendItemBadgeTemplate", b.oldValue, b.newValue);
if (c.tc != null) {
c.tc = c.tb();
}
}));
Series.um = DependencyProperty.i("LegendItemTemplate", DataTemplate.$, Series.$, new PropertyMetadata(2, null, function (a, b) {
var c = typeCast(Series.$, a);
c.raisePropertyChanged("LegendItemTemplate", b.oldValue, b.newValue);
if (c.tc != null) {
c.tc = c.tb();
}
}));
Series.t2 = DependencyProperty.i("DiscreteLegendItemTemplate", DataTemplate.$, Series.$, new PropertyMetadata(2, null, function (a, b) {
var c = typeCast(Series.$, a);
c.raisePropertyChanged("DiscreteLegendItemTemplate", b.oldValue, b.newValue);
}));
Series.ud = DependencyProperty.i("Index", Number_$type, Series.$, new PropertyMetadata(2, -1, function (a, b) {
var c = typeCast(Series.$, a);
c.raisePropertyChanged("Index", b.oldValue, b.newValue);
if (c.tc != null) {
c.tc = c.tb();
}
}));
Series.$$p = markDep(DependencyProperty, PropertyMetadata, Series, 'raisePropertyChanged', ['ActualAreaFillOpacity:ig:ti', [1, 1], 'ActualBrush:vt:tj', [Brush.$], 'ActualFocusBrush:vu:tk', [Brush.$], 'ActualLegendItemBadgeBrush:vv:tl', [Brush.$], 'ActualLegendItemBadgeOutline:vw:tm', [Brush.$], 'ActualLegendItemBadgeTemplate:te:tn', [DataTemplate.$], 'ActualMarkerFillOpacity:ij:to', [1, 1], 'ActualOutline:vx:tp', [Brush.$], 'ActualSelectionBrush:vy:tq', [Brush.$], 'ActualThickness:il:tr', [1, DeviceUtils.g(2)], 'AreaFillOpacity:ir:ts', [1, NaN], 'AttachTooltipToRoot:d5:tt', [0, true], 'AutoCalloutLabelFormat:l4:tu', [2, null], 'AutoCalloutLabelFormatSpecifiers:ag:tv', [Array_$type, null], 'AutoCalloutValueLabelFormat:l7:tw', [2, null], 'AutoCalloutValueLabelFormatSpecifiers:ah:tx', [Array_$type, null], 'Brush:vz:ty', [Brush.$, null], 'DashArray:wm:tz', [DoubleCollection.$], 'DashCap:wn:t0', [PenLineCap_$type, enumGetBox(PenLineCap_$type, 0)], 'DataLegendGroup:me:t1', [2, null], 'FastItemsSource:dp:t3', [IFastItemsSource_$type], 'FocusBrush:v4:t4', [Brush.$, null], 'HighlightedItemsSource::t6', [IEnumerable_$type, null], 'HighlightedLegendItemVisibility:xi:t7', [Visibility_$type, enumGetBox(Visibility_$type, 0)], 'HighlightedTitleSuffix:ms:t8', [2, " - Highlighted"], 'HighlightedValuesDataLegendGroup:mu:t9', [2, null], 'HighlightedValuesDisplayMode:bw:ua', [SeriesHighlightedValuesDisplayMode_$type, enumGetBox(SeriesHighlightedValuesDisplayMode_$type, 0)], 'HighlightedValuesFadeOpacity:jm:ub', [1, NaN], 'HighlightingFadeOpacity:jn:uc', [1, NaN], 'IsActualLegendFinancial:ep:ue', [0, false], 'IsComponentHighlightingModeIgnored:e3:uf', [0, false], 'IsDropShadowEnabled:e8:ug', [0, false], 'IsHighlightingEnabled:fg:uh', [0, false], 'LegendItemBadgeMode:be:uj', [LegendItemBadgeMode_$type, enumGetBox(LegendItemBadgeMode_$type, 0)], 'LegendItemBadgeShape::uk', [LegendItemBadgeShape_$type, enumGetBox(LegendItemBadgeShape_$type, 0)], 'LegendItemVisibility::un', [Visibility_$type, enumGetBox(Visibility_$type, 0)], 'LineCap:wo:up', [PenLineCap_$type, enumGetBox(PenLineCap_$type, 0)], 'LineJoin:wp:uq', [PenLineJoin_$type, enumGetBox(PenLineJoin_$type, 0)], 'MarkerFillOpacity:jo:ur', [1, NaN], 'MiterLimit:jp:us', [1, 10], 'MouseOverEnabled:ge:ut', [0, true], 'OutlineMode:cj:uu', [SeriesOutlineMode_$type, enumGetBox(SeriesOutlineMode_$type, 0)], 'Outline:wf:uv', [Brush.$, null], 'Resolution:jr:uw', [1, NaN], 'SafeActualBrush::ux', [Brush.$], 'SelectionBrush:wj:uy', [Brush.$, null], 'SelectionThickness:ju:uz', [1, NaN], 'ShadowBlur:jv:u0', [1, NaN], 'ShadowColor:wl:u1', [Color.$], 'ShadowOffsetX:jw:u2', [1, NaN], 'ShadowOffsetY:jx:u3', [1, NaN], 'ShouldAnimateOnDataSourceSwap:gm:u4', [0, false], 'ShouldHideAutoCallouts:go:u5', [0, false], 'ShouldRemoveHighlightedDataOnLayerHidden:gp:u6', [0, false], 'ShouldShiftOpacityForSafeActualBrush:gr:u7', [0, true], 'ShowDefaultTooltip:gv:u8', [0, false], 'Thickness:jy:u9', [1, DeviceUtils.g(2)], 'Title::va', [4, "Series Title"], 'ToolTip::vb', [4, null], 'TransitionDuration:km:vc', [1, 0], 'TransitionEasingFunction:de:vd', [Delegate_$type, null], 'TransitionInDuration:kn:ve', [1, 1000], 'TransitionInEasingFunction:df:vf', [Delegate_$type, null], 'TransitionInSpeedType:c6:vg', [TransitionInSpeedType_$type, enumGetBox(TransitionInSpeedType_$type, 0)], 'TransitionOutDuration:ko:vh', [1, 1000], 'TransitionOutEasingFunction:dg:vi', [Delegate_$type, null], 'TransitionOutSpeedType:c9:vj', [TransitionOutSpeedType_$type, enumGetBox(TransitionOutSpeedType_$type, 0)], 'TransitionProgress:jz:vk', [1, 0], 'UseItemWiseColors:hf:vl', [0, false], 'UseSingleShadow:hi:vm', [0, true], 'VisibleRangeMarginBottom:j0:vo', [1, NaN], 'VisibleRangeMarginLeft:j1:vp', [1, NaN], 'VisibleRangeMarginRight:j2:vq', [1, NaN], 'VisibleRangeMarginTop:j3:vr', [1, NaN], 'VisibleRangeMode:c0:vs', [SeriesVisibleRangeMode_$type, enumGetBox(SeriesVisibleRangeMode_$type, 0)]]);
return Series;
}(Control));
export { Series };
/**
* @hidden
*/
var MarkerSeries = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(MarkerSeries, _super);
function MarkerSeries() {
var _this = _super.call(this) || this;
_this.xs = 1;
_this.xn = 1;
_this.xj = 1;
_this.ym = null;
_this.xt = _this.xu();
return _this;
}
MarkerSeries.prototype.hz = function () {
var a = _super.prototype.hz.call(this);
{
var b = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.r = true;
$ret.ad = "MarkerBrush";
$ret.p = true;
$ret.y = "ActualMarkerBrush";
$ret.q = true;
return $ret;
})());
b.valueResolving = delegateCombine(b.valueResolving, runOn(this, this.si));
a.add(b);
}
{
var c = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.r = true;
$ret.ad = "MarkerOutline";
$ret.p = true;
$ret.y = "ActualMarkerOutline";
$ret.q = true;
return $ret;
})());
c.valueResolving = delegateCombine(c.valueResolving, runOn(this, this.si));
a.add(c);
}
return a;
};
MarkerSeries.prototype.xg = function (a, b) {
if (this.fw || this.fs) {
return new Thickness(1, 0, 0, 0, 0);
}
if (this.xt != 1 && this.xt != 13) {
var c = this.xr.c8();
var d = (c.width / 2) + (this.x4 / 2);
var e = (c.height / 2) + (this.x4 / 2);
var f = e;
var g = e;
var h = d;
var i = d;
if (a == 2 || a == 4) {
h = 0;
}
if (a == 2 || a == 3) {
i = 0;
}
if (b == 2 || b == 3) {
f = 0;
}
if (b == 2 || b == 4) {
g = 0;
}
return new Thickness(1, h, f, i, g);
}
return new Thickness(1, 0, 0, 0, 0);
};
MarkerSeries.prototype.rh = function (a) {
_super.prototype.rh.call(this, a);
this.xr = a;
};
MarkerSeries.prototype.get_hasMarkers = function () {
return true;
};
MarkerSeries.prototype.get_en = function () {
return this.xt != 13 && this.xt != 1;
};
MarkerSeries.prototype.v5 = function () {
return this.y2;
};
MarkerSeries.prototype.v6 = function () {
return this.y3;
};
MarkerSeries.prototype.th = function () {
return this.ym;
};
MarkerSeries.prototype.ml = function () {
return this.mm(this, this.ym);
};
Object.defineProperty(MarkerSeries.prototype, "xt", {
get: function () {
return this.xs;
},
set: function (a) {
var b = this.xs;
this.xs = a;
if (b != a) {
this.raisePropertyChanged("ActualMarkerType", enumGetBox(MarkerType_$type, b), enumGetBox(MarkerType_$type, this.xs));
}
},
enumerable: false,
configurable: true
});
MarkerSeries.prototype.xu = function () {
if (this.xv == 1 || this.xv == 0) {
if (this.fl && this.ba.a$d) {
return 2;
}
if (this.x0()) {
return 13;
}
}
return this.xv;
};
MarkerSeries.prototype.x0 = function () {
return (this.hf && typeCast(IChartItemLegend_$type, this.legend) !== null) || this.xz();
};
MarkerSeries.prototype.xz = function () {
var e_137, _a;
if (this.dc == null) {
return false;
}
if (this.dc.fm) {
try {
for (var _b = __values(fromEnum(this.dc.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
if (a.eq) {
if (a.g0(this)) {
return true;
}
}
}
}
catch (e_137_1) {
e_137 = { error: e_137_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_137)
throw e_137.error;
}
}
}
return false;
};
MarkerSeries.prototype.p8 = function () {
_super.prototype.p8.call(this);
this.xt = this.xu();
};
Object.defineProperty(MarkerSeries.prototype, "xx", {
get: function () {
return this.xy || this.yl == this.dc.uh;
},
enumerable: false,
configurable: true
});
Object.defineProperty(MarkerSeries.prototype, "xo", {
get: function () {
return this.xn;
},
set: function (a) {
this.xn = a;
},
enumerable: false,
configurable: true
});
MarkerSeries.prototype.xq = function () {
if (this.xp == 0) {
return 1;
}
return this.xp;
};
MarkerSeries.prototype.s3 = function (a) {
_super.prototype.s3.call(this, a);
this.xp = a;
};
Object.defineProperty(MarkerSeries.prototype, "xk", {
get: function () {
return this.xj;
},
set: function (a) {
this.xj = a;
},
enumerable: false,
configurable: true
});
MarkerSeries.prototype.xm = function () {
if (this.xl == 0) {
return 1;
}
return this.xl;
};
MarkerSeries.prototype.s2 = function (a) {
_super.prototype.s2.call(this, a);
this.xl = a;
};
MarkerSeries.prototype.s4 = function (a) {
_super.prototype.s4.call(this, a);
this.x4 = a;
};
MarkerSeries.prototype.iu = function () {
return this.x4;
};
Object.defineProperty(MarkerSeries, "yo", {
get: function () {
if (MarkerSeries.yk == null) {
MarkerSeries.yk = new DataTemplate();
}
return MarkerSeries.yk;
},
enumerable: false,
configurable: true
});
Object.defineProperty(MarkerSeries.prototype, "y4", {
get: function () {
return this.c(MarkerSeries.yt);
},
set: function (a) {
this.h(MarkerSeries.yt, a);
},
enumerable: false,
configurable: true
});
MarkerSeries.prototype.x1 = function () {
return this.ym != null && ((this.xt != 1 && this.xt != 0) || this.yn != null);
};
MarkerSeries.prototype.q8 = function () {
_super.prototype.q8.call(this);
this.xo = this.xq();
this.xk = this.xm();
};
MarkerSeries.prototype.rq = function (a, b, c, d) {
_super.prototype.rq.call(this, a, b, c, d);
switch (b) {
case MarkerSeries.$$p[10]:
this.xt = this.xu();
break;
case "MarkerBrush":
case MarkerSeries.$$p[6]:
case MarkerSeries.$$p[8]:
case MarkerSeries.$$p[9]:
this.rw(b);
this.rj();
break;
case "ActualMarkerType":
this.rw(b);
this.rj();
if (this.x0()) {
var e = EnumUtil.getEnumValue(MarkerType_$type, c) == 13 && this.xt != 1 && this.xt != 13;
var f = this.xt == 13 && EnumUtil.getEnumValue(MarkerType_$type, c) != 1 && EnumUtil.getEnumValue(MarkerType_$type, c) != 13;
if (e || f) {
if (this.dc != null) {
this.dc.pq();
}
this.q0();
}
}
break;
case MarkerSeries.$$p[5]:
this.xo = this.xq();
this.rw(null);
this.rj();
break;
case MarkerSeries.$$p[4]:
this.xk = this.xm();
this.rw(null);
this.rj();
break;
case MarkerSeries.$$p[2]:
this.ym = d;
if (c == MarkerSeries.yo || d == MarkerSeries.yo || (c == null || d != null)) {
this.xr.cy();
var g = typeCast(MarkerSeriesView.$, this.cv);
if (g != null) {
g.cy();
}
this.r8(false);
}
if (this.ek) {
this.vv = this.v5();
this.vw = this.v6();
}
if (this.dc != null) {
this.dc.pq();
}
this.cw.bx();
if (this.toolTip != null && this.fl) {
this.ba.a$at(this, this.toolTip);
}
this.q0();
break;
case MarkerSeries.$$p[11]:
this.xr.c5(this.x3);
this.r8(false);
break;
case MarkerSeries.$$p[0]:
case MarkerSeries.$$p[1]:
if (this.ek) {
this.vv = this.v5();
this.vw = this.v6();
}
break;
}
};
MarkerSeries.x9 = function (a) {
switch (a) {
case 3:
case 13: return SeriesViewer.$$p[2];
case 4: return SeriesViewer.$$p[50];
case 5: return SeriesViewer.$$p[34];
case 6: return SeriesViewer.$$p[44];
case 7: return SeriesViewer.$$p[5];
case 8: return SeriesViewer.$$p[26];
case 9: return SeriesViewer.$$p[10];
case 10: return SeriesViewer.$$p[47];
case 11: return SeriesViewer.$$p[27];
case 12: return SeriesViewer.$$p[11];
case 0:
case 1:
default: return null;
}
};
MarkerSeries.xw = function (a, b) {
var c = 1;
var d = 0;
if (a != null && a.dc != null) {
d = a.dc.bv;
}
if (a == null || a.dc == null) {
c = 1;
return c;
}
if (b != 2 && b != 0) {
c = b;
}
else {
if (d == 4) {
c = 3;
}
else if (d == 5) {
c = 4;
}
else if (d == 9) {
c = 8;
}
else if (d == 11) {
c = 10;
}
else if (d == 8) {
c = 7;
}
else if (d == 7) {
c = 6;
}
else if (d == 10) {
c = 9;
}
else if (d == 12) {
c = 11;
}
else if (d == 6) {
c = 5;
}
else if (d == 13) {
c = 12;
}
else if (d == 1) {
c = 1;
}
else if (d == 0) {
if (a.fo) {
c = 1;
}
else {
c = 3;
}
}
else if (d == 3 || d == 2) {
if (d == 2) {
if (a.fo) {
c = 1;
return c;
}
}
if (a.index < 0) {
c = 1;
}
else {
var e = [3, 4, 8, 10, 7, 6, 9, 11, 5, 12];
c = e[a.index % e.length];
}
}
}
return c;
};
MarkerSeries.prototype.v8 = function (a) {
if (this.dc == null) {
return this.vt;
}
var b = this.dc.x1(this.index + a);
if (this.xt == 13) {
b = this.cw.b5();
}
else {
if (this.xk != 2) {
if (this.dc != null) {
var c = b;
if (!isNaN_(this.ij) && this.ij != 1) {
c = BrushUtil.s(c, this.ij);
}
b = c;
}
}
else {
return this.v9(a);
}
}
b = this.wd(b);
return b;
};
MarkerSeries.prototype.v9 = function (a) {
if (this.dc == null) {
return this.vt;
}
var b = this.dc.x2(this.index + a);
if (this.xt == 13) {
b = this.cw.b5();
}
else {
if (this.xo == 2) {
return this.v8(a);
}
}
b = this.wd(b);
return b;
};
MarkerSeries.prototype.sz = function () {
_super.prototype.sz.call(this);
if (this.index < 0) {
return;
}
if (this.xr.ci()) {
this.xr.cv();
this.xr.cp();
}
else {
var a = MarkerSeries.xw(this, this.xt);
if (a == 1 && this.x0()) {
a = 13;
}
var b = MarkerSeries.x9(a);
if (b == null) {
this.yl = MarkerSeries.yo;
}
else {
this.xr.cs(b);
}
}
if (this.y4 != null && this.xt != 13) {
this.sq("ActualMarkerBrush");
var c = this.y2;
this.xr.ct();
this.xr.cq();
var d = this.y2;
var e = this.fk("ActualMarkerBrush", this.h1.f > 0 ? this.h1.d() : null, c, d);
this.ss("ActualMarkerBrush", e);
}
else {
if (this.xt == 13) {
if (!BrushUtilCore.a(this.y2)) {
this.sq("ActualMarkerBrush");
var f = this.y2;
this.y2 = this.cw.b5();
var g = this.y2;
var h = this.fk("ActualMarkerBrush", this.h1.f > 0 ? this.h1.d() : null, f, g);
this.ss("ActualMarkerBrush", h);
}
}
else {
if (this.xk != 2) {
if (this.dc != null) {
var i = this.dc.x1(this.index);
if (!isNaN_(this.ij) && this.ij != 1) {
i = BrushUtil.s(i, this.ij);
}
this.y2 = i;
}
else {
this.y2 = null;
}
}
}
}
if (this.y5 != null && this.xt != 13) {
this.sq("ActualMarkerOutline");
var j = this.y3;
this.xr.cu();
this.xr.cr();
var k = this.y3;
var l = this.fk("ActualMarkerOutline", this.h1.f > 0 ? this.h1.d() : null, j, k);
this.ss("ActualMarkerOutline", l);
}
else {
if (this.xt == 13) {
if (!BrushUtilCore.a(this.y3)) {
this.sq("ActualMarkerOutline");
var m = this.y3;
this.y3 = this.cw.b5();
var n = this.y3;
var o = this.fk("ActualMarkerOutline", this.h1.f > 0 ? this.h1.d() : null, m, n);
this.ss("ActualMarkerOutline", o);
}
}
else {
if (this.xo == 2) {
this.y3 = this.y2;
}
else {
this.y3 = this.dc == null ? null : this.dc.x2(this.index);
}
}
}
if (this.xk == 2 && this.y4 == null && this.xt != 13) {
if (this.y3 != null) {
var p = this.y3;
if (!isNaN_(this.ij) && this.ij != 1) {
p = BrushUtil.s(p, this.ij);
}
this.y2 = p;
}
else {
this.y2 = null;
}
}
};
MarkerSeries.prototype.qd = function (a) {
_super.prototype.qd.call(this, a);
this.bc.exportMarkerVisualData(this, a);
};
MarkerSeries.prototype.x2 = function (a, b) {
if (this.hasMarkers && this.x1()) {
var c = this.xb(a);
if (c.isEmpty) {
return false;
}
var d = RectUtil.r(c, this.i1(b));
if (d.containsPoint(a)) {
return true;
}
}
return false;
};
MarkerSeries.prototype.a2 = function (a, b) {
var c = this.xr.ce(a);
var d = null;
if (c != null) {
d = c.content;
}
return d;
};
MarkerSeries.$t = markType(MarkerSeries, 'MarkerSeries', Series.$);
MarkerSeries.yk = null;
MarkerSeries.yt = DependencyProperty.i("MarkerBrush", Brush.$, MarkerSeries.$, new PropertyMetadata(1, function (a, b) {
var c = (typeCast(MarkerSeries.$, a));
c.raisePropertyChanged("MarkerBrush", b.oldValue, b.newValue);
}));
MarkerSeries.$$p = markDep(DependencyProperty, PropertyMetadata, MarkerSeries, 'raisePropertyChanged', ['ActualMarkerBrush:y2:yp', [Brush.$], 'ActualMarkerOutline:y3:yq', [Brush.$], 'ActualMarkerTemplate:yl:yr', [DataTemplate.$, null], 'IsCustomMarkerCircular:xy:ys', [0, false], 'MarkerFillMode:xl:yu', [MarkerFillMode_$type, enumGetBox(MarkerFillMode_$type, 0)], 'MarkerOutlineMode:xp:yv', [MarkerOutlineMode_$type, enumGetBox(MarkerOutlineMode_$type, 0)], 'MarkerOutline:y5:yw', [Brush.$], 'MarkerStyle:y6:yx', [Style.$], 'MarkerTemplate:yn:yy', [DataTemplate.$, null], 'MarkerThickness:x4:yz', [1, DeviceUtils.g(2)], 'MarkerType:xv:y0', [MarkerType_$type, enumGetBox(MarkerType_$type, 1)], 'UseLightweightMarkers:x3:y1', [0, false]]);
return MarkerSeries;
}(Series));
export { MarkerSeries };
/**
* @hidden
*/
var SyncLink = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SyncLink, _super);
function SyncLink() {
var _this = _super.call(this) || this;
_this.ak = null;
_this.ah = new Dictionary$2(IEnumerable_$type, FastItemsSourceReference.$, 0);
_this.av = null;
_this.ad = null;
_this.propertyChanged = null;
_this.propertyUpdated = null;
_this.propertyUpdated = delegateCombine(_this.propertyUpdated, function (a, b) { return _this.aq(a, b.propertyName, b.oldValue, b.newValue); });
_this.ad = new ChartCollection();
var a = _this.ad;
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.am));
_this.av = new Rect(0, 0, 0, 1, 1);
return _this;
}
SyncLink.prototype.aq = function (a, b, c, d) {
};
SyncLink.prototype.releaseFastItemsSource = function (a) {
var _this = this;
if (a != null) {
var b_3 = null;
if (((function () { var c = _this.ah.tryGetValue(a, b_3); b_3 = c.p1; return c.ret; })())) {
--b_3.b;
if (b_3.b == 0) {
this.ah.removeItem(a);
}
}
}
return null;
};
SyncLink.af = function (a) {
return ((function () {
var $ret = new FastItemsSource();
$ret.e = a;
return $ret;
})());
};
SyncLink.prototype.getFastItemsSource = function (a) {
var _this = this;
if (SyncLink.aj == null) {
SyncLink.aj = SyncLink.af;
}
var b = null;
if (a != null) {
var c_1 = null;
if (!((function () { var d = _this.ah.tryGetValue(a, c_1); c_1 = d.p1; return d.ret; })())) {
b = SyncLink.aj(a);
c_1 = new FastItemsSourceReference(b);
this.ah.addItem(a, c_1);
}
c_1.b++;
b = c_1.a;
}
return b;
};
SyncLink.prototype.ag = function (a) {
var _this = this;
var b = null;
if (a != null) {
var c_2 = null;
if (!((function () { var d = _this.ah.tryGetValue(a, c_2); c_2 = d.p1; return d.ret; })())) {
return null;
}
b = c_2.a;
}
return b;
};
SyncLink.prototype.aw = function (a, b, c) {
return this.ax(a, b, c, false);
};
SyncLink.prototype.ax = function (a, b, c, d) {
if (!c.isEmpty) {
c = new Rect(0, c.left, c.top, c.width, c.height);
var e = a.io;
var f = a.im;
if (b == a) {
if (!d) {
if (!b.gg()) {
c.x = b.za.x;
c.width = b.za.width;
}
if (!b.gh()) {
c.y = b.za.y;
c.height = b.za.height;
}
}
}
else {
var g = SyncManager.a(b);
if (g == null || !g.synchronizeHorizontally) {
c.x = b.za.x;
c.width = b.za.width;
}
if (g == null || !g.synchronizeVertically) {
c.y = b.za.y;
c.height = b.za.height;
}
}
var h = 0.5 * (c.left + c.right);
var i = 0.5 * (c.top + c.bottom);
var j = c.width;
var k = c.height;
var l = MathUtil.e(c.width, e, 1);
var m = MathUtil.e(c.height, f, 1);
var n = false;
if (a.hc() && !a.y9.isEmpty) {
var o = a.y9;
var p = o.width / o.height;
var q = l * o.width;
var r = m * o.height;
var s = q / r;
if (s != p) {
if (r * p > q) {
q = r * p;
l = q / o.width;
}
else {
r = q / p;
m = r / o.height;
}
}
}
else if (a.fj()) {
var t = false;
var u = false;
if (Math.abs(l - a.yr.width) > e) {
t = true;
}
if (Math.abs(m - a.yr.height) > f) {
u = true;
}
var v = a.pv(l, m, t, u);
l = v.p0;
m = v.p1;
l = MathUtil.e(l, e, 1);
m = MathUtil.e(m, f, 1);
}
else if (b.g4) {
var w = 1.7976931348623157E+308;
var x = -1.7976931348623157E+308;
var y = 1.7976931348623157E+308;
var z = -1.7976931348623157E+308;
var aa = c.left;
var ab = c.right;
var ac = c.top;
var ad = c.bottom;
var ae = c.width;
var af = c.height;
if (b.db == 1) {
if (aa < 0) {
aa = 0;
ab = aa + ae;
}
if (ab > 1) {
ab = 1;
aa = ab - ae;
}
if (ac < 0) {
ac = 0;
ad = ac + af;
}
if (ad > 1) {
ad = 1;
ac = ad - af;
}
}
var ag = new Rect(0, aa, ac, ab - aa, ad - ac);
var ah = [w, x];
var ai = [y, z];
for (var aj = 0; aj < b.b9.count; aj++) {
var ak = b.b9._inner[aj];
if (ak.ev) {
continue;
}
{
var al = ak;
if (al.isVertical) {
if (c.height < 1) {
ai = this.ac(al, b, ag, ai);
y = ai[0];
z = ai[1];
}
}
else {
if (c.width < 1) {
ah = this.ab(al, b, ag, ah);
w = ah[0];
x = ah[1];
}
}
}
}
var am = (w == 1.7976931348623157E+308 || x == -1.7976931348623157E+308 || isNaN_(w) || isNaN_(x));
var an = (y == 1.7976931348623157E+308 || z == -1.7976931348623157E+308 || isNaN_(y) || isNaN_(z));
if (!am || !an) {
if (am) {
c = new Rect(0, y, c.top, z - y, c.height);
}
else if (an) {
c = new Rect(0, c.left, w, c.width, x - w);
}
else {
c = new Rect(0, y, w, z - y, x - w);
}
l = c.width;
m = c.height;
n = true;
}
}
var ao = l != j;
var ap = m != k;
var aq = ao && !n ? h - 0.5 * l : c.left;
var ar = ap && !n ? i - 0.5 * m : c.top;
var as = ao && !n ? h + 0.5 * l : c.right;
var at = ap && !n ? i + 0.5 * m : c.bottom;
if (b.db == 1) {
if (aq < 0) {
aq = 0;
as = aq + l;
}
if (as > 1) {
as = 1;
aq = as - l;
}
if (ar < 0) {
ar = 0;
at = ar + m;
}
if (at > 1) {
at = 1;
ar = at - m;
}
}
c = new Rect(0, aq, ar, as - aq, at - ar);
}
return c;
};
SyncLink.prototype.ab = function (a, b, c, d) {
var e = a.ai();
var f = d[0];
var g = d[1];
var h = null;
for (var i = 0; i < e.length; i++) {
if (e[i].dy) {
h = e[i];
}
}
if (h != null) {
var j = new Rect(0, 0, 0, 1, 1);
var k = new ScalerParams(0, j, j, h.dn, b.y1(j, b.y9, b.yv));
k.b = a.i5();
var l = a.az(c);
var m = l == null || l.c == 1.7976931348623157E+308 || isNaN_(l.c);
if (m) {
return d;
}
var n = h.f6(l.c, k);
var o = h.f6(l.b, k);
if (h.dn) {
var p = n;
n = o;
o = p;
}
g = Math.max(g, n);
f = Math.min(f, o);
if (a.cy == 2) {
if (h.dq) {
var q = h;
var r = q.rb;
r = h.fe(r, k);
var s = h.f6(r, k);
g = Math.max(g, s);
f = Math.min(f, s);
}
}
}
d[0] = f;
d[1] = g;
return d;
};
SyncLink.prototype.ac = function (a, b, c, d) {
var e = a.ai();
var f = d[0];
var g = d[1];
var h = null;
for (var i = 0; i < e.length; i++) {
if (!e[i].dy) {
h = e[i];
}
}
if (h != null) {
var j = new Rect(0, 0, 0, 1, 1);
var k = new ScalerParams(0, j, j, h.dn, b.y1(j, b.y9, b.yv));
k.b = a.i5();
var l = a.az(c);
var m = l == null || l.c == 1.7976931348623157E+308 || isNaN_(l.c);
if (m) {
return d;
}
var n = h.f6(l.c, k);
var o = h.f6(l.b, k);
if (h.dn) {
var p = n;
n = o;
o = p;
}
g = Math.max(g, o);
f = Math.min(f, n);
if (a.cy == 2) {
if (h.dq) {
var q = h;
var r = q.rb;
r = h.fe(r, k);
var s = h.f6(r, k);
g = Math.max(g, s);
f = Math.min(f, s);
}
}
}
d[0] = f;
d[1] = g;
return d;
};
Object.defineProperty(SyncLink.prototype, "ai", {
get: function () {
return this.ad;
},
enumerable: false,
configurable: true
});
SyncLink.prototype.al = function (a) {
this.ad.add(a);
};
SyncLink.prototype.as = function (a) {
this.ad.remove(a);
};
SyncLink.prototype.ao = function () {
var e_138, _a;
try {
for (var _b = __values(fromEnum(this.ad)), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
if (a.za.isEmpty) {
a.za = this.aw(null, a, this.av);
}
}
}
catch (e_138_1) {
e_138 = { error: e_138_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_138)
throw e_138.error;
}
}
};
SyncLink.prototype.am = function (a, b) {
var e_139, _a;
if (b.newItems != null) {
try {
for (var _b = __values(fromEn(b.newItems)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
if (c.za.isEmpty) {
c.za = this.aw(null, c, this.av);
}
}
}
catch (e_139_1) {
e_139 = { error: e_139_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_139)
throw e_139.error;
}
}
}
};
SyncLink.prototype.an = function (a, b) {
var e_140, _a;
try {
for (var _b = __values(fromEnum(this.ai)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
if (c == a) {
c.yi = { $type: Point_$type, x: b.x, y: b.y };
}
else {
var d = { $type: Point_$type, x: b.x, y: b.y };
var e = SyncManager.a(c);
if (e == null || !e.synchronizeHorizontally) {
d.x = NaN;
}
if (e == null || !e.synchronizeVertically) {
d.y = NaN;
}
c.yi = d;
}
}
}
catch (e_140_1) {
e_140 = { error: e_140_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_140)
throw e_140.error;
}
}
};
SyncLink.prototype.ap = function (a, b) {
var e_141, _a;
try {
for (var _b = __values(fromEnum(this.ai)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
c.y2 = this.aw(a, c, b);
}
}
catch (e_141_1) {
e_141 = { error: e_141_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_141)
throw e_141.error;
}
}
};
SyncLink.prototype.at = function (a, b) {
this.au(a, b, false);
};
SyncLink.prototype.au = function (a, b, c) {
var e_142, _a;
var d = b.isEmpty || isNaN_(b.x) || isNaN_(b.y) || isNaN_(b.width) || isNaN_(b.height);
if (!d && !a.fh) {
try {
for (var _b = __values(fromEnum(this.ai)), _c = _b.next(); !_c.done; _c = _b.next()) {
var e = _c.value;
e.fh = true;
e.za = this.ax(a, e, b, c);
e.fh = false;
}
}
catch (e_142_1) {
e_142 = { error: e_142_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_142)
throw e_142.error;
}
}
}
};
SyncLink.prototype.ar = function (a, b, c) {
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
if (this.propertyUpdated != null) {
this.propertyUpdated(this, new PropertyUpdatedEventArgs(a, b, c));
}
};
SyncLink.$t = markType(SyncLink, 'SyncLink', FrameworkElement.$, [INotifyPropertyChanged_$type, IFastItemsSourceProvider_$type]);
SyncLink.aj = null;
return SyncLink;
}(FrameworkElement));
export { SyncLink };
/**
* @hidden
*/
var SyncLinkManager = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SyncLinkManager, _super);
function SyncLinkManager() {
var _this = _super.call(this) || this;
_this.d = null;
_this.d = new Dictionary$2(String_$type, SyncLink.$, 0);
return _this;
}
SyncLinkManager.instance = function () {
if (SyncLinkManager.b == null) {
SyncLinkManager.b = new SyncLinkManager();
}
return SyncLinkManager.b;
};
Object.defineProperty(SyncLinkManager.prototype, "e", {
get: function () {
return this.d.count;
},
enumerable: false,
configurable: true
});
SyncLinkManager.prototype.getLink = function (a) {
var _this = this;
var b;
if (((function () { var c = _this.d.tryGetValue(a, b); b = c.p1; return c.ret; })())) {
return b;
}
b = new SyncLink();
b.ak = a;
this.d.addItem(a, b);
return b;
};
SyncLinkManager.prototype.releaseLink = function (a) {
if (a.ai.count == 0 && a.ak != null && this.d.containsKey(a.ak)) {
this.d.removeItem(a.ak);
}
};
SyncLinkManager.$t = markType(SyncLinkManager, 'SyncLinkManager');
SyncLinkManager.b = null;
return SyncLinkManager;
}(Base));
export { SyncLinkManager };
/**
* @hidden
*/
var SyncManager = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SyncManager, _super);
function SyncManager() {
return _super !== null && _super.apply(this, arguments) || this;
}
SyncManager.e = function (a) {
var b = SyncManager.a(a);
if (b == null) {
return;
}
if (!a.ga) {
return;
}
if (a.syncChannel != b.syncChannel) {
return;
}
SyncManager.b(a, a.syncChannel, null);
};
SyncManager.c = function (a) {
var b = SyncManager.a(a);
if (b == null) {
return;
}
if (a.ga && a.syncChannel == b.syncChannel) {
return;
}
var c = null;
if (a.ga) {
c = a.syncChannel;
}
SyncManager.b(a, c, b.syncChannel);
};
SyncManager.b = function (a, b, c) {
if (a != null) {
if (stringIsNullOrEmpty(c)) {
var d = a.actualSyncLink;
a.actualSyncLink = null;
a.actualSyncLink = new SyncLink();
if (d != null) {
SyncLinkManager.instance().releaseLink(d);
}
a.syncChannel = null;
}
else {
if (!stringIsNullOrEmpty(b)) {
var e = a.actualSyncLink;
a.actualSyncLink = null;
if (e != null) {
SyncLinkManager.instance().releaseLink(e);
}
}
a.actualSyncLink = SyncLinkManager.instance().getLink(c);
a.syncChannel = c;
}
}
};
SyncManager.d = function (a, b) {
a.syncSettings = b;
};
SyncManager.a = function (a) {
return a.syncSettings;
};
SyncManager.$t = markType(SyncManager, 'SyncManager');
return SyncManager;
}(Base));
export { SyncManager };
/**
* @hidden
*/
export var ITrendLineManager_$type = new Type(null, 'ITrendLineManager');
/**
* @hidden
*/
var ChartCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ChartCollection, _super);
function ChartCollection() {
var _this = _super.call(this, SeriesViewer.$, 0) || this;
_this.collectionResetting = null;
return _this;
}
ChartCollection.prototype.p = function () {
if (this.collectionResetting != null) {
this.collectionResetting(this, null);
}
_super.prototype.p.call(this);
};
ChartCollection.$t = markType(ChartCollection, 'ChartCollection', ObservableCollection$1.$.specialize(SeriesViewer.$));
return ChartCollection;
}(ObservableCollection$1));
export { ChartCollection };
/**
* @hidden
*/
var SeriesCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesCollection, _super);
function SeriesCollection() {
var _this = _super.call(this, Series.$, 0) || this;
_this.collectionResetting = null;
_this.collectionBeforeChanged = null;
_this.collectionAfterChanged = null;
return _this;
}
SeriesCollection.prototype.ac = function (a) {
if (this.collectionBeforeChanged != null) {
this.collectionBeforeChanged(this, a);
}
_super.prototype.ac.call(this, a);
if (this.collectionAfterChanged != null) {
this.collectionAfterChanged(this, a);
}
};
SeriesCollection.prototype.p = function () {
if (this.collectionResetting != null) {
this.collectionResetting(this, null);
}
_super.prototype.p.call(this);
};
SeriesCollection.$t = markType(SeriesCollection, 'SeriesCollection', ObservableCollection$1.$.specialize(Series.$));
return SeriesCollection;
}(ObservableCollection$1));
export { SeriesCollection };
/**
* @hidden
*/
var CalloutLabelUpdatingEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(CalloutLabelUpdatingEventArgs, _super);
function CalloutLabelUpdatingEventArgs() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.d = null;
_this.e = null;
_this._item = null;
_this.a = null;
_this.f = null;
_this.c = null;
return _this;
}
Object.defineProperty(CalloutLabelUpdatingEventArgs.prototype, "item", {
get: function () {
return this._item;
},
set: function (a) {
this._item = a;
},
enumerable: false,
configurable: true
});
CalloutLabelUpdatingEventArgs.$t = markType(CalloutLabelUpdatingEventArgs, 'CalloutLabelUpdatingEventArgs');
return CalloutLabelUpdatingEventArgs;
}(Base));
export { CalloutLabelUpdatingEventArgs };
/**
* @hidden
*/
var CalloutRenderStyleUpdatingEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(CalloutRenderStyleUpdatingEventArgs, _super);
function CalloutRenderStyleUpdatingEventArgs() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this._xValue = null;
_this._yValue = null;
_this._labelPositionX = 0;
_this._labelPositionY = 0;
_this._targetPositionX = 0;
_this._targetPositionY = 0;
_this._width = 0;
_this._height = 0;
_this._actualPosition = 0;
_this._item = null;
_this._series = null;
_this._background = null;
_this._backgroundCorner = 0;
_this._textColor = null;
_this._outline = null;
_this._leaderBrush = null;
_this._strokeThickness = 0;
_this._badgeBackground = null;
_this._badgeOutline = null;
_this._badgeThickness = 0;
_this._badgeImage = null;
_this.l = null;
return _this;
}
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "xValue", {
get: function () {
return this._xValue;
},
set: function (a) {
this._xValue = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "yValue", {
get: function () {
return this._yValue;
},
set: function (a) {
this._yValue = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "labelPositionX", {
get: function () {
return this._labelPositionX;
},
set: function (a) {
this._labelPositionX = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "labelPositionY", {
get: function () {
return this._labelPositionY;
},
set: function (a) {
this._labelPositionY = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "targetPositionX", {
get: function () {
return this._targetPositionX;
},
set: function (a) {
this._targetPositionX = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "targetPositionY", {
get: function () {
return this._targetPositionY;
},
set: function (a) {
this._targetPositionY = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "width", {
get: function () {
return this._width;
},
set: function (a) {
this._width = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "height", {
get: function () {
return this._height;
},
set: function (a) {
this._height = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "actualPosition", {
get: function () {
return this._actualPosition;
},
set: function (a) {
this._actualPosition = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "item", {
get: function () {
return this._item;
},
set: function (a) {
this._item = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "series", {
get: function () {
return this._series;
},
set: function (a) {
this._series = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "background", {
get: function () {
return this._background;
},
set: function (a) {
this._background = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "backgroundCorner", {
get: function () {
return this._backgroundCorner;
},
set: function (a) {
this._backgroundCorner = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "textColor", {
get: function () {
return this._textColor;
},
set: function (a) {
this._textColor = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "outline", {
get: function () {
return this._outline;
},
set: function (a) {
this._outline = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "leaderBrush", {
get: function () {
return this._leaderBrush;
},
set: function (a) {
this._leaderBrush = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "strokeThickness", {
get: function () {
return this._strokeThickness;
},
set: function (a) {
this._strokeThickness = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "badgeBackground", {
get: function () {
return this._badgeBackground;
},
set: function (a) {
this._badgeBackground = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "badgeOutline", {
get: function () {
return this._badgeOutline;
},
set: function (a) {
this._badgeOutline = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "badgeThickness", {
get: function () {
return this._badgeThickness;
},
set: function (a) {
this._badgeThickness = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutRenderStyleUpdatingEventArgs.prototype, "badgeImage", {
get: function () {
return this._badgeImage;
},
set: function (a) {
this._badgeImage = a;
},
enumerable: false,
configurable: true
});
CalloutRenderStyleUpdatingEventArgs.$t = markType(CalloutRenderStyleUpdatingEventArgs, 'CalloutRenderStyleUpdatingEventArgs');
return CalloutRenderStyleUpdatingEventArgs;
}(Base));
export { CalloutRenderStyleUpdatingEventArgs };
/**
* @hidden
*/
var CalloutStyleUpdatingEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(CalloutStyleUpdatingEventArgs, _super);
function CalloutStyleUpdatingEventArgs() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this._xValue = null;
_this._yValue = null;
_this._item = null;
_this._series = null;
_this._background = null;
_this._textColor = null;
_this._outline = null;
_this._leaderBrush = null;
_this._strokeThickness = 0;
_this._badgeBackground = null;
_this._badgeOutline = null;
_this._badgeThickness = 0;
_this._badgeWidth = 0;
_this._badgeHeight = 0;
_this._badgeVisible = false;
_this._badgeGap = 0;
_this._badgeImage = null;
_this._badgeCorner = 0;
_this._backgroundCorner = 0;
_this._bacgkroundPaddingLeft = 0;
_this._bacgkroundPaddingTop = 0;
_this._bacgkroundPaddingRight = 0;
_this._bacgkroundPaddingBottom = 0;
_this.o = null;
return _this;
}
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "xValue", {
get: function () {
return this._xValue;
},
set: function (a) {
this._xValue = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "yValue", {
get: function () {
return this._yValue;
},
set: function (a) {
this._yValue = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "item", {
get: function () {
return this._item;
},
set: function (a) {
this._item = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "series", {
get: function () {
return this._series;
},
set: function (a) {
this._series = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "background", {
get: function () {
return this._background;
},
set: function (a) {
this._background = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "textColor", {
get: function () {
return this._textColor;
},
set: function (a) {
this._textColor = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "outline", {
get: function () {
return this._outline;
},
set: function (a) {
this._outline = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "leaderBrush", {
get: function () {
return this._leaderBrush;
},
set: function (a) {
this._leaderBrush = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "strokeThickness", {
get: function () {
return this._strokeThickness;
},
set: function (a) {
this._strokeThickness = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "badgeBackground", {
get: function () {
return this._badgeBackground;
},
set: function (a) {
this._badgeBackground = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "badgeOutline", {
get: function () {
return this._badgeOutline;
},
set: function (a) {
this._badgeOutline = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "badgeThickness", {
get: function () {
return this._badgeThickness;
},
set: function (a) {
this._badgeThickness = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "badgeWidth", {
get: function () {
return this._badgeWidth;
},
set: function (a) {
this._badgeWidth = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "badgeHeight", {
get: function () {
return this._badgeHeight;
},
set: function (a) {
this._badgeHeight = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "badgeVisible", {
get: function () {
return this._badgeVisible;
},
set: function (a) {
this._badgeVisible = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "badgeGap", {
get: function () {
return this._badgeGap;
},
set: function (a) {
this._badgeGap = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "badgeImage", {
get: function () {
return this._badgeImage;
},
set: function (a) {
this._badgeImage = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "badgeCorner", {
get: function () {
return this._badgeCorner;
},
set: function (a) {
this._badgeCorner = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "backgroundCorner", {
get: function () {
return this._backgroundCorner;
},
set: function (a) {
this._backgroundCorner = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "bacgkroundPaddingLeft", {
get: function () {
return this._bacgkroundPaddingLeft;
},
set: function (a) {
this._bacgkroundPaddingLeft = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "bacgkroundPaddingTop", {
get: function () {
return this._bacgkroundPaddingTop;
},
set: function (a) {
this._bacgkroundPaddingTop = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "bacgkroundPaddingRight", {
get: function () {
return this._bacgkroundPaddingRight;
},
set: function (a) {
this._bacgkroundPaddingRight = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CalloutStyleUpdatingEventArgs.prototype, "bacgkroundPaddingBottom", {
get: function () {
return this._bacgkroundPaddingBottom;
},
set: function (a) {
this._bacgkroundPaddingBottom = a;
},
enumerable: false,
configurable: true
});
CalloutStyleUpdatingEventArgs.$t = markType(CalloutStyleUpdatingEventArgs, 'CalloutStyleUpdatingEventArgs');
return CalloutStyleUpdatingEventArgs;
}(Base));
export { CalloutStyleUpdatingEventArgs };
/**
* @hidden
*/
var PlotAreaMouseEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PlotAreaMouseEventArgs, _super);
function PlotAreaMouseEventArgs(a, b, c) {
var _this = _super.call(this) || this;
_this._chartPosition = null;
_this._plotAreaPosition = null;
_this._isDuringManipulation = false;
_this._viewer = null;
_this.viewer = a;
_this.chartPosition = b;
_this.plotAreaPosition = c;
return _this;
}
Object.defineProperty(PlotAreaMouseEventArgs.prototype, "chartPosition", {
get: function () {
return this._chartPosition;
},
set: function (a) {
this._chartPosition = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(PlotAreaMouseEventArgs.prototype, "plotAreaPosition", {
get: function () {
return this._plotAreaPosition;
},
set: function (a) {
this._plotAreaPosition = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(PlotAreaMouseEventArgs.prototype, "isDuringManipulation", {
get: function () {
return this._isDuringManipulation;
},
set: function (a) {
this._isDuringManipulation = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(PlotAreaMouseEventArgs.prototype, "viewer", {
get: function () {
return this._viewer;
},
set: function (a) {
this._viewer = a;
},
enumerable: false,
configurable: true
});
PlotAreaMouseEventArgs.$t = markType(PlotAreaMouseEventArgs, 'PlotAreaMouseEventArgs', EventArgs.$);
return PlotAreaMouseEventArgs;
}(EventArgs));
export { PlotAreaMouseEventArgs };
/**
* @hidden
*/
var PlotAreaMouseButtonEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PlotAreaMouseButtonEventArgs, _super);
function PlotAreaMouseButtonEventArgs(a, b, c) {
var _this = _super.call(this) || this;
_this._chartPosition = null;
_this._plotAreaPosition = null;
_this._manipulationOccurred = false;
_this._viewer = null;
_this.viewer = a;
_this.chartPosition = b;
_this.plotAreaPosition = c;
return _this;
}
Object.defineProperty(PlotAreaMouseButtonEventArgs.prototype, "chartPosition", {
get: function () {
return this._chartPosition;
},
set: function (a) {
this._chartPosition = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(PlotAreaMouseButtonEventArgs.prototype, "plotAreaPosition", {
get: function () {
return this._plotAreaPosition;
},
set: function (a) {
this._plotAreaPosition = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(PlotAreaMouseButtonEventArgs.prototype, "manipulationOccurred", {
get: function () {
return this._manipulationOccurred;
},
set: function (a) {
this._manipulationOccurred = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(PlotAreaMouseButtonEventArgs.prototype, "viewer", {
get: function () {
return this._viewer;
},
set: function (a) {
this._viewer = a;
},
enumerable: false,
configurable: true
});
PlotAreaMouseButtonEventArgs.$t = markType(PlotAreaMouseButtonEventArgs, 'PlotAreaMouseButtonEventArgs', EventArgs.$);
return PlotAreaMouseButtonEventArgs;
}(EventArgs));
export { PlotAreaMouseButtonEventArgs };
/**
* @hidden
*/
var ChartCursorEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ChartCursorEventArgs, _super);
function ChartCursorEventArgs(a, b, c) {
var _this = _super.call(this) || this;
_this._item = null;
_this._series = null;
_this._seriesViewer = null;
_this.seriesViewer = a;
_this.series = b;
_this.item = c;
return _this;
}
ChartCursorEventArgs.prototype.toString = function () {
return this.seriesViewer.name + ", " + this.series.name + ", " + (this.item != null ? this.item.toString() : "");
};
Object.defineProperty(ChartCursorEventArgs.prototype, "item", {
get: function () {
return this._item;
},
set: function (a) {
this._item = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartCursorEventArgs.prototype, "series", {
get: function () {
return this._series;
},
set: function (a) {
this._series = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartCursorEventArgs.prototype, "seriesViewer", {
get: function () {
return this._seriesViewer;
},
set: function (a) {
this._seriesViewer = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartCursorEventArgs.prototype, "chart", {
get: function () {
return typeCast(XamDataChart.$, this.seriesViewer);
},
enumerable: false,
configurable: true
});
ChartCursorEventArgs.$t = markType(ChartCursorEventArgs, 'ChartCursorEventArgs', EventArgs.$);
return ChartCursorEventArgs;
}(EventArgs));
export { ChartCursorEventArgs };
/**
* @hidden
*/
var SeriesViewerSelectedSeriesItemsChangedEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesViewerSelectedSeriesItemsChangedEventArgs, _super);
function SeriesViewerSelectedSeriesItemsChangedEventArgs(a, b, c) {
var _this = _super.call(this) || this;
_this._oldItems = null;
_this._newItems = null;
_this._currentItems = null;
_this.oldItems = a;
_this.newItems = b;
_this.currentItems = c;
return _this;
}
Object.defineProperty(SeriesViewerSelectedSeriesItemsChangedEventArgs.prototype, "oldItems", {
get: function () {
return this._oldItems;
},
set: function (a) {
this._oldItems = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewerSelectedSeriesItemsChangedEventArgs.prototype, "newItems", {
get: function () {
return this._newItems;
},
set: function (a) {
this._newItems = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesViewerSelectedSeriesItemsChangedEventArgs.prototype, "currentItems", {
get: function () {
return this._currentItems;
},
set: function (a) {
this._currentItems = a;
},
enumerable: false,
configurable: true
});
SeriesViewerSelectedSeriesItemsChangedEventArgs.$t = markType(SeriesViewerSelectedSeriesItemsChangedEventArgs, 'SeriesViewerSelectedSeriesItemsChangedEventArgs', EventArgs.$);
return SeriesViewerSelectedSeriesItemsChangedEventArgs;
}(EventArgs));
export { SeriesViewerSelectedSeriesItemsChangedEventArgs };
/**
* @hidden
*/
var DataChartMouseButtonEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(DataChartMouseButtonEventArgs, _super);
function DataChartMouseButtonEventArgs(a, b, c, d, e) {
var _this = _super.call(this) || this;
_this.j = { $type: Point_$type, x: NaN, y: NaN };
_this.i = null;
_this.d = false;
_this._item = null;
_this._series = null;
_this._plotAreaPosition = null;
_this._worldPosition = null;
_this._chart = null;
_this.chart = a;
_this.series = b;
_this.item = c;
_this.i = d;
_this.j = e;
_this.plotAreaPosition = { $type: Point_$type, x: e.x - _this.chart.y9.left, y: e.y - _this.chart.y9.top };
var f = _this.chart.y9;
var g = _this.chart.za;
var h = _this.chart.yv;
var i = { $type: Point_$type, x: ViewportUtils.b(e.x, g, f, h), y: ViewportUtils.g(e.y, g, f, h) };
_this.worldPosition = i;
return _this;
}
DataChartMouseButtonEventArgs.prototype.toString = function () {
return this.chart.name + ", " + this.series.name + ", " + (this.item != null ? this.item.toString() : "") + ", " + this.getPosition(null).toString();
};
Object.defineProperty(DataChartMouseButtonEventArgs.prototype, "handled", {
get: function () {
return this.i.handled;
},
set: function (a) {
this.i.handled = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(DataChartMouseButtonEventArgs.prototype, "cancelSelection", {
get: function () {
return this.d;
},
set: function (a) {
this.d = a;
},
enumerable: false,
configurable: true
});
DataChartMouseButtonEventArgs.prototype.getPosition = function (a) {
return this.i.getPosition(a);
};
Object.defineProperty(DataChartMouseButtonEventArgs.prototype, "originalSource", {
get: function () {
return this.i.originalSource;
},
enumerable: false,
configurable: true
});
Object.defineProperty(DataChartMouseButtonEventArgs.prototype, "item", {
get: function () {
return this._item;
},
set: function (a) {
this._item = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(DataChartMouseButtonEventArgs.prototype, "series", {
get: function () {
return this._series;
},
set: function (a) {
this._series = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(DataChartMouseButtonEventArgs.prototype, "plotAreaPosition", {
get: function () {
return this._plotAreaPosition;
},
set: function (a) {
this._plotAreaPosition = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(DataChartMouseButtonEventArgs.prototype, "chartPosition", {
get: function () {
if (isNaN_(this.j.x) && isNaN_(this.j.y)) {
this.j.x = this.plotAreaPosition.x + this.chart.y9.left;
this.j.y = this.plotAreaPosition.y + this.chart.y9.top;
}
return this.j;
},
enumerable: false,
configurable: true
});
Object.defineProperty(DataChartMouseButtonEventArgs.prototype, "worldPosition", {
get: function () {
return this._worldPosition;
},
set: function (a) {
this._worldPosition = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(DataChartMouseButtonEventArgs.prototype, "chart", {
get: function () {
return this._chart;
},
set: function (a) {
this._chart = a;
},
enumerable: false,
configurable: true
});
DataChartMouseButtonEventArgs.$t = markType(DataChartMouseButtonEventArgs, 'DataChartMouseButtonEventArgs', EventArgs.$);
return DataChartMouseButtonEventArgs;
}(EventArgs));
export { DataChartMouseButtonEventArgs };
/**
* @hidden
*/
var ChartMouseEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ChartMouseEventArgs, _super);
function ChartMouseEventArgs(a, b, c, d, e) {
var _this = _super.call(this) || this;
_this.f = null;
_this._item = null;
_this._series = null;
_this._plotAreaPosition = null;
_this.g = { $type: Point_$type, x: NaN, y: NaN };
_this._worldPosition = null;
_this._chart = null;
_this.chart = a;
_this.series = b;
_this.item = c;
_this.f = d;
_this.g = e;
_this.plotAreaPosition = { $type: Point_$type, x: e.x - _this.chart.y9.left, y: e.y - _this.chart.y9.top };
var f = _this.chart.y9;
var g = _this.chart.za;
var h = _this.chart.yv;
var i = { $type: Point_$type, x: ViewportUtils.b(e.x, g, f, h), y: ViewportUtils.g(e.y, g, f, h) };
_this.worldPosition = i;
return _this;
}
ChartMouseEventArgs.prototype.toString = function () {
return this.chart.name + ", " + this.series.name + ", " + (this.item != null ? this.item.toString() : "") + ", " + this.getPosition(null).toString();
};
ChartMouseEventArgs.prototype.getPosition = function (a) {
return this.f.getPosition(a);
};
Object.defineProperty(ChartMouseEventArgs.prototype, "originalSource", {
get: function () {
return this.f.originalSource;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartMouseEventArgs.prototype, "item", {
get: function () {
return this._item;
},
set: function (a) {
this._item = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartMouseEventArgs.prototype, "series", {
get: function () {
return this._series;
},
set: function (a) {
this._series = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartMouseEventArgs.prototype, "plotAreaPosition", {
get: function () {
return this._plotAreaPosition;
},
set: function (a) {
this._plotAreaPosition = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartMouseEventArgs.prototype, "chartPosition", {
get: function () {
if (isNaN_(this.g.x) && isNaN_(this.g.y)) {
this.g.x = this.plotAreaPosition.x + this.chart.y9.left;
this.g.y = this.plotAreaPosition.y + this.chart.y9.top;
}
return this.g;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartMouseEventArgs.prototype, "worldPosition", {
get: function () {
return this._worldPosition;
},
set: function (a) {
this._worldPosition = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartMouseEventArgs.prototype, "chart", {
get: function () {
return this._chart;
},
set: function (a) {
this._chart = a;
},
enumerable: false,
configurable: true
});
ChartMouseEventArgs.$t = markType(ChartMouseEventArgs, 'ChartMouseEventArgs', EventArgs.$);
return ChartMouseEventArgs;
}(EventArgs));
export { ChartMouseEventArgs };
/**
* @hidden
*/
var AnnotationBadgeView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AnnotationBadgeView, _super);
function AnnotationBadgeView(a) {
var _this = _super.call(this) || this;
_this.a = null;
_this.f = null;
_this.b = null;
_this.a = a;
_this.f = new Rectangle();
_this.e();
return _this;
}
Object.defineProperty(AnnotationBadgeView.prototype, "g", {
get: function () {
return this.f;
},
enumerable: false,
configurable: true
});
AnnotationBadgeView.prototype.e = function () {
this.f.width = this.a.width;
this.f.height = this.a.height;
this.f.ap = this.a.al;
this.f.aq = this.a.al;
this.f._fill = this.a.a5;
this.f._stroke = this.a.a6;
this.f.ad = this.a.ba.left;
};
AnnotationBadgeView.prototype.c = function (a) {
this.b = a;
if (this.a.ah != null) {
this.a.ah.d0 = true;
this.a.ah.lx();
}
};
AnnotationBadgeView.prototype.d = function (a) {
if (this.a._visibility != 0) {
return;
}
this.f.n = this.a.n + this.a.bb.left;
this.f.o = this.a.o;
this.f.s = this.a.s;
a.w(this.f);
if (this.b != null) {
var b = this.a.ba.left;
var c = this.f.n + (b / 2);
var d = this.f.o + (b / 2);
var e = this.f.width - b;
var f = this.f.height - b;
a.aa();
var g = new Rectangle();
g.n = c;
g.o = d;
g.width = e;
g.height = f;
g.ap = this.f.ap;
g.aq = this.f.aq;
a.ad(g);
a.n(this.b, 1, c, d, e, f);
a.z();
}
};
AnnotationBadgeView.$t = markType(AnnotationBadgeView, 'AnnotationBadgeView');
return AnnotationBadgeView;
}(Base));
export { AnnotationBadgeView };
/**
* @hidden
*/
var AxisComponentsForView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisComponentsForView, _super);
function AxisComponentsForView() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.a = null;
return _this;
}
AxisComponentsForView.$t = markType(AxisComponentsForView, 'AxisComponentsForView');
return AxisComponentsForView;
}(Base));
export { AxisComponentsForView };
/**
* @hidden
*/
var AxisLabelPanelBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisLabelPanelBaseView, _super);
function AxisLabelPanelBaseView(a) {
var _this = _super.call(this) || this;
_this.a = null;
_this.aw = null;
_this.f = null;
_this.au = Rect.empty;
_this.d = null;
_this.i = 0;
_this.j = NaN;
_this.a = a;
return _this;
}
AxisLabelPanelBaseView.prototype.z = function (a, b, c, d, e, f) {
var g = typeCast(FrameworkElement.$, a);
if (g != null) {
g._visibility = 0;
if (b.width == 0 && b.height == 0) {
g._visibility = 1;
}
var h = b.height - (d + f);
var i = b.width - (c + e);
g.n = b.left + c;
g.o = b.top + d;
if (i < 0) {
i = 0;
}
if (h < 0) {
h = 0;
}
g.l = h;
g.m = i;
if (g.j != null) {
var j = g.j;
var k = j.j._inner[0];
k.k = k.k + g.n;
k.l = k.l + g.o;
}
}
};
AxisLabelPanelBaseView.prototype.av = function (a, b, c, d, e, f, g, h, i) {
var j = Math.max(f, Math.max(g, Math.max(h, i)));
var k = new Thickness(0, j);
if (this.a.a0) {
k = new Thickness(0, Math.sqrt((j * j) / 2));
}
var l = d.i;
if (isNaN_(l.left) || isNaN_(l.top) || isNaN_(l.right) || isNaN_(l.bottom)) {
l = k;
}
if (l.left > k.left || l.top > k.top || l.right > k.right || l.bottom > k.bottom) {
l = k;
}
var m = c.a7();
var n = c._visibility == 0 ? m.width : 0;
var o = c._visibility == 0 ? m.height : 0;
var p = new Rect(0, e.left - l.left - n, e.top - l.top, e.width + l.left + l.right + n, e.height + l.top + l.bottom);
var q = a.j;
a.j = null;
this.z(a, p, f, g, h, i);
a.j = q;
a.width = a.m;
a.height = a.l;
var r = new Rect(0, a.n, a.o, a.width, a.height);
if (c._visibility == 0) {
var s = b.al != null && b.al.length > 0;
var t = s ? l.left - f : l.left;
var u = new Rect(0, r.left + t, r.top + (r.height * 0.5) - (o * 0.5), n, o);
var v = c.j;
c.j = null;
this.z(c, u, 0, 0, 0, 0);
c.j = q;
c.width = c.m;
c.height = c.l;
}
return r;
};
AxisLabelPanelBaseView.prototype.ad = function (a) {
var b = a;
b.j = null;
};
AxisLabelPanelBaseView.prototype.ag = function (a) {
};
AxisLabelPanelBaseView.prototype.ah = function (a, b) {
};
AxisLabelPanelBaseView.prototype.ai = function (a, b) {
var c = typeCast(FrameworkElement.$, a);
var d = 0;
var e = 0;
var f = new TransformGroup();
var g = ((function () {
var $ret = new RotateTransform();
$ret.j = b;
$ret.k = d;
$ret.l = e;
return $ret;
})());
f.j.add(g);
c.j = f;
};
AxisLabelPanelBaseView.prototype.aq = function (a, b, c, d, e, f, g, h, i, j) {
var k = Math.max(f, Math.max(g, Math.max(h, i)));
var l = new Thickness(0, k);
if (this.a.a0) {
l = new Thickness(0, Math.sqrt((k * k) / 2));
}
var m = d.i;
if (isNaN_(m.left) || isNaN_(m.top) || isNaN_(m.right) || isNaN_(m.bottom)) {
m = l;
}
if (m.left > l.left || m.top > l.top || m.right > l.right || m.bottom > l.bottom) {
m = l;
}
var n = b.j;
var o = new TransformGroup();
var p = a.n + m.left;
var q = a.o + m.top;
o.j.add(n);
a.j = o;
};
AxisLabelPanelBaseView.prototype.ac = function (a, b) {
a.j = null;
b.j = null;
};
AxisLabelPanelBaseView.prototype.c = function (a, b, c, d) {
var e = a.al.length;
var f = a.al;
var g = a.al;
var h = this.n(a) + c + d;
while (h > b && e > 0) {
e--;
f = f.substr(0, e) + "\u2026";
a.al = f;
h = this.n(a) + c + d;
}
a.al = g;
return ((function () {
var $ret = new TrimmedTextInfo();
$ret.b = f;
$ret.a = h;
return $ret;
})());
};
AxisLabelPanelBaseView.prototype.ae = function () {
var e_143, _a;
if (this.f == null) {
return;
}
var a = this.h();
try {
for (var _b = __values(fromEnum(a)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
var c = typeCast(FrameworkElement.$, b);
if (c != null) {
this.a.ck(c);
}
this.a.cb(b);
}
}
catch (e_143_1) {
e_143 = { error: e_143_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_143)
throw e_143.error;
}
}
};
AxisLabelPanelBaseView.prototype.h = function () {
var a = this.a.a6();
var b = this.a.a5();
if (!this.a.ae.ej) {
return a;
}
else {
return b;
}
};
AxisLabelPanelBaseView.prototype.m = function (a) {
if (this.a.ae != null && this.a.ae.cs) {
return this.ax(a).height;
}
else {
return this.i;
}
};
AxisLabelPanelBaseView.prototype.o = function (a) {
return this.m(a) + this.s() + this.p();
};
AxisLabelPanelBaseView.prototype.am = function () {
this.aw = ((function () {
var $ret = new Path();
$ret.an = new GeometryGroup();
$ret.ab = false;
return $ret;
})());
};
AxisLabelPanelBaseView.prototype.n = function (a) {
if (this.a.ae != null && this.a.ae.cs) {
return this.ax(a).width;
}
else {
var b = a;
if (b != null && b.al != null) {
return this.f.f(b);
}
return 0;
}
};
AxisLabelPanelBaseView.prototype.x = function (a) {
var b = a;
if (b != null && b.al != null) {
return this.n(a) + this.q() + this.r();
}
return 0;
};
AxisLabelPanelBaseView.prototype.ax = function (a) {
var b = a;
if (b != null && b.al != null) {
b.ag = true;
var c = this.f.aj(b, this.i, true);
return new Size(1, c.c, c.b);
}
return new Size(1, 0, 0);
};
AxisLabelPanelBaseView.prototype.ab = function () {
this.a.bm = this.a.ae.gc();
};
AxisLabelPanelBaseView.prototype.aj = function () {
this.af();
this.a.dd(new Size(1, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY));
};
AxisLabelPanelBaseView.prototype.g = function () {
return this.f;
};
AxisLabelPanelBaseView.prototype.ak = function (a) {
this.f = a;
};
AxisLabelPanelBaseView.prototype.y = function () {
if (this.a.c6.isEmpty) {
return;
}
var a = this.a.bi;
this.a.db(new Size(1, this.a.c6.width, this.a.c6.height));
if (this.a.bi != a) {
this.a.ae.b5.pr();
this.al();
}
};
AxisLabelPanelBaseView.prototype.al = function () {
};
AxisLabelPanelBaseView.prototype.ao = function (a) {
this.f.x(a);
};
AxisLabelPanelBaseView.prototype.an = function () {
var e_144, _a, e_145, _b;
if (this.f == null) {
return;
}
if (this.f.d) {
if (this.a.ae.b7 != null && this.a.ae.b7.ij != 1) {
this.f.aa();
this.f.ab(this.a.ae.b7.ij, this.a.ae.b7.ij);
}
this.af();
this.au = this.a.c6;
var a = this.a.ae.b5.getFontBrush();
if (this.a.ah != null && this.a.ah.textColor != null) {
a = this.a.ah.textColor;
}
if (this.a.j != null) {
this.f.aa();
this.f.k(this.a.j);
}
var b = false;
try {
for (var _c = __values(fromEnum(this.h())), _d = _c.next(); !_d.done; _d = _c.next()) {
var c = _d.value;
var d = typeCast(TextBlock.$, c);
if (d != null) {
if (d.s != 0) {
b = true;
continue;
}
d.ao = a;
if (d.j != null) {
this.f.aa();
this.f.k(d.j);
}
this.ao(d);
if (d.j != null) {
this.f.z();
}
}
}
}
catch (e_144_1) {
e_144 = { error: e_144_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_144)
throw e_144.error;
}
}
if (b) {
try {
for (var _e = __values(fromEnum(this.a.ab)), _f = _e.next(); !_f.done; _f = _e.next()) {
var e = _f.value;
var f = typeCast(Rectangle.$, e);
if (f != null) {
if (f.s == 0) {
continue;
}
if (f.j != null) {
this.f.aa();
this.f.k(f.j);
}
this.f.w(f);
if (f.j != null) {
this.f.z();
}
}
var g = typeCast(TextBlock.$, e);
if (g != null) {
if (g.s == 0) {
continue;
}
if (g.j != null) {
this.f.aa();
this.f.k(g.j);
}
if (g.ao == null) {
g.ao = a;
}
this.f.x(g);
if (g.j != null) {
this.f.z();
}
}
var h = typeCast(AnnotationBadge.$, e);
if (h != null) {
if (h.s == 0) {
continue;
}
if (h.j != null) {
this.f.aa();
this.f.k(g.j);
}
h.ag.d(this.f);
if (h.j != null) {
this.f.z();
}
}
}
}
catch (e_145_1) {
e_145 = { error: e_145_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_145)
throw e_145.error;
}
}
}
if (this.a.j != null) {
this.f.z();
}
this.ap();
a = this.as();
this.f.af(this.e());
var i = this.a.ae.mg;
if (i != null) {
i.ao = a;
if (i.j != null) {
this.f.aa();
this.f.k(i.j);
}
this.f.x(i);
if (i.j != null) {
this.f.z();
}
}
if (this.a.ae.b7 != null && this.a.ae.b7.ij != 1) {
this.f.z();
}
}
};
AxisLabelPanelBaseView.prototype.e = function () {
var a = this.a.ae.b7.getFontInfo();
if (this.a.ae.b4 != null && this.a.ae.b4.textStyle != null) {
a = this.a.ae.b4.h(this.a.ae.b7.dw.j.ae);
}
else {
var b = this.a.ae.b7.d1();
if (b != null) {
a = b;
}
}
return a;
};
AxisLabelPanelBaseView.prototype.as = function () {
var a = this.a.ae.b5.getFontBrush();
if (this.a.ae.b4 != null && this.a.ae.b4.textColor != null) {
a = this.a.ae.b4.textColor;
}
else {
var b = this.a.ae.b7.xy();
if (b != null) {
a = b;
}
}
return a;
};
AxisLabelPanelBaseView.prototype.af = function () {
if (this.f == null) {
return;
}
var a = this.a.ae.b7.getFontInfo();
if (this.a.ah != null && this.a.ah.j) {
a = this.a.ah.h(this.a.ae.b7.dw.j.ae);
}
if (this.d != a) {
this.d = a;
this.ar();
}
this.f.af(a);
};
AxisLabelPanelBaseView.prototype.ar = function () {
if (this.a.ae != null && this.a.ae.b7 != null) {
if (this.a.ah == null || this.a.ah.textStyle == null) {
this.i = this.a.ae.b7.dw.bc;
return;
}
if (this.i == 0) {
this.i = this.a.ae.b7.dw.bc;
}
var a = this.i;
var b = this.a.ae.b7.getFontInfo();
if (this.a.ah != null && this.a.ah.textStyle != null) {
b = this.a.ah.h(this.a.ae.b7.dw.j.ae);
}
var c = FontUtil.getCurrentFontHeight(this.a.ae.b7.dw.j.ae, b);
this.i = c;
if (a != this.i) {
this.a.ae.b7.pr();
}
}
};
AxisLabelPanelBaseView.prototype.k = function () {
if (this.a.ae.j3 == null) {
return 0;
}
if (this.a.ae.b4 != null && this.a.ae.b4.visibility == 1) {
return 0;
}
if (!isNaN_(this.j)) {
return this.j;
}
var a = this.e();
if (this.a.ae.b7 == null) {
return this.i;
}
this.j = FontUtil.getCurrentFontHeight(this.a.ae.b7.dw.j.ae, a);
return this.j;
};
AxisLabelPanelBaseView.prototype.l = function () {
if (this.a.ae.b4 != null && this.a.ae.b4.visibility == 1) {
return 0;
}
if (this.f == null) {
return 0;
}
var a = this.a.ae.mg;
if (a != null && a.al != null) {
this.f.af(this.e());
var b = this.f.f(a);
this.af();
return b;
}
return 0;
};
AxisLabelPanelBaseView.prototype.ap = function () {
if (this.a.ab.count == 0) {
return;
}
if (this.a.ae.oq == null) {
this.aw._stroke = this.a.ae.b5.xv();
}
else {
this.aw._stroke = this.a.ae.oq;
}
this.aw.ai = this.a.ae.ou;
this.aw.ad = this.a.ae.g7;
this.f.t(this.aw);
};
AxisLabelPanelBaseView.prototype.aa = function (a) {
};
AxisLabelPanelBaseView.prototype.ay = function () {
return this.a.ae.b7.zc();
};
AxisLabelPanelBaseView.prototype.w = function () {
if (this.a.ae.b4 != null && !isNaN_(this.a.ae.b4.topMargin)) {
return Math.max(0, this.a.ae.b4.topMargin);
}
else {
return this.ay().top;
}
};
AxisLabelPanelBaseView.prototype.t = function () {
if (this.a.ae.b4 != null && !isNaN_(this.a.ae.b4.bottomMargin)) {
return Math.max(0, this.a.ae.b4.bottomMargin);
}
else {
return this.ay().bottom;
}
};
AxisLabelPanelBaseView.prototype.u = function () {
if (this.a.ae.b4 != null && !isNaN_(this.a.ae.b4.leftMargin)) {
return Math.max(0, this.a.ae.b4.leftMargin);
}
else {
return this.ay().left;
}
};
AxisLabelPanelBaseView.prototype.v = function () {
if (this.a.ae.b4 != null && !isNaN_(this.a.ae.b4.rightMargin)) {
return Math.max(0, this.a.ae.b4.rightMargin);
}
else {
return this.ay().right;
}
};
AxisLabelPanelBaseView.prototype.at = function () {
return this.aw.an.d;
};
AxisLabelPanelBaseView.prototype.b = function () {
var _this = this;
var a = ((function () {
var $ret = new PathRenderingInfo();
$ret.e = _this.a.ae.oq;
$ret.c = _this.a.ae.g7;
return $ret;
})());
if (this.a.ae != null && typeCast(XamDataChart.$, this.a.ae.b5) !== null) {
var b = this.a.ae.b5;
if (b.aaa && b.dm != 2 && b.dm != 1) {
a.a = true;
}
}
return a;
};
AxisLabelPanelBaseView.prototype.s = function () {
if (this.a.ah == null) {
return 0;
}
return Math.max(0, this.a.ah.topMargin);
};
AxisLabelPanelBaseView.prototype.q = function () {
if (this.a.ah == null) {
return 0;
}
return Math.max(0, this.a.ah.leftMargin);
};
AxisLabelPanelBaseView.prototype.r = function () {
if (this.a.ah == null) {
return 0;
}
return Math.max(0, this.a.ah.rightMargin);
};
AxisLabelPanelBaseView.prototype.p = function () {
if (this.a.ah == null) {
return 0;
}
return Math.max(0, this.a.ah.bottomMargin);
};
AxisLabelPanelBaseView.$t = markType(AxisLabelPanelBaseView, 'AxisLabelPanelBaseView');
return AxisLabelPanelBaseView;
}(Base));
export { AxisLabelPanelBaseView };
/**
* @hidden
*/
var AxisView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisView, _super);
function AxisView(a) {
var _this = _super.call(this) || this;
_this.b = null;
_this.k = null;
_this.bj = null;
_this.bk = null;
_this.bm = null;
_this.bl = null;
_this.c = new AxisComponentsFromView();
_this.i = null;
_this.m = null;
_this.l = null;
_this._isDirty = false;
_this.bn = null;
_this.bh = Rect.empty;
_this.b = a;
_this.bn = new Rectangle();
return _this;
}
AxisView.prototype.ar = function () {
this.k = new ImageLoader();
this.bj = ((function () {
var $ret = new Path();
$ret.an = new GeometryGroup();
return $ret;
})());
this.bm = ((function () {
var $ret = new Path();
$ret.an = new GeometryGroup();
$ret.ab = false;
$ret.stroke = null;
return $ret;
})());
this.bk = ((function () {
var $ret = new Path();
$ret.an = new GeometryGroup();
$ret.ab = false;
return $ret;
})());
this.bl = ((function () {
var $ret = new Path();
$ret.an = new GeometryGroup();
$ret.ab = false;
return $ret;
})());
this.b.oq = AxisDefaults.axis_TickBrush;
this.b.g6 = AxisDefaults.axis_TickLength;
this.b.g7 = AxisDefaults.axis_TickStroke;
this.b.ge = AxisDefaults.axis_MajorStroke;
this.b.gh = AxisDefaults.axis_MinorStroke;
this.b.g5 = AxisDefaults.axis_LineStroke;
};
AxisView.prototype.at = function (a) {
};
AxisView.prototype.a9 = function () {
var a = new TextBlock();
return a;
};
AxisView.prototype.a2 = function (a) {
a._visibility = 0;
a.s = 0;
if (a.x == null) {
this.b.a1.ab.add(a);
}
};
AxisView.prototype.a4 = function (a) {
a._visibility = 1;
};
AxisView.prototype.a3 = function (a) {
if (this.b.a1.ab.contains(a)) {
this.b.a1.ab.remove(a);
}
};
AxisView.prototype.bo = function () {
var a = new Rectangle();
return a;
};
AxisView.prototype.w = function (a) {
if (a.x == null) {
this.e.ab.add(a);
}
a._visibility = 0;
};
AxisView.prototype.y = function (a) {
a._visibility = 1;
};
AxisView.prototype.x = function (a) {
if (this.b.a1.ab.contains(a)) {
this.b.a1.ab.remove(a);
}
};
AxisView.prototype.a = function () {
return new AnnotationBadge(this.k);
};
AxisView.prototype.z = function (a) {
if (a.x == null) {
this.e.ab.add(a);
}
a._visibility = 0;
};
AxisView.prototype.ab = function (a) {
a._visibility = 1;
};
AxisView.prototype.aa = function (a) {
if (this.b.a1.ab.contains(a)) {
this.b.a1.ab.remove(a);
}
};
AxisView.prototype.au = function () {
};
AxisView.prototype.r = function () {
return true;
};
Object.defineProperty(AxisView.prototype, "index", {
get: function () {
if (this.b.b7 != null && this.b.b7.f6) {
return this.b.b7.b9.count + 1;
}
var a = typeCast(XamDataChart.$, this.b.b5);
var b = 0;
if (a == null) {
return 0;
}
if (a != null && a.zu == 1) {
var c = 0;
for (var d = 0; d < this.b.b7.b9.count; d++) {
if (this.b.b7.b9._inner[d].isStacked) {
c += this.b.b7.b9._inner[d].kl();
}
else {
c++;
}
}
b = c;
}
return b + a.zq.indexOf(this.b);
},
enumerable: false,
configurable: true
});
AxisView.prototype.ao = function () {
if (this.b.b7 == null) {
return;
}
this.e.cj();
this.e.b7();
};
AxisView.prototype.am = function () {
this.e.ce();
};
AxisView.prototype.ai = function () {
if (this.e != null) {
this.e.ab.clear();
}
this.ak(this.bj.an.d);
this.ak(this.bm.an.d);
this.ak(this.bk.an.d);
this.ak(this.bl.an.d);
this.ap();
};
AxisView.prototype.a7 = function (a) {
this.bj._visibility = a;
this.bk._visibility = a;
this.bm._visibility = a;
this.bl._visibility = a;
};
AxisView.prototype.az = function () {
};
AxisView.prototype.ah = function (a) {
this.b.d0 = true;
if (this.b.b7 != null) {
this.b.b7.pr();
}
this.b.lx();
};
AxisView.prototype.d = function () {
this.c.a = this.bj;
this.c.b = this.bk;
this.c.c = this.bl;
this.c.d = this.bm;
return this.c;
};
AxisView.prototype.ak = function (a) {
if (a != null) {
a.clear();
}
};
AxisView.prototype.ba = function () {
return this.bj.an.d;
};
AxisView.prototype.f = function () {
var _this = this;
var a = ((function () {
var $ret = new PathRenderingInfo();
$ret.e = _this.b.op;
$ret.c = _this.b.g5;
$ret.f = _this.b.ot;
return $ret;
})());
if (typeCast(XamDataChart.$, this.b.b5) !== null) {
var b = this.b.b5;
if (b.aaa && b.dm != 2 && b.dm != 1) {
a.a = true;
}
}
return a;
};
AxisView.prototype.bd = function () {
return this.bm.an.d;
};
AxisView.prototype.bb = function () {
return this.bk.an.d;
};
AxisView.prototype.g = function () {
var _this = this;
var a = ((function () {
var $ret = new PathRenderingInfo();
$ret.e = _this.b.ol;
$ret.c = _this.b.ge;
$ret.f = _this.b.or;
return $ret;
})());
if (typeCast(XamDataChart.$, this.b.b5) !== null) {
var b = this.b.b5;
if (b.aaa && b.dm != 2 && b.dm != 1) {
a.a = true;
}
}
return a;
};
AxisView.prototype.bc = function () {
return this.bl.an.d;
};
AxisView.prototype.h = function () {
var _this = this;
var a = ((function () {
var $ret = new PathRenderingInfo();
$ret.e = _this.b.om;
$ret.c = _this.b.gh;
$ret.f = _this.b.os;
return $ret;
})());
if (typeCast(XamDataChart.$, this.b.b5) !== null) {
var b = this.b.b5;
if (b.aaa && b.dm != 2 && b.dm != 1) {
a.a = true;
}
}
return a;
};
Object.defineProperty(AxisView.prototype, "e", {
get: function () {
return this.b.av().a;
},
enumerable: false,
configurable: true
});
AxisView.prototype.a5 = function (a, b, c) {
this.e.ae = a;
this.e.da = b;
this.e.c9 = c;
this.ap();
};
AxisView.prototype.aj = function () {
this.e.ab.clear();
this.ap();
};
AxisView.prototype.a1 = function (a) {
this.e.b1 = a;
this.ap();
};
AxisView.prototype.a6 = function (a, b) {
this.e.be = a;
this.e.bf = b;
this.e.at = false;
};
AxisView.prototype.a0 = function (a) {
this.e.bl = a;
};
AxisView.prototype.ag = function () {
};
AxisView.prototype.v = function (a) {
return null;
};
AxisView.prototype.af = function () {
};
AxisView.prototype.aw = function () {
};
AxisView.prototype.n = function () {
return true;
};
AxisView.prototype.q = function () {
return false;
};
AxisView.prototype.o = function () {
return false;
};
AxisView.prototype.s = function (dataItem_) {
return dataItem_;
};
AxisView.prototype.u = function (dataItem_) {
var a = this.s(dataItem_);
if (this.b.az != null) {
return this.b.az(a);
}
if (this.b.ai != null) {
return this.b.ai.i(a);
}
return null;
};
AxisView.prototype.t = function (dataItem_) {
if (this.q() && this.o()) {
return this.u(dataItem_);
}
else {
var a = this.s(dataItem_);
if (this.b.az != null) {
return this.b.az(a);
}
if (this.b.ai != null) {
return this.b.ai.i(a);
}
}
var label_ = this.b.hx;
var b = typeof dataItem_ === 'number' && typeof label_ === 'string';
var labelValue_ = null;
if (this.i != null) {
labelValue_ = this.i.getPropertyValue(dataItem_);
if ((labelValue_ === undefined)) {
labelValue_ = label_;
}
}
else {
labelValue_ = b ? stringFormat(label_, dataItem_) : (typeof dataItem_[label_] != 'undefined') ? dataItem_[label_] : label_;
;
}
if (this.b.expectFunctions) {
if ((typeof (labelValue_) == 'function')) {
labelValue_ = labelValue_();
}
}
return labelValue_;
};
AxisView.prototype.aq = function (a, b) {
this.l = a;
this.m = b;
};
Object.defineProperty(AxisView.prototype, "isDirty", {
get: function () {
return this._isDirty;
},
set: function (a) {
this._isDirty = a;
},
enumerable: false,
configurable: true
});
AxisView.prototype.ap = function () {
if (this.b.b5 == null || this.l == null) {
return;
}
if (!this.isDirty) {
this.isDirty = true;
this.b.b5.al.r(this.l, this.m);
}
};
AxisView.prototype.undirty = function (a) {
this.isDirty = false;
this.ax(a);
};
AxisView.prototype.ax = function (a) {
if (this.l == null) {
return;
}
if (this.l.d) {
if (this.b.b7 != null && this.b.b7.ij != 1) {
this.l.aa();
this.l.ab(this.b.b7.ij, this.b.b7.ij);
}
var b = this.b.b5.yx();
if (a) {
if (!this.l.e) {
this.l.l(b.left, b.top, b.width, b.height);
}
}
if (a) {
if (this.b.b7.x7 != null && !this.b.o6.isEmpty) {
this.bn.o = this.b.o6.top;
this.bn.n = this.b.o6.left;
this.bn.width = this.b.o6.width;
this.bn.height = this.b.o6.height;
this.bn._fill = this.b.b7.x7;
this.l.w(this.bn);
}
}
this.l.aa();
this.l.ah(this.b.o6);
this.ay();
this.l.z();
if (this.b.b7 != null && this.b.b7.ij != 1) {
this.l.z();
}
}
if (this.m.d) {
if (this.b.b7 != null && this.b.b7.ij != 1) {
this.m.aa();
this.m.ab(this.b.b7.ij, this.b.b7.ij);
}
var c = this.bh;
var d = this.b.b5.yx();
if (!c.isEmpty && a) {
if (!this.m.e) {
this.m.l(d.left, d.top, d.width, d.height);
}
}
if (this.b.b7 != null && this.b.b7.ij != 1) {
this.m.z();
}
}
};
AxisView.prototype.postRender = function () {
this.e.co();
};
AxisView.prototype.ay = function () {
if (this.l.d) {
this.bj._stroke = this.b.oe;
this.bm._fill = this.b.oo;
this.bl._stroke = this.b.od;
this.bk._stroke = this.b.oc;
this.bl.ad = this.b.gh;
this.bk.ad = this.b.ge;
this.bj.ad = this.b.g5;
this.bl.ai = this.b.os;
this.bk.ai = this.b.or;
this.bj.ai = this.b.ot;
this.bh = this.b.o6;
this.l.t(this.bj);
this.l.t(this.bm);
this.l.t(this.bk);
this.l.t(this.bl);
}
};
AxisView.prototype.an = function () {
this.ap();
};
AxisView.prototype.al = function (a) {
if (a != null) {
a.al.u(this);
a.dw.ct();
}
};
AxisView.prototype.ae = function (a) {
if (a != null) {
a.al.o(this);
this.ap();
}
};
AxisView.prototype.j = function () {
if (this.b.b7 == null || this.b.b7.dw.j.ae == null) {
return null;
}
return FontUtil.getFont(this.b.b7.dw.j.ae);
};
AxisView.prototype.p = function () {
return this.l == null;
};
AxisView.prototype.av = function () {
if (this.b.dc || this.b.du) {
return;
}
if (this.b.j3 == null) {
this.b.mg = null;
this.b.d0 = true;
this.b.lx();
return;
}
if (this.b.mg == null) {
var a = new TextBlock();
a.al = this.b.j3;
a.dataContext = this.b.b4;
this.b.mg = a;
}
else {
this.b.mg.al = this.b.j3;
this.b.mg.dataContext = this.b.b4;
}
this.b.d0 = true;
this.b.lx();
};
AxisView.prototype.ad = function () {
var a;
var b = new AxisLabelSettings();
if (this.b.dc) {
a = "ui-angular-axis-labels";
b.margin = 0;
}
else if (this.b.dy) {
a = "ui-vertical-axis-labels";
b.location = 2;
b.leftMargin = 5;
b.rightMargin = 5;
b.topMargin = 2;
b.bottomMargin = 2;
}
else if (this.b.bm == 3) {
a = "ui-radial-axis-labels";
b.location = 5;
}
else {
a = "ui-horizontal-axis-labels";
b.location = 1;
b.leftMargin = 2;
b.rightMargin = 2;
b.topMargin = 5;
b.bottomMargin = 5;
}
this.ac(b, a);
};
AxisView.prototype.a8 = function () {
if (this.b.b7 == null) {
return;
}
var a = this.b.b7.z3;
var b = a.fy;
var c = a.fx;
if (this.b.op == null) {
if (b == null) {
this.b.op = a.fv;
}
else if (b.color.l != 0) {
this.b.op = b;
}
}
if (this.b.ol == null) {
if (c == null) {
this.b.ol = a.fv;
}
else if (c.color.l != 0) {
this.b.ol = c;
}
}
};
AxisView.prototype.ac = function (a, b) {
this.b.ha.startCSSQuery();
var c = this.b.ha.getCssDefaultPropertyValue(b, "margin-top");
var d = this.b.ha.getCssDefaultPropertyValue(b, "margin-right");
var e = this.b.ha.getCssDefaultPropertyValue(b, "margin-bottom");
var f = this.b.ha.getCssDefaultPropertyValue(b, "margin-left");
var g = this.b.ha.getCssDefaultPropertyValue(b, "text-align");
var h = this.b.ha.getCssDefaultPropertyValue(b, "vertical-align");
var i = this.b.ha.getCssDefaultPropertyValue(b, "color");
var j = FontUtil.getFontForClass(this.b.ha, b);
this.b.ha.endCSSQuery();
if (c != null) {
a.topMargin = parseFloat(c);
}
if (d != null) {
a.rightMargin = parseFloat(d);
}
if (e != null) {
a.bottomMargin = parseFloat(e);
}
if (f != null) {
a.leftMargin = parseFloat(f);
}
if (i != null) {
if (a.textColor == null) {
a.textColor = new Brush();
}
a.textColor._fill = i;
}
if (j != null) {
a.g = j;
}
if (g != null) {
switch (g) {
case "right":
a.horizontalAlignment = 2;
break;
case "left":
a.horizontalAlignment = 0;
break;
default:
a.horizontalAlignment = 1;
break;
}
}
if (h != null) {
switch (h) {
case "top":
a.verticalAlignment = 0;
break;
case "bottom":
a.verticalAlignment = 2;
break;
default:
a.verticalAlignment = 1;
break;
}
}
this.b.a4 = a;
};
AxisView.prototype.preRender = function () {
if (this.b.b7 != null) {
this.b.b7.o5();
}
};
AxisView.prototype.isValid = function () {
return this.b != null && !this.b.o6.isEmpty;
};
AxisView.prototype.be = function (a) {
return { $type: Point_$type, x: a.n, y: a.o };
};
AxisView.prototype.bf = function () {
return { $type: Point_$type, x: this.b.a1.c6.left, y: this.b.a1.c6.top };
};
AxisView.prototype.bi = function () {
var a = this.b.a1.c6;
return a;
};
AxisView.prototype.bg = function (a) {
return { $type: Point_$type, x: a.n, y: a.o };
};
AxisView.prototype.bp = function (a) {
var b = this.b.a1.ag.u();
var c = this.b.a1.ag.w();
var d = this.b.a1.ag.v();
var e = this.b.a1.ag.t();
return new Thickness(1, b, c, d, e);
};
AxisView.prototype.as = function () {
if (FastReflectionHelper.needsHelper(this.b.hx)) {
this.i = new FastReflectionHelper(true, this.b.hx);
}
else {
this.i = null;
}
};
AxisView.$t = markType(AxisView, 'AxisView', Base.$, [ISchedulableRender_$type]);
return AxisView;
}(Base));
export { AxisView };
/**
* @hidden
*/
var CategoryAxisBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(CategoryAxisBaseView, _super);
function CategoryAxisBaseView(a) {
var _this = _super.call(this, a) || this;
_this.bq = null;
_this.bq = a;
return _this;
}
CategoryAxisBaseView.prototype.v = function (a) {
var b = 0;
if (this.bq.categoryMode == 0) {
b = truncate(Math.round(a));
}
else {
b = truncate(Math.floor(a));
}
if (b < 0 || b > this.b.qb - 1) {
return null;
}
var c = this.b.pm.item(b);
var d = this.t(c);
if (d == null) {
return null;
}
return d.toString();
};
CategoryAxisBaseView.prototype.br = function (a) {
var b = 0;
var c = false;
for (var d = 0; d < a.count; d++) {
var e = typeCast(FrameworkElement.$, a._inner[d]);
if (e == null) {
e = this.b.ci.item(d);
var f = a._inner[d] == null ? "" : a._inner[d].toString();
var g = e.al;
var h = 0;
var i = 0;
if (g != null) {
h = g.length;
}
if (f != null) {
i = f.length;
}
if (h != i) {
c = true;
}
e.al = f;
b++;
}
else {
this.e.ab.add(e);
}
}
if (c) {
this.b.d0 = true;
}
this.b.kd();
return b;
};
CategoryAxisBaseView.$t = markType(CategoryAxisBaseView, 'CategoryAxisBaseView', AxisView.$);
return CategoryAxisBaseView;
}(AxisView));
export { CategoryAxisBaseView };
/**
* @hidden
*/
var HorizontalAxisLabelPanelBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(HorizontalAxisLabelPanelBaseView, _super);
function HorizontalAxisLabelPanelBaseView(a) {
var _this = _super.call(this, a) || this;
_this.az = null;
_this.az = a;
return _this;
}
HorizontalAxisLabelPanelBaseView.prototype.a1 = function () {
};
HorizontalAxisLabelPanelBaseView.prototype.a0 = function () {
return false;
};
HorizontalAxisLabelPanelBaseView.prototype.a2 = function (a) {
var b = this.a.bx();
var c, d;
c = this.az.dm();
d = this.az.dj();
var e = this.a.ah != null ? this.a.ah.verticalAlignment : 1;
var f = this.a.bi;
var g = a.count;
var h = this.a.c6;
var i = this.az.dl();
var j = i / 2;
for (var k = 0; k < g; k++) {
var l = a._inner[k];
var m = l.height / 2;
switch (e) {
case 0:
l.y = h.top + c;
break;
case 1:
case 3:
l.y = (h.top + c + j) - m;
break;
case 2:
l.y = (h.bottom - d) - l.height;
break;
}
}
};
HorizontalAxisLabelPanelBaseView.$t = markType(HorizontalAxisLabelPanelBaseView, 'HorizontalAxisLabelPanelBaseView', AxisLabelPanelBaseView.$);
return HorizontalAxisLabelPanelBaseView;
}(AxisLabelPanelBaseView));
export { HorizontalAxisLabelPanelBaseView };
/**
* @hidden
*/
var NumericAxisBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(NumericAxisBaseView, _super);
function NumericAxisBaseView(a) {
var _this = _super.call(this, a) || this;
_this.bq = null;
_this.bq = a;
return _this;
}
NumericAxisBaseView.prototype.br = function () {
};
NumericAxisBaseView.prototype.q = function () {
return this.bq.qf;
};
NumericAxisBaseView.prototype.o = function () {
if (this.bq.pk != null) {
return true;
}
if (this.bq.pj != null) {
return true;
}
return false;
};
NumericAxisBaseView.prototype.u = function (dataItem_) {
if (this.bq.pk != null) {
return this.bq.pk(dataItem_);
}
if (this.bq.pj != null) {
return this.bq.pj.i(dataItem_);
}
return null;
};
NumericAxisBaseView.prototype.v = function (a) {
var b = this.bq.pw.d(this.bq.o6, this.bq.b7.yr, this.bq.o1(), this.bq.o0());
return this.bq.pw.w(b, a, -1, NaN);
};
NumericAxisBaseView.$t = markType(NumericAxisBaseView, 'NumericAxisBaseView', AxisView.$);
return NumericAxisBaseView;
}(AxisView));
export { NumericAxisBaseView };
/**
* @hidden
*/
var VerticalAxisLabelPanelView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(VerticalAxisLabelPanelView, _super);
function VerticalAxisLabelPanelView(a) {
var _this = _super.call(this, a) || this;
_this.az = null;
_this.az = a;
return _this;
}
VerticalAxisLabelPanelView.prototype.a0 = function () {
};
VerticalAxisLabelPanelView.prototype.e = function () {
var a = this.a.ae.b7.getFontInfo();
if (this.a.ae.b4 != null && this.a.ae.b4.textStyle != null) {
a = this.a.ae.b4.h(this.a.ae.b7.dw.j.ae);
}
else {
var b = this.a.ae.b7.d2();
if (b != null) {
a = b;
}
}
return a;
};
VerticalAxisLabelPanelView.prototype.ay = function () {
return this.a.ae.b7.zd();
};
VerticalAxisLabelPanelView.prototype.as = function () {
var a = this.a.ae.b5.getFontBrush();
if (this.a.ae.b4 != null && this.a.ae.b4.textColor != null) {
a = this.a.ae.b4.textColor;
}
else {
var b = this.a.ae.b7.xz();
if (b != null) {
a = b;
}
}
return a;
};
VerticalAxisLabelPanelView.prototype.a1 = function (a, b) {
var c, d;
c = this.az.dg();
d = this.az.di();
var e = this.a.ah != null ? this.a.ah.horizontalAlignment : 1;
var f = this.a.bi;
var g = this.az.dj();
var h = g / 2;
var i = this.a.c6;
for (var j = 0; j < a.count; j++) {
var k = a._inner[j];
var l = k.width / 2;
switch (e) {
case 0:
k.x = i.left + c;
break;
case 1:
case 3:
k.x = (i.left + c + h) - l;
break;
case 2:
k.x = (i.right - d) - k.width;
break;
}
}
};
VerticalAxisLabelPanelView.$t = markType(VerticalAxisLabelPanelView, 'VerticalAxisLabelPanelView', AxisLabelPanelBaseView.$);
return VerticalAxisLabelPanelView;
}(AxisLabelPanelBaseView));
export { VerticalAxisLabelPanelView };
/**
* @hidden
*/
var XamDataChartView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(XamDataChartView, _super);
function XamDataChartView(a) {
var _this = _super.call(this, a) || this;
_this.fq = null;
_this.fz = null;
_this.fv = null;
_this.fw = null;
_this.fy = null;
_this.fx = null;
_this.fs = 0;
_this.ft = 0;
_this.fr = null;
_this.fq = a;
return _this;
}
XamDataChartView.prototype.fu = function (a) {
this.p.al.s();
};
XamDataChartView.prototype.dv = function () {
_super.prototype.dv.call(this);
if (this.b.count == 0 && this.y != null) {
if (this.p.ij != 1) {
this.y.aa();
this.y.ab(this.p.ij, this.p.ij);
}
if (!this.y.e) {
this.y.l(0, 0, this.bb, this.ba);
}
if (this.p.ij != 1) {
this.y.z();
}
}
};
XamDataChartView.prototype.d7 = function () {
var e_146, _a;
var a, b;
var c = 1, d = 0;
var e = false;
var f = this.j.e();
var g;
var h = this.j.a7(c, g, a, b, d, e);
c = h.p0;
g = h.p1;
a = h.p2;
b = h.p3;
d = h.p4;
e = h.p5;
if (isNaN_(this.p.jl)) {
this.p.jl = g[0];
}
if (isNaN_(this.p.jc)) {
this.p.jc = g[1];
}
if (isNaN_(this.p.ir)) {
this.p.ir = g[2];
}
if (isNaN_(this.p.i7)) {
this.p.i7 = g[3];
}
this.fq.adv = f.i;
this.fq.adt = AxisDefaults.axis_MajorBrush;
this.fq.adu = AxisDefaults.axis_MinorBrush;
this.fq.aaa = e;
this.fy = a;
this.fx = b;
this.fq.ag = f.a;
this.fq.aj = f.f;
this.fq.ah = f.b != null ? f.b : new BrushCollection();
this.fq.ai = f.c != null ? f.c : new BrushCollection();
if (this.fq.ah.count == 0) {
for (var i = 0; i < f.a.count; i++) {
this.fq.ah.add(f.a.item(i));
}
}
if (f.c.count == 0) {
for (var j = 0; j < f.f.count; j++) {
this.fq.ai.add(f.f.item(j));
}
}
this.fw = f.j;
this.fz = f.k;
this.fr = f.h;
this.fv = f.i;
this.fs = c;
try {
for (var _b = __values(fromEnum(this.fq.b9)), _c = _b.next(); !_c.done; _c = _b.next()) {
var k = _c.value;
k.sv();
}
}
catch (e_146_1) {
e_146 = { error: e_146_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_146)
throw e_146.error;
}
}
this.ft = d;
};
XamDataChartView.prototype.d4 = function () {
this.fh.ad = Defaults.crosshairLineThickness;
this.fg.ad = Defaults.crosshairLineThickness;
this.fh._stroke = this.p.ye != null ? this.p.ye : this.fw;
this.fg._stroke = this.p.x4 != null ? this.p.x4 : this.fw;
_super.prototype.d4.call(this);
};
XamDataChartView.$t = markType(XamDataChartView, 'XamDataChartView', SeriesViewerView.$);
return XamDataChartView;
}(SeriesViewerView));
export { XamDataChartView };
/**
* @hidden
*/
var SeriesView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SeriesView, _super);
function SeriesView(a) {
var _this = _super.call(this) || this;
_this.f = null;
_this.v = false;
_this.i = null;
_this.d = null;
_this._isDirty = false;
_this.cb = null;
_this.b1 = null;
_this.ad = 0;
_this.b6 = Rect.empty;
_this.b0 = new Brush();
_this.g = new SeriesComponentsFromView();
_this.m = null;
_this.n = null;
_this.b7 = null;
_this.b8 = null;
_this.o = false;
_this.a = null;
_this.u = false;
_this.q = false;
_this.s = false;
_this.al = null;
_this.y = new List$1(ITrendLineManager_$type, 0);
_this.p = false;
_this.z = new List$1(FrameworkElement.$, 0);
_this.x = new Dictionary$2(FontInfo.$, Tuple$2.$.specialize(Number_$type, FontInfo.$), 0);
_this.ad = NaN;
_this.u = true;
_this.f = a;
_this.t = false;
_this.cb = new Rectangle();
_this.v = false;
return _this;
}
SeriesView.prototype.getDefaultTooltipTemplate = function () {
return this.f.ba.a$u(this.f);
};
SeriesView.prototype.a1 = function () {
if (this.f.fl) {
this.f.ba.a$ab(this.f);
}
};
SeriesView.prototype.k = function () {
return new DOMExecutionContext(this.f.dc.dw.j.ae);
};
Object.defineProperty(SeriesView.prototype, "j", {
get: function () {
if (this.i == null) {
this.i = this.k();
}
return this.i;
},
enumerable: false,
configurable: true
});
SeriesView.prototype.ap = function (a, b) {
Series.pz(b, this.f.dc, false);
b.dc = this.f.dc;
b.c4 = this.f.c4;
if (b.dc != null) {
b.dc.on(b);
}
};
SeriesView.prototype.au = function (a) {
Series.pz(a, this.f.dc, true);
a.pi(true, a.cw);
a.dc = null;
a.c4 = null;
a.itemsSource = null;
a.legend = null;
if (a.dc != null) {
a.dc.s9(a);
}
};
SeriesView.prototype.a4 = function () {
if (!this.t) {
this.f.ir = 0.8;
this.f.c2 = 0;
this.f.c1 = 1;
this.d = new DataContext();
this.d.series = this.f;
this.f.df = EasingFunctions.cubicEase;
this.an();
}
};
SeriesView.prototype.getEffectiveViewport = function () {
return this.f.getEffectiveViewport1(this);
};
SeriesView.prototype.bb = function () {
this.a2();
};
SeriesView.prototype.as = function () {
};
SeriesView.prototype.getMainContentViewport = function () {
return this.f.getMainContentViewport();
};
Object.defineProperty(SeriesView.prototype, "ae", {
get: function () {
if (this.f.dc != null) {
return this.f.dc.dw.j.ae;
}
return null;
},
enumerable: false,
configurable: true
});
SeriesView.prototype.l = function (a) {
return FontUtil.getFontInfoFromString(this.ae, a);
};
Object.defineProperty(SeriesView.prototype, "isDirty", {
get: function () {
return this._isDirty;
},
set: function (a) {
this._isDirty = a;
},
enumerable: false,
configurable: true
});
SeriesView.prototype.get_index = function () {
if (this.f == null || this.f.dc == null) {
return 0;
}
if (this.f.dc.f6) {
if (this.f.ff) {
return this.f.dc.b9.indexOf(this.f);
}
else {
var a = this.f.dc.b9.indexOf(this.f);
if (a >= 0) {
return a;
}
for (var b = 0; b < this.f.dc.b9.count; b++) {
if (this.f.dc.b9._inner[b].ff) {
var c = this.f.dc.b9._inner[b].bp();
if (c == this.f) {
return b;
}
}
}
return a;
}
}
var d = typeCast(XamDataChart.$, this.f.da);
var e = 0;
if (d != null) {
if (d.zu == 2 || d.zu == 0) {
e = d.zq.count;
}
}
var f = 0;
for (var g = 0; g < this.f.dc.b9.count; g++) {
if (this.f.dc.b9._inner[g] == this.f) {
break;
}
if (this.f.dc.b9._inner[g].isStacked) {
f += this.f.dc.b9._inner[g].kl();
}
else if (this.f.dc.b9._inner[g].ei) {
if (this.f.bo != null && this.f.bo == this.f.dc.b9._inner[g]) {
f += 1;
for (var h = 0; h < this.f.dc.b9._inner[g].actualLayers.count; h++) {
if (this.f.dc.b9._inner[g].actualLayers._inner[h].target == this.f) {
return e + f + (h);
}
}
}
else {
f += this.f.dc.b9._inner[g].actualLayers.count + 1;
}
}
else {
f++;
}
}
return e + f;
};
Object.defineProperty(SeriesView.prototype, "index", {
get: function () {
return this.get_index();
},
enumerable: false,
configurable: true
});
SeriesView.prototype.a2 = function () {
if (this.f.dc == null) {
return;
}
if (!this.isDirty) {
this.isDirty = true;
this.a.r(this.m, this.n);
}
};
SeriesView.prototype.undirty = function (a) {
this.isDirty = false;
this.bh(a);
};
SeriesView.prototype.a6 = function () {
this.a2();
};
SeriesView.prototype.b5 = function () {
if (this.b1 == null) {
this.b1 = ((function () {
var $ret = new Brush();
$ret.color = Color.u(0, 0, 0, 0);
return $ret;
})());
}
return this.b1;
};
SeriesView.prototype.b2 = function (a) {
if (a != null) {
var b = BrushUtil.p(a, 1);
return b;
}
else {
return null;
}
};
SeriesView.prototype.ac = function () {
if (!isNaN_(this.ad)) {
return this.ad;
}
if (this.f.dc != null) {
return this.f.dc.ij;
}
else {
return 1;
}
};
SeriesView.prototype.bh = function (a) {
if (this.m == null) {
return;
}
if (this.b6.isEmpty) {
this.b6 = this.b9;
}
var b = this.b6;
var c = this.f.dc.yx();
var d = c.left;
var e = c.top;
var f = c.width;
var g = c.height;
var h = this.ac();
if (this.s) {
d = this.b9.left;
e = this.b9.top;
f = this.b9.width;
g = this.b9.height;
}
if (this.m.d) {
if (h != 1) {
this.m.aa();
this.m.ab(h, h);
}
if (a) {
if (!this.m.e) {
this.m.l(d, e, f, g);
}
}
if (a) {
if (this.f.dc.x7 != null && !this.b9.isEmpty) {
this.cb.o = this.b9.top;
this.cb.n = this.b9.left;
this.cb.width = this.b9.width;
this.cb.height = this.b9.height;
this.cb._fill = this.f.dc.x7;
this.m.w(this.cb);
}
}
if (h != 1) {
this.m.z();
}
}
if (this.n != null && this.u) {
if (this.n.d) {
if (this.f.dc != null && h != 1) {
this.n.aa();
this.n.ab(h, h);
}
if (!b.isEmpty && a) {
if (!this.n.e) {
this.n.l(b.left, b.top, b.width, b.height);
}
}
this.bo(true);
this.bj(this.n, true);
this.bi(this.n, true);
if (h != 1) {
this.n.z();
}
}
}
if (this.m.d && this.u) {
if (h != 1) {
this.m.aa();
this.m.ab(h, h);
}
this.m.aa();
if (!this.t && Rect.l_op_Inequality(this.f.w3, null) && !this.f.w3.isEmpty && (this.f.w3.width != 1 || this.f.w3.height != 1)) {
this.m.ah(new Rect(0, this.b9.left + this.b9.width * this.f.w3.left, this.b9.top + this.b9.height * this.f.w3.top, this.b9.width * this.f.w3.width, this.b9.height * this.f.w3.height));
}
else {
this.m.ah(this.b9);
}
this.bo(false);
this.m.ag(this.f._opacity);
if (this.f.e8 && this.f.e9 && !this.t) {
if (this.f.hi) {
this.m.p(this.f.wl.colorString, 0, this.f.jw, this.f.jx);
var i = this.f.dc.dw.j.x;
var j = this.f.dc.dw.j.ak;
if (h != 1) {
i.aa();
i.ab(h, h);
}
if (!i.e) {
i.l(c.left, c.top, c.width, c.height);
}
this.bj(i, false);
this.bi(i, false);
this.m.n(j.getNativeElement(), 1, 0, 0, c.width, c.height);
if (h != 1) {
i.z();
}
}
else {
this.m.p(this.f.wl.colorString, this.f.jv, this.f.jw, this.f.jx);
this.bj(this.m, false);
this.bi(this.m, false);
}
this.m.m();
}
else {
this.bj(this.m, false);
this.bi(this.m, false);
}
this.m.ag(1);
this.m.z();
if (h != 1) {
this.m.z();
}
}
};
SeriesView.prototype.br = function (a, b, c) {
if (c) {
this.bt(a, b);
}
else {
this.bs(a, b);
}
};
SeriesView.prototype.bu = function (a, b, c) {
if (c) {
this.bw(a, b);
}
else {
this.bv(a, b);
}
};
SeriesView.prototype.ai = function (a, b) {
if (b) {
return this.aj(a);
}
else {
return this.ak(a);
}
};
SeriesView.prototype.aj = function (a) {
return null;
};
SeriesView.prototype.ak = function (a) {
return null;
};
SeriesView.prototype.bs = function (a, b) {
};
SeriesView.prototype.bv = function (a, b) {
};
SeriesView.prototype.bt = function (a, b) {
};
SeriesView.prototype.bw = function (a, b) {
};
SeriesView.prototype.bo = function (a) {
if (a) {
this.bq();
}
else {
this.bp();
}
};
SeriesView.prototype.bp = function () {
};
SeriesView.prototype.bq = function () {
};
SeriesView.prototype.b4 = function (a) {
return this.b3();
};
SeriesView.prototype.b3 = function () {
var a = this.f.kp;
var num_ = (a + 1) * 1000;
var b = ((num_ & 0x3F) << 2);
num_ = (num_ >> 6);
var c = ((num_ & 0x3F) << 2);
num_ = (num_ >> 6);
var d = ((num_ & 0x3F) << 2);
this.b0._fill = "rgb(" + b + "," + c + "," + d + ")";
return this.b0;
};
SeriesView.prototype.bj = function (a, b) {
this.b6 = this.b9;
};
SeriesView.prototype.bi = function (a, b) {
};
SeriesView.prototype.a9 = function () {
};
SeriesView.prototype.ay = function () {
};
SeriesView.prototype.az = function () {
};
SeriesView.prototype.h = function () {
return this.g;
};
SeriesView.prototype.bm = function (a) {
};
SeriesView.prototype.w = function () {
return true;
};
SeriesView.prototype.a8 = function () {
};
SeriesView.prototype.a7 = function () {
};
SeriesView.prototype.bk = function () {
this.f.vt = null;
};
SeriesView.prototype.aq = function () {
this.f.vt = this.f.vz;
};
SeriesView.prototype.bl = function () {
this.f.vx = null;
};
SeriesView.prototype.ar = function () {
this.f.vx = this.f.wf;
};
SeriesView.prototype.c = function (a) {
if (typeCast(DataContext.$, a) !== null) {
return a;
}
return null;
};
SeriesView.prototype.a3 = function (a, b) {
this.m = a;
this.n = b;
};
Object.defineProperty(SeriesView.prototype, "b9", {
get: function () {
return this.b7;
},
set: function (a) {
this.b7 = a;
},
enumerable: false,
configurable: true
});
SeriesView.prototype.get_ca = function () {
if (this.s) {
return this.b8;
}
else if (this.t) {
return XamDataChart.y4;
}
else {
return this.f.dc != null ? this.f.dc.yr : Rect.empty;
}
};
Object.defineProperty(SeriesView.prototype, "ca", {
get: function () {
return this.get_ca();
},
enumerable: false,
configurable: true
});
Object.defineProperty(SeriesView.prototype, "t", {
get: function () {
return this.o;
},
set: function (a) {
this.o = a;
},
enumerable: false,
configurable: true
});
SeriesView.prototype.at = function (a) {
if (a != null) {
this.a.u(this);
if (this.f.cv != null) {
this.f.cv.a.u(this.f.cv);
}
}
};
SeriesView.prototype.ao = function (a) {
var e_147, _a;
if (a != null) {
if (this.f.hg) {
this.m = this.f.dc.dw.z;
a.dw.a.o(this);
this.a = a.dw.a;
}
else {
this.m = this.f.dc.dw.y;
a.al.o(this);
this.a = a.al;
}
if (this.f.cv != null) {
a.am.o(this.f.cv);
this.f.cv.a = a.am;
this.f.cv.a2();
}
if (this.f.fl) {
try {
for (var _b = __values(fromEnum(this.f.ba.a$k.keys)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
a.ak.o(this.f.ba.a$k.item(b));
this.f.ba.a$k.item(b).a = a.ak;
this.f.ba.a$k.item(b).a2();
}
}
catch (e_147_1) {
e_147 = { error: e_147_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_147)
throw e_147.error;
}
}
}
this.a2();
}
};
SeriesView.prototype.postRender = function () {
this.bc();
};
SeriesView.prototype.bc = function () {
};
SeriesView.prototype.b = function (a) {
return null;
};
SeriesView.prototype.be = function (a) {
this.f.cv.m = a.a;
};
SeriesView.prototype.ax = function (a) {
};
SeriesView.prototype.bx = function () {
if (this.q) {
return;
}
if (this.f.dc != null) {
var a = (this.f.legend != null) ? this.f.legend : this.f.dc.legend;
if (a != null && this.f.tc != null && a.containsChild(this.f.tc)) {
a.removeChild(this.f.tc);
var b = this.f.k8();
b.content.actualItemBrush = this.f.vt;
b.content.outline = this.f.vx;
b.content.thickness = this.f.il;
a.addChildInOrder(this.f.tc, this.f);
a.flushTextContentChangedCheck();
}
}
};
SeriesView.prototype.a5 = function () {
this.f.o9(this.f.a5, this.f.a5);
};
SeriesView.prototype.ba = function () {
this.bx();
};
SeriesView.prototype.getViewInfo = function (a, b) {
a = this.b9;
b = this.ca;
return {
p0: a,
p1: b
};
};
SeriesView.prototype.r = function () {
return this.m != null;
};
SeriesView.prototype.by = function () {
this.u = this.f._visibility == 0;
this.a2();
};
SeriesView.prototype.bg = function () {
this.f.ba.a$aq(this.f);
};
SeriesView.prototype.an = function () {
var a = new Color();
a.colorString = "rgba(95,95,95,0.5)";
this.f.wl = a;
this.f.jv = 5;
this.f.jw = 5;
this.f.jx = 5;
};
SeriesView.prototype.a0 = function () {
};
SeriesView.prototype.preRender = function () {
if (this.f.dc != null && !this.t) {
this.f.dc.o5();
}
};
SeriesView.prototype.isValid = function () {
return true;
};
SeriesView.prototype.bd = function (a) {
this.m = a.a;
};
SeriesView.prototype.bz = function (type_) {
var legendTemplates_ = TypeRegistrar.get("LegendTemplates");
var a = (legendTemplates_.resolveLegendItemTemplate(type_));
return a;
};
Object.defineProperty(SeriesView.prototype, "aa", {
get: function () {
return this.y;
},
enumerable: false,
configurable: true
});
SeriesView.prototype.e = function () {
var a = this.f.bd();
if (a != null) {
a.g$d = true;
this.y.add(a);
return a;
}
return null;
};
SeriesView.prototype.bf = function (a) {
if (a != null) {
this.y.remove(a);
}
};
SeriesView.prototype.bn = function (a, b, c) {
if (this.p) {
this.z.add(a);
}
a.n = b;
a.o = c;
};
SeriesView.prototype.av = function (a, b) {
a.dataContext = b;
};
SeriesView.prototype.aw = function (a, b) {
a.ag = true;
var c = this.m.aj(a, this.ab(b), true);
};
SeriesView.prototype.cc = function (a, b) {
this.m.af(b);
var c = new TextBlock();
c.al = a;
var d = this.m.aj(c, this.ab(b), true);
return new Size(1, d.c, d.b);
};
SeriesView.prototype.ab = function (a) {
if (this.x.containsKey(a)) {
var b = this.x.item(a);
if (b.d.j == a.j) {
return b.c;
}
}
var c = 20;
var d = new Tuple$2(Number_$type, FontInfo.$, c, a);
this.x.item(a, d);
return c;
};
SeriesView.$t = markType(SeriesView, 'SeriesView', Base.$, [ISchedulableRender_$type, IProvidesViewport_$type]);
return SeriesView;
}(Base));
export { SeriesView };
/**
* @hidden
*/
var MarkerSeriesView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(MarkerSeriesView, _super);
function MarkerSeriesView(a) {
var _this = _super.call(this, a) || this;
_this.ch = null;
_this.cm = 1;
_this.co = Defaults.series_MarkerThickness;
_this.cn = 3;
_this.cl = null;
_this.ck = false;
_this.cd = new Marker();
_this.c6 = null;
_this.cd = new Marker();
_this.cd.content = new DataContext();
_this.ch = a;
return _this;
}
MarkerSeriesView.prototype.a4 = function () {
_super.prototype.a4.call(this);
this.cl = new List$1(Marker.$, 0);
this.c6 = ((function () {
var $ret = new DataTemplate();
$ret.render = MarkerTemplates.c;
$ret.measure = MarkerTemplates.b;
return $ret;
})());
};
MarkerSeriesView.prototype.cy = function () {
var e_148, _a;
try {
for (var _b = __values(fromEnum(this.cl)), _c = _b.next(); !_c.done; _c = _b.next()) {
var a = _c.value;
a.ah = this.ch.ym;
}
}
catch (e_148_1) {
e_148 = { error: e_148_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_148)
throw e_148.error;
}
}
this.a2();
};
MarkerSeriesView.prototype.c8 = function () {
if (this.m == null) {
return new Size(1, 0, 0);
}
var a = new DataTemplatePassInfo();
a.isHitTestRender = false;
a.context = this.m.h();
a.viewportTop = this.b9.top;
a.viewportLeft = this.b9.left;
a.viewportWidth = this.b9.width;
a.viewportHeight = this.b9.height;
a.passID = "TestMeasure";
var b = new DataTemplateRenderInfo();
b.isHitTestRender = false;
b.passInfo = a;
var c = new DataTemplateMeasureInfo();
c.passInfo = a;
var d = this.m.h();
c.context = d;
b.context = d;
var e = 0;
var f = 0;
if (this.ch.ym != null && this.ch.ym.passStarting != null) {
this.ch.ym.passStarting(a);
}
var g = this.ch.ym;
if (this.cl.count > 0) {
var h = this.cl._inner[0];
c.data = h.content;
c.width = h.width;
c.height = h.height;
c.renderOffsetX = 0;
c.renderOffsetY = 0;
c.renderContext = this.m;
g = h.ah;
}
var i = 0;
var j = 0;
if (g != null && g.measure != null) {
g.measure(c);
i = c.width;
j = c.height;
}
if (this.ch.ym != null && this.ch.ym.passCompleted != null) {
this.ch.ym.passCompleted(a);
}
return new Size(1, i, j);
};
MarkerSeriesView.prototype.c5 = function (a) {
};
MarkerSeriesView.prototype.cg = function () {
var _this = this;
var a = new Marker();
a.content = ((function () {
var $ret = new DataContext();
$ret.series = _this.f;
return $ret;
})());
a.ah = this.ch.ym;
this.cl.add(a);
return a;
};
MarkerSeriesView.prototype.cx = function (a) {
for (var b = this.cl.count - 1; b >= 0; b--) {
var c = this.cl._inner[b];
a(c);
}
};
MarkerSeriesView.prototype.c1 = function (a) {
a._visibility = 0;
};
MarkerSeriesView.prototype.c3 = function (a) {
a._visibility = 1;
};
MarkerSeriesView.prototype.c2 = function (a) {
this.cl.remove(a);
};
MarkerSeriesView.prototype.ci = function () {
return this.ch.yn != null;
};
MarkerSeriesView.prototype.cv = function () {
this.ch.yl = null;
};
MarkerSeriesView.prototype.cp = function () {
this.ch.yl = this.ch.yn;
};
MarkerSeriesView.prototype.c7 = function (a) {
var b = a.n;
var c = a.o;
var d = a.m;
var e = a.l;
return new Rect(0, b - d / 2, c - d / 2, d, e);
};
MarkerSeriesView.prototype.cs = function (a) {
if (this.ch.dc == null) {
return;
}
switch (a) {
case SeriesViewer.$$p[2]:
this.ch.yl = this.ch.dc.uh;
break;
case SeriesViewer.$$p[50]:
this.ch.yl = this.ch.dc.uq;
break;
case SeriesViewer.$$p[34]:
this.ch.yl = this.ch.dc.un;
break;
case SeriesViewer.$$p[44]:
this.ch.yl = this.ch.dc.uo;
break;
case SeriesViewer.$$p[5]:
this.ch.yl = this.ch.dc.ui;
break;
case SeriesViewer.$$p[26]:
this.ch.yl = this.ch.dc.ul;
break;
case SeriesViewer.$$p[10]:
this.ch.yl = this.ch.dc.uj;
break;
case SeriesViewer.$$p[47]:
this.ch.yl = this.ch.dc.up;
break;
case SeriesViewer.$$p[27]:
this.ch.yl = this.ch.dc.um;
break;
case SeriesViewer.$$p[11]:
this.ch.yl = this.ch.dc.uk;
break;
}
};
MarkerSeriesView.prototype.ct = function () {
this.ch.y2 = null;
};
MarkerSeriesView.prototype.cq = function () {
if (!isNaN_(this.f.ij) && this.f.ij != 1) {
var a = BrushUtil.s(this.ch.y4, this.f.ij);
this.ch.y2 = a;
}
else {
this.ch.y2 = this.ch.y4;
}
};
MarkerSeriesView.prototype.cu = function () {
this.ch.y3 = null;
};
MarkerSeriesView.prototype.cr = function () {
this.ch.y3 = this.ch.y5;
};
MarkerSeriesView.prototype.c4 = function () {
this.a2();
};
MarkerSeriesView.prototype.bv = function (a, b) {
_super.prototype.bv.call(this, a, b);
if (!this.ck) {
var c = a;
var d = c.content;
if (d != null) {
d.actualItemBrush = this.ch.y2;
if (d.itemBrush != null) {
d.actualItemBrush = d.itemBrush;
}
d.outline = this.ch.y3;
d.thickness = this.ch.x4;
}
}
};
MarkerSeriesView.prototype.bw = function (a, b) {
_super.prototype.bw.call(this, a, b);
var c = a;
this.cd._visibility = c._visibility;
this.cd.ah = c.ah;
this.cd.width = c.width;
this.cd.height = c.height;
this.cd.m = c.m;
this.cd.l = c.l;
this.cd.n = c.n;
this.cd.o = c.o;
var d = this.b4(b);
var e = this.cd.content;
var f = c.content;
e.item = f.item;
e.series = f.series;
e.thickness = f.thickness;
if (e != null) {
e.actualItemBrush = d;
e.outline = d;
e.thickness = this.cm + this.cn;
}
};
MarkerSeriesView.prototype.b = function (a) {
if (a >= 0 && a < this.cl.count) {
return this.cl._inner[a].content;
}
return _super.prototype.b.call(this, a);
};
MarkerSeriesView.prototype.bi = function (a, b) {
_super.prototype.bi.call(this, a, b);
if (a.d) {
var c = new DataTemplatePassInfo();
c.isHitTestRender = b;
c.context = a.h();
c.viewportTop = this.b9.top;
c.viewportLeft = this.b9.left;
c.viewportWidth = this.b9.width;
c.viewportHeight = this.b9.height;
c.passID = "Markers";
var d = new DataTemplateRenderInfo();
d.isHitTestRender = b;
d.passInfo = c;
var e = new DataTemplateMeasureInfo();
e.passInfo = c;
var f = false;
var g = a.h();
e.context = g;
d.context = g;
var h = 0;
var i = 0;
if (this.ch.ym != null && this.ch.ym.passStarting != null) {
this.ch.ym.passStarting(c);
}
for (var j = 0; j < this.cl.count; j++) {
var k = this.cl._inner[j];
if (k._visibility == 1) {
continue;
}
this.bu(k, j, b);
if (b) {
k = this.cd;
}
if (!f) {
e.data = k.content;
e.width = k.width;
e.height = k.height;
e.renderOffsetX = 0;
e.renderOffsetY = 0;
e.renderContext = a;
var l = k.ah;
if (l.measure != null) {
e.data = k.content;
l.measure(e);
f = e.isConstant;
if (f) {
h = e.width;
i = e.height;
}
}
d.availableWidth = e.width;
d.availableHeight = e.height;
d.renderOffsetX = e.renderOffsetX;
d.renderOffsetY = e.renderOffsetY;
d.renderContext = a;
}
else {
d.availableWidth = h;
d.availableHeight = i;
}
if (!isNaN_(k.width) && !isInfinity(k.width)) {
d.availableWidth = k.width;
}
if (!isNaN_(k.height) && !isInfinity(k.height)) {
d.availableHeight = k.height;
}
a.q(d, k);
k.m = d.availableWidth;
k.l = d.availableHeight;
k.ai = d.renderOffsetX;
k.aj = d.renderOffsetY;
}
if (this.ch.ym != null && this.ch.ym.passCompleted != null) {
this.ch.ym.passCompleted(c);
}
}
};
MarkerSeriesView.prototype.cz = function (a) {
a.create = runOn(this, this.cg);
a.destroy = runOn(this, this.c2);
a.activate = runOn(this, this.c1);
a.disactivate = runOn(this, this.c3);
};
MarkerSeriesView.prototype.c0 = function (a) {
a.create = runOn(this, this.cg);
a.destroy = runOn(this, this.c2);
a.activate = runOn(this, this.c1);
a.disactivate = runOn(this, this.c3);
};
MarkerSeriesView.prototype.ce = function (a) {
var b = this.cf(a, 0);
if (b == null) {
b = this.cf(a, 3);
}
return b;
};
MarkerSeriesView.prototype.cf = function (a, b) {
var c;
var d;
var e;
var f;
for (var g = this.cl.count - 1; g >= 0; g--) {
var h = this.cl._inner[g];
if (h._visibility == 1 || h._opacity == 0) {
continue;
}
c = (h.m / 2) + b;
d = (h.l / 2) + b;
e = h.ai;
f = h.aj;
if (this.ch.xx) {
if (this.cj(a.x, a.y, h.n + e, h.o + f, c)) {
return h;
}
}
else {
if ((h.n + e) - c <= a.x && (h.n + e) + c >= a.x && (h.o + f) - d <= a.y && (h.o + f) + d >= a.y) {
return h;
}
}
}
return null;
};
MarkerSeriesView.prototype.cj = function (a, b, c, d, e) {
var f = e * e;
var g = (a - c) * (a - c) + (b - d) * (b - d);
return g < f;
};
MarkerSeriesView.$t = markType(MarkerSeriesView, 'MarkerSeriesView', SeriesView.$);
return MarkerSeriesView;
}(SeriesView));
export { MarkerSeriesView };
/**
* @hidden
*/
var ChartAxisRangeChangedEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ChartAxisRangeChangedEventArgs, _super);
function ChartAxisRangeChangedEventArgs(a, b, c, d, e, f) {
var _this = _super.call(this) || this;
_this._chart = null;
_this._axis = null;
_this._oldMinimumValue = 0;
_this._minimumValue = 0;
_this._oldMaximumValue = 0;
_this._maximumValue = 0;
_this.chart = a;
_this.axis = b;
_this.oldMinimumValue = c;
_this.minimumValue = d;
_this.oldMaximumValue = e;
_this.maximumValue = f;
return _this;
}
Object.defineProperty(ChartAxisRangeChangedEventArgs.prototype, "chart", {
get: function () {
return this._chart;
},
set: function (a) {
this._chart = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartAxisRangeChangedEventArgs.prototype, "axis", {
get: function () {
return this._axis;
},
set: function (a) {
this._axis = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartAxisRangeChangedEventArgs.prototype, "oldMinimumValue", {
get: function () {
return this._oldMinimumValue;
},
set: function (a) {
this._oldMinimumValue = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartAxisRangeChangedEventArgs.prototype, "minimumValue", {
get: function () {
return this._minimumValue;
},
set: function (a) {
this._minimumValue = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartAxisRangeChangedEventArgs.prototype, "oldMaximumValue", {
get: function () {
return this._oldMaximumValue;
},
set: function (a) {
this._oldMaximumValue = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartAxisRangeChangedEventArgs.prototype, "maximumValue", {
get: function () {
return this._maximumValue;
},
set: function (a) {
this._maximumValue = a;
},
enumerable: false,
configurable: true
});
ChartAxisRangeChangedEventArgs.$t = markType(ChartAxisRangeChangedEventArgs, 'ChartAxisRangeChangedEventArgs', EventArgs.$);
return ChartAxisRangeChangedEventArgs;
}(EventArgs));
export { ChartAxisRangeChangedEventArgs };
(function (v) { callStaticConstructors(); })(true);