scichart 2.0.2194 → 2.1.0-beta.40

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 (223) hide show
  1. package/Charting/ChartModifiers/CursorModifier.d.ts +9 -0
  2. package/Charting/ChartModifiers/CursorModifier.js +10 -0
  3. package/Charting/ChartModifiers/DataPointSelectionModifier.js +0 -1
  4. package/Charting/ChartModifiers/RolloverModifier.d.ts +25 -0
  5. package/Charting/ChartModifiers/RolloverModifier.js +8 -0
  6. package/Charting/Drawing/BrushCache.d.ts +8 -2
  7. package/Charting/Drawing/BrushCache.js +16 -8
  8. package/Charting/Drawing/WebGlRenderContext2D.d.ts +1 -0
  9. package/Charting/Drawing/WebGlRenderContext2D.js +4 -1
  10. package/Charting/LayoutManager/BaseAxisLayoutStrategy.d.ts +2 -0
  11. package/Charting/LayoutManager/BaseAxisLayoutStrategy.js +33 -0
  12. package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +18 -2
  13. package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +19 -2
  14. package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +18 -2
  15. package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +18 -2
  16. package/Charting/Model/BaseDataSeries.d.ts +42 -15
  17. package/Charting/Model/BaseDataSeries.js +77 -28
  18. package/Charting/Model/BaseHeatmapDataSeries.d.ts +31 -23
  19. package/Charting/Model/BaseHeatmapDataSeries.js +45 -18
  20. package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.d.ts +23 -0
  21. package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.js +122 -0
  22. package/Charting/Model/DataDistributionCalculator/IDataDistributionCalculator.d.ts +57 -0
  23. package/Charting/Model/DataDistributionCalculator/IDataDistributionCalculator.js +2 -0
  24. package/Charting/Model/Filters/OhlcFilterBase.d.ts +2 -2
  25. package/Charting/Model/Filters/XyFilterBase.d.ts +3 -3
  26. package/Charting/Model/Filters/XyMovingAverageFilter.js +1 -1
  27. package/Charting/Model/Filters/XyyFilterBase.d.ts +4 -4
  28. package/Charting/Model/Filters/XyzFilterBase.d.ts +4 -4
  29. package/Charting/Model/IDataSeries.d.ts +37 -5
  30. package/Charting/Model/OhlcDataSeries.d.ts +12 -11
  31. package/Charting/Model/OhlcDataSeries.js +47 -44
  32. package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +21 -0
  33. package/Charting/Model/PointSeries/BasePointSeriesResampled.js +56 -0
  34. package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +14 -0
  35. package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +23 -0
  36. package/Charting/Model/PointSeries/IPointSeries.d.ts +31 -0
  37. package/Charting/Model/PointSeries/IPointSeries.js +2 -0
  38. package/Charting/Model/PointSeries/OhlcPointSeriesResampled.d.ts +13 -0
  39. package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +59 -0
  40. package/Charting/Model/PointSeries/OhlcPointSeriesWrapped.d.ts +11 -0
  41. package/Charting/Model/PointSeries/OhlcPointSeriesWrapped.js +32 -0
  42. package/Charting/Model/PointSeries/XyPointSeriesResampled.d.ts +7 -0
  43. package/Charting/Model/PointSeries/XyPointSeriesResampled.js +27 -0
  44. package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +6 -0
  45. package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +27 -0
  46. package/Charting/Model/PointSeries/XyyPointSeriesResampled.d.ts +10 -0
  47. package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +48 -0
  48. package/Charting/Model/PointSeries/XyyPointSeriesWrapped.d.ts +8 -0
  49. package/Charting/Model/PointSeries/XyyPointSeriesWrapped.js +29 -0
  50. package/Charting/Model/PointSeries/XyzPointSeriesWrapped.d.ts +8 -0
  51. package/Charting/Model/PointSeries/XyzPointSeriesWrapped.js +29 -0
  52. package/Charting/Model/XyDataSeries.d.ts +3 -2
  53. package/Charting/Model/XyDataSeries.js +26 -26
  54. package/Charting/Model/XyyDataSeries.d.ts +5 -5
  55. package/Charting/Model/XyyDataSeries.js +30 -27
  56. package/Charting/Model/XyzDataSeries.d.ts +5 -5
  57. package/Charting/Model/XyzDataSeries.js +30 -27
  58. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +2 -2
  59. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +2 -2
  60. package/Charting/Numerics/CoordinateCalculators/FlippedNumericCoordinateCalculator.d.ts +2 -1
  61. package/Charting/Numerics/CoordinateCalculators/FlippedNumericCoordinateCalculator.js +6 -2
  62. package/Charting/Numerics/CoordinateCalculators/NumericCoordinateCalculator.d.ts +2 -1
  63. package/Charting/Numerics/CoordinateCalculators/NumericCoordinateCalculator.js +6 -2
  64. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +54 -0
  65. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +232 -0
  66. package/Charting/Numerics/Resamplers/ResamplingMode.d.ts +37 -0
  67. package/Charting/Numerics/Resamplers/ResamplingMode.js +41 -0
  68. package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +39 -0
  69. package/Charting/Numerics/Resamplers/ResamplingParams.js +52 -0
  70. package/Charting/Services/RenderPassData.d.ts +6 -1
  71. package/Charting/Services/RenderPassData.js +5 -1
  72. package/Charting/Services/RenderPassInfo.d.ts +18 -0
  73. package/Charting/Services/RenderPassInfo.js +14 -0
  74. package/Charting/Services/SciChartRenderer.d.ts +14 -1
  75. package/Charting/Services/SciChartRenderer.js +124 -31
  76. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +1 -1
  77. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +1 -0
  78. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +6 -0
  79. package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.d.ts +5 -0
  80. package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +12 -1
  81. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +6 -8
  82. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +12 -9
  83. package/Charting/Visuals/Annotations/SvgAnnotationBase.js +7 -2
  84. package/Charting/Visuals/Axis/AxisBase2D.d.ts +23 -0
  85. package/Charting/Visuals/Axis/AxisBase2D.js +71 -24
  86. package/Charting/Visuals/Axis/AxisCore.d.ts +11 -0
  87. package/Charting/Visuals/Axis/AxisCore.js +39 -18
  88. package/Charting/Visuals/Axis/AxisRenderer.d.ts +1 -0
  89. package/Charting/Visuals/Axis/AxisRenderer.js +37 -10
  90. package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +5 -0
  91. package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +2 -2
  92. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +9 -4
  93. package/Charting/Visuals/Axis/NumericAxis.js +2 -2
  94. package/Charting/Visuals/Axis/constants.d.ts +1 -0
  95. package/Charting/Visuals/Axis/constants.js +1 -0
  96. package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.d.ts +2 -2
  97. package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +2 -2
  98. package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.d.ts +3 -3
  99. package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.d.ts +2 -2
  100. package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +2 -2
  101. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +6 -6
  102. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +2 -2
  103. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +9 -2
  104. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +45 -1
  105. package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +1 -0
  106. package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +1 -0
  107. package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +1 -0
  108. package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +1 -0
  109. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +12 -5
  110. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +59 -0
  111. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +40 -5
  112. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +116 -11
  113. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +36 -4
  114. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +51 -3
  115. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +38 -4
  116. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +54 -3
  117. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -1
  118. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +8 -14
  119. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +4 -3
  120. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +5 -11
  121. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +4 -11
  122. package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.d.ts +2 -1
  123. package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +17 -21
  124. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +16 -15
  125. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +9 -15
  126. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +4 -3
  127. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +16 -21
  128. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +2 -9
  129. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +0 -7
  130. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +6 -2
  131. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +5 -0
  132. package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +1 -0
  133. package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +1 -0
  134. package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.d.ts +1 -0
  135. package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +6 -0
  136. package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +2 -2
  137. package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +1 -1
  138. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +1 -1
  139. package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +2 -2
  140. package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +2 -2
  141. package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +1 -1
  142. package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +2 -2
  143. package/Charting/Visuals/RenderableSeries/HitTest/ScatterSeriesHitTestProvider.js +1 -1
  144. package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +2 -2
  145. package/Charting/Visuals/RenderableSeries/HitTest/StackedMountainSeriesHitTestProvider.js +2 -2
  146. package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +6 -6
  147. package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +1 -1
  148. package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +12 -1
  149. package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +38 -2
  150. package/Charting/Visuals/RenderableSeries/ISpline.d.ts +3 -3
  151. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +4 -4
  152. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +5 -5
  153. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +3 -3
  154. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +3 -3
  155. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +3 -3
  156. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +3 -3
  157. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +0 -6
  158. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +1 -1
  159. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +1 -7
  160. package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +5 -0
  161. package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +6 -0
  162. package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +5 -0
  163. package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +6 -0
  164. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -3
  165. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +6 -3
  166. package/Charting/Visuals/RenderableSeries/constants.d.ts +3 -0
  167. package/Charting/Visuals/RenderableSeries/constants.js +3 -0
  168. package/Charting/Visuals/SciChartDefaults.d.ts +9 -1
  169. package/Charting/Visuals/SciChartDefaults.js +9 -1
  170. package/Charting/Visuals/SciChartSurface.d.ts +4 -4
  171. package/Charting/Visuals/SciChartSurface.js +18 -11
  172. package/Charting/Visuals/SciChartSurfaceBase.d.ts +3 -2
  173. package/Charting/Visuals/SciChartSurfaceBase.js +4 -4
  174. package/Charting/Visuals/createMaster.d.ts +1 -1
  175. package/Charting/Visuals/createMaster.js +11 -6
  176. package/Charting/Visuals/createSingle.d.ts +1 -1
  177. package/Charting/Visuals/createSingle.js +2 -2
  178. package/Charting/Visuals/licenseManager2D.js +22 -21
  179. package/Charting/Visuals/licenseManager2dState.d.ts +4 -0
  180. package/Charting/Visuals/licenseManager2dState.js +12 -0
  181. package/Charting/Visuals/sciChartInitCommon.d.ts +2 -2
  182. package/Charting/Visuals/sciChartInitCommon.js +18 -12
  183. package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +7 -7
  184. package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +3 -3
  185. package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -2
  186. package/Charting3D/Visuals/SciChart3DSurface.js +3 -3
  187. package/Charting3D/Visuals/createMaster3d.d.ts +1 -1
  188. package/Charting3D/Visuals/createMaster3d.js +11 -6
  189. package/Charting3D/Visuals/createSingle3d.d.ts +1 -1
  190. package/Charting3D/Visuals/createSingle3d.js +2 -2
  191. package/Core/BuildStamp.d.ts +1 -1
  192. package/Core/BuildStamp.js +2 -2
  193. package/Core/NumberRange.d.ts +1 -0
  194. package/Core/NumberRange.js +8 -0
  195. package/Core/OneTimePerformanceWarning.d.ts +6 -0
  196. package/Core/OneTimePerformanceWarning.js +19 -0
  197. package/Core/storage/localStorageApi.d.ts +9 -0
  198. package/Core/storage/localStorageApi.js +32 -0
  199. package/_wasm/scichart.browser.js +1 -1
  200. package/_wasm/scichart2d.js +12 -12
  201. package/_wasm/scichart2d.wasm +0 -0
  202. package/_wasm/scichart3d.js +96 -96
  203. package/_wasm/scichart3d.wasm +0 -0
  204. package/constants/performanceWarnings.d.ts +5 -0
  205. package/constants/performanceWarnings.js +8 -0
  206. package/package.json +1 -1
  207. package/types/NumberArray.d.ts +1 -0
  208. package/types/NumberArray.js +5 -1
  209. package/types/SearchMode.d.ts +21 -0
  210. package/types/SearchMode.js +25 -0
  211. package/types/TSciChart.d.ts +143 -40
  212. package/types/TSciChart3D.d.ts +66 -28
  213. package/types/TStackedAxisLength.d.ts +4 -0
  214. package/types/TStackedAxisLength.js +4 -0
  215. package/utils/array.d.ts +7 -0
  216. package/utils/array.js +19 -1
  217. package/utils/calcAverage.d.ts +2 -2
  218. package/utils/ccall/appendDoubleVectorFromJsArray.d.ts +19 -0
  219. package/utils/ccall/appendDoubleVectorFromJsArray.js +91 -0
  220. package/utils/hash.d.ts +7 -0
  221. package/utils/hash.js +35 -0
  222. package/utils/ccall/fillDoubleVectorFromJsArray.d.ts +0 -3
  223. package/utils/ccall/fillDoubleVectorFromJsArray.js +0 -33
