scichart 2.0.0-alpha.1971 → 2.0.0-alpha.1991

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/Builder/buildAxis.d.ts +3 -3
  2. package/Builder/buildDataSeries.d.ts +44 -4
  3. package/Builder/buildDataSeries.js +66 -0
  4. package/Builder/buildSeries.d.ts +1 -1
  5. package/Builder/buildSeries.js +1 -2
  6. package/Builder/buildSurface.d.ts +14 -6
  7. package/Builder/buildSurface.js +13 -8
  8. package/Builder/chartBuilder.d.ts +12 -6
  9. package/Builder/chartBuilder.js +6 -6
  10. package/Charting/ChartModifiers/LegendModifier.d.ts +4 -0
  11. package/Charting/ChartModifiers/LegendModifier.js +2 -1
  12. package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +14 -6
  13. package/Charting/ChartModifiers/SeriesSelectionModifier.js +10 -10
  14. package/Charting/ChartModifiers/ZoomExtentsModifier.d.ts +13 -0
  15. package/Charting/ChartModifiers/ZoomExtentsModifier.js +16 -4
  16. package/Charting/Drawing/BrushCache.js +6 -8
  17. package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -0
  18. package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +1 -0
  19. package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +1 -0
  20. package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -0
  21. package/Charting/Model/BaseDataSeries.d.ts +61 -53
  22. package/Charting/Model/BaseDataSeries.js +145 -81
  23. package/Charting/Model/BaseHeatmapDataSeries.d.ts +2 -2
  24. package/Charting/Model/DataPointSelectionPaletteProvider.d.ts +6 -4
  25. package/Charting/Model/DataPointSelectionPaletteProvider.js +10 -1
  26. package/Charting/Model/Filters/OhlcScaleOffsetFilter.d.ts +106 -0
  27. package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +21 -0
  28. package/Charting/Model/Filters/XyLinearTrendFilter.d.ts +112 -1
  29. package/Charting/Model/Filters/XyLinearTrendFilter.js +21 -0
  30. package/Charting/Model/Filters/XyMovingAverageFilter.d.ts +110 -1
  31. package/Charting/Model/Filters/XyMovingAverageFilter.js +21 -0
  32. package/Charting/Model/Filters/XyRatioFilter.d.ts +111 -2
  33. package/Charting/Model/Filters/XyRatioFilter.js +34 -3
  34. package/Charting/Model/Filters/XyScaleOffsetFilter.d.ts +112 -1
  35. package/Charting/Model/Filters/XyScaleOffsetFilter.js +21 -0
  36. package/Charting/Model/Filters/XyyScaleOffsetFilter.d.ts +116 -0
  37. package/Charting/Model/Filters/XyyScaleOffsetFilter.js +21 -0
  38. package/Charting/Model/Filters/XyzScaleOffsetFilter.d.ts +116 -0
  39. package/Charting/Model/Filters/XyzScaleOffsetFilter.js +21 -0
  40. package/Charting/Model/IDataSeries.d.ts +18 -3
  41. package/Charting/Model/IDataSeries.js +12 -1
  42. package/Charting/Model/IPaletteProvider.d.ts +8 -8
  43. package/Charting/Model/OhlcDataSeries.d.ts +39 -10
  44. package/Charting/Model/OhlcDataSeries.js +106 -19
  45. package/Charting/Model/UniformHeatmapDataSeries.d.ts +2 -2
  46. package/Charting/Model/XyyDataSeries.d.ts +21 -12
  47. package/Charting/Model/XyyDataSeries.js +70 -16
  48. package/Charting/Model/XyzDataSeries.d.ts +20 -5
  49. package/Charting/Model/XyzDataSeries.js +62 -6
  50. package/Charting/Services/SciChartRenderer.js +3 -1
  51. package/Charting/Visuals/Annotations/AnnotationBase.js +5 -9
  52. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +0 -3
  53. package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +0 -3
  54. package/Charting/Visuals/Annotations/LineAnnotation.js +0 -3
  55. package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +0 -3
  56. package/Charting/Visuals/Axis/AxisBase2D.d.ts +20 -0
  57. package/Charting/Visuals/Axis/AxisBase2D.js +57 -5
  58. package/Charting/Visuals/Axis/AxisCore.js +16 -13
  59. package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +13 -0
  60. package/Charting/Visuals/Axis/constants.d.ts +2 -1
  61. package/Charting/Visuals/Axis/constants.js +1 -0
  62. package/Charting/Visuals/Legend/SciChartLegend.js +1 -1
  63. package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +11 -0
  64. package/Charting/Visuals/Legend/SciChartLegendBase.js +45 -17
  65. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +9 -2
  66. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +65 -4
  67. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +0 -11
  68. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +0 -29
  69. package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +1 -1
  70. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +0 -37
  71. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +0 -120
  72. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +4 -24
  73. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +44 -72
  74. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +2 -1
  75. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +6 -6
  76. package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.d.ts +0 -6
  77. package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +0 -42
  78. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -17
  79. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -71
  80. package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +1 -1
  81. package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +12 -4
  82. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +3 -0
  83. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +10 -32
  84. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -0
  85. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +11 -21
  86. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +3 -0
  87. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +10 -21
  88. package/Charting/Visuals/SciChartOverview.d.ts +1 -1
  89. package/Charting/Visuals/SciChartOverview.js +1 -1
  90. package/Charting/Visuals/SciChartSurface.d.ts +2 -2
  91. package/Charting/Visuals/SciChartSurface.js +4 -4
  92. package/Charting/Visuals/SciChartSurfaceBase.d.ts +2 -3
  93. package/Charting/Visuals/SciChartSurfaceBase.js +2 -6
  94. package/Charting/Visuals/TextureManager/DpiHelper.js +2 -1
  95. package/Charting/Visuals/TextureManager/TextureManager.js +3 -2
  96. package/Charting3D/Visuals/SciChart3DSurface.d.ts +1 -1
  97. package/Charting3D/Visuals/SciChart3DSurface.js +1 -1
  98. package/_wasm/scichart.browser.js +1 -1
  99. package/_wasm/scichart2d.js +95 -95
  100. package/_wasm/scichart2d.wasm +0 -0
  101. package/_wasm/scichart3d.js +1 -1
  102. package/_wasm/scichart3d.wasm +0 -0
  103. package/package.json +1 -1
  104. package/types/BaseType.d.ts +3 -1
  105. package/types/BaseType.js +2 -0
  106. package/types/DataFilterType.d.ts +9 -0
  107. package/types/DataFilterType.js +13 -0
  108. package/types/SeriesType.d.ts +17 -17
  109. package/types/SeriesType.js +17 -17
  110. package/utils/font.d.ts +8 -0
  111. package/utils/font.js +15 -0
