scichart 2.0.0-alpha.1930 → 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 (212) 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 +7 -5
  5. package/Builder/buildSeries.js +3 -4
  6. package/Builder/buildSurface.d.ts +14 -6
  7. package/Builder/buildSurface.js +13 -8
  8. package/Builder/chartBuilder.d.ts +14 -8
  9. package/Builder/chartBuilder.js +6 -6
  10. package/Charting/ChartModifiers/ChartModifierBase.d.ts +37 -81
  11. package/Charting/ChartModifiers/ChartModifierBase.js +28 -73
  12. package/Charting/ChartModifiers/ChartModifierBase2D.d.ts +5 -1
  13. package/Charting/ChartModifiers/ChartModifierBase2D.js +6 -17
  14. package/Charting/ChartModifiers/CursorModifier.d.ts +4 -2
  15. package/Charting/ChartModifiers/CursorModifier.js +1 -1
  16. package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +3 -1
  17. package/Charting/ChartModifiers/DataPointSelectionModifier.js +62 -27
  18. package/Charting/ChartModifiers/LegendModifier.d.ts +5 -1
  19. package/Charting/ChartModifiers/LegendModifier.js +2 -1
  20. package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +1 -1
  21. package/Charting/ChartModifiers/PinchZoomModifier.d.ts +1 -1
  22. package/Charting/ChartModifiers/RolloverModifier.d.ts +1 -1
  23. package/Charting/ChartModifiers/RolloverModifier.js +44 -58
  24. package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
  25. package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +15 -7
  26. package/Charting/ChartModifiers/SeriesSelectionModifier.js +10 -10
  27. package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
  28. package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
  29. package/Charting/ChartModifiers/ZoomExtentsModifier.d.ts +14 -1
  30. package/Charting/ChartModifiers/ZoomExtentsModifier.js +16 -4
  31. package/Charting/Drawing/BrushCache.js +6 -8
  32. package/Charting/Drawing/Pen2DCache.d.ts +4 -6
  33. package/Charting/Drawing/Pen2DCache.js +14 -11
  34. package/Charting/Drawing/WebGlPen.d.ts +2 -1
  35. package/Charting/Drawing/WebGlPen.js +3 -2
  36. package/Charting/LayoutManager/BottomAlignedOuterAxisLayoutStrategy.js +1 -1
  37. package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +3 -2
  38. package/Charting/LayoutManager/LeftAlignedOuterAxisLayoutStrategy.js +1 -1
  39. package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +3 -2
  40. package/Charting/LayoutManager/RightAlignedOuterAxisLayoutStrategy.js +1 -1
  41. package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +3 -2
  42. package/Charting/LayoutManager/TopAlignedOuterAxisLayoutStrategy.js +1 -1
  43. package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +3 -2
  44. package/Charting/Model/BaseDataSeries.d.ts +64 -52
  45. package/Charting/Model/BaseDataSeries.js +158 -84
  46. package/Charting/Model/BaseHeatmapDataSeries.d.ts +2 -2
  47. package/Charting/Model/DataPointSelectionPaletteProvider.d.ts +22 -10
  48. package/Charting/Model/DataPointSelectionPaletteProvider.js +35 -5
  49. package/Charting/Model/Filters/OhlcScaleOffsetFilter.d.ts +106 -0
  50. package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +21 -0
  51. package/Charting/Model/Filters/XyLinearTrendFilter.d.ts +112 -1
  52. package/Charting/Model/Filters/XyLinearTrendFilter.js +21 -0
  53. package/Charting/Model/Filters/XyMovingAverageFilter.d.ts +110 -1
  54. package/Charting/Model/Filters/XyMovingAverageFilter.js +21 -0
  55. package/Charting/Model/Filters/XyRatioFilter.d.ts +111 -2
  56. package/Charting/Model/Filters/XyRatioFilter.js +34 -3
  57. package/Charting/Model/Filters/XyScaleOffsetFilter.d.ts +112 -1
  58. package/Charting/Model/Filters/XyScaleOffsetFilter.js +21 -0
  59. package/Charting/Model/Filters/XyyScaleOffsetFilter.d.ts +116 -0
  60. package/Charting/Model/Filters/XyyScaleOffsetFilter.js +21 -0
  61. package/Charting/Model/Filters/XyzScaleOffsetFilter.d.ts +116 -0
  62. package/Charting/Model/Filters/XyzScaleOffsetFilter.js +21 -0
  63. package/Charting/Model/IDataSeries.d.ts +18 -3
  64. package/Charting/Model/IDataSeries.js +12 -1
  65. package/Charting/Model/IPaletteProvider.d.ts +8 -8
  66. package/Charting/Model/OhlcDataSeries.d.ts +39 -10
  67. package/Charting/Model/OhlcDataSeries.js +106 -19
  68. package/Charting/Model/UniformHeatmapDataSeries.d.ts +2 -2
  69. package/Charting/Model/XyyDataSeries.d.ts +21 -12
  70. package/Charting/Model/XyyDataSeries.js +70 -16
  71. package/Charting/Model/XyzDataSeries.d.ts +20 -5
  72. package/Charting/Model/XyzDataSeries.js +63 -7
  73. package/Charting/Numerics/TickProviders/LogarithmicTickProvider.d.ts +24 -0
  74. package/Charting/Numerics/TickProviders/LogarithmicTickProvider.js +26 -4
  75. package/Charting/Services/SciChartRenderer.js +4 -2
  76. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +7 -21
  77. package/Charting/Visuals/Annotations/AnnotationBase.js +28 -42
  78. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -1
  79. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +2 -4
  80. package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -1
  81. package/Charting/Visuals/Annotations/BoxAnnotation.js +3 -2
  82. package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
  83. package/Charting/Visuals/Annotations/CustomAnnotation.js +2 -2
  84. package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +0 -3
  85. package/Charting/Visuals/Annotations/IAnnotation.d.ts +4 -0
  86. package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -1
  87. package/Charting/Visuals/Annotations/LineAnnotation.js +2 -4
  88. package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +3 -2
  89. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +1 -1
  90. package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +1 -1
  91. package/Charting/Visuals/Annotations/SvgAnnotationBase.js +3 -2
  92. package/Charting/Visuals/Annotations/TextAnnotation.d.ts +1 -1
  93. package/Charting/Visuals/Annotations/TextAnnotation.js +1 -1
  94. package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +0 -3
  95. package/Charting/Visuals/Annotations/annotationHelpers.d.ts +21 -0
  96. package/Charting/Visuals/Annotations/annotationHelpers.js +19 -0
  97. package/Charting/Visuals/Axis/AxisBase2D.d.ts +21 -0
  98. package/Charting/Visuals/Axis/AxisBase2D.js +81 -14
  99. package/Charting/Visuals/Axis/AxisCore.d.ts +5 -5
  100. package/Charting/Visuals/Axis/AxisCore.js +50 -55
  101. package/Charting/Visuals/Axis/AxisRenderer.js +1 -1
  102. package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +13 -0
  103. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +1 -1
  104. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +3 -2
  105. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +13 -0
  106. package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +1 -1
  107. package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +53 -0
  108. package/Charting/Visuals/Axis/LogarithmicAxis.js +107 -3
  109. package/Charting/Visuals/Axis/constants.d.ts +2 -1
  110. package/Charting/Visuals/Axis/constants.js +1 -0
  111. package/Charting/Visuals/Legend/SciChartLegend.js +1 -1
  112. package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +11 -0
  113. package/Charting/Visuals/Legend/SciChartLegendBase.js +45 -16
  114. package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +4 -0
  115. package/Charting/Visuals/RenderableSeries/Animations/BaseAnimation.d.ts +1 -1
  116. package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +1 -1
  117. package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +1 -1
  118. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +9 -2
  119. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +65 -4
  120. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +0 -11
  121. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +0 -29
  122. package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +1 -1
  123. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +0 -37
  124. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +0 -120
  125. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +4 -24
  126. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +65 -91
  127. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +26 -2
  128. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +55 -3
  129. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +3 -1
  130. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +1 -1
  131. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +7 -1
  132. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +66 -64
  133. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +7 -0
  134. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +12 -0
  135. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +2 -1
  136. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +6 -6
  137. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +6 -0
  138. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +12 -0
  139. package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.d.ts +0 -6
  140. package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +0 -42
  141. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -17
  142. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -71
  143. package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +1 -1
  144. package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +1 -1
  145. package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.d.ts +4 -0
  146. package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +7 -0
  147. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +2 -1
  148. package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.d.ts +4 -0
  149. package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +7 -0
  150. package/Charting/Visuals/RenderableSeries/HitTest/IHitTestProvider.d.ts +13 -0
  151. package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.d.ts +4 -0
  152. package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +7 -0
  153. package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.d.ts +4 -0
  154. package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +7 -0
  155. package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +17 -5
  156. package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +2 -2
  157. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +3 -0
  158. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +10 -32
  159. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -0
  160. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +11 -21
  161. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +3 -0
  162. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +10 -21
  163. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.d.ts +18 -5
  164. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +16 -35
  165. package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +4 -5
  166. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +2 -5
  167. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +2 -35
  168. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +3 -1
  169. package/Charting/Visuals/SciChartOverview.d.ts +1 -1
  170. package/Charting/Visuals/SciChartOverview.js +1 -1
  171. package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +3 -1
  172. package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +9 -8
  173. package/Charting/Visuals/SciChartSurface.d.ts +20 -3
  174. package/Charting/Visuals/SciChartSurface.js +36 -8
  175. package/Charting/Visuals/SciChartSurfaceBase.d.ts +3 -3
  176. package/Charting/Visuals/SciChartSurfaceBase.js +2 -6
  177. package/Charting/Visuals/TextureManager/DpiHelper.d.ts +1 -1
  178. package/Charting/Visuals/TextureManager/DpiHelper.js +5 -3
  179. package/Charting/Visuals/TextureManager/TextureManager.d.ts +7 -1
  180. package/Charting/Visuals/TextureManager/TextureManager.js +14 -7
  181. package/Charting/Visuals/licenseManager2D.js +35 -28
  182. package/Charting/Visuals/loader.d.ts +3 -0
  183. package/Charting/Visuals/loader.js +3 -0
  184. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +21 -45
  185. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +15 -36
  186. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +35 -73
  187. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +25 -66
  188. package/Charting3D/Visuals/SciChart3DRenderer.js +1 -1
  189. package/Charting3D/Visuals/SciChart3DSurface.d.ts +13 -1
  190. package/Charting3D/Visuals/SciChart3DSurface.js +13 -1
  191. package/Core/ObservableArray.d.ts +8 -1
  192. package/Core/ObservableArray.js +7 -0
  193. package/_wasm/scichart.browser.js +1 -1
  194. package/_wasm/scichart2d.js +95 -95
  195. package/_wasm/scichart2d.wasm +0 -0
  196. package/_wasm/scichart3d.js +1 -1
  197. package/_wasm/scichart3d.wasm +0 -0
  198. package/package.json +1 -1
  199. package/types/AnchorPoint.d.ts +0 -3
  200. package/types/AnchorPoint.js +0 -3
  201. package/types/BaseType.d.ts +3 -1
  202. package/types/BaseType.js +2 -0
  203. package/types/DataFilterType.d.ts +9 -0
  204. package/types/DataFilterType.js +13 -0
  205. package/types/HelperTypes.d.ts +5 -0
  206. package/types/HelperTypes.js +2 -0
  207. package/types/SeriesType.d.ts +17 -17
  208. package/types/SeriesType.js +17 -17
  209. package/utils/font.d.ts +8 -0
  210. package/utils/font.js +15 -0
  211. package/utils/imageUtil.d.ts +6 -0
  212. package/utils/imageUtil.js +11 -1
