scichart 2.0.2139 → 2.0.2144

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 (74) 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 +2 -2
  4. package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +3 -2
  5. package/Charting/Model/BaseDataSeries.d.ts +2 -2
  6. package/Charting/Model/OhlcDataSeries.d.ts +2 -2
  7. package/Charting/Model/XyyDataSeries.d.ts +2 -2
  8. package/Charting/Model/XyzDataSeries.d.ts +2 -2
  9. package/Charting/Services/SciChartRenderer.js +14 -4
  10. package/Charting/Visuals/Axis/AxisBase2D.d.ts +75 -52
  11. package/Charting/Visuals/Axis/AxisBase2D.js +53 -34
  12. package/Charting/Visuals/Axis/AxisCore.d.ts +7 -4
  13. package/Charting/Visuals/Axis/AxisCore.js +21 -5
  14. package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +1 -3
  15. package/Charting/Visuals/Axis/LogarithmicAxis.js +4 -11
  16. package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.d.ts +2 -2
  17. package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +2 -2
  18. package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.d.ts +2 -2
  19. package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +2 -2
  20. package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.d.ts +1 -1
  21. package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.d.ts +2 -2
  22. package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +2 -2
  23. package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.d.ts +2 -2
  24. package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +2 -2
  25. package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.d.ts +2 -2
  26. package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +2 -2
  27. package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.d.ts +2 -2
  28. package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +2 -2
  29. package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.d.ts +2 -2
  30. package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +2 -2
  31. package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +2 -2
  32. package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +2 -2
  33. package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.d.ts +2 -2
  34. package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +2 -2
  35. package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.d.ts → SeriesAnimation.d.ts} +3 -2
  36. package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.js → SeriesAnimation.js} +13 -13
  37. package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.d.ts +2 -2
  38. package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.js +2 -2
  39. package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +2 -2
  40. package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +2 -2
  41. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +8 -8
  42. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +9 -9
  43. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +3 -3
  44. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +7 -7
  45. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +1 -1
  46. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +7 -7
  47. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +1 -1
  48. package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +2 -2
  49. package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +3 -3
  50. package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.d.ts +5 -0
  51. package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.js +29 -5
  52. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +4 -4
  53. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -4
  54. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +4 -4
  55. package/Charting/Visuals/SciChartSurface.d.ts +13 -0
  56. package/Charting/Visuals/SciChartSurface.js +38 -3
  57. package/Charting3D/Visuals/SciChart3DRenderer.js +1 -0
  58. package/Core/Animations/AnimationFiniteStateMachine.d.ts +27 -14
  59. package/Core/Animations/AnimationFiniteStateMachine.js +48 -15
  60. package/Core/Animations/Animator.d.ts +1 -9
  61. package/Core/Animations/Animator.js +1 -9
  62. package/Core/Animations/DoubleAnimator.d.ts +2 -8
  63. package/Core/Animations/DoubleAnimator.js +1 -7
  64. package/Core/Animations/GenericAnimation.d.ts +74 -0
  65. package/Core/Animations/GenericAnimation.js +74 -0
  66. package/Core/Animations/NumberRangeAnimator.d.ts +4 -3
  67. package/Core/Animations/NumberRangeAnimator.js +23 -3
  68. package/Core/NumberRange.js +4 -5
  69. package/_wasm/scichart.browser.js +1 -1
  70. package/_wasm/scichart2d.js +95 -95
  71. package/_wasm/scichart2d.wasm +0 -0
  72. package/_wasm/scichart3d.js +95 -95
  73. package/_wasm/scichart3d.wasm +0 -0
  74. package/package.json +1 -1
@@ -14,8 +14,8 @@ var __extends = (this && this.__extends) || (function () {
14
14
  })();
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.LogarithmicAxis = void 0;
17
- var Animator_1 = require("../../../Core/Animations/Animator");
18
17
  var EasingFunctions_1 = require("../../../Core/Animations/EasingFunctions");
18
+ var NumberRangeAnimator_1 = require("../../../Core/Animations/NumberRangeAnimator");
19
19
  var NumberRange_1 = require("../../../Core/NumberRange");
20
20
  var AxisType_1 = require("../../../types/AxisType");
21
21
  var XyDirection_1 = require("../../../types/XyDirection");
