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
@@ -75,9 +75,9 @@ export declare class UniformHeatmapDataSeries extends BaseHeatmapDataSeries {
75
75
  /**
76
76
  * @inheritDoc
77
77
  */
78
- protected getXRange(): NumberRange;
78
+ getXRange(): NumberRange;
79
79
  /**
80
80
  * @inheritDoc
81
81
  */
82
- protected getYRange(): NumberRange;
82
+ getYRange(): NumberRange;
83
83
  }
@@ -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 XyDataSeries} constructor
@@ -34,14 +35,16 @@ export interface IXyyDataSeriesOptions extends IBaseDataSeriesOptions {
34
35
  * See derived types of {@link IRenderableSeries} to find out what 2D JavaScript Chart types are available.
35
36
  */
36
37
  export declare class XyyDataSeries extends BaseDataSeries {
38
+ /** @inheritDoc */
39
+ readonly type = EDataSeriesType.Xyy;
37
40
  /**
38
- * @inheritDoc
41
+ * Y1 vector with initial animation values
39
42
  */
40
- readonly type = EDataSeriesType.Xyy;
43
+ y1InitialAnimationValues: DoubleVector;
41
44
  /**
42
- * Y1 values animation vector
45
+ * Y1 vector with final animation values
43
46
  */
44
- y1AnimationValues: DoubleVector;
47
+ y1FinalAnimationValues: DoubleVector;
45
48
  protected y1Values: DoubleVector;
46
49
  /**
47
50
  * Creates an instance of {@link XyyDataSeries}
@@ -143,13 +146,19 @@ export declare class XyyDataSeries extends BaseDataSeries {
143
146
  * Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
144
147
  */
145
148
  clear(): void;
146
- /**
147
- * @inheritDoc
148
- */
149
- getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isXCategoryAxis?: boolean): NumberRange;
150
- /**
151
- * @inheritDoc
152
- */
149
+ /** @inheritDoc */
150
+ getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isXCategoryAxis?: boolean, dataSeriesValueType?: EDataSeriesValueType): NumberRange;
151
+ /** @inheritDoc */
153
152
  delete(): void;
153
+ /** @inheritDoc */
154
+ setInitialAnimationVectors(dataSeries?: XyyDataSeries): void;
155
+ /** @inheritDoc */
156
+ setFinalAnimationVectors(dataSeries?: XyyDataSeries): void;
157
+ /** @inheritDoc */
158
+ validateAnimationVectors(): void;
159
+ /** @inheritDoc */
160
+ updateAnimationProperties(progress: number, animation: BaseAnimation): void;
161
+ /** @inheritDoc */
154
162
  toJSON(excludeData?: boolean): import("../../Builder/buildDataSeries").TSeriesDataDefinition;
163
+ private getYY1Values;
155
164
  }
