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
@@ -25,6 +25,10 @@ export interface IPointMarker extends IDeletable, INotifyOnDpiChanged {
25
25
  * Gets or sets the point-marker stroke as an HTML Color Code
26
26
  */
27
27
  stroke: string;
28
+ /**
29
+ * Gets or sets the opacity of the point-marker
30
+ */
31
+ opacity: number;
28
32
  /**
29
33
  * Gets or sets the point-marker fill as an HTML Color Code
30
34
  */
@@ -54,7 +54,7 @@ export declare abstract class BaseAnimation {
54
54
  /** Convert the object to a definition that can be serialized to JSON, or used directly with the builder api */
55
55
  toJSON(): {
56
56
  type: EAnimationType;
57
- options: IBaseAnimationOptions;
57
+ options: Required<Pick<IBaseAnimationOptions, "delay" | "duration" | "fadeEffect" | "ease">>;
58
58
  };
59
59
  /**
60
60
  * Runs on start up animation to update animation vectors
@@ -16,6 +16,6 @@ export declare class ScaleAnimation extends BaseAnimation {
16
16
  calculateAnimationValues(wasmContext: TSciChart, originalValues: DoubleVector, animationValues: DoubleVector, progress: number, noZeroLine?: boolean): void;
17
17
  toJSON(): {
18
18
  type: EAnimationType;
19
- options: IBaseAnimationOptions;
19
+ options: Required<Pick<IBaseAnimationOptions, "delay" | "duration" | "fadeEffect" | "ease">>;
20
20
  };
21
21
  }
@@ -21,6 +21,6 @@ export declare class WaveAnimation extends BaseAnimation {
21
21
  calculateAnimationValues(wasmContext: TSciChart, originalValues: DoubleVector, animationValues: DoubleVector, progress: number, noZeroLine?: boolean): void;
22
22
  toJSON(): {
23
23
  type: EAnimationType;
24
- options: IBaseAnimationOptions;
24
+ options: Required<Pick<IBaseAnimationOptions, "delay" | "duration" | "fadeEffect" | "ease">>;
25
25
  };
26
26
  }
@@ -1,5 +1,7 @@
1
1
  import { AnimationFiniteStateMachine } from "../../../../Core/Animations/AnimationFiniteStateMachine";
2
- import { TSciChart } from "../../../../types/TSciChart";
2
+ import { DoubleVector, TSciChart } from "../../../../types/TSciChart";
3
+ import { BaseDataSeries } from "../../../Model/BaseDataSeries";
4
+ import { XyyDataSeries } from "../../../Model/XyyDataSeries";
3
5
  import { CrossPointMarker } from "../../PointMarkers/CrossPointMarker";
4
6
  import { EllipsePointMarker } from "../../PointMarkers/EllipsePointMarker";
5
7
  import { SpritePointMarker } from "../../PointMarkers/SpritePointMarker";
@@ -12,7 +14,12 @@ export declare const animationHelpers: {
12
14
  checkCanDraw: (animationFSM: AnimationFiniteStateMachine) => boolean;
13
15
  checkIsAnimationRunning: (animationQueue: BaseAnimation[], animationFSM: AnimationFiniteStateMachine) => boolean;
14
16
  animationUpdate: (animationFSM: AnimationFiniteStateMachine, timeElapsed: number, beforeAnimationStart: () => void, afterAnimationComplete: () => void, updateAnimationProperties: (progress: number, animationFSM: AnimationFiniteStateMachine) => void) => void;
15
- createPointMarker: (wasmContext: TSciChart, pointMarkerStyle: BasePointMarkerStyle) => CrossPointMarker | EllipsePointMarker | SpritePointMarker | SquarePointMarker | TrianglePointMarker | XPointMarker;
17
+ createPointMarker: (wasmContext: TSciChart, pointMarkerStyle: BasePointMarkerStyle) => SpritePointMarker | CrossPointMarker | EllipsePointMarker | XPointMarker | SquarePointMarker | TrianglePointMarker;
16
18
  interpolateNumber: (from: number, to: number, progress: number) => number;
17
19
  interpolateColor: (from: number, to: number, progress: number) => number;
20
+ copyVector: (sourceVector: DoubleVector, targetVector: DoubleVector) => void;
21
+ setSplineAnimationVectors: (wasmContext: TSciChart, animation: BaseAnimation, ds: BaseDataSeries, animationDS: BaseDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector, isCategoryAxis: boolean, interpolationPoints: number) => void;
22
+ setSplineBandAnimationVectors: (wasmContext: TSciChart, animation: BaseAnimation, ds: XyyDataSeries, animationDS: XyyDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector, y1SplineValues: DoubleVector, isCategoryAxis: boolean, interpolationPoints: number) => void;
23
+ updateSplineAnimationProperties: (wasmContext: TSciChart, animation: BaseAnimation, progress: number, dataSeries: BaseDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector) => void;
24
+ updateSplineBandAnimationProperties: (wasmContext: TSciChart, animation: BaseAnimation, progress: number, dataSeries: XyyDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector, y1SplineValues: DoubleVector) => void;
18
25
  };
@@ -26,6 +26,7 @@ exports.animationHelpers = void 0;
26
26
  var AnimationFiniteStateMachine_1 = require("../../../../Core/Animations/AnimationFiniteStateMachine");
27
27
  var PointMarkerType_1 = require("../../../../types/PointMarkerType");
28
28
  var colorUtil_1 = require("../../../../utils/colorUtil");
29
+ var IDataSeries_1 = require("../../../Model/IDataSeries");
29
30
  var CrossPointMarker_1 = require("../../PointMarkers/CrossPointMarker");
30
31
  var EllipsePointMarker_1 = require("../../PointMarkers/EllipsePointMarker");
31
32
  var SpritePointMarker_1 = require("../../PointMarkers/SpritePointMarker");
@@ -66,12 +67,12 @@ var animationUpdate = function (animationFSM, timeElapsed, beforeAnimationStart,
66
67
  if ([AnimationFiniteStateMachine_1.EAnimationStateTransition.InitialState_Running, AnimationFiniteStateMachine_1.EAnimationStateTransition.Delayed_Running].includes(transition)) {
67
68
  beforeAnimationStart();
68
69
  }
69
- else if (transition === AnimationFiniteStateMachine_1.EAnimationStateTransition.Running_Completed) {
70
- afterAnimationComplete();
71
- }
72
70
  if (animationFSM.is([AnimationFiniteStateMachine_1.EAnimationState.Running, AnimationFiniteStateMachine_1.EAnimationState.Completed])) {
73
71
  updateAnimationProperties(animationFSM.animationProgress, animationFSM);
74
72
  }
73
+ if (transition === AnimationFiniteStateMachine_1.EAnimationStateTransition.Running_Completed) {
74
+ afterAnimationComplete();
75
+ }
75
76
  };
76
77
  /**
77
78
  * Creates the point marker
@@ -128,11 +129,71 @@ var interpolateColor = function (from, to, progress) {
128
129
  return to;
129
130
  return colorUtil_1.uintArgbColorLerp(from, to, progress);
130
131
  };
132
+ var copyVector = function (sourceVector, targetVector) {
133
+ var size = sourceVector.size();
134
+ targetVector.resize(size, 0);
135
+ for (var i = 0; i < size; i++) {
136
+ targetVector.set(i, sourceVector.get(i));
137
+ }
138
+ };
139
+ var setSplineAnimationVectors = function (wasmContext, animation, ds, animationDS, xSplineValues, ySplineValues, isCategoryAxis, interpolationPoints) {
140
+ if (animation.isOnStartAnimation) {
141
+ // animationHelpers.copyVector(xSplineValues, ds.xFinalAnimationValues);
142
+ exports.animationHelpers.copyVector(ySplineValues, ds.yFinalAnimationValues);
143
+ }
144
+ else if (animation.isDataSeriesAnimation) {
145
+ exports.animationHelpers.copyVector(xSplineValues, ds.xInitialAnimationValues);
146
+ exports.animationHelpers.copyVector(ySplineValues, ds.yInitialAnimationValues);
147
+ // set final animation values for the spline
148
+ var dataSeries = animation.dataSeries;
149
+ var xValues = isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
150
+ wasmContext.SCRTSplineHelperCubicSpline(xValues, dataSeries.getNativeYValues(), ds.xFinalAnimationValues, ds.yFinalAnimationValues, xValues.size(), interpolationPoints, dataSeries.containsNaN);
151
+ }
152
+ };
153
+ var setSplineBandAnimationVectors = function (wasmContext, animation, ds, animationDS, xSplineValues, ySplineValues, y1SplineValues, isCategoryAxis, interpolationPoints) {
154
+ exports.animationHelpers.setSplineAnimationVectors(wasmContext, animation, ds, animationDS, xSplineValues, ySplineValues, isCategoryAxis, interpolationPoints);
155
+ if (animation.isOnStartAnimation) {
156
+ exports.animationHelpers.copyVector(y1SplineValues, ds.y1FinalAnimationValues);
157
+ }
158
+ else if (animation.isDataSeriesAnimation) {
159
+ if (animationDS.type !== IDataSeries_1.EDataSeriesType.Xyy) {
160
+ throw Error("to animate band chart animation.dataSeries type should be Xyy, but the type is " + animationDS.type);
161
+ }
162
+ exports.animationHelpers.copyVector(y1SplineValues, ds.y1InitialAnimationValues);
163
+ // set final animation values for the spline
164
+ var xValues = isCategoryAxis ? animationDS.getNativeIndexes() : animationDS.getNativeXValues();
165
+ wasmContext.SCRTSplineHelperCubicSpline(xValues, animationDS.getNativeY1Values(), ds.xFinalAnimationValues, ds.y1FinalAnimationValues, xValues.size(), interpolationPoints, animationDS.containsNaN);
166
+ ds.validateAnimationVectors();
167
+ }
168
+ };
169
+ var updateSplineAnimationProperties = function (wasmContext, animation, progress, dataSeries, xSplineValues, ySplineValues) {
170
+ if (animation.isOnStartAnimation) {
171
+ animation.calculateAnimationValues(wasmContext, dataSeries.yFinalAnimationValues, ySplineValues, progress);
172
+ }
173
+ else if (animation.isDataSeriesAnimation) {
174
+ animation.calculateDataSeriesAnimationValues(wasmContext, dataSeries.xInitialAnimationValues, dataSeries.xFinalAnimationValues, xSplineValues, progress);
175
+ animation.calculateDataSeriesAnimationValues(wasmContext, dataSeries.yInitialAnimationValues, dataSeries.yFinalAnimationValues, ySplineValues, progress);
176
+ }
177
+ };
178
+ var updateSplineBandAnimationProperties = function (wasmContext, animation, progress, dataSeries, xSplineValues, ySplineValues, y1SplineValues) {
179
+ exports.animationHelpers.updateSplineAnimationProperties(wasmContext, animation, progress, dataSeries, xSplineValues, ySplineValues);
180
+ if (animation.isOnStartAnimation) {
181
+ animation.calculateAnimationValues(wasmContext, dataSeries.y1FinalAnimationValues, y1SplineValues, progress);
182
+ }
183
+ else if (animation.isDataSeriesAnimation) {
184
+ animation.calculateDataSeriesAnimationValues(wasmContext, dataSeries.y1InitialAnimationValues, dataSeries.y1FinalAnimationValues, y1SplineValues, progress);
185
+ }
186
+ };
131
187
  exports.animationHelpers = {
132
188
  checkCanDraw: checkCanDraw,
133
189
  checkIsAnimationRunning: checkIsAnimationRunning,
134
190
  animationUpdate: animationUpdate,
135
191
  createPointMarker: createPointMarker,
136
192
  interpolateNumber: interpolateNumber,
137
- interpolateColor: interpolateColor
193
+ interpolateColor: interpolateColor,
194
+ copyVector: copyVector,
195
+ setSplineAnimationVectors: setSplineAnimationVectors,
196
+ setSplineBandAnimationVectors: setSplineBandAnimationVectors,
197
+ updateSplineAnimationProperties: updateSplineAnimationProperties,
198
+ updateSplineBandAnimationProperties: updateSplineBandAnimationProperties
138
199
  };
@@ -32,14 +32,6 @@ export interface IBaseBandRenderableSeriesOptions extends IBaseRenderableSeriesO
32
32
  strokeY1DashArray?: number[];
33
33
  }
34
34
  export declare abstract class BaseBandRenderableSeries extends BaseRenderableSeries {
35
- /**
36
- * Y1 vector with initial animation values
37
- */
38
- protected y1InitialAnimationValues: DoubleVector;
39
- /**
40
- * Y1 vector with final animation values
41
- */
42
- protected y1FinalAnimationValues: DoubleVector;
43
35
  private fillY1Property;
44
36
  private strokeY1Property;
45
37
  private fillProperty;
@@ -106,7 +98,4 @@ export declare abstract class BaseBandRenderableSeries extends BaseRenderableSer
106
98
  toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
107
99
  /** @inheritDoc */
108
100
  protected newHitTestProvider(): IHitTestProvider;
109
- protected setY1InitialAnimationValues(values: DoubleVector): void;
110
- protected setY1FinalAnimationValues(values: DoubleVector): void;
111
- protected validateAnimationValues(): void;
112
101
  }
@@ -14,7 +14,6 @@ var __extends = (this && this.__extends) || (function () {
14
14
  })();
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.BaseBandRenderableSeries = void 0;
17
- var Deleter_1 = require("../../../Core/Deleter");
18
17
  var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
19
18
  var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
20
19
  var constants_1 = require("./constants");
@@ -32,8 +31,6 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
32
31
  _this.fillY1Property = (_d = options === null || options === void 0 ? void 0 : options.fillY1) !== null && _d !== void 0 ? _d : SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.downBandSeriesFillColor;
33
32
  _this.strokeY1DashArrayProperty = options === null || options === void 0 ? void 0 : options.strokeY1DashArray;
34
33
  _this.strokeDashArrayProperty = options === null || options === void 0 ? void 0 : options.strokeDashArray;
35
- _this.y1InitialAnimationValues = new webAssemblyContext.DoubleVector();
36
- _this.y1FinalAnimationValues = new webAssemblyContext.DoubleVector();
37
34
  _this.drawingProviders.push(new BandSeriesDrawingProvider_1.BandSeriesDrawingProvider(webAssemblyContext, _this));
38
35
  _this.drawingProviders.push(new PointMarkerDrawingProvider_1.PointMarkerDrawingProvider(webAssemblyContext, _this));
39
36
  _this.drawingProviders.push(new PointMarkerDrawingProvider_1.PointMarkerDrawingProvider(webAssemblyContext, _this, function (ds) { return ds.getNativeY1Values(); }, function (rs) { return rs.y1SplineValues; }));
@@ -160,8 +157,6 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
160
157
  };