@@ -0,0 +1,11 @@
1
+ import { SCRTDoubleVector } from "../../../types/TSciChart";
2
+ import { OhlcDataSeries } from "../OhlcDataSeries";
3
+ import { BasePointSeriesWrapped } from "./BasePointSeriesWrapped";
4
+ import { IOhlcPointSeries } from "./IPointSeries";
5
+ export declare class OhlcPointSeriesWrapped extends BasePointSeriesWrapped implements IOhlcPointSeries {
6
+ readonly openValues: SCRTDoubleVector;
7
+ readonly highValues: SCRTDoubleVector;
8
+ readonly lowValues: SCRTDoubleVector;
9
+ readonly closeValues: SCRTDoubleVector;
10
+ constructor(dataSeries: OhlcDataSeries);
11
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.OhlcPointSeriesWrapped = void 0;
19
+ var BasePointSeriesWrapped_1 = require("./BasePointSeriesWrapped");
20
+ var OhlcPointSeriesWrapped = /** @class */ (function (_super) {
21
+ __extends(OhlcPointSeriesWrapped, _super);
22
+ function OhlcPointSeriesWrapped(dataSeries) {
23
+ var _this = _super.call(this, dataSeries) || this;
24
+ _this.openValues = dataSeries.getNativeOpenValues();
25
+ _this.highValues = dataSeries.getNativeHighValues();
26
+ _this.lowValues = dataSeries.getNativeLowValues();
27
+ _this.closeValues = _this.yValues;
28
+ return _this;
29
+ }
30
+ return OhlcPointSeriesWrapped;
31
+ }(BasePointSeriesWrapped_1.BasePointSeriesWrapped));
32
+ exports.OhlcPointSeriesWrapped = OhlcPointSeriesWrapped;
@@ -0,0 +1,7 @@
1
+ import { NumberRange } from "../../../Core/NumberRange";
2
+ import { TSciChart } from "../../../types/TSciChart";
3
+ import { BasePointSeriesResampled } from "./BasePointSeriesResampled";
4
+ import { IXyPointSeries } from "./IPointSeries";
5
+ export declare class XyPointSeriesResampled extends BasePointSeriesResampled implements IXyPointSeries {
6
+ constructor(wasmContext: TSciChart, xRange: NumberRange);
7
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.XyPointSeriesResampled = void 0;
19
+ var BasePointSeriesResampled_1 = require("./BasePointSeriesResampled");
20
+ var XyPointSeriesResampled = /** @class */ (function (_super) {
21
+ __extends(XyPointSeriesResampled, _super);
22
+ function XyPointSeriesResampled(wasmContext, xRange) {
23
+ return _super.call(this, wasmContext, xRange) || this;
24
+ }
25
+ return XyPointSeriesResampled;
26
+ }(BasePointSeriesResampled_1.BasePointSeriesResampled));
27
+ exports.XyPointSeriesResampled = XyPointSeriesResampled;
@@ -0,0 +1,6 @@
1
+ import { IDataSeries } from "../IDataSeries";
2
+ import { BasePointSeriesWrapped } from "./BasePointSeriesWrapped";
3
+ import { IXyPointSeries } from "./IPointSeries";
4
+ export declare class XyPointSeriesWrapped extends BasePointSeriesWrapped implements IXyPointSeries {
5
+ constructor(dataSeries: IDataSeries);
6
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.XyPointSeriesWrapped = void 0;
19
+ var BasePointSeriesWrapped_1 = require("./BasePointSeriesWrapped");
20
+ var XyPointSeriesWrapped = /** @class */ (function (_super) {
21
+ __extends(XyPointSeriesWrapped, _super);
22
+ function XyPointSeriesWrapped(dataSeries) {
23
+ return _super.call(this, dataSeries) || this;
24
+ }
25
+ return XyPointSeriesWrapped;
26
+ }(BasePointSeriesWrapped_1.BasePointSeriesWrapped));
27
+ exports.XyPointSeriesWrapped = XyPointSeriesWrapped;
@@ -0,0 +1,10 @@
1
+ import { NumberRange } from "../../../Core/NumberRange";
2
+ import { SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
3
+ import { BasePointSeriesResampled } from "./BasePointSeriesResampled";
4
+ import { IXyyPointSeries } from "./IPointSeries";
5
+ export declare class XyyPointSeriesResampled extends BasePointSeriesResampled implements IXyyPointSeries {
6
+ readonly y1Values: SCRTDoubleVector;
7
+ constructor(wasmContext: TSciChart, xRange: NumberRange);
8
+ delete(): void;
9
+ debugOutputForUnitTests(): void;
10
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.XyyPointSeriesResampled = void 0;
19
+ var BasePointSeriesResampled_1 = require("./BasePointSeriesResampled");
20
+ var XyyPointSeriesResampled = /** @class */ (function (_super) {
21
+ __extends(XyyPointSeriesResampled, _super);
22
+ function XyyPointSeriesResampled(wasmContext, xRange) {
23
+ var _this = _super.call(this, wasmContext, xRange) || this;
24
+ _this.y1Values = new wasmContext.SCRTDoubleVector();
25
+ return _this;
26
+ }
27
+ XyyPointSeriesResampled.prototype.delete = function () {
28
+ _super.prototype.delete.call(this);
29
+ this.y1Values.delete();
30
+ };
31
+ XyyPointSeriesResampled.prototype.debugOutputForUnitTests = function () {
32
+ console.log("points count ".concat(this.count));
33
+ console.log("xResampled at min", this.xValues.get(0));
34
+ console.log("yValues at min", this.yValues.get(0));
35
+ console.log("y1Values at min", this.y1Values.get(0));
36
+ var middle = Math.round(this.count / 2);
37
+ console.log("middle", middle);
38
+ console.log("xResampled at middle", this.xValues.get(middle));
39
+ console.log("yValues at middle", this.yValues.get(middle));
40
+ console.log("y1Values at middle", this.y1Values.get(middle));
41
+ var end = this.count - 1;
42
+ console.log("xResampled at end", this.xValues.get(end));
43
+ console.log("yValues at end", this.yValues.get(end));
44
+ console.log("y1Values at end", this.y1Values.get(end));
45
+ };
46
+ return XyyPointSeriesResampled;
47
+ }(BasePointSeriesResampled_1.BasePointSeriesResampled));
48
+ exports.XyyPointSeriesResampled = XyyPointSeriesResampled;
@@ -0,0 +1,8 @@
1
+ import { SCRTDoubleVector } from "../../../types/TSciChart";
2
+ import { XyyDataSeries } from "../XyyDataSeries";
3
+ import { BasePointSeriesWrapped } from "./BasePointSeriesWrapped";
4
+ import { IXyyPointSeries } from "./IPointSeries";
5
+ export declare class XyyPointSeriesWrapped extends BasePointSeriesWrapped implements IXyyPointSeries {
6
+ readonly y1Values: SCRTDoubleVector;
7
+ constructor(dataSeries: XyyDataSeries);
8
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.XyyPointSeriesWrapped = void 0;
19
+ var BasePointSeriesWrapped_1 = require("./BasePointSeriesWrapped");
20
+ var XyyPointSeriesWrapped = /** @class */ (function (_super) {
21
+ __extends(XyyPointSeriesWrapped, _super);
22
+ function XyyPointSeriesWrapped(dataSeries) {
23
+ var _this = _super.call(this, dataSeries) || this;
24
+ _this.y1Values = dataSeries.getNativeY1Values();
25
+ return _this;
26
+ }
27
+ return XyyPointSeriesWrapped;
28
+ }(BasePointSeriesWrapped_1.BasePointSeriesWrapped));
29
+ exports.XyyPointSeriesWrapped = XyyPointSeriesWrapped;
@@ -0,0 +1,8 @@
1
+ import { SCRTDoubleVector } from "../../../types/TSciChart";
2
+ import { XyzDataSeries } from "../XyzDataSeries";
3
+ import { BasePointSeriesWrapped } from "./BasePointSeriesWrapped";
4
+ import { IXyzPointSeries } from "./IPointSeries";
5
+ export declare class XyzPointSeriesWrapped extends BasePointSeriesWrapped implements IXyzPointSeries {
6
+ readonly zValues: SCRTDoubleVector;
7
+ constructor(dataSeries: XyzDataSeries);
8
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.XyzPointSeriesWrapped = void 0;
19
+ var BasePointSeriesWrapped_1 = require("./BasePointSeriesWrapped");
20
+ var XyzPointSeriesWrapped = /** @class */ (function (_super) {
21
+ __extends(XyzPointSeriesWrapped, _super);
22
+ function XyzPointSeriesWrapped(dataSeries) {
23
+ var _this = _super.call(this, dataSeries) || this;
24
+ _this.zValues = dataSeries.getNativeZValues();
25
+ return _this;
26
+ }
27
+ return XyzPointSeriesWrapped;
28
+ }(BasePointSeriesWrapped_1.BasePointSeriesWrapped));
29
+ exports.XyzPointSeriesWrapped = XyzPointSeriesWrapped;
@@ -90,6 +90,7 @@ export declare class XyDataSeries extends BaseDataSeries {
90
90
  * @param index The index to update
91
91
  * @param x The new X value
92
92
  * @param y The new Y value
93
+ * @param metadata The point metadata
93
94
  */
94
95
  updateXy(index: number, x: number, y: number, metadata?: IPointMetadata): void;
95
96
  /**
@@ -99,8 +100,8 @@ export declare class XyDataSeries extends BaseDataSeries {
99
100
  *
100
101
  * Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
101
102
  * @param startIndex the index to insert at
102
- * @param x the Xvalue
103
- * @param y the Yvalue
103
+ * @param x the X value
104
+ * @param y the Y value
104
105
  * @param metadata The point metadata
105
106
  */
106
107
  insert(startIndex: number, x: number, y: number, metadata?: IPointMetadata): void;
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.XyDataSeries = void 0;
19
19
  var Guard_1 = require("../../Core/Guard");
20
20
  var NumberArray_1 = require("../../types/NumberArray");
21
- var fillDoubleVectorFromJsArray_1 = require("../../utils/ccall/fillDoubleVectorFromJsArray");
21
+ var appendDoubleVectorFromJsArray_1 = require("../../utils/ccall/appendDoubleVectorFromJsArray");
22
22
  var BaseDataSeries_1 = require("./BaseDataSeries");
23
23
  var IDataSeries_1 = require("./IDataSeries");
24
24
  /**
@@ -79,9 +79,11 @@ var XyDataSeries = /** @class */ (function (_super) {
79
79
  */
80
80
  XyDataSeries.prototype.append = function (x, y, metadata) {
81
81
  if (!this.getIsDeleted()) {
82
+ var nativeX = this.getNativeXValues();
83
+ this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, [x], [y]);
82
84
  // Push metadata should be done before push x values
83
85
  this.appendMetadata(metadata);
84
- this.getNativeXValues().push_back(x);
86
+ nativeX.push_back(x);
85
87
  this.getNativeYValues().push_back(y);
86
88
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, 1);
87
89
  }
@@ -98,26 +100,22 @@ var XyDataSeries = /** @class */ (function (_super) {
98
100
  */
99
101
  XyDataSeries.prototype.appendRange = function (xValues, yValues, metadata) {
100
102
  if (!this.getIsDeleted()) {
101
- Guard_1.Guard.isTrue(Array.isArray(xValues) || (0, NumberArray_1.isTypedArray)(xValues), "xValues must be an array of numbers");
102
- Guard_1.Guard.isTrue(Array.isArray(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
103
+ Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(xValues) || (0, NumberArray_1.isTypedArray)(xValues), "xValues must be an array of numbers");
104
+ Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
103
105
  Guard_1.Guard.arraysSameLength(xValues, "xValues", yValues, "yValues");
104
106
  if (metadata) {
105
107
  Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
106
108
  Guard_1.Guard.arraysSameLength(xValues, "xValues", metadata, "metadata");
107
109
  }
108
- // Push metadata should be done before push x values
109
- this.appendMetadataRange(metadata, xValues.length);
110
110
  var nativeX = this.getNativeXValues();
111
111
  var nativeY = this.getNativeYValues();
112
- // Old implementation with copying each element
113
- // for (let i = 0; i < xValues.length; i++) {
114
- // nativeX.push_back(xValues[i]);
115
- // nativeY.push_back(yValues[i]);
116
- // }
112
+ this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, xValues, yValues);
113
+ // Push metadata should be done before push x values
114
+ this.appendMetadataRange(metadata, xValues.length);
117
115
  // New implementation passing array from JS
118
116
  // TODO: create indexValues from c++
119
- (0, fillDoubleVectorFromJsArray_1.fillDoubleVectorFromJsArray)(this.webAssemblyContext, nativeX, xValues);
120
- (0, fillDoubleVectorFromJsArray_1.fillDoubleVectorFromJsArray)(this.webAssemblyContext, nativeY, yValues);
117
+ (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeX, xValues);
118
+ (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeY, yValues);
121
119
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
122
120
  }
123
121
  };
@@ -131,6 +129,7 @@ var XyDataSeries = /** @class */ (function (_super) {
131
129
  XyDataSeries.prototype.update = function (index, y, metadata) {
132
130
  if (!this.getIsDeleted()) {
133
131
  this.validateIndex(index);
132
+ this.dataDistributionCalculator.onUpdate(this.isSorted, this.containsNaN, undefined, undefined, [y], index);
134
133
  this.getNativeYValues().set(index, y);
135
134
  this.setMetadataAt(index, metadata);
136
135
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update, index, 1);
@@ -142,10 +141,14 @@ var XyDataSeries = /** @class */ (function (_super) {
142
141
  * @param index The index to update
143
142
  * @param x The new X value
144
143
  * @param y The new Y value
144
+ * @param metadata The point metadata
145
145
  */
146
146
  XyDataSeries.prototype.updateXy = function (index, x, y, metadata) {
147
147
  if (!this.getIsDeleted()) {
148
- this.getNativeXValues().set(index, x);
148
+ this.validateIndex(index);
149
+ var nativeX = this.getNativeXValues();
150
+ this.dataDistributionCalculator.onUpdate(this.isSorted, this.containsNaN, nativeX, [x], [y], index);
151
+ nativeX.set(index, x);
149
152
  this.getNativeYValues().set(index, y);
150
153
  this.setMetadataAt(index, metadata);
151
154
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update, index, 1);
@@ -158,8 +161,8 @@ var XyDataSeries = /** @class */ (function (_super) {
158
161
  *
159
162
  * Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
160
163
  * @param startIndex the index to insert at
161
- * @param x the Xvalue
162
- * @param y the Yvalue
164
+ * @param x the X value
165
+ * @param y the Y value
163
166
  * @param metadata The point metadata
164
167
  */
165
168
  XyDataSeries.prototype.insert = function (startIndex, x, y, metadata) {
@@ -167,6 +170,7 @@ var XyDataSeries = /** @class */ (function (_super) {
167
170
  this.validateIndex(startIndex, "Start index is out of range");
168
171
  var nativeX = this.getNativeXValues();
169
172
  var nativeY = this.getNativeYValues();
173
+ this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, [x], [y], startIndex);
170
174
  nativeX.insertAt(startIndex, x);
171
175
  nativeY.insertAt(startIndex, y);
172
176
  this.insertMetadata(startIndex, metadata);
@@ -184,22 +188,18 @@ var XyDataSeries = /** @class */ (function (_super) {
184
188
  */
185
189
  XyDataSeries.prototype.insertRange = function (startIndex, xValues, yValues, metadata) {
186
190
  if (!this.getIsDeleted()) {
187
- Guard_1.Guard.isTrue(Array.isArray(xValues) || (0, NumberArray_1.isTypedArray)(xValues), "xValues must be an array of numbers");
188
- Guard_1.Guard.isTrue(Array.isArray(yValues) || (0, NumberArray_1.isTypedArray)(xValues), "yValues must be an array of numbers");
191
+ Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(xValues) || (0, NumberArray_1.isTypedArray)(xValues), "xValues must be an array of numbers");
192
+ Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
189
193
  this.validateIndex(startIndex, "Start index is out of range");
190
194
  Guard_1.Guard.arraysSameLength(xValues, "xValues", yValues, "yValues");
191
195
  if (metadata) {
192
196
  Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
193
197
  Guard_1.Guard.arraysSameLength(xValues, "xValues", metadata, "metadata");
194
198
  }
195
- var rangeLength = xValues.length;
196
199
  var nativeX = this.getNativeXValues();
197
- var nativeY = this.getNativeYValues();
198
- var tempStartIndex = startIndex;
199
- for (var i = 0; i < rangeLength; i++, tempStartIndex++) {
200
- nativeX.insertAt(tempStartIndex, xValues[i]);
201
- nativeY.insertAt(tempStartIndex, yValues[i]);
202
- }
200
+ this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, xValues, yValues, startIndex);
201
+ (0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, xValues, this.getNativeXValues(), startIndex);
202
+ (0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, yValues, this.getNativeYValues(), startIndex);
203
203
  this.insertMetadataRange(startIndex, metadata);
204
204
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Insert, startIndex, xValues.length);
205
205
  }
@@ -243,7 +243,7 @@ var XyDataSeries = /** @class */ (function (_super) {
243
243
  */
244
244
  XyDataSeries.prototype.clear = function () {
245
245
  if (!this.getIsDeleted()) {
246
- this.getNativeIndexes().clear();
246
+ _super.prototype.clear.call(this);
247
247
  this.getNativeXValues().clear();
248
248
  this.getNativeYValues().clear();
249
249
  this.setMetadata(undefined);
@@ -1,6 +1,6 @@
1
1
  import { NumberRange } from "../../Core/NumberRange";
2
2
  import { NumberArray } from "../../types/NumberArray";
3
- import { DoubleVector, TSciChart } from "../../types/TSciChart";
3
+ import { SCRTDoubleVector, TSciChart } from "../../types/TSciChart";
4
4
  import { SeriesAnimation } from "../Visuals/RenderableSeries/Animations/SeriesAnimation";
5
5
  import { BaseDataSeries, IBaseDataSeriesOptions } from "./BaseDataSeries";
6
6
  import { EDataSeriesType, EDataSeriesValueType } from "./IDataSeries";
@@ -41,12 +41,12 @@ export declare class XyyDataSeries extends BaseDataSeries {
41
41
  /**
42
42
  * Y1 vector with initial animation values
43
43
  */
44
- y1InitialAnimationValues: DoubleVector;
44
+ y1InitialAnimationValues: SCRTDoubleVector;
45
45
  /**
46
46
  * Y1 vector with final animation values
47
47
  */
48
- y1FinalAnimationValues: DoubleVector;
49
- protected y1Values: DoubleVector;
48
+ y1FinalAnimationValues: SCRTDoubleVector;
49
+ protected y1Values: SCRTDoubleVector;
50
50
  /**
51
51
  * Creates an instance of {@link XyyDataSeries}
52
52
  * @param webAssemblyContext the {@link TSciChart | SciChart WebAssembly Context} containing native methods
@@ -57,7 +57,7 @@ export declare class XyyDataSeries extends BaseDataSeries {
57
57
  /**
58
58
  * Gets a native / WebAssembly vector of Y2-values in the DataSeries
59
59
  */
60
- getNativeY1Values(): DoubleVector;
60
+ getNativeY1Values(): SCRTDoubleVector;
61
61
  /**
62
62
  * Appends a single X, Y, Y1 point to the DataSeries
63
63
  * @remarks
@@ -20,7 +20,7 @@ var Deleter_1 = require("../../Core/Deleter");
20
20
  var Guard_1 = require("../../Core/Guard");
21
21
  var NumberRange_1 = require("../../Core/NumberRange");
22
22
  var NumberArray_1 = require("../../types/NumberArray");
23
- var fillDoubleVectorFromJsArray_1 = require("../../utils/ccall/fillDoubleVectorFromJsArray");
23
+ var appendDoubleVectorFromJsArray_1 = require("../../utils/ccall/appendDoubleVectorFromJsArray");
24
24
  var animationHelpers_1 = require("../Visuals/RenderableSeries/Animations/animationHelpers");
25
25
  var BaseDataSeries_1 = require("./BaseDataSeries");
26
26
  var IDataSeries_1 = require("./IDataSeries");
@@ -49,9 +49,9 @@ var XyyDataSeries = /** @class */ (function (_super) {
49
49
  var _this = _super.call(this, webAssemblyContext, options) || this;
50
50
  /** @inheritDoc */
51
51
  _this.type = IDataSeries_1.EDataSeriesType.Xyy;
52
- _this.y1Values = new webAssemblyContext.DoubleVector();
53
- _this.y1InitialAnimationValues = new webAssemblyContext.DoubleVector();
54
- _this.y1FinalAnimationValues = new webAssemblyContext.DoubleVector();
52
+ _this.y1Values = new webAssemblyContext.SCRTDoubleVector();
53
+ _this.y1InitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
54
+ _this.y1FinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
55
55
  if (options === null || options === void 0 ? void 0 : options.xValues) {
56
56
  Guard_1.Guard.notNull(options.yValues, "options.yValues");
57
57
  Guard_1.Guard.notNull(options.y1Values, "options.y1Values");
@@ -78,9 +78,11 @@ var XyyDataSeries = /** @class */ (function (_super) {
78
78
  */
79
79
  XyyDataSeries.prototype.append = function (x, y, y1, metadata) {
80
80
  if (!this.getIsDeleted()) {
81
+ var nativeX = this.getNativeXValues();
82
+ this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, [x], [y]);
81
83
  // Push metadata should be done before push x values
82
84
  this.appendMetadata(metadata);
83
- this.getNativeXValues().push_back(x);
85
+ nativeX.push_back(x);
84
86
  this.getNativeYValues().push_back(y);
85
87
  this.getNativeY1Values().push_back(y1);
86
88
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, 1);
@@ -99,9 +101,9 @@ var XyyDataSeries = /** @class */ (function (_super) {
99
101
  */
100
102
  XyyDataSeries.prototype.appendRange = function (xValues, yValues, y1Values, metadata) {
101
103
  if (!this.getIsDeleted()) {
102
- Guard_1.Guard.isTrue(Array.isArray(xValues) || (0, NumberArray_1.isTypedArray)(xValues), "xValues must be an array of numbers");
103
- Guard_1.Guard.isTrue(Array.isArray(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
104
- Guard_1.Guard.isTrue(Array.isArray(y1Values) || (0, NumberArray_1.isTypedArray)(y1Values), "y1Values must be an array of numbers");
104
+ Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(xValues) || (0, NumberArray_1.isTypedArray)(xValues), "xValues must be an array of numbers");
105
+ Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
106
+ Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(y1Values) || (0, NumberArray_1.isTypedArray)(y1Values), "y1Values must be an array of numbers");
105
107
  Guard_1.Guard.arraysSameLengthArr([
106
108
  { arg: xValues, name: "xValues" },
107
109
  { arg: yValues, name: "yValues" },
@@ -111,11 +113,12 @@ var XyyDataSeries = /** @class */ (function (_super) {
111
113
  Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
112
114
  Guard_1.Guard.arraysSameLength(xValues, "xValues", metadata, "metadata");
113
115
  }
114
- // Push metadata should be done before push x values
115
- this.appendMetadataRange(metadata, xValues.length);
116
116
  var nativeX = this.getNativeXValues();
117
117
  var nativeY = this.getNativeYValues();
118
118
  var nativeY1 = this.getNativeY1Values();
119
+ this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, xValues, yValues);
120
+ // Push metadata should be done before push x values
121
+ this.appendMetadataRange(metadata, xValues.length);
119
122
  // Old implementation with copying each element
120
123
  // for (let i = 0; i < xValues.length; i++) {
121
124
  // nativeX.push_back(xValues[i]);
@@ -123,9 +126,9 @@ var XyyDataSeries = /** @class */ (function (_super) {
123
126
  // nativeY1.push_back(y1Values[i]);
124
127
  // }
125
128
  // New implementation passing array from JS
126
- (0, fillDoubleVectorFromJsArray_1.fillDoubleVectorFromJsArray)(this.webAssemblyContext, nativeX, xValues);
127
- (0, fillDoubleVectorFromJsArray_1.fillDoubleVectorFromJsArray)(this.webAssemblyContext, nativeY, yValues);
128
- (0, fillDoubleVectorFromJsArray_1.fillDoubleVectorFromJsArray)(this.webAssemblyContext, nativeY1, y1Values);
129
+ (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeX, xValues);
130
+ (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeY, yValues);
131
+ (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeY1, y1Values);
129
132
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
130
133
  }
131
134
  };
@@ -140,6 +143,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
140
143
  XyyDataSeries.prototype.update = function (index, y, y1, metadata) {
141
144
  if (!this.getIsDeleted()) {
142
145
  this.validateIndex(index);
146
+ this.dataDistributionCalculator.onUpdate(this.isSorted, this.containsNaN, undefined, undefined, [y], index);
143
147
  this.getNativeYValues().set(index, y);
144
148
  this.getNativeY1Values().set(index, y1);
145
149
  this.setMetadataAt(index, metadata);
@@ -157,7 +161,10 @@ var XyyDataSeries = /** @class */ (function (_super) {
157
161
  */
158
162
  XyyDataSeries.prototype.updateXyy1 = function (index, x, y, y1, metadata) {
159
163
  if (!this.getIsDeleted()) {
160
- this.getNativeXValues().set(index, x);
164
+ this.validateIndex(index);
165
+ var nativeX = this.getNativeXValues();
166
+ this.dataDistributionCalculator.onUpdate(this.isSorted, this.containsNaN, nativeX, [x], [y], index);
167
+ nativeX.set(index, x);
161
168
  this.getNativeYValues().set(index, y);
162
169
  this.getNativeY1Values().set(index, y1);
163
170
  this.setMetadataAt(index, metadata);
@@ -182,6 +189,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
182
189
  var nativeX = this.getNativeXValues();
183
190
  var nativeY = this.getNativeYValues();
184
191
  var nativeY1 = this.getNativeY1Values();
192
+ this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, [x], [y], startIndex);
185
193
  nativeX.insertAt(startIndex, x);
186
194
  nativeY.insertAt(startIndex, y);
187
195
  nativeY1.insertAt(startIndex, y1);
@@ -201,9 +209,9 @@ var XyyDataSeries = /** @class */ (function (_super) {
201
209
  */
202
210
  XyyDataSeries.prototype.insertRange = function (startIndex, xValues, yValues, y1Values, metadata) {
203
211
  if (!this.getIsDeleted()) {
204
- Guard_1.Guard.isTrue(Array.isArray(xValues) || (0, NumberArray_1.isTypedArray)(xValues), "xValues must be an array of numbers");
205
- Guard_1.Guard.isTrue(Array.isArray(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
206
- Guard_1.Guard.isTrue(Array.isArray(y1Values) || (0, NumberArray_1.isTypedArray)(y1Values), "y1Values must be an array of numbers");
212
+ Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(xValues) || (0, NumberArray_1.isTypedArray)(xValues), "xValues must be an array of numbers");
213
+ Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
214
+ Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(y1Values) || (0, NumberArray_1.isTypedArray)(y1Values), "y1Values must be an array of numbers");
207
215
  this.validateIndex(startIndex, "Start index is out of range");
208
216
  Guard_1.Guard.arraysSameLengthArr([
209
217
  { arg: xValues, name: "xValues" },
@@ -214,16 +222,11 @@ var XyyDataSeries = /** @class */ (function (_super) {
214
222
  Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
215
223
  Guard_1.Guard.arraysSameLength(xValues, "xValues", metadata, "metadata");
216
224
  }
217
- var rangeLength = xValues.length;
218
225
  var nativeX = this.getNativeXValues();
219
- var nativeY = this.getNativeYValues();
220
- var nativeY1 = this.getNativeY1Values();
221
- var tempStartIndex = startIndex;
222
- for (var i = 0; i < rangeLength; i++, tempStartIndex++) {
223
- nativeX.insertAt(tempStartIndex, xValues[i]);
224
- nativeY.insertAt(tempStartIndex, yValues[i]);
225
- nativeY1.insertAt(tempStartIndex, y1Values[i]);
226
- }
226
+ this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, xValues, yValues, startIndex);
227
+ (0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, xValues, nativeX, startIndex);
228
+ (0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, yValues, this.getNativeYValues(), startIndex);
229
+ (0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, y1Values, this.getNativeY1Values(), startIndex);
227
230
  this.insertMetadataRange(startIndex, metadata);
228
231
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Insert, startIndex, xValues.length);
229
232
  }
@@ -269,7 +272,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
269
272
  */
270
273
  XyyDataSeries.prototype.clear = function () {
271
274
  if (!this.getIsDeleted()) {
272
- this.getNativeIndexes().clear();
275
+ _super.prototype.clear.call(this);
273
276
  this.getNativeXValues().clear();
274
277
  this.getNativeYValues().clear();
275
278
  this.getNativeY1Values().clear();
@@ -1,5 +1,5 @@
1
1
  import { NumberArray } from "../../types/NumberArray";
2
- import { DoubleVector, TSciChart } from "../../types/TSciChart";
2
+ import { SCRTDoubleVector, TSciChart } from "../../types/TSciChart";
3
3
  import { SeriesAnimation } from "../Visuals/RenderableSeries/Animations/SeriesAnimation";
4
4
  import { BaseDataSeries, IBaseDataSeriesOptions } from "./BaseDataSeries";
5
5
  import { EDataSeriesType } from "./IDataSeries";
@@ -40,12 +40,12 @@ export declare class XyzDataSeries extends BaseDataSeries {
40
40
  /**
41
41
  * Z vector with initial animation values
42
42
  */
43
- zInitialAnimationValues: DoubleVector;
43
+ zInitialAnimationValues: SCRTDoubleVector;
44
44
  /**
45
45
  * Z vector with final animation values
46
46
  */
47
- zFinalAnimationValues: DoubleVector;
48
- protected zValues: DoubleVector;
47
+ zFinalAnimationValues: SCRTDoubleVector;
48
+ protected zValues: SCRTDoubleVector;
49
49
  /**
50
50
  * Creates an instance of {@link XyzDataSeries}
51
51
  * @param webAssemblyContext the {@link TSciChart | SciChart WebAssembly Context} containing native methods
@@ -56,7 +56,7 @@ export declare class XyzDataSeries extends BaseDataSeries {
56
56
  /**
57
57
  * Gets a native / WebAssembly vector of Z-values in the DataSeries
58
58
  */
59
- getNativeZValues(): DoubleVector;
59
+ getNativeZValues(): SCRTDoubleVector;
60
60
  /**
61
61
  * Appends a single X, Y, Z point to the DataSeries
62
62
  * @remarks