@@ -12,8 +12,20 @@ var __extends = (this && this.__extends) || (function () {
12
12
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
13
  };
14
14
  })();
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
15
26
  Object.defineProperty(exports, "__esModule", { value: true });
16
27
  exports.XyyScaleOffsetFilter = void 0;
28
+ var DataFilterType_1 = require("../../../types/DataFilterType");
17
29
  var XyyCustomFilter_1 = require("./XyyCustomFilter");
18
30
  var XyyScaleOffsetFilter = /** @class */ (function (_super) {
19
31
  __extends(XyyScaleOffsetFilter, _super);
@@ -51,6 +63,15 @@ var XyyScaleOffsetFilter = /** @class */ (function (_super) {
51
63
  enumerable: false,
52
64
  configurable: true
53
65
  });
66
+ // @ts-ignore
67
+ XyyScaleOffsetFilter.prototype.toJSON = function (excludeData) {
68
+ if (excludeData === void 0) { excludeData = false; }
69
+ var original = this.originalSeries.toJSON(excludeData);
70
+ return __assign(__assign({}, original), { filter: {
71
+ type: DataFilterType_1.EDataFilterType.XyyScaleOffset,
72
+ options: { yfield: this.yfield, y1field: this.y1field, scale: this.scale, offset: this.offset }
73
+ } });
74
+ };
54
75
  XyyScaleOffsetFilter.prototype.filterFunctionProperty = function (index, y) {
55
76
  return y * this.scaleProperty + this.offsetProperty;
56
77
  };
@@ -1,3 +1,4 @@
1
+ import { EDataFilterType } from "../../../types/DataFilterType";
1
2
  import { BaseDataSeries } from "../BaseDataSeries";
2
3
  import { XyzCustomFilter } from "./XyzCustomFilter";
3
4
  import { IXyzFilterOptions } from "./XyzFilterBase";
@@ -13,5 +14,120 @@ export declare class XyzScaleOffsetFilter extends XyzCustomFilter {
13
14
  get offset(): number;
14
15
  set offset(value: number);
15
16
  constructor(originalSeries: BaseDataSeries, options?: IXyzScaleOffsetFilterOptions);
17
+ toJSON(excludeData?: boolean): {
18
+ filter: {
19
+ type: EDataFilterType;
20
+ options: {
21
+ yfield: import("./XyFilterBase").EDataSeriesField;
22
+ zfield: import("./XyFilterBase").EDataSeriesField;
23
+ scale: number;
24
+ offset: number;
25
+ };
26
+ };
27
+ xDataId?: string | number;
28
+ yDataId?: string | number;
29
+ xValues?: number[];
30
+ yValues?: number[];
31
+ dataSeriesName?: string;
32
+ dataIsSortedInX?: boolean;
33
+ containsNaN?: boolean;
34
+ metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
35
+ type: string;
36
+ data?: any;
37
+ };
38
+ } | {
39
+ filter: {
40
+ type: EDataFilterType;
41
+ options: {
42
+ yfield: import("./XyFilterBase").EDataSeriesField;
43
+ zfield: import("./XyFilterBase").EDataSeriesField;
44
+ scale: number;
45
+ offset: number;
46
+ };
47
+ };
48
+ xDataId?: string | number;
49
+ yDataId?: string | number;
50
+ y1DataId?: string | number;
51
+ xValues?: number[];
52
+ yValues?: number[];
53
+ y1Values?: number[];
54
+ dataSeriesName?: string;
55
+ dataIsSortedInX?: boolean;
56
+ containsNaN?: boolean;
57
+ metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
58
+ type: string;
59
+ data?: any;
60
+ };
61
+ } | {
62
+ filter: {
63
+ type: EDataFilterType;
64
+ options: {
65
+ yfield: import("./XyFilterBase").EDataSeriesField;
66
+ zfield: import("./XyFilterBase").EDataSeriesField;
67
+ scale: number;
68
+ offset: number;
69
+ };
70
+ };
71
+ xDataId?: string | number;
72
+ yDataId?: string | number;
73
+ zDataId?: string | number;
74
+ xValues?: number[];
75
+ yValues?: number[];
76
+ zValues?: number[];
77
+ dataSeriesName?: string;
78
+ dataIsSortedInX?: boolean;
79
+ containsNaN?: boolean;
80
+ metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
81
+ type: string;
82
+ data?: any;
83
+ };
84
+ } | {
85
+ filter: {
86
+ type: EDataFilterType;
87
+ options: {
88
+ yfield: import("./XyFilterBase").EDataSeriesField;
89
+ zfield: import("./XyFilterBase").EDataSeriesField;
90
+ scale: number;
91
+ offset: number;
92
+ };
93
+ };
94
+ xDataId?: string | number;
95
+ openDataId?: string | number;
96
+ highDataId?: string | number;
97
+ lowDataId?: string | number;
98
+ closeDataId?: string | number;
99
+ xValues?: number[];
100
+ openValues?: number[];
101
+ highValues?: number[];
102
+ lowValues?: number[];
103
+ closeValues?: number[];
104
+ dataSeriesName?: string;
105
+ dataIsSortedInX?: boolean;
106
+ containsNaN?: boolean;
107
+ metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
108
+ type: string;
109
+ data?: any;
110
+ };
111
+ } | {
112
+ filter: {
113
+ type: EDataFilterType;
114
+ options: {
115
+ yfield: import("./XyFilterBase").EDataSeriesField;
116
+ zfield: import("./XyFilterBase").EDataSeriesField;
117
+ scale: number;
118
+ offset: number;
119
+ };
120
+ };
121
+ xStart: number;
122
+ xStep: number;
123
+ yStart: number;
124
+ yStep: number;
125
+ dataSeriesName?: string;
126
+ zValues?: number[][];
127
+ metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[][] | {
128
+ type: string;
129
+ data?: any;
130
+ };
131
+ };
16
132
  protected filterFunctionProperty(index: number, y: number): number;