161
158
  /** @inheritDoc */
162
159
  BaseBandRenderableSeries.prototype.delete = function () {
163
- this.y1InitialAnimationValues = Deleter_1.deleteSafe(this.y1InitialAnimationValues);
164
- this.y1FinalAnimationValues = Deleter_1.deleteSafe(this.y1FinalAnimationValues);
165
160
  _super.prototype.delete.call(this);
166
161
  };
167
162
  /** @inheritDoc */
@@ -182,30 +177,6 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
182
177
  BaseBandRenderableSeries.prototype.newHitTestProvider = function () {
183
178
  return new BandSeriesHitTestProvider_1.BandSeriesHitTestProvider(this, this.webAssemblyContext);
184
179
  };
185
- BaseBandRenderableSeries.prototype.setY1InitialAnimationValues = function (values) {
186
- var size = values.size();
187
- this.y1InitialAnimationValues.resize(size, 0);
188
- for (var i = 0; i < size; i++) {
189
- this.y1InitialAnimationValues.set(i, values.get(i));
190
- }
191
- };
192
- BaseBandRenderableSeries.prototype.setY1FinalAnimationValues = function (values) {
193
- var size = values.size();
194
- this.y1FinalAnimationValues.resize(size, 0);
195
- for (var i = 0; i < size; i++) {
196
- this.y1FinalAnimationValues.set(i, values.get(i));
197
- }
198
- };
199
- BaseBandRenderableSeries.prototype.validateAnimationValues = function () {
200
- var size = this.xInitialAnimationValues.size();
201
- if (size !== this.yInitialAnimationValues.size() ||
202
- size !== this.y1InitialAnimationValues.size() ||
203
- size !== this.xFinalAnimationValues.size() ||
204
- size !== this.yFinalAnimationValues.size() ||
205
- size !== this.y1FinalAnimationValues.size()) {
206
- throw Error("initialAnimationValues and finalAnimationValues must have the same length");
207
- }
208
- };
209
180
  return BaseBandRenderableSeries;
