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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/Builder/buildAxis.d.ts +3 -3
  2. package/Builder/buildDataSeries.d.ts +44 -4
  3. package/Builder/buildDataSeries.js +66 -0
  4. package/Builder/buildSeries.d.ts +1 -1
  5. package/Builder/buildSeries.js +1 -2
  6. package/Builder/buildSurface.d.ts +14 -6
  7. package/Builder/buildSurface.js +13 -8
  8. package/Builder/chartBuilder.d.ts +12 -6
  9. package/Builder/chartBuilder.js +6 -6
  10. package/Charting/ChartModifiers/LegendModifier.d.ts +4 -0
  11. package/Charting/ChartModifiers/LegendModifier.js +2 -1
  12. package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +14 -6
  13. package/Charting/ChartModifiers/SeriesSelectionModifier.js +10 -10
  14. package/Charting/ChartModifiers/ZoomExtentsModifier.d.ts +13 -0
  15. package/Charting/ChartModifiers/ZoomExtentsModifier.js +16 -4
  16. package/Charting/Drawing/BrushCache.js +6 -8
  17. package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -0
  18. package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +1 -0
  19. package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +1 -0
  20. package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -0
  21. package/Charting/Model/BaseDataSeries.d.ts +61 -53
  22. package/Charting/Model/BaseDataSeries.js +145 -81
  23. package/Charting/Model/BaseHeatmapDataSeries.d.ts +2 -2
  24. package/Charting/Model/DataPointSelectionPaletteProvider.d.ts +6 -4
  25. package/Charting/Model/DataPointSelectionPaletteProvider.js +10 -1
  26. package/Charting/Model/Filters/OhlcScaleOffsetFilter.d.ts +106 -0
  27. package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +21 -0
  28. package/Charting/Model/Filters/XyLinearTrendFilter.d.ts +112 -1
  29. package/Charting/Model/Filters/XyLinearTrendFilter.js +21 -0
  30. package/Charting/Model/Filters/XyMovingAverageFilter.d.ts +110 -1
  31. package/Charting/Model/Filters/XyMovingAverageFilter.js +21 -0
  32. package/Charting/Model/Filters/XyRatioFilter.d.ts +111 -2
  33. package/Charting/Model/Filters/XyRatioFilter.js +34 -3
  34. package/Charting/Model/Filters/XyScaleOffsetFilter.d.ts +112 -1
  35. package/Charting/Model/Filters/XyScaleOffsetFilter.js +21 -0
  36. package/Charting/Model/Filters/XyyScaleOffsetFilter.d.ts +116 -0
  37. package/Charting/Model/Filters/XyyScaleOffsetFilter.js +21 -0
  38. package/Charting/Model/Filters/XyzScaleOffsetFilter.d.ts +116 -0
  39. package/Charting/Model/Filters/XyzScaleOffsetFilter.js +21 -0
  40. package/Charting/Model/IDataSeries.d.ts +18 -3
  41. package/Charting/Model/IDataSeries.js +12 -1
  42. package/Charting/Model/IPaletteProvider.d.ts +8 -8
  43. package/Charting/Model/OhlcDataSeries.d.ts +39 -10
  44. package/Charting/Model/OhlcDataSeries.js +106 -19
  45. package/Charting/Model/UniformHeatmapDataSeries.d.ts +2 -2
  46. package/Charting/Model/XyyDataSeries.d.ts +21 -12
  47. package/Charting/Model/XyyDataSeries.js +70 -16
  48. package/Charting/Model/XyzDataSeries.d.ts +20 -5
  49. package/Charting/Model/XyzDataSeries.js +62 -6
  50. package/Charting/Services/SciChartRenderer.js +3 -1
  51. package/Charting/Visuals/Annotations/AnnotationBase.js +5 -9
  52. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +0 -3
  53. package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +0 -3
  54. package/Charting/Visuals/Annotations/LineAnnotation.js +0 -3
  55. package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +0 -3
  56. package/Charting/Visuals/Axis/AxisBase2D.d.ts +20 -0
  57. package/Charting/Visuals/Axis/AxisBase2D.js +57 -5
  58. package/Charting/Visuals/Axis/AxisCore.js +16 -13
  59. package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +13 -0
  60. package/Charting/Visuals/Axis/constants.d.ts +2 -1
  61. package/Charting/Visuals/Axis/constants.js +1 -0
  62. package/Charting/Visuals/Legend/SciChartLegend.js +1 -1
  63. package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +11 -0
  64. package/Charting/Visuals/Legend/SciChartLegendBase.js +45 -17
  65. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +9 -2
  66. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +65 -4
  67. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +0 -11
  68. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +0 -29
  69. package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +1 -1
  70. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +0 -37
  71. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +0 -120
  72. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +4 -24
  73. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +44 -72
  74. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +2 -1
  75. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +6 -6
  76. package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.d.ts +0 -6
  77. package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +0 -42
  78. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -17
  79. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -71
  80. package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +1 -1
  81. package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +12 -4
  82. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +3 -0
  83. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +10 -32
  84. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -0
  85. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +11 -21
  86. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +3 -0
  87. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +10 -21
  88. package/Charting/Visuals/SciChartOverview.d.ts +1 -1
  89. package/Charting/Visuals/SciChartOverview.js +1 -1
  90. package/Charting/Visuals/SciChartSurface.d.ts +2 -2
  91. package/Charting/Visuals/SciChartSurface.js +4 -4
  92. package/Charting/Visuals/SciChartSurfaceBase.d.ts +2 -3
  93. package/Charting/Visuals/SciChartSurfaceBase.js +2 -6
  94. package/Charting/Visuals/TextureManager/DpiHelper.js +2 -1
  95. package/Charting/Visuals/TextureManager/TextureManager.js +3 -2
  96. package/Charting3D/Visuals/SciChart3DSurface.d.ts +1 -1
  97. package/Charting3D/Visuals/SciChart3DSurface.js +1 -1
  98. package/_wasm/scichart.browser.js +1 -1
  99. package/_wasm/scichart2d.js +95 -95
  100. package/_wasm/scichart2d.wasm +0 -0
  101. package/_wasm/scichart3d.js +1 -1
  102. package/_wasm/scichart3d.wasm +0 -0
  103. package/package.json +1 -1
  104. package/types/BaseType.d.ts +3 -1
  105. package/types/BaseType.js +2 -0
  106. package/types/DataFilterType.d.ts +9 -0
  107. package/types/DataFilterType.js +13 -0
  108. package/types/SeriesType.d.ts +17 -17
  109. package/types/SeriesType.js +17 -17
  110. package/utils/font.d.ts +8 -0
  111. package/utils/font.js +15 -0
