scichart 2.0.2127 → 2.0.2146

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 (89) hide show
  1. package/Builder/buildSeries.d.ts +1 -1
  2. package/Charting/ChartModifiers/LegendModifier.js +1 -0
  3. package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +7 -2
  4. package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +18 -2
  5. package/Charting/ChartModifiers/RolloverModifier.d.ts +6 -0
  6. package/Charting/ChartModifiers/RolloverModifier.js +49 -15
  7. package/Charting/Model/BaseDataSeries.d.ts +2 -2
  8. package/Charting/Model/OhlcDataSeries.d.ts +2 -2
  9. package/Charting/Model/XyyDataSeries.d.ts +2 -2
  10. package/Charting/Model/XyzDataSeries.d.ts +2 -2
  11. package/Charting/Services/SciChartRenderer.d.ts +1 -0
  12. package/Charting/Services/SciChartRenderer.js +22 -6
  13. package/Charting/Visuals/Axis/AxisBase2D.d.ts +75 -52
  14. package/Charting/Visuals/Axis/AxisBase2D.js +53 -34
  15. package/Charting/Visuals/Axis/AxisCore.d.ts +7 -4
  16. package/Charting/Visuals/Axis/AxisCore.js +21 -5
  17. package/Charting/Visuals/Axis/AxisRenderer.d.ts +5 -0
  18. package/Charting/Visuals/Axis/AxisRenderer.js +58 -71
  19. package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +1 -3
  20. package/Charting/Visuals/Axis/LogarithmicAxis.js +4 -11
  21. package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.d.ts +2 -2
  22. package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +2 -2
  23. package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.d.ts +2 -2
  24. package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +2 -2
  25. package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.d.ts +1 -1
  26. package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.d.ts +2 -2
  27. package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +2 -2
  28. package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.d.ts +2 -2
  29. package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +2 -2
  30. package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.d.ts +2 -2
  31. package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +2 -2
  32. package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.d.ts +2 -2
  33. package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +2 -2
  34. package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.d.ts +2 -2
  35. package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +2 -2
  36. package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +2 -2
  37. package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +2 -2
  38. package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.d.ts +2 -2
  39. package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +2 -2
  40. package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.d.ts → SeriesAnimation.d.ts} +3 -2
  41. package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.js → SeriesAnimation.js} +13 -13
  42. package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.d.ts +2 -2
  43. package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.js +2 -2
  44. package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +2 -2
  45. package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +2 -2
  46. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +8 -8
  47. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +9 -9
  48. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +3 -3
  49. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +7 -7
  50. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +1 -1
  51. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +7 -7
  52. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +1 -1
  53. package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +2 -2
  54. package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +3 -3
  55. package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.d.ts +5 -0
  56. package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.js +29 -5
  57. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +4 -4
  58. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -4
  59. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +4 -4
  60. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.d.ts +1 -0
  61. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +1 -0
  62. package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +1 -0
  63. package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +1 -0
  64. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +1 -0
  65. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +1 -0
  66. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
  67. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +1 -0
  68. package/Charting/Visuals/SciChartOverview.d.ts +5 -2
  69. package/Charting/Visuals/SciChartOverview.js +24 -15
  70. package/Charting/Visuals/SciChartSurface.d.ts +13 -0
  71. package/Charting/Visuals/SciChartSurface.js +38 -3
  72. package/Charting3D/Visuals/SciChart3DRenderer.js +1 -0
  73. package/Core/Animations/AnimationFiniteStateMachine.d.ts +27 -14
  74. package/Core/Animations/AnimationFiniteStateMachine.js +48 -15
  75. package/Core/Animations/Animator.d.ts +1 -9
  76. package/Core/Animations/Animator.js +1 -9
  77. package/Core/Animations/DoubleAnimator.d.ts +2 -8
  78. package/Core/Animations/DoubleAnimator.js +1 -7
  79. package/Core/Animations/GenericAnimation.d.ts +74 -0
  80. package/Core/Animations/GenericAnimation.js +74 -0
  81. package/Core/Animations/NumberRangeAnimator.d.ts +4 -3
  82. package/Core/Animations/NumberRangeAnimator.js +23 -3
  83. package/Core/NumberRange.js +6 -7
  84. package/_wasm/scichart.browser.js +1 -1
  85. package/_wasm/scichart2d.js +1 -1
  86. package/_wasm/scichart2d.wasm +0 -0
  87. package/_wasm/scichart3d.js +1 -1
  88. package/_wasm/scichart3d.wasm +0 -0
  89. package/package.json +2 -2
@@ -1,13 +1,13 @@
1
1
  import { EAnimationType } from "../../../../types/AnimationType";
2
2
  import { XyDataSeries } from "../../../Model/XyDataSeries";
3
3
  import { BaseMountainRenderableSeries } from "../BaseMountainRenderableSeries";
4
- import { BaseAnimation, IBaseAnimationOptions } from "./BaseAnimation";
4
+ import { SeriesAnimation, IBaseAnimationOptions } from "./SeriesAnimation";
5
5
  import { IMountainAnimationStyleOptions, MountainAnimationStyle } from "./MountainAnimationStyle";
6
6
  export interface IMountainAnimationOptions extends IBaseAnimationOptions {
7
7
  styles?: IMountainAnimationStyleOptions;
8
8
  dataSeries?: XyDataSeries;
9
9
  }