210
181
  }(BaseRenderableSeries_1.BaseRenderableSeries));
211
182
  exports.BaseBandRenderableSeries = BaseBandRenderableSeries;
@@ -14,12 +14,12 @@ var __extends = (this && this.__extends) || (function () {
14
14
  })();
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.BaseMountainRenderableSeries = void 0;
17
+ var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
17
18
  var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
18
19
  var constants_1 = require("./constants");
19
20
  var MountainSeriesDrawingProvider_1 = require("./DrawingProviders/MountainSeriesDrawingProvider");
20
21
  var PointMarkerDrawingProvider_1 = require("./DrawingProviders/PointMarkerDrawingProvider");
21
22
  var MountainSeriesHitTestProvider_1 = require("./HitTest/MountainSeriesHitTestProvider");
22
- var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
23
23
  var BaseMountainRenderableSeries = /** @class */ (function (_super) {
24
24
  __extends(BaseMountainRenderableSeries, _super);
25
25
  function BaseMountainRenderableSeries(webAssemblyContext, options) {
@@ -1,8 +1,6 @@
1
- import { AnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
2
1
  import { NumberRange } from "../../../Core/NumberRange";
3
2
  import { DoubleVector, TSciChart } from "../../../types/TSciChart";
4
3
  import { IThemeProvider } from "../../Themes/IThemeProvider";
5
- import { BaseAnimation } from "./Animations/BaseAnimation";
6
4
  import { BaseRenderableSeries } from "./BaseRenderableSeries";
7
5
  import { IHitTestProvider } from "./HitTest/IHitTestProvider";
8
6
  import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
@@ -12,30 +10,6 @@ export interface IBaseOhlcRenderableSeriesOptions extends IBaseRenderableSeriesO
12
10
  dataPointWidth?: number;
13
11
  }
14
12
  export declare abstract class BaseOhlcRenderableSeries extends BaseRenderableSeries {
15
- /**
16
- * Open vector with initial animation values
17
- */
18
- protected openInitialAnimationValues: DoubleVector;
19
- /**
20
- * Open vector with final animation values
21
- */
22
- protected openFinalAnimationValues: DoubleVector;
23
- /**
24
- * High vector with initial animation values
25
- */
26
- protected highInitialAnimationValues: DoubleVector;
27
- /**
28
- * High vector with final animation values
29
- */
30
- protected highFinalAnimationValues: DoubleVector;
31
- /**
32
- * Low vector with initial animation values
33
- */
34
- protected lowInitialAnimationValues: DoubleVector;
35
- /**
36
- * Low vector with final animation values
37
- */
38
- protected lowFinalAnimationValues: DoubleVector;
39
13
  private strokeUpProperty;
40
14
  private strokeDownProperty;
41
15
  private dataPointWidthProperty;
@@ -90,15 +64,4 @@ export declare abstract class BaseOhlcRenderableSeries extends BaseRenderableSer
90
64
  getNativeCloseValues(): DoubleVector;
91
65
  /** @inheritDoc */
92
66
  protected newHitTestProvider(): IHitTestProvider;
93
- /** @inheritDoc */
94
- protected setAnimationVectors(animation: BaseAnimation): void;
95
- /** @inheritDoc */
96
- protected updateAnimationProperties(progress: number, animationFSM: AnimationFiniteStateMachine): void;
97
- protected setOpenInitialAnimationValues(values: DoubleVector): void;
98
- protected setOpenFinalAnimationValues(values: DoubleVector): void;
99
- protected setHighInitialAnimationValues(values: DoubleVector): void;
100
- protected setHighFinalAnimationValues(values: DoubleVector): void;
101
- protected setLowInitialAnimationValues(values: DoubleVector): void;
102
- protected setLowFinalAnimationValues(values: DoubleVector): void;
103
- protected validateAnimationValues(): void;
104
67
  }
@@ -14,7 +14,6 @@ var __extends = (this && this.__extends) || (function () {
14
14
  })();
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.BaseOhlcRenderableSeries = void 0;
17
- var Deleter_1 = require("../../../Core/Deleter");
18
17
  var NumberRange_1 = require("../../../Core/NumberRange");
19
18
  var IDataSeries_1 = require("../../Model/IDataSeries");
20
19
  var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
@@ -29,12 +28,6 @@ var BaseOhlcRenderableSeries = /** @class */ (function (_super) {
29
28
  _this.strokeDown = (options === null || options === void 0 ? void 0 : options.strokeDown) || SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.downWickColor;
30
29
  _this.dataPointWidth = (options === null || options === void 0 ? void 0 : options.dataPointWidth) || 0.5;
31
30
  _this.strokeThickness = (options === null || options === void 0 ? void 0 : options.strokeThickness) || 1;
32
- _this.openInitialAnimationValues = new webAssemblyContext.DoubleVector();
33
- _this.highInitialAnimationValues = new webAssemblyContext.DoubleVector();
34
- _this.lowInitialAnimationValues = new webAssemblyContext.DoubleVector();
35
- _this.openFinalAnimationValues = new webAssemblyContext.DoubleVector();
36
- _this.highFinalAnimationValues = new webAssemblyContext.DoubleVector();
37
- _this.lowFinalAnimationValues = new webAssemblyContext.DoubleVector();
38
31
  if (options === null || options === void 0 ? void 0 : options.animation) {
39
32
  _this.animationQueue.push(options.animation);
40
33
  }
@@ -127,12 +120,6 @@ var BaseOhlcRenderableSeries = /** @class */ (function (_super) {
127
120
  };
128
121
  /** @inheritDoc */
129
122
  BaseOhlcRenderableSeries.prototype.delete = function () {
130
- this.openInitialAnimationValues = Deleter_1.deleteSafe(this.openInitialAnimationValues);
131
- this.openInitialAnimationValues = Deleter_1.deleteSafe(this.openInitialAnimationValues);
132
- this.openInitialAnimationValues = Deleter_1.deleteSafe(this.openInitialAnimationValues);
133
- this.openFinalAnimationValues = Deleter_1.deleteSafe(this.openFinalAnimationValues);
134
- this.openFinalAnimationValues = Deleter_1.deleteSafe(this.openFinalAnimationValues);
135
- this.openFinalAnimationValues = Deleter_1.deleteSafe(this.openFinalAnimationValues);
136
123
  _super.prototype.delete.call(this);
137
124
  };
138
125
  /**
@@ -163,113 +150,6 @@ var BaseOhlcRenderableSeries = /** @class */ (function (_super) {
163
150
  BaseOhlcRenderableSeries.prototype.newHitTestProvider = function () {
164
151
  return new OhlcSeriesHitTestProvider_1.OhlcSeriesHitTestProvider(this, this.webAssemblyContext);
165
152
  };
166
- /** @inheritDoc */
167
- BaseOhlcRenderableSeries.prototype.setAnimationVectors = function (animation) {
168
- if (animation.isOnStartAnimation) {
169
- this.setXFinalAnimationValues(this.getNativeXValues());
170
- this.setYFinalAnimationValues(this.getNativeYValues());
171
- this.setOpenFinalAnimationValues(this.getNativeOpenValues());
172
- this.setHighFinalAnimationValues(this.getNativeHighValues());
173
- this.setLowFinalAnimationValues(this.getNativeLowValues());
174
- }
175
- else if (animation.isDataSeriesAnimation) {
176
- var dataSeries = animation.dataSeries;
177
- if (dataSeries.type !== IDataSeries_1.EDataSeriesType.Ohlc) {
178
- throw Error("to animate OHLC/Candlestick chart animation.dataSeries type should be Ohlc, but the type is " + dataSeries.type);
179
- }
180
- this.setXInitialAnimationValues(this.getNativeXValues());
181
- this.setYInitialAnimationValues(this.getNativeYValues());
182
- this.setOpenInitialAnimationValues(this.getNativeOpenValues());
183
- this.setHighInitialAnimationValues(this.getNativeHighValues());
184
- this.setLowInitialAnimationValues(this.getNativeLowValues());
185
- this.setXFinalAnimationValues(dataSeries.getNativeXValues());
186
- this.setYFinalAnimationValues(dataSeries.getNativeYValues());
187
- this.setOpenFinalAnimationValues(dataSeries.getNativeOpenValues());
188
- this.setHighFinalAnimationValues(dataSeries.getNativeHighValues());
189
- this.setLowFinalAnimationValues(dataSeries.getNativeLowValues());
190
- this.validateAnimationValues();
191
- }
192
- };
193
- /** @inheritDoc */
194
- BaseOhlcRenderableSeries.prototype.updateAnimationProperties = function (progress, animationFSM) {
195
- var animation = animationFSM.animation;
196
- animation.updateSeriesProperties(this, animationFSM.initialStyles, animationFSM.animationProgress);
197
- if (animation.isOnStartAnimation) {
198
- var dataSeries = this.dataSeries;
199
- if (dataSeries) {
200
- animation.calculateAnimationValues(this.webAssemblyContext, this.yFinalAnimationValues, dataSeries.getNativeYValues(), progress);
201
- animation.calculateAnimationValues(this.webAssemblyContext, this.openFinalAnimationValues, dataSeries.getNativeOpenValues(), progress);
202
- animation.calculateAnimationValues(this.webAssemblyContext, this.highFinalAnimationValues, dataSeries.getNativeHighValues(), progress);
203
- animation.calculateAnimationValues(this.webAssemblyContext, this.lowFinalAnimationValues, dataSeries.getNativeLowValues(), progress);
204
- }
205
- }
206
- else if (animation.isDataSeriesAnimation) {
207
- animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.xInitialAnimationValues, this.xFinalAnimationValues, this.getNativeXValues(), progress);
208
- animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.yInitialAnimationValues, this.yFinalAnimationValues, this.getNativeYValues(), progress);
209
- animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.openInitialAnimationValues, this.openFinalAnimationValues, this.getNativeOpenValues(), progress);
210
- animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.highInitialAnimationValues, this.highFinalAnimationValues, this.getNativeHighValues(), progress);
211
- animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.lowInitialAnimationValues, this.lowFinalAnimationValues, this.getNativeLowValues(), progress);
212
- }
213
- if (this.invalidateParentCallback) {
214
- this.invalidateParentCallback();
215
- }
216
- };
217
- BaseOhlcRenderableSeries.prototype.setOpenInitialAnimationValues = function (values) {
218
- var size = values.size();
219
- this.openInitialAnimationValues.resize(size, 0);
220
- for (var i = 0; i < size; i++) {
221
- this.openInitialAnimationValues.set(i, values.get(i));
222
- }
223
- };
224
- BaseOhlcRenderableSeries.prototype.setOpenFinalAnimationValues = function (values) {
225
- var size = values.size();
226
- this.openFinalAnimationValues.resize(size, 0);
227
- for (var i = 0; i < size; i++) {
228
- this.openFinalAnimationValues.set(i, values.get(i));
229
- }
230
- };
231
- BaseOhlcRenderableSeries.prototype.setHighInitialAnimationValues = function (values) {
232
- var size = values.size();
233
- this.highInitialAnimationValues.resize(size, 0);
234
- for (var i = 0; i < size; i++) {
235
- this.highInitialAnimationValues.set(i, values.get(i));
236
- }
237
- };
238
- BaseOhlcRenderableSeries.prototype.setHighFinalAnimationValues = function (values) {
239
- var size = values.size();
240
- this.highFinalAnimationValues.resize(size, 0);
241
- for (var i = 0; i < size; i++) {
242
- this.highFinalAnimationValues.set(i, values.get(i));
243
- }
244
- };
245
- BaseOhlcRenderableSeries.prototype.setLowInitialAnimationValues = function (values) {
246
- var size = values.size();
247
- this.lowInitialAnimationValues.resize(size, 0);
248
- for (var i = 0; i < size; i++) {
249
- this.lowInitialAnimationValues.set(i, values.get(i));
250
- }
251
- };
252
- BaseOhlcRenderableSeries.prototype.setLowFinalAnimationValues = function (values) {
253
- var size = values.size();
254
- this.lowFinalAnimationValues.resize(size, 0);
255
- for (var i = 0; i < size; i++) {
256
- this.lowFinalAnimationValues.set(i, values.get(i));
257
- }
258
- };
259
- BaseOhlcRenderableSeries.prototype.validateAnimationValues = function () {
260
- var size = this.xInitialAnimationValues.size();
261
- if (size !== this.yInitialAnimationValues.size() ||
262
- size !== this.openInitialAnimationValues.size() ||
263
- size !== this.highInitialAnimationValues.size() ||
264
- size !== this.lowInitialAnimationValues.size() ||
265
- size !== this.xFinalAnimationValues.size() ||
266
- size !== this.yFinalAnimationValues.size() ||
267
- size !== this.openFinalAnimationValues.size() ||
268
- size !== this.highFinalAnimationValues.size() ||
269
- size !== this.lowFinalAnimationValues.size()) {
270
- throw Error("initialAnimationValues and finalAnimationValues must have the same length");
271
- }
272
- };
273
153
  return BaseOhlcRenderableSeries;
274
154
  }(BaseRenderableSeries_1.BaseRenderableSeries));
275
155
  exports.BaseOhlcRenderableSeries = BaseOhlcRenderableSeries;