@@ -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,13 +266,50 @@ 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);
@@ -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;
@@ -121,7 +121,9 @@ var SciChartRenderer = /** @class */ (function () {
121
121
  }
122
122
  a.showWarning = false;
123
123
  }
124
- a.drawWithContext(renderContext, xAxis.getCurrentCoordinateCalculator(), yAxis.getCurrentCoordinateCalculator(), seriesViewRect);
124
+ if (!a.isHidden) {
125
+ a.drawWithContext(renderContext, xAxis.getCurrentCoordinateCalculator(), yAxis.getCurrentCoordinateCalculator(), seriesViewRect);
126
+ }
125
127
  }
126
128
  });
127
129
  };
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AnnotationBase = exports.ECoordinateMode = exports.EDraggingGripPoint = void 0;
4
+ var classFactory_1 = require("../../../Builder/classFactory");
4
5
  var EventHandler_1 = require("../../../Core/EventHandler");
5
6
  var Guard_1 = require("../../../Core/Guard");
6
7
  var Point_1 = require("../../../Core/Point");
8
+ var BaseType_1 = require("../../../types/BaseType");
7
9
  var XyDirection_1 = require("../../../types/XyDirection");
8
10
  var guid_1 = require("../../../utils/guid");
9
11
  var translate_1 = require("../../../utils/translate");