10
- export declare class MountainAnimation extends BaseAnimation {
10
+ export declare class MountainAnimation extends SeriesAnimation {
11
11
  /** @inheritDoc */
12
12
  readonly type = EAnimationType.Style;
13
13
  /** @inheritDoc */
@@ -17,7 +17,7 @@ exports.MountainAnimation = void 0;
17
17
  var AnimationType_1 = require("../../../../types/AnimationType");
18
18
  var parseColor_1 = require("../../../../utils/parseColor");
19
19
  var animationHelpers_1 = require("./animationHelpers");
20
- var BaseAnimation_1 = require("./BaseAnimation");
20
+ var SeriesAnimation_1 = require("./SeriesAnimation");
21
21
  var MountainAnimationStyle_1 = require("./MountainAnimationStyle");
22
22
  var PointMarkerStyle_1 = require("./PointMarkerStyle");
23
23
  var MountainAnimation = /** @class */ (function (_super) {
@@ -62,5 +62,5 @@ var MountainAnimation = /** @class */ (function (_super) {
62
62
  }
63
63
  };
64
64
  return MountainAnimation;
65
- }(BaseAnimation_1.BaseAnimation));
65
+ }(SeriesAnimation_1.SeriesAnimation));
66
66
  exports.MountainAnimation = MountainAnimation;
@@ -1,13 +1,13 @@
1
1
  import { EAnimationType } from "../../../../types/AnimationType";
2
2
  import { OhlcDataSeries } from "../../../Model/OhlcDataSeries";
3
3
  import { BaseOhlcRenderableSeries } from "../BaseOhlcRenderableSeries";
4
- import { BaseAnimation, IBaseAnimationOptions } from "./BaseAnimation";
4
+ import { SeriesAnimation, IBaseAnimationOptions } from "./SeriesAnimation";
5
5
  import { IOhlcAnimationStyleOptions, OhlcAnimationStyle } from "./OhlcAnimationStyle";
6
6
  export interface IOhlcAnimationOptions extends IBaseAnimationOptions {
7
7
  styles?: IOhlcAnimationStyleOptions;
8
8
  dataSeries?: OhlcDataSeries;
9
9
  }
10
- export declare class OhlcAnimation extends BaseAnimation {
10
+ export declare class OhlcAnimation extends SeriesAnimation {
11
11
  /** @inheritDoc */
12
12
  readonly type = EAnimationType.Style;
13
13
  /** @inheritDoc */
@@ -17,7 +17,7 @@ exports.OhlcAnimation = void 0;
17
17
  var AnimationType_1 = require("../../../../types/AnimationType");
18
18
  var parseColor_1 = require("../../../../utils/parseColor");
19
19
  var animationHelpers_1 = require("./animationHelpers");
20
- var BaseAnimation_1 = require("./BaseAnimation");
20
+ var SeriesAnimation_1 = require("./SeriesAnimation");
21
21
  var OhlcAnimationStyle_1 = require("./OhlcAnimationStyle");
22
22
  var OhlcAnimation = /** @class */ (function (_super) {
23
23
  __extends(OhlcAnimation, _super);
@@ -67,5 +67,5 @@ var OhlcAnimation = /** @class */ (function (_super) {
67
67
  }
68
68
  };
69
69
  return OhlcAnimation;
70
- }(BaseAnimation_1.BaseAnimation));
70
+ }(SeriesAnimation_1.SeriesAnimation));
71
71
  exports.OhlcAnimation = OhlcAnimation;
@@ -1,10 +1,10 @@
1
1
  import { EAnimationType } from "../../../../types/AnimationType";
2
2
  import { DoubleVector, TSciChart } from "../../../../types/TSciChart";
3
- import { BaseAnimation, IBaseAnimationOptions } from "./BaseAnimation";
3
+ import { SeriesAnimation, IBaseAnimationOptions } from "./SeriesAnimation";
4
4
  export interface IScaleAnimationOptions extends IBaseAnimationOptions {
5
5
  zeroLine?: number;
6
6
  }