@@ -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
  /**
@@ -43,12 +44,11 @@ var XyyDataSeries = /** @class */ (function (_super) {
43
44
  */
44
45
  function XyyDataSeries(webAssemblyContext, options) {
45
46
  var _this = _super.call(this, webAssemblyContext, options) || this;
46
- /**
47
- * @inheritDoc
48
- */
47
+ /** @inheritDoc */
49
48
  _this.type = IDataSeries_1.EDataSeriesType.Xyy;
50
49
  _this.y1Values = new webAssemblyContext.DoubleVector();
51
- _this.y1AnimationValues = new webAssemblyContext.DoubleVector();
50
+ _this.y1InitialAnimationValues = new webAssemblyContext.DoubleVector();
51
+ _this.y1FinalAnimationValues = new webAssemblyContext.DoubleVector();
52
52
  if (options === null || options === void 0 ? void 0 : options.xValues) {
53
53
  Guard_1.Guard.notNull(options.yValues, "options.yValues");
54
54
  Guard_1.Guard.notNull(options.y1Values, "options.y1Values");
@@ -274,16 +274,16 @@ var XyyDataSeries = /** @class */ (function (_super) {
274
274
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Clear, null, null);
275
275
  }
276
276
  };
277
- /**
278
- * @inheritDoc
279
- */
280
- XyyDataSeries.prototype.getWindowedYRange = function (xRange, getPositiveRange, isXCategoryAxis) {
277
+ /** @inheritDoc */
278
+ XyyDataSeries.prototype.getWindowedYRange = function (xRange, getPositiveRange, isXCategoryAxis, dataSeriesValueType) {
281
279
  if (isXCategoryAxis === void 0) { isXCategoryAxis = false; }
280
+ if (dataSeriesValueType === void 0) { dataSeriesValueType = IDataSeries_1.EDataSeriesValueType.Default; }
281
+ var _a = this.getYY1Values(dataSeriesValueType), yValues = _a.yValues, y1Values = _a.y1Values;
282
282
  // TODO: getPositiveRange
283
283
  // if one point
284
284
  if (this.count() === 1) {
285
- var min = Math.min(this.yValues.get(0), this.y1Values.get(0)) - 1;
286
- var max = Math.max(this.yValues.get(0), this.y1Values.get(0)) + 1;
285
+ var min = Math.min(yValues.get(0), y1Values.get(0)) - 1;
286
+ var max = Math.max(yValues.get(0), y1Values.get(0)) + 1;
287
287
  return new NumberRange_1.NumberRange(min, max);
288
288
  }
289
289
  var indicesRange = isXCategoryAxis ? xRange : this.getIndicesRange(xRange);
@@ -295,14 +295,14 @@ var XyyDataSeries = /** @class */ (function (_super) {
295
295
  return undefined;
296
296
  }
297
297
  for (var i = iMin; i <= iMax; i++) {
298
- var yVal = this.yValues.get(i);
298
+ var yVal = yValues.get(i);
299
299
  if (yVal < yMin) {
300
300
  yMin = yVal;
301
301
  }
302
302
  if (yVal > yMax) {
303
303
  yMax = yVal;
304
304
  }
305
- var y1Val = this.y1Values.get(i);
305
+ var y1Val = y1Values.get(i);
306
306
  if (y1Val < yMin) {
307
307
  yMin = y1Val;
308
308
  }
@@ -312,14 +312,50 @@ var XyyDataSeries = /** @class */ (function (_super) {
312
312
  }
313
313
  return new NumberRange_1.NumberRange(yMin, yMax);
314
314
  };
315
- /**
316
- * @inheritDoc
317
- */
315
+ /** @inheritDoc */
318
316
  XyyDataSeries.prototype.delete = function () {
319
317
  this.y1Values = Deleter_1.deleteSafe(this.y1Values);
320
- this.y1AnimationValues = Deleter_1.deleteSafe(this.y1AnimationValues);
318
+ this.y1InitialAnimationValues = Deleter_1.deleteSafe(this.y1InitialAnimationValues);
319
+ this.y1FinalAnimationValues = Deleter_1.deleteSafe(this.y1FinalAnimationValues);
321
320
  _super.prototype.delete.call(this);
322
321
  };
322
+ /** @inheritDoc */
323
+ XyyDataSeries.prototype.setInitialAnimationVectors = function (dataSeries) {
324
+ _super.prototype.setInitialAnimationVectors.call(this, dataSeries);
325
+ if (!dataSeries) {
326
+ this.y1InitialAnimationValues.resize(0, 0);
327
+ return;
328
+ }
329
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeY1Values(), this.y1InitialAnimationValues);
330
+ };
331
+ /** @inheritDoc */
332
+ XyyDataSeries.prototype.setFinalAnimationVectors = function (dataSeries) {
333
+ _super.prototype.setFinalAnimationVectors.call(this, dataSeries);
334
+ if (!dataSeries) {
335
+ this.y1FinalAnimationValues.resize(0, 0);
336
+ return;
337
+ }
338
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeY1Values(), this.y1FinalAnimationValues);
339
+ };
340
+ /** @inheritDoc */
341
+ XyyDataSeries.prototype.validateAnimationVectors = function () {
342
+ _super.prototype.validateAnimationVectors.call(this);
343
+ var size = this.xInitialAnimationValues.size();
344
+ if (size !== this.y1InitialAnimationValues.size() || size !== this.y1FinalAnimationValues.size()) {
345
+ throw Error("initialAnimationValues and finalAnimationValues must have the same length");
346
+ }
347
+ };
348
+ /** @inheritDoc */
349
+ XyyDataSeries.prototype.updateAnimationProperties = function (progress, animation) {
350
+ _super.prototype.updateAnimationProperties.call(this, progress, animation);
351
+ if (animation.isOnStartAnimation) {
352
+ animation.calculateAnimationValues(this.webAssemblyContext, this.y1FinalAnimationValues, this.getNativeY1Values(), progress);
353
+ }
354
+ else if (animation.isDataSeriesAnimation) {
355
+ animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.y1InitialAnimationValues, this.y1FinalAnimationValues, this.getNativeY1Values(), progress);
356
+ }
357
+ };
358
+ /** @inheritDoc */
323
359
  XyyDataSeries.prototype.toJSON = function (excludeData) {
324
360
  if (excludeData === void 0) { excludeData = false; }
325
361
  var json = _super.prototype.toJSON.call(this);
@@ -341,6 +377,24 @@ var XyyDataSeries = /** @class */ (function (_super) {
341
377
  }
342
378
  return json;
343
379
  };
380
+ XyyDataSeries.prototype.getYY1Values = function (dataSeriesValueType) {
381
+ var yValues;
382
+ var y1Values;
383
+ switch (dataSeriesValueType) {
384
+ case IDataSeries_1.EDataSeriesValueType.FinalAnimationValues:
385
+ yValues = this.yFinalAnimationValues;
386
+ y1Values = this.y1FinalAnimationValues;
387
+ break;
388
+ case IDataSeries_1.EDataSeriesValueType.InitialAnimationValues:
389
+ yValues = this.yInitialAnimationValues;
390
+ y1Values = this.y1InitialAnimationValues;
391
+ break;
392
+ default:
393
+ yValues = this.yValues;
394
+ y1Values = this.y1Values;
395
+ }
396
+ return { yValues: yValues, y1Values: y1Values };
397
+ };
344
398
  return XyyDataSeries;
345
399
  }(BaseDataSeries_1.BaseDataSeries));
346
400
  exports.XyyDataSeries = XyyDataSeries;
@@ -1,4 +1,5 @@
1
1
  import { DoubleVector, TSciChart } from "../../types/TSciChart";
2
+ import { BaseAnimation } from "../Visuals/RenderableSeries/Animations/BaseAnimation";
2
3
  import { BaseDataSeries, IBaseDataSeriesOptions } from "./BaseDataSeries";
3
4
  import { EDataSeriesType } from "./IDataSeries";
4
5
  import { IPointMetadata } from "./IPointMetadata";
@@ -33,10 +34,16 @@ export interface IXyzDataSeriesOptions extends IBaseDataSeriesOptions {
33
34
  * See derived types of {@link IRenderableSeries} to find out what 2D JavaScript Chart types are available.
34
35
  */
35
36
  export declare class XyzDataSeries extends BaseDataSeries {
37
+ /** @inheritDoc */
38
+ readonly type = EDataSeriesType.Xyz;
36
39
  /**
37
- * @inheritDoc
40
+ * Z vector with initial animation values
38
41
  */
39
- readonly type = EDataSeriesType.Xyz;
42
+ zInitialAnimationValues: DoubleVector;
43
+ /**
44
+ * Z vector with final animation values
45
+ */
46
+ zFinalAnimationValues: DoubleVector;
40
47
  protected zValues: DoubleVector;
41
48
  /**
42
49
  * Creates an instance of {@link XyzDataSeries}
@@ -138,9 +145,17 @@ export declare class XyzDataSeries extends BaseDataSeries {
138
145
  * Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
139
146
  */
140
147
  clear(): void;
141
- /**
142
- * @inheritDoc
143
- */
148
+ /** @inheritDoc */
144
149
  delete(): void;
150
+ /** @inheritDoc */
151
+ setInitialAnimationVectors(dataSeries?: XyzDataSeries): void;
152
+ /** @inheritDoc */
153
+ setFinalAnimationVectors(dataSeries?: XyzDataSeries): void;
154
+ /** @inheritDoc */
155
+ validateAnimationVectors(): void;
156
+ /** @inheritDoc */
157
+ updateAnimationProperties(progress: number, animation: BaseAnimation): void;
158
+ /** @inheritDoc */
145
159
  toJSON(excludeData?: boolean): import("../../Builder/buildDataSeries").TSeriesDataDefinition;
160
+ private getYZValues;
146
161
  }
@@ -17,6 +17,7 @@ exports.XyzDataSeries = void 0;
17
17
  var Deleter_1 = require("../../Core/Deleter");
18
18
  var Guard_1 = require("../../Core/Guard");
19
19
  var fillDoubleVectorFromJsArray_1 = require("../../utils/ccall/fillDoubleVectorFromJsArray");
20
+ var animationHelpers_1 = require("../Visuals/RenderableSeries/Animations/animationHelpers");
20
21
  var BaseDataSeries_1 = require("./BaseDataSeries");
21
22
  var IDataSeries_1 = require("./IDataSeries");
22
23
  /**
@@ -42,11 +43,11 @@ var XyzDataSeries = /** @class */ (function (_super) {
42
43
  */
43
44
  function XyzDataSeries(webAssemblyContext, options) {
44
45
  var _this = _super.call(this, webAssemblyContext) || this;
45
- /**
46
- * @inheritDoc
47
- */
46
+ /** @inheritDoc */
48
47
  _this.type = IDataSeries_1.EDataSeriesType.Xyz;
49
48
  _this.zValues = new webAssemblyContext.DoubleVector();
49
+ _this.zInitialAnimationValues = new webAssemblyContext.DoubleVector();
50
+ _this.zFinalAnimationValues = new webAssemblyContext.DoubleVector();
50
51
  if (options === null || options === void 0 ? void 0 : options.xValues) {
51
52
  Guard_1.Guard.notNull(options.yValues, "options.yValues");
52
53
  Guard_1.Guard.notNull(options.zValues, "options.zValues");
@@ -265,17 +266,54 @@ var XyzDataSeries = /** @class */ (function (_super) {
265
266
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Clear, null, null);
266
267
  }
267
268
  };
268
- /**
269
- * @inheritDoc
270
- */
269
+ /** @inheritDoc */
271
270
  XyzDataSeries.prototype.delete = function () {
272
271
  this.zValues = Deleter_1.deleteSafe(this.zValues);
272
+ this.zInitialAnimationValues = Deleter_1.deleteSafe(this.zInitialAnimationValues);
273
+ this.zFinalAnimationValues = Deleter_1.deleteSafe(this.zFinalAnimationValues);
273
274
  _super.prototype.delete.call(this);
274
275
  };
276
+ /** @inheritDoc */
277
+ XyzDataSeries.prototype.setInitialAnimationVectors = function (dataSeries) {
278
+ _super.prototype.setInitialAnimationVectors.call(this, dataSeries);
279
+ if (!dataSeries) {
280
+ this.zInitialAnimationValues.resize(0, 0);
281
+ return;
282
+ }
283
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeZValues(), this.zInitialAnimationValues);
284
+ };
285
+ /** @inheritDoc */
286
+ XyzDataSeries.prototype.setFinalAnimationVectors = function (dataSeries) {
287
+ _super.prototype.setFinalAnimationVectors.call(this, dataSeries);
288
+ if (!dataSeries) {
289
+ this.zFinalAnimationValues.resize(0, 0);
290
+ return;
291
+ }
292
+ animationHelpers_1.animationHelpers.copyVector(dataSeries.getNativeZValues(), this.zFinalAnimationValues);
293
+ };
294
+ /** @inheritDoc */
295
+ XyzDataSeries.prototype.validateAnimationVectors = function () {
296
+ _super.prototype.validateAnimationVectors.call(this);
297
+ var size = this.xInitialAnimationValues.size();
298
+ if (size !== this.zInitialAnimationValues.size() || size !== this.zFinalAnimationValues.size()) {
299
+ throw Error("initialAnimationValues and finalAnimationValues must have the same length");
300
+ }
301
+ };
302
+ /** @inheritDoc */
303
+ XyzDataSeries.prototype.updateAnimationProperties = function (progress, animation) {
304
+ _super.prototype.updateAnimationProperties.call(this, progress, animation);
305
+ if (animation.isOnStartAnimation) {
306
+ animation.calculateAnimationValues(this.webAssemblyContext, this.zFinalAnimationValues, this.getNativeZValues(), progress, true);
307
+ }
308
+ else if (animation.isDataSeriesAnimation) {
309
+ animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.zInitialAnimationValues, this.zFinalAnimationValues, this.getNativeZValues(), progress);
310
+ }
311
+ };
312
+ /** @inheritDoc */
275
313
  XyzDataSeries.prototype.toJSON = function (excludeData) {
276
314
  if (excludeData === void 0) { excludeData = false; }
277
315
  var json = _super.prototype.toJSON.call(this);
278
- if (excludeData) {
316
+ if (!excludeData) {
279
317
  var xValues = [];
280
318
  var yValues = [];
281
319
  var zValues = [];
@@ -293,6 +331,24 @@ var XyzDataSeries = /** @class */ (function (_super) {
293
331
  }
294
332
  return json;
295
333
  };
334
+ XyzDataSeries.prototype.getYZValues = function (dataSeriesValueType) {
335
+ var yValues;
336
+ var zValues;
337
+ switch (dataSeriesValueType) {
338
+ case IDataSeries_1.EDataSeriesValueType.FinalAnimationValues:
339
+ yValues = this.yFinalAnimationValues;
340
+ zValues = this.zFinalAnimationValues;
341
+ break;
342
+ case IDataSeries_1.EDataSeriesValueType.InitialAnimationValues:
343
+ yValues = this.yInitialAnimationValues;
344
+ zValues = this.zInitialAnimationValues;
345
+ break;
346
+ default:
347
+ yValues = this.yValues;
348
+ zValues = this.zValues;
349
+ }
350
+ return { yValues: yValues, zValues: zValues };
351
+ };
296
352
  return XyzDataSeries;
297
353
  }(BaseDataSeries_1.BaseDataSeries));
298
354
  exports.XyzDataSeries = XyzDataSeries;
@@ -29,9 +29,33 @@ export declare class LogarithmicTickProvider extends TickProvider {
29
29
  private majorTickModeProperty;
30
30
  private minorTickModeProperty;
31
31
  constructor(wasmContext: TSciChart | TSciChart3D);
32
+ /**
33
+ * Gets or sets the mode for Major ticks using {@link ELogarithmicMajorTickMode}
34
+ * Equally spaced (best for large ranges) or
35
+ * Round numbers (better for small ranges)
36
+ */
32
37
  get majorTickMode(): ELogarithmicMajorTickMode;
38
+ /**
39
+ * Gets or sets the mode for Major ticks using {@link ELogarithmicMajorTickMode}
40
+ * Equally spaced (best for large ranges) or
41
+ * Round numbers (better for small ranges)
42
+ */
33
43
  set majorTickMode(mode: ELogarithmicMajorTickMode);
44
+ /**
45
+ * Gets or sets the mode for minor ticks using {@link ELogarithmicMinorTickMode},
46
+ * Linear (default, best for smaller ranges),
47
+ * Logarithmic (better for very large ranges) or
48
+ * Auto (switches from linear to Logarithmic when the visible range is such that
49
+ * the first linear minor tick would be more than 70% of the major tick)
50
+ */
34
51
  get minorTickMode(): ELogarithmicMinorTickMode;
52
+ /**
53
+ * Gets or sets the mode for minor ticks using {@link ELogarithmicMinorTickMode},
54
+ * Linear (default, best for smaller ranges),
55
+ * Logarithmic (better for very large ranges) or
56
+ * Auto (switches from linear to Logarithmic when the visible range is such that
57
+ * the first linear minor tick would be more than 70% of the major tick)
58
+ */
35
59
  set minorTickMode(mode: ELogarithmicMinorTickMode);
36
60
  getMajorTicks(minorDelta: number, majorDelta: number, visibleRange: NumberRange): number[];
37
61
  getRoundNumberMajorTicks(minorDelta: number, majorDelta: number, visibleRange: NumberRange): number[];
@@ -52,9 +52,19 @@ var LogarithmicTickProvider = /** @class */ (function (_super) {
52
52
  return _this;
53
53
  }
54
54
  Object.defineProperty(LogarithmicTickProvider.prototype, "majorTickMode", {
55
+ /**
56
+ * Gets or sets the mode for Major ticks using {@link ELogarithmicMajorTickMode}
57
+ * Equally spaced (best for large ranges) or
58
+ * Round numbers (better for small ranges)
59
+ */
55
60
  get: function () {
56
61
  return this.majorTickModeProperty;
57
62
  },
63
+ /**
64
+ * Gets or sets the mode for Major ticks using {@link ELogarithmicMajorTickMode}
65
+ * Equally spaced (best for large ranges) or
66
+ * Round numbers (better for small ranges)
67
+ */
58
68
  set: function (mode) {
59
69
  var _a;
60
70
  this.majorTickModeProperty = mode;
@@ -66,9 +76,23 @@ var LogarithmicTickProvider = /** @class */ (function (_super) {
66
76
  configurable: true
67
77
  });
68
78
  Object.defineProperty(LogarithmicTickProvider.prototype, "minorTickMode", {
79
+ /**
80
+ * Gets or sets the mode for minor ticks using {@link ELogarithmicMinorTickMode},
81
+ * Linear (default, best for smaller ranges),
82
+ * Logarithmic (better for very large ranges) or
83
+ * Auto (switches from linear to Logarithmic when the visible range is such that
84
+ * the first linear minor tick would be more than 70% of the major tick)
85
+ */
69
86
  get: function () {
70
87
  return this.minorTickModeProperty;
71
88
  },
89
+ /**
90
+ * Gets or sets the mode for minor ticks using {@link ELogarithmicMinorTickMode},
91
+ * Linear (default, best for smaller ranges),
92
+ * Logarithmic (better for very large ranges) or
93
+ * Auto (switches from linear to Logarithmic when the visible range is such that
94
+ * the first linear minor tick would be more than 70% of the major tick)
95
+ */
72
96
  set: function (mode) {
73
97
  var _a;
74
98
  this.minorTickModeProperty = mode;
@@ -135,11 +159,9 @@ var LogarithmicTickProvider = /** @class */ (function (_super) {
135
159
  var minDiff = this.roundNum(min * (diff - 1));
136
160
  current = this.roundNum(current, minDiff);
137
161
  results.push(current);
138
- //console.log(visibleRange, majorDelta, diff, minDiff, current);
139
162
  while (current <= max) {
140
163
  var nextDiff = current * (diff - 1);
141
164
  var next = this.roundNum(current * diff, nextDiff);
142
- //console.log(current, nextDiff, next);
143
165
  var working = next;
144
166
  while (next === current) {
145
167
  working = working * diff;
@@ -158,7 +180,7 @@ var LogarithmicTickProvider = /** @class */ (function (_super) {
158
180
  exponent = Math.min(exponent, Math.round(Math.log10(difference)));
159
181
  }
160
182
  // Fractional part of range
161
- var figures = this.wasmContext.NumberUtil.RoundToDigits((value / Math.pow(10, exponent)), 1);
183
+ var figures = this.wasmContext.NumberUtil.RoundToDigits(value / Math.pow(10, exponent), 1);
162
184
  var base = Math.floor(figures);
163
185
  var fraction = figures - base;
164
186
  var niceFraction = NaN;
@@ -191,7 +213,7 @@ var LogarithmicTickProvider = /** @class */ (function (_super) {
191
213
  var logDiff = Math.pow(this.logarithmicBase, majorDelta);
192
214
  if (count > 0) {
193
215
  for (var index = 0; index <= count; index++) {
194
- var upper = index < count ? majorTicks[index] : (majorTicks[index - 1] * logDiff);
216
+ var upper = index < count ? majorTicks[index] : majorTicks[index - 1] * logDiff;
195
217
  var prev = Math.max(upper / logDiff, visibleRange.min);
196
218
  var increment = prev * minorDelta;
197
219
  if (minorLogMode) {