17
133
  }
@@ -12,8 +12,20 @@ var __extends = (this && this.__extends) || (function () {
12
12
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
13
  };
14
14
  })();
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
15
26
  Object.defineProperty(exports, "__esModule", { value: true });
16
27
  exports.XyzScaleOffsetFilter = void 0;
28
+ var DataFilterType_1 = require("../../../types/DataFilterType");
17
29
  var XyzCustomFilter_1 = require("./XyzCustomFilter");
18
30
  var XyzScaleOffsetFilter = /** @class */ (function (_super) {
19
31
  __extends(XyzScaleOffsetFilter, _super);
@@ -51,6 +63,15 @@ var XyzScaleOffsetFilter = /** @class */ (function (_super) {
51
63
  enumerable: false,
52
64
  configurable: true
53
65
  });
66
+ // @ts-ignore
67
+ XyzScaleOffsetFilter.prototype.toJSON = function (excludeData) {
68
+ if (excludeData === void 0) { excludeData = false; }
69
+ var original = this.originalSeries.toJSON(excludeData);
70
+ return __assign(__assign({}, original), { filter: {
71
+ type: DataFilterType_1.EDataFilterType.XyzScaleOffset,
72
+ options: { yfield: this.yfield, zfield: this.zfield, scale: this.scale, offset: this.offset }
73
+ } });
74
+ };
54
75
  XyzScaleOffsetFilter.prototype.filterFunctionProperty = function (index, y) {
55
76
  return y * this.scaleProperty + this.offsetProperty;
56
77
  };
@@ -1,4 +1,3 @@
1
- import { TSeriesDataDefinition } from "../../Builder/buildDataSeries";
2
1
  import { EventHandler } from "../../Core/EventHandler";
3
2
  import { IDeletable } from "../../Core/IDeletable";
4
3
  import { NumberRange } from "../../Core/NumberRange";
@@ -39,6 +38,16 @@ export declare enum EDataChangeType {
39
38
  Clear = 4,
40
39
  Property = 5
41
40
  }
41
+ /**
42
+ * Defines what values to use when dealing with an {@link IDataSeries}
43
+ * For example, when getWindowedYRange() is called we can use Default values, which are xValues and yValues
44
+ * or if an animation is running we can use InitialAnimationValues or FinalAnimationValues
45
+ */
46
+ export declare enum EDataSeriesValueType {
47
+ Default = "Default",
48
+ InitialAnimationValues = "InitialAnimationValues",
49
+ FinalAnimationValues = "FinalAnimationValues"
50
+ }
42
51
  export interface IDataChangeArgs {
43
52
  changeType: EDataChangeType;
44
53
  index?: number;
@@ -129,6 +138,11 @@ export interface IDataSeries extends IDeletable {
129
138
  * Returns true if this DataSeries has been deleted and native memory destroyed
130
139
  */
131
140
  getIsDeleted(): boolean;
141
+ /**
142
+ * Gets the range in the X-direction for this DataSeries
143
+ * @param dataSeriesValueType The data series values to use {@link EDataSeriesValueType}
144
+ */
145
+ getXRange(dataSeriesValueType?: EDataSeriesValueType): NumberRange;
132
146
  /**
133
147
  * Gets the Y-range of the data within the specified X-Range: a 'windowed'
134
148
  * Y-range used for zooming into series on the {@link SciChartSurface}
@@ -136,11 +150,12 @@ export interface IDataSeries extends IDeletable {
136
150
  * @param getPositiveRange When true, return the positive part of the Y-range only
137
151
  * @param isCategoryAxis When true, treat the XAxis as a {@link CategoryAxis} -
138
152
  * an axis type which measures by x-index not x-value
153
+ * @param dataSeriesValueType The data series values to use {@link EDataSeriesValueType}
139
154
  */
140
- getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isCategoryAxis: boolean): NumberRange;
155
+ getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isCategoryAxis: boolean, dataSeriesValueType?: EDataSeriesValueType): NumberRange;
141
156
  /**
142
157
  * Convert the object to a definition that can be serialized to JSON, or used directly with the builder api
143
158
  * @param excludeData if set true, data values will not be included in the json.
144
159
  */
145
- toJSON(excludeData?: boolean): TSeriesDataDefinition;
160
+ toJSON(excludeData?: boolean): any;
146
161
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EDataChangeType = exports.EDataSeriesType = void 0;
3
+ exports.EDataSeriesValueType = exports.EDataChangeType = exports.EDataSeriesType = void 0;
4
4
  /**
5
5
  * Defines {@link BaseDataSeries | DataSeries} types available within SciChart's
6
6
  * {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
@@ -39,3 +39,14 @@ var EDataChangeType;
39
39
  EDataChangeType[EDataChangeType["Clear"] = 4] = "Clear";
40
40
  EDataChangeType[EDataChangeType["Property"] = 5] = "Property";
41
41
  })(EDataChangeType = exports.EDataChangeType || (exports.EDataChangeType = {}));
42
+ /**
43
+ * Defines what values to use when dealing with an {@link IDataSeries}
44
+ * For example, when getWindowedYRange() is called we can use Default values, which are xValues and yValues
45
+ * or if an animation is running we can use InitialAnimationValues or FinalAnimationValues
46
+ */
47
+ var EDataSeriesValueType;
48
+ (function (EDataSeriesValueType) {
49
+ EDataSeriesValueType["Default"] = "Default";
50
+ EDataSeriesValueType["InitialAnimationValues"] = "InitialAnimationValues";
51
+ EDataSeriesValueType["FinalAnimationValues"] = "FinalAnimationValues";
52
+ })(EDataSeriesValueType = exports.EDataSeriesValueType || (exports.EDataSeriesValueType = {}));
@@ -1,4 +1,4 @@
1
- import { TPalletProviderDefinition } from "../../Builder/buildSeries";
1
+ import { TPaletteProviderDefinition } from "../../Builder/buildSeries";
2
2
  import { IRenderableSeries } from "../Visuals/RenderableSeries/IRenderableSeries";
3
3
  import { IPointMetadata } from "./IPointMetadata";
4
4
  /**
@@ -20,7 +20,7 @@ export interface IPaletteProvider {
20
20
  */
21
21
  onDetached(): void;
22
22
  /** Convert the object to a definition that can be serialized to JSON, or used directly with the builder api */
23
- toJSON?(): TPalletProviderDefinition;
23
+ toJSON?(): TPaletteProviderDefinition;
24
24
  }
25
25
  export declare enum EStrokePaletteMode {
26
26
  GRADIENT = "GRADIENT",
@@ -36,7 +36,7 @@ export interface IStrokePaletteProvider extends IPaletteProvider {
36
36
  /**
37
37
  * Gets the stroke palette mode
38
38
  */
39
- readonly strokePaletteMode: EStrokePaletteMode;
39
+ strokePaletteMode: EStrokePaletteMode;
40
40
  /**
41
41
  * Called by SciChart and may be used to override the color of a line segment or
42
42
  * stroke outline in various chart types.
@@ -64,7 +64,7 @@ export interface IFillPaletteProvider extends IPaletteProvider {
64
64
  /**
65
65
  * Gets the stroke palette mode
66
66
  */
67
- readonly fillPaletteMode: EFillPaletteMode;
67
+ fillPaletteMode: EFillPaletteMode;
68
68
  /**
69
69
  * Called by SciChart and may be used to override the color of filled polygon in various chart types.
70
70
  * @remarks WARNING: CALLED PER-VERTEX, MAY RESULT IN PERFORMANCE DEGREDATION IF COMPLEX CODE EXECUTED HERE
@@ -92,7 +92,7 @@ export interface IPointMarkerPaletteProvider extends IPaletteProvider {
92
92
  /**
93
93
  * Gets the stroke palette mode
94
94
  */
95
- readonly strokePaletteMode: EStrokePaletteMode;
95
+ strokePaletteMode: EStrokePaletteMode;
96
96
  /**
97
97
  * Called by SciChart and may be used to override the color of fill/stroke on pointmarkers
98
98
  * WARNING: CALLED PER-VERTEX, MAY RESULT IN PERFORMANCE DEGREDATION IF COMPLEX CODE EXECUTED HERE
@@ -120,8 +120,8 @@ export interface IPointMarkerPaletteProvider extends IPaletteProvider {
120
120
  */
121
121
  export declare class DefaultPaletteProvider implements IStrokePaletteProvider, IFillPaletteProvider, IPointMarkerPaletteProvider {
122
122
  static createEmpty(): DefaultPaletteProvider;
123
- readonly strokePaletteMode: EStrokePaletteMode;
124
- readonly fillPaletteMode: EFillPaletteMode;
123
+ strokePaletteMode: EStrokePaletteMode;
124
+ fillPaletteMode: EFillPaletteMode;
125
125
  /**
126
126
  * @inheritDoc
127
127
  */
@@ -142,5 +142,5 @@ export declare class DefaultPaletteProvider implements IStrokePaletteProvider, I
142
142
  * @inheritDoc
143
143
  */
144
144
  overridePointMarkerArgb(xValue: number, yValue: number, index: number, opacity?: number, metadata?: IPointMetadata): TPointMarkerArgb;
145
- toJSON(): TPalletProviderDefinition;
145
+ toJSON(): TPaletteProviderDefinition;
146
146
  }
@@ -1,7 +1,8 @@
1
1
  import { NumberRange } from "../../Core/NumberRange";
2
2
  import { DoubleVector, TSciChart } from "../../types/TSciChart";
3
+ import { BaseAnimation } from "../Visuals/RenderableSeries/Animations/BaseAnimation";
3
4
  import { BaseDataSeries, IBaseDataSeriesOptions } from "./BaseDataSeries";
4
- import { EDataSeriesType } from "./IDataSeries";
5
+ import { EDataSeriesType, EDataSeriesValueType } from "./IDataSeries";
5
6
  import { IPointMetadata } from "./IPointMetadata";
6
7
  /**
7
8
  * Options to pass to the {@link OhlcDataSeries} constructor
@@ -43,10 +44,32 @@ export interface IOhlcDataSeriesOptions extends IBaseDataSeriesOptions {
43
44
  * See derived types of {@link IRenderableSeries} to find out what 2D JavaScript Chart types are available.
44
45
  */
45
46
  export declare class OhlcDataSeries extends BaseDataSeries {
47
+ /** @inheritDoc */
48
+ readonly type = EDataSeriesType.Ohlc;
46
49
  /**
47
- * @inheritDoc
50
+ * Open vector with initial animation values
48
51
  */
49
- readonly type = EDataSeriesType.Ohlc;
52
+ openInitialAnimationValues: DoubleVector;
53
+ /**
54
+ * Open vector with final animation values
55
+ */
56
+ openFinalAnimationValues: DoubleVector;
57
+ /**
58
+ * High vector with initial animation values
59
+ */
60
+ highInitialAnimationValues: DoubleVector;
61
+ /**
62
+ * High vector with final animation values
63
+ */
64
+ highFinalAnimationValues: DoubleVector;
65
+ /**
66
+ * Low vector with initial animation values
67
+ */
68
+ lowInitialAnimationValues: DoubleVector;
69
+ /**
70
+ * Low vector with final animation values
71
+ */
72
+ lowFinalAnimationValues: DoubleVector;
50
73
  private openValues;
51
74
  private highValues;
52
75
  private lowValues;
@@ -171,13 +194,19 @@ export declare class OhlcDataSeries extends BaseDataSeries {
171
194
  * Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
172
195
  */
173
196
  clear(): void;
174
- /**
175
- * @inheritDoc
176
- */
197
+ /** @inheritDoc */
177
198
  delete(): void;
178
- /**
179
- * @inheritDoc
180
- */
181
- getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isXCategoryAxis?: boolean): NumberRange;
199
+ /** @inheritDoc */
200
+ getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isXCategoryAxis?: boolean, dataSeriesValueType?: EDataSeriesValueType): NumberRange;
201
+ /** @inheritDoc */
202
+ setInitialAnimationVectors(dataSeries?: OhlcDataSeries): void;
203
+ /** @inheritDoc */
204
+ setFinalAnimationVectors(dataSeries?: OhlcDataSeries): void;
205
+ /** @inheritDoc */
206
+ validateAnimationVectors(): void;
207
+ /** @inheritDoc */
208
+ updateAnimationProperties(progress: number, animation: BaseAnimation): void;
209
+ /** @inheritDoc */
182
210
  toJSON(excludeData?: boolean): import("../../Builder/buildDataSeries").TSeriesDataDefinition;
211
+ private getOHLCValues;
183
212
  }
@@ -18,6 +18,7 @@ var Deleter_1 = require("../../Core/Deleter");
18
18
  var Guard_1 = require("../../Core/Guard");
19
19
  var NumberRange_1 = require("../../Core/NumberRange");
20
20
  var fillDoubleVectorFromJsArray_1 = require("../../utils/ccall/fillDoubleVectorFromJsArray");
21
+ var animationHelpers_1 = require("../Visuals/RenderableSeries/Animations/animationHelpers");
21
22
  var BaseDataSeries_1 = require("./BaseDataSeries");
22
23
  var IDataSeries_1 = require("./IDataSeries");
23
24
  /**
@@ -44,13 +45,17 @@ var OhlcDataSeries = /** @class */ (function (_super) {
44
45
  */
45
46
  function OhlcDataSeries(webAssemblyContext, options) {
46
47
  var _this = _super.call(this, webAssemblyContext, options) || this;
47
- /**
48
- * @inheritDoc
49
- */
48
+ /** @inheritDoc */
50
49
  _this.type = IDataSeries_1.EDataSeriesType.Ohlc;
51
50
  _this.openValues = new webAssemblyContext.DoubleVector();
52
51
  _this.highValues = new webAssemblyContext.DoubleVector();
53
52
  _this.lowValues = new webAssemblyContext.DoubleVector();
53
+ _this.openInitialAnimationValues = new webAssemblyContext.DoubleVector();
54
+ _this.highInitialAnimationValues = new webAssemblyContext.DoubleVector();
55
+ _this.lowInitialAnimationValues = new webAssemblyContext.DoubleVector();
56
+ _this.openFinalAnimationValues = new webAssemblyContext.DoubleVector();
57
+ _this.highFinalAnimationValues = new webAssemblyContext.DoubleVector();
58
+ _this.lowFinalAnimationValues = new webAssemblyContext.DoubleVector();
54
59
  if (options === null || options === void 0 ? void 0 : options.xValues) {
55
60
  _this.appendRange(options.xValues, options.openValues, options.highValues, options.lowValues, options.closeValues, options.metadata);
56
61
  }
@@ -322,27 +327,27 @@ var OhlcDataSeries = /** @class */ (function (_super) {
322
327
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Clear, null, null);
323
328
  }
324
329
  };
325
- /**
326
- * @inheritDoc
327
- */
330
+ /** @inheritDoc */
328
331
  OhlcDataSeries.prototype.delete = function () {
329
- this.indexes = Deleter_1.deleteSafe(this.indexes);
330
- this.xValues = Deleter_1.deleteSafe(this.xValues);
331
332
  this.openValues = Deleter_1.deleteSafe(this.openValues);
332
333
  this.highValues = Deleter_1.deleteSafe(this.highValues);
333
334
  this.lowValues = Deleter_1.deleteSafe(this.lowValues);
334
- this.yValues = Deleter_1.deleteSafe(this.yValues);
335
- this.setMetadata(undefined);
336
- this.isDeleted = true;
335
+ this.openInitialAnimationValues = Deleter_1.deleteSafe(this.openInitialAnimationValues);
336
+ this.openInitialAnimationValues = Deleter_1.deleteSafe(this.openInitialAnimationValues);
337
+ this.openInitialAnimationValues = Deleter_1.deleteSafe(this.openInitialAnimationValues);
338
+ this.openFinalAnimationValues = Deleter_1.deleteSafe(this.openFinalAnimationValues);
339
+ this.openFinalAnimationValues = Deleter_1.deleteSafe(this.openFinalAnimationValues);
340
+ this.openFinalAnimationValues = Deleter_1.deleteSafe(this.openFinalAnimationValues);
341
+ _super.prototype.delete.call(this);
337
342
  };
338
- /**
339
- * @inheritDoc
340
- */
341
- OhlcDataSeries.prototype.getWindowedYRange = function (xRange, getPositiveRange, isXCategoryAxis) {
343
+ /** @inheritDoc */
344
+ OhlcDataSeries.prototype.getWindowedYRange = function (xRange, getPositiveRange, isXCategoryAxis, dataSeriesValueType) {
342
345
  if (isXCategoryAxis === void 0) { isXCategoryAxis = false; }
346
+ if (dataSeriesValueType === void 0) { dataSeriesValueType = IDataSeries_1.EDataSeriesValueType.Default; }
347
+ var _a = this.getOHLCValues(dataSeriesValueType), closeValues = _a.closeValues, highValues = _a.highValues, lowValues = _a.lowValues;
343
348
  if (this.count() === 1) {
344
- var min = this.yValues.get(0) - 1;
345
- var max = this.yValues.get(0) + 1;
349
+ var min = closeValues.get(0) - 1;
350
+ var max = closeValues.get(0) + 1;
346
351
  return new NumberRange_1.NumberRange(min, max);
347
352
  }
348
353
  var indicesRange = isXCategoryAxis ? xRange : this.getIndicesRange(xRange);
@@ -354,8 +359,8 @@ var OhlcDataSeries = /** @class */ (function (_super) {
354
359
  return undefined;
355
360
  }
356
361
  for (var i = iMin; i <= iMax; i++) {
357
- var highVal = this.highValues.get(i);
358
- var lowVal = this.lowValues.get(i);
362
+ var highVal = highValues.get(i);
363
+ var lowVal = lowValues.get(i);
359
364
  if (lowVal < yMin) {
360
365
  yMin = lowVal;
361
366
  }
@@ -365,6 +370,62 @@ var OhlcDataSeries = /** @class */ (function (_super) {
365
370
  }
366
371
  return new NumberRange_1.NumberRange(yMin, yMax);
367
372
  };
373
+ /** @inheritDoc */
374
+ OhlcDataSeries.prototype.setInitialAnimationVectors = function (dataSeries) {
375
+ _super.prototype.setInitialAnimationVectors.call(this, dataSeries);
376
+ if (!dataSeries) {
377
+ this.openInitialAnimationValues.resize(0, 0);
378
+ this.highInitialAnimationValues.resize(0, 0);
379
+ this.lowInitialAnimationValues.resize(0, 0);
380
+ return;
381
+ }
382
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeOpenValues(), this.openInitialAnimationValues);
383
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeHighValues(), this.highInitialAnimationValues);
384
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeLowValues(), this.lowInitialAnimationValues);
385
+ };
386
+ /** @inheritDoc */
387
+ OhlcDataSeries.prototype.setFinalAnimationVectors = function (dataSeries) {
388
+ _super.prototype.setFinalAnimationVectors.call(this, dataSeries);
389
+ if (!dataSeries) {
390
+ this.openFinalAnimationValues.resize(0, 0);
391
+ this.highFinalAnimationValues.resize(0, 0);
392
+ this.lowFinalAnimationValues.resize(0, 0);
393
+ return;
394
+ }
395
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeOpenValues(), this.openFinalAnimationValues);
396
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeHighValues(), this.highFinalAnimationValues);
397
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeLowValues(), this.lowFinalAnimationValues);
398
+ };
399
+ /** @inheritDoc */
400
+ OhlcDataSeries.prototype.validateAnimationVectors = function () {
401
+ var size = this.xInitialAnimationValues.size();
402
+ if (size !== this.yInitialAnimationValues.size() ||
403
+ size !== this.openInitialAnimationValues.size() ||
404
+ size !== this.highInitialAnimationValues.size() ||
405
+ size !== this.lowInitialAnimationValues.size() ||
406
+ size !== this.xFinalAnimationValues.size() ||
407
+ size !== this.yFinalAnimationValues.size() ||
408
+ size !== this.openFinalAnimationValues.size() ||
409
+ size !== this.highFinalAnimationValues.size() ||
410
+ size !== this.lowFinalAnimationValues.size()) {
411
+ throw Error("initialAnimationValues and finalAnimationValues must have the same length");
412
+ }
413
+ };
414
+ /** @inheritDoc */
415
+ OhlcDataSeries.prototype.updateAnimationProperties = function (progress, animation) {
416
+ _super.prototype.updateAnimationProperties.call(this, progress, animation);
417
+ if (animation.isOnStartAnimation) {
418
+ animation.calculateAnimationValues(this.webAssemblyContext, this.openFinalAnimationValues, this.getNativeOpenValues(), progress);
419
+ animation.calculateAnimationValues(this.webAssemblyContext, this.highFinalAnimationValues, this.getNativeHighValues(), progress);
420
+ animation.calculateAnimationValues(this.webAssemblyContext, this.lowFinalAnimationValues, this.getNativeLowValues(), progress);
421
+ }
422
+ else if (animation.isDataSeriesAnimation) {
423
+ animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.openInitialAnimationValues, this.openFinalAnimationValues, this.getNativeOpenValues(), progress);
424
+ animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.highInitialAnimationValues, this.highFinalAnimationValues, this.getNativeHighValues(), progress);
425
+ animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.lowInitialAnimationValues, this.lowFinalAnimationValues, this.getNativeLowValues(), progress);
426
+ }
427
+ };
428
+ /** @inheritDoc */
368
429
  OhlcDataSeries.prototype.toJSON = function (excludeData) {
369
430
  if (excludeData === void 0) { excludeData = false; }
370
431
  var json = _super.prototype.toJSON.call(this);
@@ -392,6 +453,32 @@ var OhlcDataSeries = /** @class */ (function (_super) {
392
453
  }
393
454
  return json;
394
455
  };
456
+ OhlcDataSeries.prototype.getOHLCValues = function (dataSeriesValueType) {
457
+ var openValues;
458
+ var highValues;
459
+ var lowValues;
460
+ var closeValues;
461
+ switch (dataSeriesValueType) {
462
+ case IDataSeries_1.EDataSeriesValueType.FinalAnimationValues:
463
+ openValues = this.openFinalAnimationValues;
464
+ highValues = this.highFinalAnimationValues;
465
+ lowValues = this.lowFinalAnimationValues;
466
+ closeValues = this.yFinalAnimationValues;
467
+ break;
468
+ case IDataSeries_1.EDataSeriesValueType.InitialAnimationValues:
469
+ openValues = this.openInitialAnimationValues;
470
+ highValues = this.highInitialAnimationValues;
471
+ lowValues = this.lowInitialAnimationValues;
472
+ closeValues = this.yInitialAnimationValues;
473
+ break;
474
+ default:
475
+ openValues = this.openValues;
476
+ highValues = this.highValues;
477
+ lowValues = this.lowValues;
478
+ closeValues = this.yValues;
479
+ }
480
+ return { openValues: openValues, highValues: highValues, lowValues: lowValues, closeValues: closeValues };
481
+ };
395
482
  return OhlcDataSeries;
396
483
  }(BaseDataSeries_1.BaseDataSeries));
397
484
  exports.OhlcDataSeries = OhlcDataSeries;