7
- export declare class ScaleAnimation extends BaseAnimation {
7
+ export declare class ScaleAnimation extends SeriesAnimation {
8
8
  /** @inheritDoc */
9
9
  readonly type = EAnimationType.Scale;
10
10
  /**
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ScaleAnimation = void 0;
17
17
  var AnimationType_1 = require("../../../../types/AnimationType");
18
- var BaseAnimation_1 = require("./BaseAnimation");
18
+ var SeriesAnimation_1 = require("./SeriesAnimation");
19
19
  var ScaleAnimation = /** @class */ (function (_super) {
20
20
  __extends(ScaleAnimation, _super);
21
21
  function ScaleAnimation(options) {
@@ -46,5 +46,5 @@ var ScaleAnimation = /** @class */ (function (_super) {
46
46
  return json;
47
47
  };
48
48
  return ScaleAnimation;
49
- }(BaseAnimation_1.BaseAnimation));
49
+ }(SeriesAnimation_1.SeriesAnimation));
50
50
  exports.ScaleAnimation = ScaleAnimation;
@@ -1,12 +1,12 @@
1
1
  import { EAnimationType } from "../../../../types/AnimationType";
2
2
  import { XyDataSeries } from "../../../Model/XyDataSeries";
3
- import { BaseAnimation, IBaseAnimationOptions } from "./BaseAnimation";
3
+ import { SeriesAnimation, IBaseAnimationOptions } from "./SeriesAnimation";
4
4
  import { IBaseAnimationStyleOptions } from "./BaseAnimationStyle";
5
5
  export interface IScatterAnimationOptions extends IBaseAnimationOptions {
6
6
  styles?: IBaseAnimationStyleOptions;
7
7
  dataSeries?: XyDataSeries;
8
8
  }
9
- export declare class ScatterAnimation extends BaseAnimation {
9
+ export declare class ScatterAnimation extends SeriesAnimation {
10
10
  /** @inheritDoc */
11
11
  readonly type = EAnimationType.Style;
12
12
  /** @inheritDoc */
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ScatterAnimation = void 0;
17
17
  var AnimationType_1 = require("../../../../types/AnimationType");
18
- var BaseAnimation_1 = require("./BaseAnimation");
18
+ var SeriesAnimation_1 = require("./SeriesAnimation");
19
19
  var BaseAnimationStyle_1 = require("./BaseAnimationStyle");
20
20
  var ScatterAnimation = /** @class */ (function (_super) {
21
21
  __extends(ScatterAnimation, _super);
@@ -30,5 +30,5 @@ var ScatterAnimation = /** @class */ (function (_super) {
30
30
  return _this;
31
31
  }
32
32
  return ScatterAnimation;
33
- }(BaseAnimation_1.BaseAnimation));
33
+ }(SeriesAnimation_1.SeriesAnimation));
34
34
  exports.ScatterAnimation = ScatterAnimation;
@@ -1,3 +1,4 @@
1
+ import { IAnimation } from "../../../../Core/Animations/AnimationFiniteStateMachine";
1
2
  import { TEasingFn } from "../../../../Core/Animations/EasingFunctions";
2
3
  import { EAnimationType } from "../../../../types/AnimationType";
3
4
  import { DoubleVector, TSciChart } from "../../../../types/TSciChart";
@@ -11,12 +12,12 @@ export interface IBaseAnimationOptions {
11
12
  ease?: TEasingFn | string;
12
13
  }
13
14
  /**
14
- * @summary Defines the base class for Animations in SciChart's High Performance Real-time
15
+ * @summary Defines the base class for Renderable Series Animations in SciChart's High Performance Real-time
15
16
  * {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
16
17
  * @remarks
17
18
  * An Animation defines the animation that should take place on the start up e.g. as a Wave, Sweep, Fade animation etc...
18
19
  */
19
- export declare abstract class BaseAnimation {
20
+ export declare abstract class SeriesAnimation implements IAnimation {
20
21
  /**
21
22
  * Returns the type of the animation. See {@link EAnimationType} for a list of values
22
23
  */
@@ -1,19 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseAnimation = void 0;
3
+ exports.SeriesAnimation = void 0;
4
4
  var EasingFunctions_1 = require("../../../../Core/Animations/EasingFunctions");
5
5
  var parseColor_1 = require("../../../../utils/parseColor");
6
6
  var animationHelpers_1 = require("./animationHelpers");
7
7
  var BaseAnimationStyle_1 = require("./BaseAnimationStyle");
8
8
  var PointMarkerStyle_1 = require("./PointMarkerStyle");
9
9
  /**
10
- * @summary Defines the base class for Animations in SciChart's High Performance Real-time
10
+ * @summary Defines the base class for Renderable Series Animations in SciChart's High Performance Real-time
11
11
  * {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
12
12
  * @remarks
13
13
  * An Animation defines the animation that should take place on the start up e.g. as a Wave, Sweep, Fade animation etc...
14
14
  */
15
- var BaseAnimation = /** @class */ (function () {
16
- function BaseAnimation(options) {
15
+ var SeriesAnimation = /** @class */ (function () {
16
+ function SeriesAnimation(options) {
17
17
  var _a, _b, _c, _d;
18
18
  /**
19
19
  * The animation delay
@@ -44,7 +44,7 @@ var BaseAnimation = /** @class */ (function () {
44
44
  this.ease = (_d = options === null || options === void 0 ? void 0 : options.ease) !== null && _d !== void 0 ? _d : this.ease;
45
45
  }
46
46
  /** Convert the object to a definition that can be serialized to JSON, or used directly with the builder api */
47
- BaseAnimation.prototype.toJSON = function () {
47
+ SeriesAnimation.prototype.toJSON = function () {
48
48
  var options = {
49
49
  delay: this.delay,
50
50
  duration: this.duration,
@@ -61,7 +61,7 @@ var BaseAnimation = /** @class */ (function () {
61
61
  * @param progress Current animation progress
62
62
  * @param noZeroLine Sets zeroLine = 0, is used for XyzDataSeries
63
63
  */
64
- BaseAnimation.prototype.calculateAnimationValues = function (wasmContext, originalValues, animationValues, progress, noZeroLine) {
64
+ SeriesAnimation.prototype.calculateAnimationValues = function (wasmContext, originalValues, animationValues, progress, noZeroLine) {
65
65
  if (noZeroLine === void 0) { noZeroLine = false; }
66
66
  // TODO: override in child class
67
67
  };
@@ -73,7 +73,7 @@ var BaseAnimation = /** @class */ (function () {
73
73
  * @param interpolatedValues The vector which will be updated with interpolated values
74
74
  * @param progress Current animation progress
75
75
  */
76
- BaseAnimation.prototype.calculateDataSeriesAnimationValues = function (wasmContext, initialValues, finalValues, interpolatedValues, progress) {
76
+ SeriesAnimation.prototype.calculateDataSeriesAnimationValues = function (wasmContext, initialValues, finalValues, interpolatedValues, progress) {
77
77
  var size = initialValues.size();
78
78
  if (size !== finalValues.size()) {
79
79
  throw new Error("DoubleVectors with initialValues and initialValues must have the same length");
@@ -87,7 +87,7 @@ var BaseAnimation = /** @class */ (function () {
87
87
  * Returns {@link BaseAnimationStyle} object which is being used to create initial styles
88
88
  * @param renderableSeries The renderable series
89
89
  */
90
- BaseAnimation.prototype.getSeriesStyle = function (renderableSeries) {
90
+ SeriesAnimation.prototype.getSeriesStyle = function (renderableSeries) {
91
91
  var _a, _b;
92
92
  var rs = renderableSeries;
93
93
  if (rs.isStacked)
@@ -105,7 +105,7 @@ var BaseAnimation = /** @class */ (function () {
105
105
  * @param initialStyles The initial styles
106
106
  * @param animationProgress The animation progress, should be between 0 and 1
107
107
  */
108
- BaseAnimation.prototype.updateSeriesProperties = function (renderableSeries, initialStyles, animationProgress) {
108
+ SeriesAnimation.prototype.updateSeriesProperties = function (renderableSeries, initialStyles, animationProgress) {
109
109
  var _a, _b, _c, _d, _e;
110
110
  var rs = renderableSeries;
111
111
  var pointMarker = rs.pointMarker;
@@ -151,7 +151,7 @@ var BaseAnimation = /** @class */ (function () {
151
151
  }
152
152
  }
153
153
  };
154
- Object.defineProperty(BaseAnimation.prototype, "isStyleAnimation", {
154
+ Object.defineProperty(SeriesAnimation.prototype, "isStyleAnimation", {
155
155
  /**
156
156
  * Return flag if it is styles animation
157
157
  */
@@ -161,7 +161,7 @@ var BaseAnimation = /** @class */ (function () {
161
161
  enumerable: false,
162
162
  configurable: true
163
163
  });
164
- Object.defineProperty(BaseAnimation.prototype, "isDataSeriesAnimation", {
164
+ Object.defineProperty(SeriesAnimation.prototype, "isDataSeriesAnimation", {
165
165
  /**
166
166
  * Return flag if it is dataSeries animation
167
167
  */
@@ -171,6 +171,6 @@ var BaseAnimation = /** @class */ (function () {
171
171
  enumerable: false,
172
172
  configurable: true
173
173
  });
174
- return BaseAnimation;
174
+ return SeriesAnimation;
175
175
  }());
176
- exports.BaseAnimation = BaseAnimation;
176
+ exports.SeriesAnimation = SeriesAnimation;
@@ -1,9 +1,9 @@
1
1
  import { EAnimationType } from "../../../../types/AnimationType";
2
2
  import { DoubleVector, TSciChart } from "../../../../types/TSciChart";
3
- import { BaseAnimation, IBaseAnimationOptions } from "./BaseAnimation";
3
+ import { SeriesAnimation, IBaseAnimationOptions } from "./SeriesAnimation";
4
4
  export interface ISweepAnimationOptions extends IBaseAnimationOptions {
5
5
  }
6
- export declare class SweepAnimation extends BaseAnimation {
6
+ export declare class SweepAnimation extends SeriesAnimation {
7
7
  /** @inheritDoc */
8
8
  readonly type = EAnimationType.Sweep;
9
9
  constructor(options?: ISweepAnimationOptions);
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.SweepAnimation = void 0;
17
17
  var AnimationType_1 = require("../../../../types/AnimationType");
18
- var BaseAnimation_1 = require("./BaseAnimation");
18
+ var SeriesAnimation_1 = require("./SeriesAnimation");
19
19
  var SweepAnimation = /** @class */ (function (_super) {
20
20
  __extends(SweepAnimation, _super);
21
21
  function SweepAnimation(options) {
@@ -31,5 +31,5 @@ var SweepAnimation = /** @class */ (function (_super) {
31
31
  wasmContext.SCRTAnimationHelperSweep(originalValues, progress, animationValues);
32
32
  };
33
33
  return SweepAnimation;
34
- }(BaseAnimation_1.BaseAnimation));
34
+ }(SeriesAnimation_1.SeriesAnimation));
35
35
  exports.SweepAnimation = SweepAnimation;
@@ -1,11 +1,11 @@
1
1
  import { EAnimationType } from "../../../../types/AnimationType";
2
2
  import { DoubleVector, TSciChart } from "../../../../types/TSciChart";
3
- import { BaseAnimation, IBaseAnimationOptions } from "./BaseAnimation";
3
+ import { SeriesAnimation, IBaseAnimationOptions } from "./SeriesAnimation";
4
4
  export interface IWaveAnimationOptions extends IBaseAnimationOptions {
5
5
  pointDurationFraction?: number;
6
6
  zeroLine?: number;
7
7
  }
8
- export declare class WaveAnimation extends BaseAnimation {
8
+ export declare class WaveAnimation extends SeriesAnimation {
9
9
  /** @inheritDoc */
10
10
  readonly type = EAnimationType.Wave;
11
11
  /**
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.WaveAnimation = void 0;
17
17
  var AnimationType_1 = require("../../../../types/AnimationType");
18
- var BaseAnimation_1 = require("./BaseAnimation");
18
+ var SeriesAnimation_1 = require("./SeriesAnimation");
19
19
  var WaveAnimation = /** @class */ (function (_super) {
20
20
  __extends(WaveAnimation, _super);
21
21
  function WaveAnimation(options) {
@@ -53,5 +53,5 @@ var WaveAnimation = /** @class */ (function (_super) {
53
53
  return json;
54
54
  };
55
55
  return WaveAnimation;
56
- }(BaseAnimation_1.BaseAnimation));
56
+ }(SeriesAnimation_1.SeriesAnimation));
57
57
  exports.WaveAnimation = WaveAnimation;
@@ -1,4 +1,4 @@
1
- import { AnimationFiniteStateMachine } from "../../../../Core/Animations/AnimationFiniteStateMachine";
1
+ import { AnimationFiniteStateMachine, IAnimation, SeriesAnimationFiniteStateMachine } from "../../../../Core/Animations/AnimationFiniteStateMachine";
2
2
  import { DoubleVector, TSciChart } from "../../../../types/TSciChart";
3
3
  import { BaseDataSeries } from "../../../Model/BaseDataSeries";
4
4
  import { XyyDataSeries } from "../../../Model/XyyDataSeries";
@@ -8,18 +8,18 @@ import { SpritePointMarker } from "../../PointMarkers/SpritePointMarker";
8
8
  import { SquarePointMarker } from "../../PointMarkers/SquarePointMarker";
9
9
  import { TrianglePointMarker } from "../../PointMarkers/TrianglePointMarker";
10
10
  import { XPointMarker } from "../../PointMarkers/XPointMarker";
11
- import { BaseAnimation } from "./BaseAnimation";
12
11
  import { BasePointMarkerStyle } from "./BasePointMarkerStyle";
12
+ import { SeriesAnimation } from "./SeriesAnimation";
13
13
  export declare const animationHelpers: {
14
14
  checkCanDraw: (animationFSM: AnimationFiniteStateMachine) => boolean;
15
- checkIsAnimationRunning: (animationQueue: BaseAnimation[], animationFSM: AnimationFiniteStateMachine) => boolean;
16
- animationUpdate: (animationFSM: AnimationFiniteStateMachine, timeElapsed: number, beforeAnimationStart: () => void, afterAnimationComplete: () => void, updateAnimationProperties: (progress: number, animationFSM: AnimationFiniteStateMachine) => void) => void;
15
+ checkIsAnimationRunning: (animationQueue: IAnimation[], animationFSM: AnimationFiniteStateMachine) => boolean;
16
+ animationUpdate: (animationFSM: SeriesAnimationFiniteStateMachine, timeElapsed: number, beforeAnimationStart: () => void, afterAnimationComplete: () => void, updateAnimationProperties: (progress: number, animationFSM: SeriesAnimationFiniteStateMachine) => void) => void;
17
17
  createPointMarker: (wasmContext: TSciChart, pointMarkerStyle: BasePointMarkerStyle) => SpritePointMarker | CrossPointMarker | EllipsePointMarker | XPointMarker | SquarePointMarker | TrianglePointMarker;
18
18
  interpolateNumber: (from: number, to: number, progress: number) => number;
19
19
  interpolateColor: (from: number, to: number, progress: number) => number;
20
20
  copyVector: (sourceVector: DoubleVector, targetVector: DoubleVector) => void;
21
- setSplineAnimationVectors: (wasmContext: TSciChart, animation: BaseAnimation, ds: BaseDataSeries, animationDS: BaseDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector, isCategoryAxis: boolean, interpolationPoints: number) => void;
22
- setSplineBandAnimationVectors: (wasmContext: TSciChart, animation: BaseAnimation, ds: XyyDataSeries, animationDS: XyyDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector, y1SplineValues: DoubleVector, isCategoryAxis: boolean, interpolationPoints: number) => void;
23
- updateSplineAnimationProperties: (wasmContext: TSciChart, animation: BaseAnimation, progress: number, dataSeries: BaseDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector) => void;
24
- updateSplineBandAnimationProperties: (wasmContext: TSciChart, animation: BaseAnimation, progress: number, dataSeries: XyyDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector, y1SplineValues: DoubleVector) => void;
21
+ setSplineAnimationVectors: (wasmContext: TSciChart, animation: SeriesAnimation, ds: BaseDataSeries, animationDS: BaseDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector, isCategoryAxis: boolean, interpolationPoints: number) => void;
22
+ setSplineBandAnimationVectors: (wasmContext: TSciChart, animation: SeriesAnimation, ds: XyyDataSeries, animationDS: XyyDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector, y1SplineValues: DoubleVector, isCategoryAxis: boolean, interpolationPoints: number) => void;
23
+ updateSplineAnimationProperties: (wasmContext: TSciChart, animation: SeriesAnimation, progress: number, dataSeries: BaseDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector) => void;
24
+ updateSplineBandAnimationProperties: (wasmContext: TSciChart, animation: SeriesAnimation, progress: number, dataSeries: XyyDataSeries, xSplineValues: DoubleVector, ySplineValues: DoubleVector, y1SplineValues: DoubleVector) => void;
25
25
  };
@@ -1,5 +1,5 @@
1
1
  import { TSeriesDefinition } from "../../../Builder/buildSeries";
2
- import { AnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
2
+ import { SeriesAnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
3
3
  import { EventHandler } from "../../../Core/EventHandler";
4
4
  import { NumberRange } from "../../../Core/NumberRange";
5
5
  import { ESeriesType } from "../../../types/SeriesType";
@@ -15,7 +15,7 @@ import { AxisCore } from "../Axis/AxisCore";
15
15
  import { IPointMarker } from "../PointMarkers/IPointMarker";
16
16
  import { SciChartSurface } from "../SciChartSurface";
17
17
  import { TDpiChangedEventArgs } from "../TextureManager/DpiHelper";
18
- import { BaseAnimation } from "./Animations/BaseAnimation";
18
+ import { SeriesAnimation } from "./Animations/SeriesAnimation";
19
19
  import { TPalettingState } from "./DrawingProviders/BaseSeriesDrawingProvider";
20
20
  import { ISeriesDrawingProvider } from "./DrawingProviders/ISeriesDrawingProvider";
21
21
  import { HitTestInfo } from "./HitTest/HitTestInfo";
@@ -61,8 +61,8 @@ export declare abstract class BaseRenderableSeries implements IRenderableSeries
61
61
  hovered: EventHandler<SeriesHoveredArgs>;
62
62
  protected webAssemblyContext: TSciChart;
63
63
  protected dataSeriesProperty: IDataSeries;
64
- protected animationFSM: AnimationFiniteStateMachine;
65
- protected animationQueue: BaseAnimation[];
64
+ protected animationFSM: SeriesAnimationFiniteStateMachine;
65
+ protected animationQueue: SeriesAnimation[];
66
66
  protected typeMap: Map<string, string>;
67
67
  private xAxisIdProperty;
68
68
  private yAxisIdProperty;
@@ -207,13 +207,13 @@ export declare abstract class BaseRenderableSeries implements IRenderableSeries
207
207
  /** @inheritDoc */
208
208
  toJSON(excludeData?: boolean): TSeriesDefinition;
209
209
  /** @inheritDoc */
210
- enqueueAnimation(animation: BaseAnimation): void;
210
+ enqueueAnimation(animation: SeriesAnimation): void;
211
211
  /** @inheritDoc */
212
- runAnimation(animation: BaseAnimation): void;
212
+ runAnimation(animation: SeriesAnimation): void;
213
213
  /**
214
214
  * Sets a start up animation class, a child class for {@link BaseAnimation}
215
215
  */
216
- set animation(value: BaseAnimation);
216
+ set animation(value: SeriesAnimation);
217
217
  /** @inheritDoc */
218
218
  get isRunningAnimation(): boolean;
219
219
  /**
@@ -227,7 +227,7 @@ export declare abstract class BaseRenderableSeries implements IRenderableSeries
227
227
  * @param animation
228
228
  * @protected
229
229
  */
230
- protected setAnimationVectors(animation: BaseAnimation): void;
230
+ protected setAnimationVectors(animation: SeriesAnimation): void;
231
231
  /**
232
232
  * Runs before the animation starts
233
233
  * @protected
@@ -244,7 +244,7 @@ export declare abstract class BaseRenderableSeries implements IRenderableSeries
244
244
  * @param animationFSM The animation finite state machine
245
245
  * @protected
246
246
  */
247
- protected updateAnimationProperties(progress: number, animationFSM: AnimationFiniteStateMachine): void;
247
+ protected updateAnimationProperties(progress: number, animationFSM: SeriesAnimationFiniteStateMachine): void;
248
248
  /**
249
249
  * Factory function to create a {@link IHitTestProvider | Hit Test Provider}; a class which performs hit-test
250
250
  * and checks mouse-over and nearest point.
@@ -47,9 +47,9 @@ var BaseRenderableSeries = /** @class */ (function () {
47
47
  /** @inheritDoc */
48
48
  this.isStacked = false;
49
49
  /** @inheritDoc */
50
- this.rolloverModifierProps = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps();
50
+ this.rolloverModifierProps = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps(this);
51
51
  /** @inheritDoc */
52
- this.rolloverModifierProps1 = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps();
52
+ this.rolloverModifierProps1 = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps(this, true);
53
53
  /** @inheritDoc */
54
54
  this.drawingProviders = [];
55
55
  /** @inheritDoc */
@@ -667,7 +667,7 @@ var BaseRenderableSeries = /** @class */ (function () {
667
667
  if (!this.animationFSM || ((_a = this.animationFSM) === null || _a === void 0 ? void 0 : _a.is([AnimationFiniteStateMachine_1.EAnimationState.Completed]))) {
668
668
  if (this.animationQueue.length >= 1) {
669
669
  var animation = this.animationQueue.shift();
670
- this.animationFSM = new AnimationFiniteStateMachine_1.AnimationFiniteStateMachine(animation, this);
670
+ this.animationFSM = new AnimationFiniteStateMachine_1.SeriesAnimationFiniteStateMachine(animation, this);
671
671
  }
672
672
  else {
673
673
  this.animationFSM = undefined;
@@ -1,5 +1,5 @@
1
1
  import { TSeriesDefinition } from "../../../Builder/buildSeries";
2
- import { AnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
2
+ import { SeriesAnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
3
3
  import { EventHandler } from "../../../Core/EventHandler";
4
4
  import { NumberRange } from "../../../Core/NumberRange";
5
5
  import { ObservableArray } from "../../../Core/ObservableArray";
@@ -15,7 +15,7 @@ import { AxisCore } from "../Axis/AxisCore";
15
15
  import { IPointMarker } from "../PointMarkers/IPointMarker";
16
16
  import { SciChartSurface } from "../SciChartSurface";
17
17
  import { TDpiChangedEventArgs } from "../TextureManager/DpiHelper";
18
- import { BaseAnimation } from "./Animations/BaseAnimation";
18
+ import { SeriesAnimation } from "./Animations/SeriesAnimation";
19
19
  import { BaseStackedRenderableSeries } from "./BaseStackedRenderableSeries";
20
20
  import { TPalettingState } from "./DrawingProviders/BaseSeriesDrawingProvider";
21
21
  import { ISeriesDrawingProvider } from "./DrawingProviders/ISeriesDrawingProvider";
@@ -72,7 +72,7 @@ export declare abstract class BaseStackedCollection<T extends BaseStackedRendera
72
72
  protected accumulatedFinalAnimationValues0: DoubleVector;
73
73
  protected isAccumulatedVectorDirty: boolean;
74
74
  protected firstAnimationRender: boolean;
75
- protected animationFSM: AnimationFiniteStateMachine;
75
+ protected animationFSM: SeriesAnimationFiniteStateMachine;
76
76
  private isVisibleProperty;
77
77
  private xAxisIdProperty;
78
78
  private yAxisIdProperty;
@@ -272,13 +272,13 @@ export declare abstract class BaseStackedCollection<T extends BaseStackedRendera
272
272
  */
273
273
  getVisibleSeries(): T[];
274
274
  /** @inheritDoc */
275
- enqueueAnimation(animation: BaseAnimation): void;
275
+ enqueueAnimation(animation: SeriesAnimation): void;
276
276
  /** @inheritDoc */
277
- runAnimation(animation: BaseAnimation): void;
277
+ runAnimation(animation: SeriesAnimation): void;
278
278
  /**
279
279
  * Sets a start up animation class, a child class for {@link BaseAnimation}
280
280
  */
281
- set animation(value: BaseAnimation);
281
+ set animation(value: SeriesAnimation);
282
282
  /** @inheritDoc */
283
283
  get isRunningAnimation(): boolean;
284
284
  /** @inheritDoc */
@@ -320,7 +320,7 @@ export declare abstract class BaseStackedCollection<T extends BaseStackedRendera
320
320
  * @param animationFSM The animation finite state machine
321
321
  * @protected
322
322
  */
323
- protected updateAnimationProperties(progress: number, animationFSM: AnimationFiniteStateMachine): void;
323
+ protected updateAnimationProperties(progress: number, animationFSM: SeriesAnimationFiniteStateMachine): void;
324
324
  protected updateHitTestProviders(renderPassData: RenderPassData): void;
325
325
  protected isEnoughDataToDraw(): boolean;
326
326
  }
@@ -540,7 +540,7 @@ var BaseStackedCollection = /** @class */ (function (_super) {
540
540
  if (!this.animationFSM || ((_a = this.animationFSM) === null || _a === void 0 ? void 0 : _a.is([AnimationFiniteStateMachine_1.EAnimationState.Completed]))) {
541
541
  if (this.animationQueue.length >= 1) {
542
542
  var animation = this.animationQueue.shift();
543
- this.animationFSM = new AnimationFiniteStateMachine_1.AnimationFiniteStateMachine(animation, undefined);
543
+ this.animationFSM = new AnimationFiniteStateMachine_1.SeriesAnimationFiniteStateMachine(animation, undefined);
544
544
  }
545
545
  else {
546
546
  this.animationFSM = undefined;
@@ -1,5 +1,5 @@
1
1
  import { TSeriesDefinition } from "../../../Builder/buildSeries";
2
- import { AnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
2
+ import { SeriesAnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
3
3
  import { EventHandler } from "../../../Core/EventHandler";
4
4
  import { NumberRange } from "../../../Core/NumberRange";
5
5
  import { ESeriesType } from "../../../types/SeriesType";
@@ -14,7 +14,7 @@ import { AxisCore } from "../Axis/AxisCore";
14
14
  import { IPointMarker } from "../PointMarkers/IPointMarker";
15
15
  import { SciChartSurface } from "../SciChartSurface";
16
16
  import { TDpiChangedEventArgs } from "../TextureManager/DpiHelper";
17
- import { BaseAnimation } from "./Animations/BaseAnimation";
17
+ import { SeriesAnimation } from "./Animations/SeriesAnimation";
18
18
  import { BaseStackedCollection } from "./BaseStackedCollection";
19
19
  import { ISeriesDrawingProvider } from "./DrawingProviders/ISeriesDrawingProvider";
20
20
  import { HitTestInfo } from "./HitTest/HitTestInfo";
@@ -188,11 +188,11 @@ export declare abstract class BaseStackedRenderableSeries implements IRenderable
188
188
  /**
189
189
  * animation() is not supported for BaseStackedRenderableSeries
190
190
  */
191
- set animation(value: BaseAnimation);
191
+ set animation(value: SeriesAnimation);
192
192
  /**
193
193
  * animation() is not supported for BaseStackedRenderableSeries
194
194
  */
195
- get animation(): BaseAnimation;
195
+ get animation(): SeriesAnimation;
196
196
  /**
197
197
  * @inheritDoc
198
198
  */
@@ -281,7 +281,7 @@ export declare abstract class BaseStackedRenderableSeries implements IRenderable
281
281
  * @param animationFSM The animation finite state machine
282
282
  * @protected
283
283
  */
284
- updateAnimationProperties(progress: number, animationFSM: AnimationFiniteStateMachine): void;
284
+ updateAnimationProperties(progress: number, animationFSM: SeriesAnimationFiniteStateMachine): void;
285
285
  /** @inheritDoc */
286
286
  getSeriesInfo(hitTestInfo: HitTestInfo): SeriesInfo;
287
287
  /** @inheritDoc */
@@ -328,8 +328,8 @@ export declare abstract class BaseStackedRenderableSeries implements IRenderable
328
328
  set effect(effect: ShaderEffect);
329
329
  onAnimate(): void;
330
330
  get isRunningAnimation(): boolean;
331
- enqueueAnimation(animation: BaseAnimation): void;
332
- runAnimation(animation: BaseAnimation): void;
331
+ enqueueAnimation(animation: SeriesAnimation): void;
332
+ runAnimation(animation: SeriesAnimation): void;
333
333
  /**
334
334
  * Factory function to create a {@link IHitTestProvider | Hit Test Provider}; a class which performs hit-test
335
335
  * and checks mouse-over and nearest point.
@@ -29,7 +29,7 @@ var BaseStackedRenderableSeries = /** @class */ (function () {
29
29
  this.id = guid_1.generateGuid();
30
30
  this.isStacked = true;
31
31
  this.isSpline = false;
32
- this.rolloverModifierProps = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps();
32
+ this.rolloverModifierProps = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps(this);
33
33
  /** @inheritDoc */
34
34
  this.selected = new EventHandler_1.EventHandler();
35
35
  /** @inheritDoc */
@@ -3,7 +3,7 @@ import { ELineDrawMode } from "../../Drawing/WebGlRenderContext2D";
3
3
  import { IDataSeries } from "../../Model/IDataSeries";
4
4
  import { IPaletteProvider } from "../../Model/IPaletteProvider";
5
5
  import { IPointMarker } from "../PointMarkers/IPointMarker";
6
- import { BaseAnimation } from "./Animations/BaseAnimation";
6
+ import { SeriesAnimation } from "./Animations/SeriesAnimation";
7
7
  import { IRenderableSeries } from "./IRenderableSeries";
8
8
  import { ShaderEffect } from "./ShaderEffect";
9
9
  /**
@@ -139,7 +139,7 @@ export interface IBaseRenderableSeriesOptions {
139
139
  /**
140
140
  * An animation that runs on the start, child class to {@link BaseAnimation}
141
141
  */
142
- animation?: BaseAnimation | TAnimationDefinition;
142
+ animation?: SeriesAnimation | TAnimationDefinition;
143
143
  /**
144
144
  * Initial selected state for the series. Default to false
145
145
  */
@@ -15,7 +15,7 @@ import { AxisCore } from "../Axis/AxisCore";
15
15
  import { IPointMarker } from "../PointMarkers/IPointMarker";
16
16
  import { SciChartSurface } from "../SciChartSurface";
17
17
  import { INotifyOnDpiChanged } from "../TextureManager/DpiHelper";
18
- import { BaseAnimation } from "./Animations/BaseAnimation";
18
+ import { SeriesAnimation } from "./Animations/SeriesAnimation";
19
19
  import { TPalettingState } from "./DrawingProviders/BaseSeriesDrawingProvider";
20
20
  import { ISeriesDrawingProvider } from "./DrawingProviders/ISeriesDrawingProvider";
21
21
  import { HitTestInfo } from "./HitTest/HitTestInfo";
@@ -304,11 +304,11 @@ export interface IRenderableSeries extends IDeletable, IThemeable, INotifyOnDpiC
304
304
  /**
305
305
  * Add the animation into the queue
306
306
  */
307
- enqueueAnimation(animation: BaseAnimation): void;
307
+ enqueueAnimation(animation: SeriesAnimation): void;
308
308
  /**
309
309
  * Cancel all previous animations and run the current one
310
310
  */
311
- runAnimation(animation: BaseAnimation): void;
311
+ runAnimation(animation: SeriesAnimation): void;
312
312
  /**
313
313
  * Convert the object to a definition that can be serialized to JSON, or used directly with the builder api
314
314
  * @param excludeData if set true, data values will not be included in the json.
@@ -2,6 +2,7 @@ import { RolloverModifier, TRolloverTooltipDataTemplate } from "../../../ChartMo
2
2
  import { SeriesInfo } from "../../../Model/ChartData/SeriesInfo";
3
3
  import { RolloverMarkerSvgAnnotation } from "../../Annotations/RolloverMarkerSvgAnnotation";
4
4
  import { RolloverTooltipSvgAnnotation } from "../../Annotations/RolloverTooltipSvgAnnotation";
5
+ import { IRenderableSeries } from "../IRenderableSeries";
5
6
  export declare type TRolloverTooltipSvgTemplate = (id: string, seriesInfo: SeriesInfo, rolloverTooltip: RolloverTooltipSvgAnnotation) => string;
6
7
  export declare class RolloverModifierRenderableSeriesProps {
7
8
  tooltip: RolloverTooltipSvgAnnotation;
@@ -22,6 +23,9 @@ export declare class RolloverModifierRenderableSeriesProps {
22
23
  private tooltipTitleProperty;
23
24
  private markerColorProperty;
24
25
  private tooltipDataTemplateProperty?;
26
+ private renderableSeries;
27
+ private isY1;
28
+ constructor(renderableSeries: IRenderableSeries, isY1?: boolean);
25
29
  setInvalidateParentCallback(callback: () => void): void;
26
30
  get showRollover(): boolean;
27
31
  set showRollover(value: boolean);
@@ -39,4 +43,5 @@ export declare class RolloverModifierRenderableSeriesProps {
39
43
  set tooltipLegendTemplate(value: (tooltipProps: RolloverModifierRenderableSeriesProps, seriesInfo: SeriesInfo) => string);
40
44
  delete(): void;
41
45
  protected notifyPropertyChanged<T>(propertyName: string): void;
46
+ private getRenderableSeriesStroke;
42
47
  }