@@ -38,7 +38,6 @@ var LogarithmicAxis = /** @class */ (function (_super) {
38
38
  var _this = _super.call(this, wasmContext, options) || this;
39
39
  _this.type = AxisType_1.EAxisType.LogarithmicAxis;
40
40
  _this.logBaseProperty = 10;
41
- _this.interpolateLog = _this.interpolateLog.bind(_this);
42
41
  _this.tickProvider = new LogarithmicTickProvider_1.LogarithmicTickProvider(wasmContext);
43
42
  _this.deltaCalculator = new LogarithmicDeltaCalculator_1.LogarithmicDeltaCalculator(wasmContext);
44
43
  _this.labelProvider = (_a = options === null || options === void 0 ? void 0 : options.labelProvider) !== null && _a !== void 0 ? _a : new LogarithmicLabelProvider_1.LogarithmicLabelProvider(options);
@@ -228,10 +227,10 @@ var LogarithmicAxis = /** @class */ (function (_super) {
228
227
  onCompleted();
229
228
  return undefined;
230
229
  }
231
- (_a = this.visibleRangeAnimationToken) === null || _a === void 0 ? void 0 : _a.cancelAnimation();
232
- this.visibleRangeAnimationToken = Animator_1.animateAny(durationMs, this.visibleRange, visibleRange, function (range) {
230
+ (_a = this.visibleRangeAnimationToken) === null || _a === void 0 ? void 0 : _a.cancel();
231
+ this.visibleRangeAnimationToken = NumberRangeAnimator_1.NumberRangeAnimator.animate(this.visibleRange, visibleRange, durationMs, function (range) {
233
232
  _this.visibleRange = range;
234
- }, this.interpolateLog, onCompleted, easingFunction);
233
+ }, onCompleted, easingFunction, true);
235
234
  return this.visibleRangeAnimationToken;
236
235
  };
237
236
  LogarithmicAxis.prototype.scale = function (initialRange, delta, isMoreThanHalf) {
@@ -303,12 +302,6 @@ var LogarithmicAxis = /** @class */ (function (_super) {
303
302
  logLabelProvider.logarithmicBase = logBase;
304
303
  }
305
304
  };
306
- LogarithmicAxis.prototype.interpolateLog = function (from, to, interpolationFactor) {
307
- var newMin = Math.pow(to.min / from.min, interpolationFactor) * from.min;
308
- var newMax = Math.pow(to.max / from.max, interpolationFactor) * from.max;
309
- var result = new NumberRange_1.NumberRange(newMin, newMax);
310
- return result;
311
- };
312
305
  return LogarithmicAxis;
313
306
  }(AxisBase2D_1.AxisBase2D));
314
307
  exports.LogarithmicAxis = LogarithmicAxis;
@@ -2,12 +2,12 @@ import { EAnimationType } from "../../../../types/AnimationType";
2
2
  import { XyyDataSeries } from "../../../Model/XyyDataSeries";
3
3
  import { BaseBandRenderableSeries } from "../BaseBandRenderableSeries";
4
4
  import { BandAnimationStyle, IBandAnimationStyleOptions } from "./BandAnimationStyle";
5
- import { BaseAnimation, IBaseAnimationOptions } from "./BaseAnimation";
5
+ import { SeriesAnimation, IBaseAnimationOptions } from "./SeriesAnimation";
6
6
  export interface IBandAnimationOptions extends IBaseAnimationOptions {
7
7
  styles?: IBandAnimationStyleOptions;
8
8
  dataSeries?: XyyDataSeries;
9
9
  }
10
- export declare class BandAnimation extends BaseAnimation {
10
+ export declare class BandAnimation extends SeriesAnimation {
11
11
  /** @inheritDoc */
12
12
  readonly type = EAnimationType.Style;
13
13
  /** @inheritDoc */
@@ -18,7 +18,7 @@ var AnimationType_1 = require("../../../../types/AnimationType");
18
18
  var parseColor_1 = require("../../../../utils/parseColor");
19
19
  var animationHelpers_1 = require("./animationHelpers");
20
20
  var BandAnimationStyle_1 = require("./BandAnimationStyle");
21
- var BaseAnimation_1 = require("./BaseAnimation");
21
+ var SeriesAnimation_1 = require("./SeriesAnimation");
22
22
  var BandAnimation = /** @class */ (function (_super) {
23
23
  __extends(BandAnimation, _super);
24
24
  function BandAnimation(options) {
@@ -69,5 +69,5 @@ var BandAnimation = /** @class */ (function (_super) {
69
69
  }
70
70
  };
71
71
  return BandAnimation;
72
- }(BaseAnimation_1.BaseAnimation));
72
+ }(SeriesAnimation_1.SeriesAnimation));
73
73
  exports.BandAnimation = BandAnimation;
@@ -1,12 +1,12 @@
1
1
  import { EAnimationType } from "../../../../types/AnimationType";
2
2
  import { XyzDataSeries } from "../../../Model/XyzDataSeries";
3
- import { BaseAnimation, IBaseAnimationOptions } from "./BaseAnimation";
3
+ import { SeriesAnimation, IBaseAnimationOptions } from "./SeriesAnimation";
4
4
  import { IBaseAnimationStyleOptions } from "./BaseAnimationStyle";
5
5
  export interface IBubbleAnimationOptions extends IBaseAnimationOptions {
6
6
  styles?: IBaseAnimationStyleOptions;
7
7
  dataSeries?: XyzDataSeries;
8
8
  }
9
- export declare class BubbleAnimation extends BaseAnimation {
9
+ export declare class BubbleAnimation 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.BubbleAnimation = 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 BubbleAnimation = /** @class */ (function (_super) {
21
21
  __extends(BubbleAnimation, _super);
@@ -30,5 +30,5 @@ var BubbleAnimation = /** @class */ (function (_super) {
30
30
  return _this;
31
31
  }
32
32
  return BubbleAnimation;
33
- }(BaseAnimation_1.BaseAnimation));
33
+ }(SeriesAnimation_1.SeriesAnimation));
34
34
  exports.BubbleAnimation = BubbleAnimation;
@@ -1,7 +1,7 @@
1
1
  import { EAnimationType } from "../../../../types/AnimationType";
2
2
  import { OhlcDataSeries } from "../../../Model/OhlcDataSeries";
3
3
  import { FastCandlestickRenderableSeries } from "../FastCandlestickRenderableSeries";
4
- import { IBaseAnimationOptions } from "./BaseAnimation";
4
+ import { IBaseAnimationOptions } from "./SeriesAnimation";
5
5
  import { CandlestickAnimationStyle, ICandlestickAnimationStyleOptions } from "./CandlestickAnimationStyle";
6
6
  import { OhlcAnimation } from "./OhlcAnimation";
7
7
  export interface ICandlestickAnimationOptions extends IBaseAnimationOptions {
@@ -1,13 +1,13 @@
1
1
  import { EAnimationType } from "../../../../types/AnimationType";
2
2
  import { XyDataSeries } from "../../../Model/XyDataSeries";
3
3
  import { FastColumnRenderableSeries } from "../FastColumnRenderableSeries";
4
- import { BaseAnimation, IBaseAnimationOptions } from "./BaseAnimation";
4
+ import { SeriesAnimation, IBaseAnimationOptions } from "./SeriesAnimation";
5
5
  import { ColumnAnimationStyle, IColumnAnimationStyleOptions } from "./ColumnAnimationStyle";
6
6
  export interface IColumnAnimationOptions extends IBaseAnimationOptions {
7
7
  styles?: IColumnAnimationStyleOptions;
8
8
  dataSeries?: XyDataSeries;
9
9
  }
10
- export declare class ColumnAnimation extends BaseAnimation {
10
+ export declare class ColumnAnimation extends SeriesAnimation {
11
11
  /** @inheritDoc */
12
12
  readonly type = EAnimationType.Style;
13
13
  /** @inheritDoc */
@@ -17,7 +17,7 @@ exports.ColumnAnimation = 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 ColumnAnimationStyle_1 = require("./ColumnAnimationStyle");
22
22
  var PointMarkerStyle_1 = require("./PointMarkerStyle");
23
23
  var ColumnAnimation = /** @class */ (function (_super) {
@@ -66,5 +66,5 @@ var ColumnAnimation = /** @class */ (function (_super) {
66
66
  }
67
67
  };
68
68
  return ColumnAnimation;
69
- }(BaseAnimation_1.BaseAnimation));
69
+ }(SeriesAnimation_1.SeriesAnimation));
70
70
  exports.ColumnAnimation = ColumnAnimation;
@@ -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 IFadeAnimationOptions extends IBaseAnimationOptions {
5
5
  }
6
- export declare class FadeAnimation extends BaseAnimation {
6
+ export declare class FadeAnimation extends SeriesAnimation {
7
7
  /** @inheritDoc */
8
8
  readonly type = EAnimationType.Fade;
9
9
  constructor(options?: IFadeAnimationOptions);
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.FadeAnimation = 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 FadeAnimation = /** @class */ (function (_super) {
20
20
  __extends(FadeAnimation, _super);
21
21
  function FadeAnimation(options) {
@@ -32,5 +32,5 @@ var FadeAnimation = /** @class */ (function (_super) {
32
32
  wasmContext.SCRTAnimationHelperFade(originalValues, progress, animationValues);
33
33
  };
34
34
  return FadeAnimation;
35
- }(BaseAnimation_1.BaseAnimation));
35
+ }(SeriesAnimation_1.SeriesAnimation));
36
36
  exports.FadeAnimation = FadeAnimation;
@@ -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 ILineAnimationOptions extends IBaseAnimationOptions {
6
6
  styles?: IBaseAnimationStyleOptions;
7
7
  dataSeries?: XyDataSeries;
8
8
  }
9
- export declare class LineAnimation extends BaseAnimation {
9
+ export declare class LineAnimation 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.LineAnimation = 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 LineAnimation = /** @class */ (function (_super) {
21
21
  __extends(LineAnimation, _super);
@@ -30,5 +30,5 @@ var LineAnimation = /** @class */ (function (_super) {
30
30
  return _this;
31
31
  }
32
32
  return LineAnimation;
33
- }(BaseAnimation_1.BaseAnimation));
33
+ }(SeriesAnimation_1.SeriesAnimation));
34
34
  exports.LineAnimation = LineAnimation;
@@ -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.