@@ -33,6 +33,10 @@ export interface ILegendModifierOptions extends IChartModifierBaseOptions {
33
33
  * Sets the margin for the legend control
34
34
  */
35
35
  margin?: number;
36
+ /**
37
+ * The parent div element Id, the Legend will be appended to this element
38
+ */
39
+ placementDivId?: string;
36
40
  }
37
41
  /**
38
42
  * The LegendModifier provides interactive legend behavior on a 2D {@link SciChartSurface}
@@ -37,7 +37,7 @@ var LegendModifier = /** @class */ (function (_super) {
37
37
  * @param options Optional parameters {@link ILegendModifierOptions} used to configure the modifier
38
38
  */
39
39
  function LegendModifier(options) {
40
- var _a, _b, _c, _d, _e, _f;
40
+ var _a, _b, _c, _d, _e, _f, _g;
41
41
  var _this = _super.call(this, options) || this;
42
42
  _this.type = ChartModifierType_1.EChart2DModifierType.Legend;
43
43
  _this.includedSeriesMap = new Map();
@@ -48,6 +48,7 @@ var LegendModifier = /** @class */ (function (_super) {
48
48
  _this.sciChartLegend.showSeriesMarkers = (_d = options === null || options === void 0 ? void 0 : options.showSeriesMarkers) !== null && _d !== void 0 ? _d : _this.sciChartLegend.showSeriesMarkers;
49
49
  _this.sciChartLegend.placement = (_e = options === null || options === void 0 ? void 0 : options.placement) !== null && _e !== void 0 ? _e : _this.sciChartLegend.placement;
50
50
  _this.sciChartLegend.margin = (_f = options === null || options === void 0 ? void 0 : options.margin) !== null && _f !== void 0 ? _f : _this.sciChartLegend.margin;
51
+ _this.sciChartLegend.placementDivId = (_g = options === null || options === void 0 ? void 0 : options.placementDivId) !== null && _g !== void 0 ? _g : _this.sciChartLegend.placementDivId;
51
52
  return _this;
52
53
  }
53
54
  /**
@@ -1,10 +1,18 @@
1
+ import { EventHandler } from "../../Core/EventHandler";
2
+ import { EChart2DModifierType } from "../../types/ChartModifierType";
1
3
  import { HoveredChangedArgs } from "../Visuals/RenderableSeries/HoveredChangedArgs";
2
- import { ChartModifierBase2D, IChartModifierBaseOptions } from "./ChartModifierBase2D";
3
- import { ModifierMouseArgs } from "./ModifierMouseArgs";
4
4
  import { IRenderableSeries } from "../Visuals/RenderableSeries/IRenderableSeries";
5
- import { EventHandler } from "../../Core/EventHandler";
6
5
  import { SelectionChangedArgs } from "../Visuals/RenderableSeries/SelectionChangedArgs";
7
- import { EChart2DModifierType } from "../../types/ChartModifierType";
6
+ import { ChartModifierBase2D, IChartModifierBaseOptions } from "./ChartModifierBase2D";
7
+ import { ModifierMouseArgs } from "./ModifierMouseArgs";
8
+ /**
9
+ * The type of the {@link ISeriesSelectionModifierOptions.onSelectionChanged } callback function
10
+ */
11
+ export declare type TSelectionChangedCallback = (args: SelectionChangedArgs) => void;
12
+ /**
13
+ * The type of the {@link ISeriesSelectionModifierOptions.onHoverChanged } callback function
14
+ */
15
+ export declare type THoveredChangedCallback = (args: HoveredChangedArgs) => void;
8
16
  export interface ISeriesSelectionModifierOptions extends IChartModifierBaseOptions {
9
17
  /**
10
18
  * A hit-test radius in pixels used when selecting series. Defaults to 7
@@ -25,12 +33,12 @@ export interface ISeriesSelectionModifierOptions extends IChartModifierBaseOptio
25
33
  * Optional callback for when any series is selected or deselected
26
34
  * @param arg Argument of
27
35
  */
28
- onSelectionChanged?: ((args: SelectionChangedArgs) => void) | string;
36
+ onSelectionChanged?: TSelectionChangedCallback | string;
29
37
  /**
30
38
  * Optional callback for when any series is hovered or unhovered
31
39
  * @param arg
32
40
  */
33
- onHoverChanged?: ((args: HoveredChangedArgs) => void) | string;
41
+ onHoverChanged?: THoveredChangedCallback | string;
34
42
  }
35
43
  export declare class SeriesSelectionModifier extends ChartModifierBase2D {
36
44
  readonly type = EChart2DModifierType.SeriesSelection;
@@ -14,14 +14,16 @@ var __extends = (this && this.__extends) || (function () {
14
14
  })();
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.SeriesSelectionModifier = void 0;
17
+ var classFactory_1 = require("../../Builder/classFactory");
18
+ var EventHandler_1 = require("../../Core/EventHandler");
19
+ var BaseType_1 = require("../../types/BaseType");
20
+ var ChartModifierType_1 = require("../../types/ChartModifierType");
21
+ var array_1 = require("../../utils/array");
17
22
  var BaseHitTestProvider_1 = require("../Visuals/RenderableSeries/HitTest/BaseHitTestProvider");
18
23
  var HoveredChangedArgs_1 = require("../Visuals/RenderableSeries/HoveredChangedArgs");
24
+ var SelectionChangedArgs_1 = require("../Visuals/RenderableSeries/SelectionChangedArgs");
19
25
  var ChartModifierBase2D_1 = require("./ChartModifierBase2D");
20
26
  var constants_1 = require("./constants");
21
- var EventHandler_1 = require("../../Core/EventHandler");
22
- var SelectionChangedArgs_1 = require("../Visuals/RenderableSeries/SelectionChangedArgs");
23
- var array_1 = require("../../utils/array");
24
- var ChartModifierType_1 = require("../../types/ChartModifierType");
25
27
  var SeriesSelectionModifier = /** @class */ (function (_super) {
26
28
  __extends(SeriesSelectionModifier, _super);
27
29
  /**
@@ -58,22 +60,20 @@ var SeriesSelectionModifier = /** @class */ (function (_super) {
58
60
  if (options === null || options === void 0 ? void 0 : options.onSelectionChanged) {
59
61
  if (typeof options.onSelectionChanged === "string") {
60
62
  _this.typeMap.set("onSelectionChanged", options.onSelectionChanged);
61
- //@ts-ignore
62
- _this.selectionChanged.subscribe(getFunction(EBaseType.OptionFunction, options.onSelectionChanged));
63
+ var onSelectionChangedCallback = classFactory_1.getFunction(BaseType_1.EBaseType.OptionFunction, options.onSelectionChanged);
64
+ _this.selectionChanged.subscribe(onSelectionChangedCallback);
63
65
  }
64
66
  else {
65
- //@ts-ignore
66
67
  _this.selectionChanged.subscribe(options.onSelectionChanged);
67
68
  }
68
69
  }
69
70
  if (options === null || options === void 0 ? void 0 : options.onHoverChanged) {
70
71
  if (typeof options.onHoverChanged === "string") {
71
72
  _this.typeMap.set("onHoverChanged", options.onHoverChanged);
72
- //@ts-ignore
73
- _this.hoverChanged.subscribe(getFunction(EBaseType.OptionFunction, options.onHoverChanged));
73
+ var onHoverChangedCallback = classFactory_1.getFunction(BaseType_1.EBaseType.OptionFunction, options.onHoverChanged);
74
+ _this.hoverChanged.subscribe(onHoverChangedCallback);
74
75
  }
75
76
  else {
76
- //@ts-ignore
77
77
  _this.hoverChanged.subscribe(options.onHoverChanged);
78
78
  }
79
79
  }
@@ -1,7 +1,12 @@
1
1
  import { TEasing } from "../../Core/Animations/EasingFunctions";
2
2
  import { EChart2DModifierType } from "../../types/ChartModifierType";
3
+ import { SciChartSurface } from "../Visuals/SciChartSurface";
3
4
  import { ChartModifierBase2D, IChartModifierBaseOptions } from "./ChartModifierBase2D";
4
5
  import { ModifierMouseArgs } from "./ModifierMouseArgs";
6
+ /**
7
+ * A function to execute when zoomExtents is activated. If this exists and returns false, the builtin behaviour is ignored;
8
+ */
9
+ export declare type TZoomExtentsCallback = (sciChartSurface: SciChartSurface) => boolean;
5
10
  /**
6
11
  * Optional parameters used to configure a {@link ZoomExtentsModifier} at construct time
7
12
  */
@@ -18,6 +23,10 @@ export interface IZoomExtentsModifierOptions extends IChartModifierBaseOptions {
18
23
  * Defines the easing function for animation. See {@link TEasing} for a range of functions
19
24
  */
20
25
  easingFunction?: TEasing | string;
26
+ /**
27
+ * A function to execute when zoomExtents is activated. If this exists and returns false, the builtin behaviour is ignored;
28
+ */
29
+ onZoomExtents?: TZoomExtentsCallback | string;
21
30
  }
22
31
  /**
23
32
  * The ZoomExtentsModifier provides double-tap or double-click to zoom-to-fit (Zoom Extents) behavior
@@ -49,6 +58,10 @@ export declare class ZoomExtentsModifier extends ChartModifierBase2D {
49
58
  * Defines the easing function for animation. See {@link TEasing} for a range of functions
50
59
  */
51
60
  easingFunction: TEasing;
61
+ /**
62
+ * A function to execute when zoomExtents is activated. If this exists and returns false, the builtin behaviour is ignored;
63
+ */
64
+ onZoomExtents?: (sciChartSurface: SciChartSurface) => boolean;
52
65
  constructor(options?: IZoomExtentsModifierOptions);
53
66
  /**
54
67
  * @inheritDoc
@@ -14,7 +14,9 @@ var __extends = (this && this.__extends) || (function () {
14
14
  })();
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ZoomExtentsModifier = void 0;
17
+ var classFactory_1 = require("../../Builder/classFactory");
17
18
  var EasingFunctions_1 = require("../../Core/Animations/EasingFunctions");
19
+ var BaseType_1 = require("../../types/BaseType");
18
20
  var ChartModifierType_1 = require("../../types/ChartModifierType");
19
21
  var ZoomState_1 = require("../../types/ZoomState");
20
22
  var ChartModifierBase2D_1 = require("./ChartModifierBase2D");
@@ -58,6 +60,13 @@ var ZoomExtentsModifier = /** @class */ (function (_super) {
58
60
  options.easingFunction = EasingFunctions_1.easing[options.easingFunction];
59
61
  }
60
62
  _this.easingFunction = (_c = options === null || options === void 0 ? void 0 : options.easingFunction) !== null && _c !== void 0 ? _c : EasingFunctions_1.easing.outExpo;
63
+ if (options === null || options === void 0 ? void 0 : options.onZoomExtents) {
64
+ if (typeof options.onZoomExtents === "string") {
65
+ _this.typeMap.set("onZoomExtents", options.onZoomExtents);
66
+ options.onZoomExtents = classFactory_1.getFunction(BaseType_1.EBaseType.OptionFunction, options.onZoomExtents);
67
+ }
68
+ }
69
+ _this.onZoomExtents = options === null || options === void 0 ? void 0 : options.onZoomExtents;
61
70
  return _this;
62
71
  }
63
72
  /**
@@ -66,9 +75,11 @@ var ZoomExtentsModifier = /** @class */ (function (_super) {
66
75
  ZoomExtentsModifier.prototype.modifierDoubleClick = function (args) {
67
76
  var scs = this.parentSurface;
68
77
  if (scs !== undefined) {
69
- var animationDuration = this.isAnimated ? this.animationDuration : 0;
70
- scs.zoomExtents(animationDuration, this.easingFunction, function () { return scs.setZoomState(ZoomState_1.EZoomState.AtExtents); });
71
- args.handled = true;
78
+ if (!this.onZoomExtents || this.onZoomExtents(scs)) {
79
+ var animationDuration = this.isAnimated ? this.animationDuration : 0;
80
+ scs.zoomExtents(animationDuration, this.easingFunction, function () { return scs.setZoomState(ZoomState_1.EZoomState.AtExtents); });
81
+ args.handled = true;
82
+ }
72
83
  }
73
84
  };
74
85
  ZoomExtentsModifier.prototype.toJSON = function () {
@@ -76,7 +87,8 @@ var ZoomExtentsModifier = /** @class */ (function (_super) {
76
87
  var options = {
77
88
  animationDuration: this.animationDuration,
78
89
  easingFunction: this.easingFunction.name,
79
- isAnimated: this.isAnimated
90
+ isAnimated: this.isAnimated,
91
+ onZoomExtents: this.typeMap.get("onZoomExtents")
80
92
  };
81
93
  Object.assign(json.options, options);
82
94
  return json;
@@ -47,20 +47,18 @@ var BrushCache = /** @class */ (function (_super) {
47
47
  * @param fillLinearGradient
48
48
  */
49
49
  BrushCache.prototype.create = function (fill, opacity, fillLinearGradient) {
50
- if (this.cachedEntity
51
- && fill === this.fill
52
- && opacity === this.opacity
53
- && fillLinearGradient === this.fillLinearGradient) {
50
+ if (this.cachedEntity &&
51
+ fill === this.fill &&
52
+ opacity === this.opacity &&
53
+ fillLinearGradient === this.fillLinearGradient) {
54
54
  return this.cachedEntity;
55
55
  }
56
56
  this.invalidateCache();
57
57
  this.fill = fill;
58
58
  this.opacity = opacity;
59
59
  this.fillLinearGradient = fillLinearGradient;
60
- var brush = fillLinearGradient
61
- ? this.createGradientBrush()
62
- : this.createSolidBrush(fill, opacity);
63
- return this.cachedEntity = new WebGlBrush_1.WebGlBrush(brush);
60
+ var brush = fillLinearGradient ? this.createGradientBrush() : this.createSolidBrush(fill, opacity);
61
+ return (this.cachedEntity = new WebGlBrush_1.WebGlBrush(brush));
64
62
  };
65
63
  BrushCache.prototype.invalidateCache = function () {
66
64
  _super.prototype.invalidateCache.call(this);
@@ -57,6 +57,7 @@ var BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy = /** @class */ (fun
57
57
  leftOffset += additionalLeftSize;
58
58
  axis.offset = leftOffset - left;
59
59
  axis.axisLength = rightOffset - leftOffset;
60
+ axis.isStackedAxis = true;
60
61
  axis.isPrimaryAxis = true;
61
62
  axis.viewRect = Rect_1.Rect.createWithCoords(leftOffset, topOffset, rightOffset, bottomOffset);
62
63
  leftOffset = rightOffset + additionalRightSize;
@@ -57,6 +57,7 @@ var LeftAlignedOuterVerticallyStackedAxisLayoutStrategy = /** @class */ (functio
57
57
  topOffset += additionalTopSize;
58
58
  axis.offset = topOffset - top;
59
59
  axis.axisLength = bottomOffset - topOffset;
60
+ axis.isStackedAxis = true;
60
61
  axis.isPrimaryAxis = true;
61
62
  axis.viewRect = Rect_1.Rect.createWithCoords(leftOffset, topOffset, rightOffset, bottomOffset);
62
63
  topOffset = bottomOffset + additionalBottomSize;
@@ -57,6 +57,7 @@ var RightAlignedOuterVerticallyStackedAxisLayoutStrategy = /** @class */ (functi
57
57
  topOffset += additionalTopSize;
58
58
  axis.offset = topOffset - top;
59
59
  axis.axisLength = bottomOffset - topOffset;
60
+ axis.isStackedAxis = true;
60
61
  axis.isPrimaryAxis = true;
61
62
  axis.viewRect = Rect_1.Rect.createWithCoords(leftOffset, topOffset, rightOffset, bottomOffset);
62
63
  topOffset = bottomOffset + additionalBottomSize;
@@ -57,6 +57,7 @@ var TopAlignedOuterHorizontallyStackedAxisLayoutStrategy = /** @class */ (functi
57
57
  leftOffset += additionalLeftSize;
58
58
  axis.offset = leftOffset - left;
59
59
  axis.axisLength = rightOffset - leftOffset;
60
+ axis.isStackedAxis = true;
60
61
  axis.isPrimaryAxis = true;
61
62
  axis.viewRect = Rect_1.Rect.createWithCoords(leftOffset, topOffset, rightOffset, bottomOffset);
62
63
  leftOffset = rightOffset + additionalRightSize;
@@ -2,7 +2,8 @@ import { TSeriesDataDefinition } from "../../Builder/buildDataSeries";
2
2
  import { EventHandler } from "../../Core/EventHandler";
3
3
  import { NumberRange } from "../../Core/NumberRange";
4
4
  import { DoubleVector, TSciChart } from "../../types/TSciChart";
5
- import { EDataChangeType, EDataSeriesType, IDataChangeArgs, IDataSeries } from "./IDataSeries";
5
+ import { BaseAnimation } from "../Visuals/RenderableSeries/Animations/BaseAnimation";
6
+ import { EDataChangeType, EDataSeriesType, EDataSeriesValueType, IDataChangeArgs, IDataSeries } from "./IDataSeries";
6
7
  import { IMetadataGenerator, IPointMetadata } from "./IPointMetadata";
7
8
  /**
8
9
  * Options to pass to the {@link BaseDataSeries} constructor
@@ -45,13 +46,9 @@ export interface IBaseDataSeriesOptions {
45
46
  * See derived types of {@link IRenderableSeries} to find out what 2D JavaScript Chart types are available.
46
47
  */
47
48
  export declare abstract class BaseDataSeries implements IDataSeries {
48
- /**
49
- * @inheritDoc
50
- */
49
+ /** @inheritDoc */
51
50
  abstract readonly type: EDataSeriesType;
52
- /**
53
- * @inheritDoc
54
- */
51
+ /** @inheritDoc */
55
52
  readonly dataChanged: EventHandler<IDataChangeArgs>;
56
53
  minXSpacing: number;
57
54
  /**
@@ -62,6 +59,22 @@ export declare abstract class BaseDataSeries implements IDataSeries {
62
59
  * The {@link TSciChart | SciChart WebAssembly Context} containing native methods and access to our WebGL2 Engine
63
60
  */
64
61
  readonly webAssemblyContext: TSciChart;
62
+ /**
63
+ * X vector with initial animation values
64
+ */
65
+ xInitialAnimationValues: DoubleVector;
66
+ /**
67
+ * Y vector with initial animation values
68
+ */
69
+ yInitialAnimationValues: DoubleVector;
70
+ /**
71
+ * X vector with final animation values
72
+ */
73
+ xFinalAnimationValues: DoubleVector;
74
+ /**
75
+ * Y vector with final animation values
76
+ */
77
+ yFinalAnimationValues: DoubleVector;
65
78
  protected xValues: DoubleVector;
66
79
  protected yValues: DoubleVector;
67
80
  protected indexes: DoubleVector;
@@ -78,70 +91,42 @@ export declare abstract class BaseDataSeries implements IDataSeries {
78
91
  * @param options the {@link IBaseDataSeriesOptions} which can be passed to config the DataSeries at construct time
79
92
  */
80
93
  protected constructor(webAssemblyContext: TSciChart, options?: IBaseDataSeriesOptions);
81
- /**
82
- * @inheritDoc
83
- */
94
+ /** @inheritDoc */
84
95
  get containsNaN(): boolean;
85
- /**
86
- * @inheritDoc
87
- */
96
+ /** @inheritDoc */
88
97
  set containsNaN(containsNaN: boolean);
89
- /**
90
- * @inheritDoc
91
- */
98
+ /** @inheritDoc */
92
99
  get isSorted(): boolean;
93
- /**
94
- * @inheritDoc
95
- */
100
+ /** @inheritDoc */
96
101
  set isSorted(isSorted: boolean);
97
- /**
98
- * @inheritDoc
99
- */
102
+ /** @inheritDoc */
100
103
  get dataSeriesName(): string;
101
- /**
102
- * @inheritDoc
103
- */
104
+ /** @inheritDoc */
104
105
  set dataSeriesName(dataSeriesName: string);
105
- /**
106
- * @inheritDoc
107
- */
106
+ /** @inheritDoc */
108
107
  count(): number;
109
- /**
110
- * @inheritDoc
111
- */
108
+ /** @inheritDoc */
112
109
  getIsDeleted(): boolean;
113
- /**
114
- * @inheritDoc
115
- */
110
+ /** @inheritDoc */
116
111
  getNativeIndexes(): DoubleVector;
117
- /**
118
- * @inheritDoc
119
- */
112
+ /** @inheritDoc */
120
113
  getNativeXValues(): DoubleVector;
121
- /**
122
- * @inheritDoc
123
- */
114
+ /** @inheritDoc */
124
115
  getNativeYValues(): DoubleVector;
125
- /**
126
- * @inheritDoc
127
- */
116
+ /** @inheritDoc */
128
117
  delete(): void;
129
118
  /**
130
119
  * Call to notify subscribers of {@link dataChanged} that the data has changed and {@link SciChartSurface} needs redrawing
131
120
  */
132
121
  notifyDataChanged(changeType: EDataChangeType, index: number, count: number, name?: string): void;
133
- /**
134
- * @inheritDoc
135
- */
122
+ /** @inheritDoc */
136
123
  get xRange(): NumberRange;
137
- /**
138
- * @inheritDoc
139
- */
140
- getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isXCategoryAxis?: boolean): NumberRange;
124
+ /** @inheritDoc */
125
+ getXRange(dataSeriesValueType?: EDataSeriesValueType): NumberRange;
126
+ /** @inheritDoc */
127
+ getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isXCategoryAxis?: boolean, dataSeriesValueType?: EDataSeriesValueType): NumberRange;
141
128
  getIndicesRange(xRange: NumberRange): NumberRange;
142
- /**
143
- * @inheritDoc
144
- */
129
+ /** @inheritDoc */
145
130
  get hasValues(): boolean;
146
131
  /**
147
132
  * Check if the series has an existing metadaGenerator
@@ -161,6 +146,27 @@ export declare abstract class BaseDataSeries implements IDataSeries {
161
146
  * Gets the metadata array length
162
147
  */
163
148
  getMetadataLength(): number;
149
+ /**
150
+ * Sets initial values for the data animation
151
+ * @param dataSeries The {@link BaseDataSeries} to be used for initial values
152
+ */
153
+ setInitialAnimationVectors(dataSeries?: BaseDataSeries): void;
154
+ /**
155
+ * Sets final values for the data animation
156
+ * @param dataSeries The {@link BaseDataSeries} to be used for final values
157
+ */
158
+ setFinalAnimationVectors(dataSeries?: BaseDataSeries): void;
159
+ /**
160
+ * Validates the length of the animation vectors
161
+ */
162
+ validateAnimationVectors(): void;
163
+ /**
164
+ * Updates the {@link BaseDataSeries} values for the animation
165
+ * @param progress The animation progress from 0 to 1
166
+ * @param animation The animation
167
+ */
168
+ updateAnimationProperties(progress: number, animation: BaseAnimation): void;
169
+ /** @inheritDoc */
164
170
  toJSON(excludeData?: boolean): TSeriesDataDefinition;
165
171
  protected validateIndex(index: number, message?: string): void;
166
172
  protected setMetadataAt(index: number, metadata: IPointMetadata): void;
@@ -171,6 +177,8 @@ export declare abstract class BaseDataSeries implements IDataSeries {
171
177
  protected removeMetadataAt(index: number): void;
172
178
  protected removeMetadataRange(startIndex: number, count: number): void;
173
179
  protected setMetadata(value: IPointMetadata[]): void;
180
+ protected getXValues(dataSeriesValueType: EDataSeriesValueType): DoubleVector;
174
181
  private fillMetadataIfUndefined;
182
+ private getYValues;
175
183
  }
176
184
  export declare const getWindowedYRange: (webAssemblyContext: TSciChart, xValues: DoubleVector, yValues: DoubleVector, xRange: NumberRange, getPositiveRange: boolean, isXCategoryAxis: boolean, isSorted: boolean) => NumberRange;
@@ -26,6 +26,7 @@ var NumberRange_1 = require("../../Core/NumberRange");
26
26
  var BaseType_1 = require("../../types/BaseType");
27
27
  var fillDoubleVectorFromJsArray_1 = require("../../utils/ccall/fillDoubleVectorFromJsArray");
28
28
  var isRealNumber_1 = require("../../utils/isRealNumber");
29
+ var animationHelpers_1 = require("../Visuals/RenderableSeries/Animations/animationHelpers");
29
30
  var IDataSeries_1 = require("./IDataSeries");
30
31
  var IPointMetadata_1 = require("./IPointMetadata");
31
32
  /**
@@ -47,9 +48,7 @@ var BaseDataSeries = /** @class */ (function () {
47
48
  */
48
49
  function BaseDataSeries(webAssemblyContext, options) {
49
50
  var _a, _b, _c;
50
- /**
51
- * @inheritDoc
52
- */
51
+ /** @inheritDoc */
53
52
  this.dataChanged = new EventHandler_1.EventHandler();
54
53
  this.minXSpacing = 0;
55
54
  this.isSortedProperty = true;
@@ -59,6 +58,10 @@ var BaseDataSeries = /** @class */ (function () {
59
58
  this.xValues = new webAssemblyContext.DoubleVector();
60
59
  this.yValues = new webAssemblyContext.DoubleVector();
61
60
  this.indexes = new webAssemblyContext.DoubleVector();
61
+ this.xInitialAnimationValues = new webAssemblyContext.DoubleVector();
62
+ this.yInitialAnimationValues = new webAssemblyContext.DoubleVector();
63
+ this.xFinalAnimationValues = new webAssemblyContext.DoubleVector();
64
+ this.yFinalAnimationValues = new webAssemblyContext.DoubleVector();
62
65
  this.dataSeriesNameProperty = (_a = options === null || options === void 0 ? void 0 : options.dataSeriesName) !== null && _a !== void 0 ? _a : this.dataSeriesNameProperty;
63
66
  this.isSorted = (options === null || options === void 0 ? void 0 : options.dataIsSortedInX) !== undefined ? options === null || options === void 0 ? void 0 : options.dataIsSortedInX : this.isSortedProperty;
64
67
  this.containsNaN = (_b = options === null || options === void 0 ? void 0 : options.containsNaN) !== null && _b !== void 0 ? _b : this.containsNaNProperty;
@@ -74,15 +77,11 @@ var BaseDataSeries = /** @class */ (function () {
74
77
  }
75
78
  }
76
79
  Object.defineProperty(BaseDataSeries.prototype, "containsNaN", {
77
- /**
78
- * @inheritDoc
79
- */
80
+ /** @inheritDoc */
80
81
  get: function () {
81
82
  return this.containsNaNProperty;
82
83
  },
83
- /**
84
- * @inheritDoc
85
- */
84
+ /** @inheritDoc */
86
85
  set: function (containsNaN) {
87
86
  this.containsNaNProperty = containsNaN;
88
87
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Property, undefined, undefined, "containsNaN");
@@ -91,15 +90,11 @@ var BaseDataSeries = /** @class */ (function () {
91
90
  configurable: true
92
91
  });
93
92
  Object.defineProperty(BaseDataSeries.prototype, "isSorted", {
94
- /**
95
- * @inheritDoc
96
- */
93
+ /** @inheritDoc */
97
94
  get: function () {
98
95
  return this.isSortedProperty;
99
96
  },
100
- /**
101
- * @inheritDoc
102
- */
97
+ /** @inheritDoc */
103
98
  set: function (isSorted) {
104
99
  this.isSortedProperty = isSorted;
105
100
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Property, undefined, undefined, "isSorted");
@@ -108,15 +103,11 @@ var BaseDataSeries = /** @class */ (function () {
108
103
  configurable: true
109
104
  });
110
105
  Object.defineProperty(BaseDataSeries.prototype, "dataSeriesName", {
111
- /**
112
- * @inheritDoc
113
- */
106
+ /** @inheritDoc */
114
107
  get: function () {
115
108
  return this.dataSeriesNameProperty;
116
109
  },
117
- /**
118
- * @inheritDoc
119
- */
110
+ /** @inheritDoc */
120
111
  set: function (dataSeriesName) {
121
112
  this.dataSeriesNameProperty = dataSeriesName;
122
113
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Property, undefined, undefined, "dataSeriesName");
@@ -124,24 +115,18 @@ var BaseDataSeries = /** @class */ (function () {
124
115
  enumerable: false,
125
116
  configurable: true
126
117
  });
127
- /**
128
- * @inheritDoc
129
- */
118
+ /** @inheritDoc */
130
119
  BaseDataSeries.prototype.count = function () {
131
120
  if (this.xValues) {
132
121
  return this.xValues.size();
133
122
  }
134
123
  return 0;
135
124
  };
136
- /**
137
- * @inheritDoc
138
- */
125
+ /** @inheritDoc */
139
126
  BaseDataSeries.prototype.getIsDeleted = function () {
140
127
  return this.isDeleted;
141
128
  };
142
- /**
143
- * @inheritDoc
144
- */
129
+ /** @inheritDoc */
145
130
  BaseDataSeries.prototype.getNativeIndexes = function () {
146
131
  if (!this.indexes) {
147
132
  return undefined;
@@ -154,25 +139,23 @@ var BaseDataSeries = /** @class */ (function () {
154
139
  }
155
140
  return this.indexes;
156
141
  };
157
- /**
158
- * @inheritDoc
159
- */
142
+ /** @inheritDoc */
160
143
  BaseDataSeries.prototype.getNativeXValues = function () {
161
144
  return this.xValues;
162
145
  };
163
- /**
164
- * @inheritDoc
165
- */
146
+ /** @inheritDoc */
166
147
  BaseDataSeries.prototype.getNativeYValues = function () {
167
148
  return this.yValues;
168
149
  };
169
- /**
170
- * @inheritDoc
171
- */
150
+ /** @inheritDoc */
172
151
  BaseDataSeries.prototype.delete = function () {
173
152
  this.xValues = Deleter_1.deleteSafe(this.xValues);
174
153
  this.yValues = Deleter_1.deleteSafe(this.yValues);
175
154
  this.indexes = Deleter_1.deleteSafe(this.indexes);
155
+ this.xInitialAnimationValues = Deleter_1.deleteSafe(this.xInitialAnimationValues);
156
+ this.yInitialAnimationValues = Deleter_1.deleteSafe(this.yInitialAnimationValues);
157
+ this.xFinalAnimationValues = Deleter_1.deleteSafe(this.xFinalAnimationValues);
158
+ this.yFinalAnimationValues = Deleter_1.deleteSafe(this.yFinalAnimationValues);
176
159
  this.setMetadata(undefined);
177
160
  this.isDeleted = true;
178
161
  };
@@ -183,60 +166,61 @@ var BaseDataSeries = /** @class */ (function () {
183
166
  this.dataChanged.raiseEvent({ changeType: changeType, index: index, count: count });
184
167
  };
185
168
  Object.defineProperty(BaseDataSeries.prototype, "xRange", {
186
- /**
187
- * @inheritDoc
188
- */
169
+ /** @inheritDoc */
189
170
  get: function () {
190
- var nativeValues = this.getNativeXValues();
191
- var temp;
192
- if (this.count() === 1) {
193
- var min = nativeValues.get(0) - 1;
194
- var max = nativeValues.get(0) + 1;
195
- return new NumberRange_1.NumberRange(min, max);
196
- }
197
- else if (this.count() > 1) {
198
- var min = nativeValues.get(0);
199
- var max = nativeValues.get(this.count() - 1);
200
- if (!this.isSorted) {
201
- for (var i = 0; i < this.count(); i++) {
202
- if (nativeValues.get(i) < min) {
203
- min = nativeValues.get(i);
204
- }
205
- if (nativeValues.get(i) > max) {
206
- max = nativeValues.get(i);
207
- }
208
- }
209
- }
210
- if (min === max) {
211
- return new NumberRange_1.NumberRange(min - 1, max + 1);
212
- }
213
- else if (min > max) {
214
- temp = min;
215
- min = max;
216
- max = temp;
217
- }
218
- return new NumberRange_1.NumberRange(min, max);
219
- }
220
- return new NumberRange_1.NumberRange();
171
+ return this.getXRange();
221
172
  },
222
173
  enumerable: false,
223
174
  configurable: true
224
175
  });
225
- /**
226
- * @inheritDoc
227
- */
228
- BaseDataSeries.prototype.getWindowedYRange = function (xRange, getPositiveRange, isXCategoryAxis) {
176
+ /** @inheritDoc */
177
+ BaseDataSeries.prototype.getXRange = function (dataSeriesValueType) {
178
+ var xValues = this.getXValues(dataSeriesValueType);
179
+ var temp;
180
+ if (this.count() === 1) {
181
+ var min = xValues.get(0) - 1;
182
+ var max = xValues.get(0) + 1;
183
+ return new NumberRange_1.NumberRange(min, max);
184
+ }
185
+ else if (this.count() > 1) {
186
+ var min = xValues.get(0);
187
+ var max = xValues.get(this.count() - 1);
188
+ if (!this.isSorted) {
189
+ for (var i = 0; i < this.count(); i++) {
190
+ if (xValues.get(i) < min) {
191
+ min = xValues.get(i);
192
+ }
193
+ if (xValues.get(i) > max) {
194
+ max = xValues.get(i);
195
+ }
196
+ }
197
+ }
198
+ if (min === max) {
199
+ return new NumberRange_1.NumberRange(min - 1, max + 1);
200
+ }
201
+ else if (min > max) {
202
+ temp = min;
203
+ min = max;
204
+ max = temp;
205
+ }
206
+ return new NumberRange_1.NumberRange(min, max);
207
+ }
208
+ return new NumberRange_1.NumberRange();
209
+ };
210
+ /** @inheritDoc */
211
+ BaseDataSeries.prototype.getWindowedYRange = function (xRange, getPositiveRange, isXCategoryAxis, dataSeriesValueType) {
229
212
  if (isXCategoryAxis === void 0) { isXCategoryAxis = false; }
230
- return exports.getWindowedYRange(this.webAssemblyContext, this.xValues, this.yValues, xRange, getPositiveRange, isXCategoryAxis, this.isSorted);
213
+ if (dataSeriesValueType === void 0) { dataSeriesValueType = IDataSeries_1.EDataSeriesValueType.Default; }
214
+ var xValues = this.getXValues(dataSeriesValueType);
215
+ var yValues = this.getYValues(dataSeriesValueType);
216
+ return exports.getWindowedYRange(this.webAssemblyContext, xValues, yValues, xRange, getPositiveRange, isXCategoryAxis, this.isSorted);
231
217
  };
232
218
  BaseDataSeries.prototype.getIndicesRange = function (xRange) {
233
219
  // TODO SearchMode downSearchMode = SearchMode.RoundDown, SearchMode upSearchMode = SearchMode.RoundUp
234
220
  return getIndicesRange(this.webAssemblyContext, this.xValues, xRange, this.isSorted);
235
221
  };
236
222
  Object.defineProperty(BaseDataSeries.prototype, "hasValues", {
237
- /**
238
- * @inheritDoc
239
- */
223
+ /** @inheritDoc */
240
224
  get: function () {
241
225
  return this.count() > 0;
242
226
  },
@@ -284,6 +268,58 @@ var BaseDataSeries = /** @class */ (function () {
284
268
  }
285
269
  return this.metadataProperty.length;
286
270
  };
271
+ /**
272
+ * Sets initial values for the data animation
273
+ * @param dataSeries The {@link BaseDataSeries} to be used for initial values
274
+ */
275
+ BaseDataSeries.prototype.setInitialAnimationVectors = function (dataSeries) {
276
+ if (!dataSeries) {
277
+ this.xInitialAnimationValues.resize(0, 0);
278
+ this.yInitialAnimationValues.resize(0, 0);
279
+ return;
280
+ }
281
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeXValues(), this.xInitialAnimationValues);
282
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeYValues(), this.yInitialAnimationValues);
283
+ };
284
+ /**
285
+ * Sets final values for the data animation
286
+ * @param dataSeries The {@link BaseDataSeries} to be used for final values
287
+ */
288
+ BaseDataSeries.prototype.setFinalAnimationVectors = function (dataSeries) {
289
+ if (!dataSeries) {
290
+ this.xFinalAnimationValues.resize(0, 0);
291
+ this.yFinalAnimationValues.resize(0, 0);
292
+ return;
293
+ }
294
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeXValues(), this.xFinalAnimationValues);
295
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeYValues(), this.yFinalAnimationValues);
296
+ };
297
+ /**
298
+ * Validates the length of the animation vectors
299
+ */
300
+ BaseDataSeries.prototype.validateAnimationVectors = function () {
301
+ var size = this.xInitialAnimationValues.size();
302
+ if (size !== this.yInitialAnimationValues.size() ||
303
+ size !== this.xFinalAnimationValues.size() ||
304
+ size !== this.yFinalAnimationValues.size()) {
305
+ throw Error("initialAnimationValues and finalAnimationValues must have the same length");
306
+ }
307
+ };
308
+ /**
309
+ * Updates the {@link BaseDataSeries} values for the animation
310
+ * @param progress The animation progress from 0 to 1
311
+ * @param animation The animation
312
+ */
313
+ BaseDataSeries.prototype.updateAnimationProperties = function (progress, animation) {
314
+ if (animation.isOnStartAnimation) {
315
+ animation.calculateAnimationValues(this.webAssemblyContext, this.yFinalAnimationValues, this.getNativeYValues(), progress);
316
+ }
317
+ else if (animation.isDataSeriesAnimation) {
318
+ animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.xInitialAnimationValues, this.xFinalAnimationValues, this.getNativeXValues(), progress);
319
+ animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.yInitialAnimationValues, this.yFinalAnimationValues, this.getNativeYValues(), progress);
320
+ }
321
+ };
322
+ /** @inheritDoc */
287
323
  BaseDataSeries.prototype.toJSON = function (excludeData) {
288
324
  if (excludeData === void 0) { excludeData = false; }
289
325
  var options = __assign({ containsNaN: this.containsNaN, dataIsSortedInX: this.isSorted, dataSeriesName: this.dataSeriesName,
@@ -379,12 +415,40 @@ var BaseDataSeries = /** @class */ (function () {
379
415
  BaseDataSeries.prototype.setMetadata = function (value) {
380
416
  this.metadataProperty = value;
381
417
  };
418
+ BaseDataSeries.prototype.getXValues = function (dataSeriesValueType) {
419
+ var xValues;
420
+ switch (dataSeriesValueType) {
421
+ case IDataSeries_1.EDataSeriesValueType.FinalAnimationValues:
422
+ xValues = this.xFinalAnimationValues;
423
+ break;
424
+ case IDataSeries_1.EDataSeriesValueType.InitialAnimationValues:
425
+ xValues = this.xInitialAnimationValues;
426
+ break;
427
+ default:
428
+ xValues = this.xValues;
429
+ }
430
+ return xValues;
431
+ };
382
432
  BaseDataSeries.prototype.fillMetadataIfUndefined = function () {
383
433
  if (this.metadataProperty === undefined) {
384
434
  var length_1 = this.count();
385
435
  this.metadataProperty = Array(length_1).fill(undefined);
386
436
  }
387
437
  };
438
+ BaseDataSeries.prototype.getYValues = function (dataSeriesValueType) {
439
+ var yValues;
440
+ switch (dataSeriesValueType) {
441
+ case IDataSeries_1.EDataSeriesValueType.FinalAnimationValues:
442
+ yValues = this.yFinalAnimationValues;
443
+ break;
444
+ case IDataSeries_1.EDataSeriesValueType.InitialAnimationValues:
445
+ yValues = this.yInitialAnimationValues;
446
+ break;
447
+ default:
448
+ yValues = this.yValues;
449
+ }
450
+ return yValues;
451
+ };
388
452
  return BaseDataSeries;
389
453
  }());
390
454
  exports.BaseDataSeries = BaseDataSeries;