@@ -98,33 +100,27 @@ var AnnotationBase = /** @class */ (function () {
98
100
  if (options === null || options === void 0 ? void 0 : options.onDragStarted) {
99
101
  if (typeof options.onDragStarted === "string") {
100
102
  this.typeMap.set("onDragStarted", options.onDragStarted);
101
- // @ts-ignore
102
- this.dragStarted.subscribe(getFunction(EBaseType.OptionFunction, options.onDragStarted));
103
+ this.dragStarted.subscribe(classFactory_1.getFunction(BaseType_1.EBaseType.OptionFunction, options.onDragStarted));
103
104
  }
104
105
  else {
105
- // @ts-ignore
106
106
  this.dragStarted.subscribe(options.onDragStarted);
107
107
  }
108
108
  }
109
109
  if (options === null || options === void 0 ? void 0 : options.onDragEnded) {
110
110
  if (typeof options.onDragEnded === "string") {
111
111
  this.typeMap.set("onDragEnded", options.onDragEnded);
112
- // @ts-ignore
113
- this.dragEnded.subscribe(getFunction(EBaseType.OptionFunction, options.onDragEnded));
112
+ this.dragEnded.subscribe(classFactory_1.getFunction(BaseType_1.EBaseType.OptionFunction, options.onDragEnded));
114
113
  }
115
114
  else {
116
- // @ts-ignore
117
115
  this.dragEnded.subscribe(options.onDragEnded);
118
116
  }
119
117
  }
120
118
  if (options === null || options === void 0 ? void 0 : options.onDrag) {
121
119
  if (typeof options.onDrag === "string") {
122
120
  this.typeMap.set("onDrag", options.onDrag);
123
- // @ts-ignore
124
- this.dragDelta.subscribe(getFunction(EBaseType.OptionFunction, options.onDrag));
121
+ this.dragDelta.subscribe(classFactory_1.getFunction(BaseType_1.EBaseType.OptionFunction, options.onDrag));
125
122
  }
126
123
  else {
127
- // @ts-ignore
128
124
  this.dragDelta.subscribe(options.onDrag);
129
125
  }
130
126
  }
@@ -299,9 +299,6 @@ var AxisMarkerAnnotation = /** @class */ (function (_super) {
299
299
  });
300
300
  /** @inheritDoc */
301
301
  AxisMarkerAnnotation.prototype.drawWithContext = function (renderContext, xCalc, yCalc, viewRect) {
302
- if (this.isHidden) {
303
- return;
304
- }
305
302
  Guard_1.Guard.notNull(renderContext, "renderContext");
306
303
  Guard_1.Guard.notNull(xCalc, "xCalc");
307
304
  Guard_1.Guard.notNull(yCalc, "yCalc");
@@ -96,9 +96,6 @@ var HorizontalLineAnnotation = /** @class */ (function (_super) {
96
96
  });
97
97
  /** @inheritDoc */
98
98
  HorizontalLineAnnotation.prototype.drawWithContext = function (renderContext, xCalc, yCalc, viewRect) {
99
- if (this.isHidden) {
100
- return;
101
- }
102
99
  Guard_1.Guard.notNull(renderContext, "renderContext");
103
100
  Guard_1.Guard.notNull(xCalc, "xCalc");
104
101
  Guard_1.Guard.notNull(yCalc, "yCalc");
@@ -267,9 +267,6 @@ var LineAnnotation = /** @class */ (function (_super) {
267
267
  /** @inheritDoc */
268
268
  LineAnnotation.prototype.drawWithContext = function (renderContext, xCalc, yCalc, viewRect) {
269
269
  var _this = this;
270
- if (this.isHidden) {
271
- return;
272
- }
273
270
  Guard_1.Guard.notNull(renderContext, "renderContext");
274
271
  Guard_1.Guard.notNull(xCalc, "xCalc");
275
272
  Guard_1.Guard.notNull(yCalc, "yCalc");