scichart 3.0.300 → 3.0.301

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 (31) hide show
  1. package/Charting/ChartModifiers/ChartModifierBase.d.ts +2 -1
  2. package/Charting/ChartModifiers/ChartModifierBase.js +2 -1
  3. package/Charting/ChartModifiers/ChartModifierBase2D.d.ts +6 -0
  4. package/Charting/ChartModifiers/ChartModifierBase2D.js +9 -6
  5. package/Charting/ChartModifiers/CustomChartModifier2D.d.ts +16 -0
  6. package/Charting/ChartModifiers/CustomChartModifier2D.js +40 -0
  7. package/Charting/ChartModifiers/LegendModifier.d.ts +1 -1
  8. package/Charting/ChartModifiers/YAxisDragModifier.d.ts +3 -1
  9. package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +18 -0
  10. package/Charting3D/ChartModifiers/ChartModifierBase3D.js +8 -1
  11. package/Charting3D/ChartModifiers/CustomChartModifier3D.d.ts +16 -0
  12. package/Charting3D/ChartModifiers/CustomChartModifier3D.js +40 -0
  13. package/Charting3D/ChartModifiers/MouseWheelZoomModifier3D.d.ts +7 -5
  14. package/Charting3D/ChartModifiers/MouseWheelZoomModifier3D.js +9 -4
  15. package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +11 -5
  16. package/Charting3D/ChartModifiers/OrbitModifier3D.js +7 -5
  17. package/Charting3D/ChartModifiers/ResetCamera3DModifier.d.ts +11 -8
  18. package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +16 -8
  19. package/Core/BuildStamp.d.ts +1 -1
  20. package/Core/BuildStamp.js +2 -2
  21. package/_wasm/scichart.browser.js +1 -1
  22. package/_wasm/scichart2d.js +1 -1
  23. package/_wasm/scichart2d.wasm +0 -0
  24. package/_wasm/scichart3d.js +7 -7
  25. package/_wasm/scichart3d.wasm +0 -0
  26. package/index.d.ts +3 -0
  27. package/index.js +17 -13
  28. package/index.min.js +1 -1
  29. package/package.json +1 -1
  30. package/types/ChartModifierType.d.ts +2 -1
  31. package/types/ChartModifierType.js +1 -0
@@ -166,8 +166,9 @@ export declare abstract class ChartModifierBase<TSurfaceType extends SciChartSur
166
166
  protected mousePoint: Point;
167
167
  protected executeOnProperty: EExecuteOn;
168
168
  private parentSurfaceProperty;
169
- constructor(options?: {
169
+ protected constructor(options?: {
170
170
  id?: string;
171
+ executeOn?: EExecuteOn;
171
172
  });
172
173
  /** @inheritDoc */
173
174
  applyTheme(themeProvider: IThemeProvider): void;
@@ -17,10 +17,11 @@ var EModifierType;
17
17
  */
18
18
  var ChartModifierBase = /** @class */ (function () {
19
19
  function ChartModifierBase(options) {
20
- var _a;
20
+ var _a, _b;
21
21
  this.isEnabledProperty = true;
22
22
  this.executeOnProperty = ExecuteOn_1.EExecuteOn.MouseLeftButton;
23
23
  this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
24
+ this.executeOnProperty = (_b = options === null || options === void 0 ? void 0 : options.executeOn) !== null && _b !== void 0 ? _b : this.executeOn;
24
25
  }
25
26
  /** @inheritDoc */
26
27
  ChartModifierBase.prototype.applyTheme = function (themeProvider) {
@@ -45,6 +45,9 @@ export interface IChartModifierBaseOptions {
45
45
  * to SciChart - High Performance Realtime {@link https://www.scichart.com/javascript-chart-features | 2D JavaScript Charts}
46
46
  */
47
47
  export declare abstract class ChartModifierBase2D extends ChartModifierBase<SciChartSurface> {
48
+ /**
49
+ * The type of chartmodifier. See {@link EChart2DModifierType} for available options
50
+ */
48
51
  abstract readonly type: EChart2DModifierType | string;
49
52
  xyDirection: EXyDirection;
50
53
  protected changedPropertiesList: string[];
@@ -74,6 +77,9 @@ export declare abstract class ChartModifierBase2D extends ChartModifierBase<SciC
74
77
  * @remarks This function allows mocking in tests
75
78
  */
76
79
  getAllSeries(): IRenderableSeries[];
80
+ /**
81
+ * @inheritDoc
82
+ */
77
83
  toJSON(): {
78
84
  type: string;
79
85
  options: Required<Omit<IChartModifierBaseOptions, never>>;
@@ -33,7 +33,7 @@ var ChartModifierBase2D = /** @class */ (function (_super) {
33
33
  */
34
34
  function ChartModifierBase2D(options) {
35
35
  var _this = this;
36
- var _a, _b, _c, _d, _e;
36
+ var _a, _b, _c, _d;
37
37
  _this = _super.call(this, options) || this;
38
38
  _this.xyDirection = XyDirection_1.EXyDirection.XyDirection;
39
39
  _this.changedPropertiesList = [];
@@ -41,11 +41,10 @@ var ChartModifierBase2D = /** @class */ (function (_super) {
41
41
  _this.yAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
42
42
  // used to track if registered types were used for function properties, so they can be serialized
43
43
  _this.typeMap = new Map();
44
- _this.executeOn = (_a = options === null || options === void 0 ? void 0 : options.executeOn) !== null && _a !== void 0 ? _a : _this.executeOn;
45
- _this.xyDirection = (_b = options === null || options === void 0 ? void 0 : options.xyDirection) !== null && _b !== void 0 ? _b : _this.xyDirection;
46
- _this.modifierGroup = (_c = options === null || options === void 0 ? void 0 : options.modifierGroup) !== null && _c !== void 0 ? _c : _this.modifierGroup;
47
- _this.xAxisIdProperty = (_d = options === null || options === void 0 ? void 0 : options.xAxisId) !== null && _d !== void 0 ? _d : _this.xAxisIdProperty;
48
- _this.yAxisIdProperty = (_e = options === null || options === void 0 ? void 0 : options.yAxisId) !== null && _e !== void 0 ? _e : _this.yAxisIdProperty;
44
+ _this.xyDirection = (_a = options === null || options === void 0 ? void 0 : options.xyDirection) !== null && _a !== void 0 ? _a : _this.xyDirection;
45
+ _this.modifierGroup = (_b = options === null || options === void 0 ? void 0 : options.modifierGroup) !== null && _b !== void 0 ? _b : _this.modifierGroup;
46
+ _this.xAxisIdProperty = (_c = options === null || options === void 0 ? void 0 : options.xAxisId) !== null && _c !== void 0 ? _c : _this.xAxisIdProperty;
47
+ _this.yAxisIdProperty = (_d = options === null || options === void 0 ? void 0 : options.yAxisId) !== null && _d !== void 0 ? _d : _this.yAxisIdProperty;
49
48
  return _this;
50
49
  }
51
50
  Object.defineProperty(ChartModifierBase2D.prototype, "modifierType", {
@@ -92,6 +91,9 @@ var ChartModifierBase2D = /** @class */ (function (_super) {
92
91
  ChartModifierBase2D.prototype.getAllSeries = function () {
93
92
  return this.parentSurface.renderableSeries.asArray();
94
93
  };
94
+ /**
95
+ * @inheritDoc
96
+ */
95
97
  ChartModifierBase2D.prototype.toJSON = function () {
96
98
  var options = {
97
99
  id: this.id,
@@ -110,6 +112,7 @@ var ChartModifierBase2D = /** @class */ (function (_super) {
110
112
  if (!this.changedPropertiesList.includes(propertyName)) {
111
113
  this.changedPropertiesList.push(propertyName);
112
114
  }
115
+ _super.prototype.notifyPropertyChanged.call(this, propertyName);
113
116
  };
114
117
  /**
115
118
  * Grows the Axis by a fraction around the mouse point
@@ -0,0 +1,16 @@
1
+ import { EChart2DModifierType } from "../../types/ChartModifierType";
2
+ import { ChartModifierBase2D, IChartModifierBaseOptions } from "./ChartModifierBase2D";
3
+ /**
4
+ * Base class for custom Chart Modifiers (allows custom zooming, panning, interaction behaviour) on 2D Charts
5
+ */
6
+ export declare class CustomChartModifier2D extends ChartModifierBase2D {
7
+ /**
8
+ * @inheritDoc
9
+ */
10
+ readonly type: EChart2DModifierType;
11
+ /**
12
+ * @inheritDoc
13
+ * @param options
14
+ */
15
+ constructor(options?: IChartModifierBaseOptions);
16
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CustomChartModifier2D = void 0;
19
+ var ChartModifierType_1 = require("../../types/ChartModifierType");
20
+ var ChartModifierBase2D_1 = require("./ChartModifierBase2D");
21
+ /**
22
+ * Base class for custom Chart Modifiers (allows custom zooming, panning, interaction behaviour) on 2D Charts
23
+ */
24
+ var CustomChartModifier2D = /** @class */ (function (_super) {
25
+ __extends(CustomChartModifier2D, _super);
26
+ /**
27
+ * @inheritDoc
28
+ * @param options
29
+ */
30
+ function CustomChartModifier2D(options) {
31
+ var _this = _super.call(this, options) || this;
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ _this.type = ChartModifierType_1.EChart2DModifierType.Custom;
36
+ return _this;
37
+ }
38
+ return CustomChartModifier2D;
39
+ }(ChartModifierBase2D_1.ChartModifierBase2D));
40
+ exports.CustomChartModifier2D = CustomChartModifier2D;
@@ -105,7 +105,7 @@ export declare class LegendModifier extends ChartModifierBase2D implements IIncl
105
105
  getIncludedRenderableSeries(): IRenderableSeries[];
106
106
  /** @inheritDoc */
107
107
  toJSON(): {
108
- type: string;
108
+ type: string; /** @inheritDoc */
109
109
  options: Required<Omit<IChartModifierBaseOptions, never>>;
110
110
  };
111
111
  /** @inheritDoc */
@@ -72,7 +72,9 @@ export declare class YAxisDragModifier extends ChartModifierBase2D implements II
72
72
  */
73
73
  modifierMouseUp(args: ModifierMouseArgs): void;
74
74
  toJSON(): {
75
- type: string;
75
+ type: string; /**
76
+ * @inheritDoc
77
+ */
76
78
  options: Required<Omit<IChartModifierBaseOptions, never>>;
77
79
  };
78
80
  protected updateCursor(mousePoint: Point): void;
@@ -1,12 +1,26 @@
1
1
  import { ChartModifierBase, EModifierType } from "../../Charting/ChartModifiers/ChartModifierBase";
2
+ import { EChart3DModifierType } from "../../types/ChartModifierType";
3
+ import { EExecuteOn } from "../../types/ExecuteOn";
2
4
  import { SciChart3DSurface } from "../Visuals/SciChart3DSurface";
3
5
  export interface IChartModifierBase3DOptions {
6
+ /**
7
+ * A unique Id for the {@link ChartModifierBase3D}
8
+ */
9
+ id?: string;
10
+ /**
11
+ * Defines the operation that modifier should respond to
12
+ */
13
+ executeOn?: EExecuteOn;
4
14
  }
5
15
  /**
6
16
  * Defines a base class to a ChartModifier3D - a class which provides Zoom, Pan, Tooltip or interaction behavior
7
17
  * to SciChart - High Performance Realtime {@link https://www.scichart.com/javascript-chart-features | JavaScript 3D Charts}
8
18
  */
9
19
  export declare abstract class ChartModifierBase3D extends ChartModifierBase<SciChart3DSurface> {
20
+ /**
21
+ * The type of chartmodifier. See {@link EChart3DModifierType} for available options
22
+ */
23
+ abstract readonly type: EChart3DModifierType | string;
10
24
  /**
11
25
  * Creates an instance of a {@link ChartModifierBase3D}
12
26
  * @param options Optional parameters of type {@link IChartModifierBase3DOptions} used to configure the modifier
@@ -16,4 +30,8 @@ export declare abstract class ChartModifierBase3D extends ChartModifierBase<SciC
16
30
  * @inheritDoc
17
31
  */
18
32
  get modifierType(): EModifierType;
33
+ toJSON(): {
34
+ type: string;
35
+ options: Required<Omit<IChartModifierBase3DOptions, never>>;
36
+ };
19
37
  }
@@ -28,7 +28,7 @@ var ChartModifierBase3D = /** @class */ (function (_super) {
28
28
  * @param options Optional parameters of type {@link IChartModifierBase3DOptions} used to configure the modifier
29
29
  */
30
30
  function ChartModifierBase3D(options) {
31
- return _super.call(this) || this;
31
+ return _super.call(this, options) || this;
32
32
  }
33
33
  Object.defineProperty(ChartModifierBase3D.prototype, "modifierType", {
34
34
  /**
@@ -40,6 +40,13 @@ var ChartModifierBase3D = /** @class */ (function (_super) {
40
40
  enumerable: false,
41
41
  configurable: true
42
42
  });
43
+ ChartModifierBase3D.prototype.toJSON = function () {
44
+ var options = {
45
+ id: this.id,
46
+ executeOn: this.executeOn
47
+ };
48
+ return { type: this.type, options: options };
49
+ };
43
50
  return ChartModifierBase3D;
44
51
  }(ChartModifierBase_1.ChartModifierBase));
45
52
  exports.ChartModifierBase3D = ChartModifierBase3D;
@@ -0,0 +1,16 @@
1
+ import { EChart3DModifierType } from "../../types/ChartModifierType";
2
+ import { ChartModifierBase3D, IChartModifierBase3DOptions } from "./ChartModifierBase3D";
3
+ /**
4
+ * Base class for custom Chart Modifiers (allows custom zooming, panning, interaction behaviour) on 2D Charts
5
+ */
6
+ export declare class CustomChartModifier3D extends ChartModifierBase3D {
7
+ /**
8
+ * @inheritDoc
9
+ */
10
+ readonly type: EChart3DModifierType;
11
+ /**
12
+ * @inheritDoc
13
+ * @param options
14
+ */
15
+ constructor(options?: IChartModifierBase3DOptions);
16
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CustomChartModifier3D = void 0;
19
+ var ChartModifierType_1 = require("../../types/ChartModifierType");
20
+ var ChartModifierBase3D_1 = require("./ChartModifierBase3D");
21
+ /**
22
+ * Base class for custom Chart Modifiers (allows custom zooming, panning, interaction behaviour) on 2D Charts
23
+ */
24
+ var CustomChartModifier3D = /** @class */ (function (_super) {
25
+ __extends(CustomChartModifier3D, _super);
26
+ /**
27
+ * @inheritDoc
28
+ * @param options
29
+ */
30
+ function CustomChartModifier3D(options) {
31
+ var _this = _super.call(this, options) || this;
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ _this.type = ChartModifierType_1.EChart3DModifierType.Custom;
36
+ return _this;
37
+ }
38
+ return CustomChartModifier3D;
39
+ }(ChartModifierBase3D_1.ChartModifierBase3D));
40
+ exports.CustomChartModifier3D = CustomChartModifier3D;
@@ -27,6 +27,7 @@ export interface IMouseWheelZoomModifier3DOptions extends IChartModifierBase3DOp
27
27
  * @remarks The speed of mouse-wheel zoom can be modified via the {@link MouseWheelZoomModifier3D.mouseWheelSensitivity} property.
28
28
  */
29
29
  export declare class MouseWheelZoomModifier3D extends ChartModifierBase3D {
30
+ readonly type = EChart3DModifierType.MouseWheelZoom;
30
31
  /**
31
32
  * The mouse wheel sensitifivity is a factor that determines how much the camera zooms when the mouse wheel scrolls.
32
33
  * Default value is 0.1
@@ -41,10 +42,11 @@ export declare class MouseWheelZoomModifier3D extends ChartModifierBase3D {
41
42
  * @inheritDoc
42
43
  */
43
44
  modifierMouseWheel(args: ModifierMouseArgs): void;
44
- toJSON?(): {
45
- type: EChart3DModifierType;
46
- options: {
47
- mouseWheelSensitivity: number;
48
- };
45
+ /**
46
+ * @inheritDoc
47
+ */
48
+ toJSON(): {
49
+ type: string;
50
+ options: Required<Omit<IChartModifierBase3DOptions, never>>;
49
51
  };
50
52
  }
@@ -42,6 +42,7 @@ var MouseWheelZoomModifier3D = /** @class */ (function (_super) {
42
42
  */
43
43
  function MouseWheelZoomModifier3D(options) {
44
44
  var _this = _super.call(this, options) || this;
45
+ _this.type = ChartModifierType_1.EChart3DModifierType.MouseWheelZoom;
45
46
  _this.mouseWheelSensitivity = (options === null || options === void 0 ? void 0 : options.mouseWheelSensitivity) || 0.1;
46
47
  return _this;
47
48
  }
@@ -70,12 +71,16 @@ var MouseWheelZoomModifier3D = /** @class */ (function (_super) {
70
71
  }
71
72
  args.handled = true;
72
73
  };
73
- //@ts-ignore
74
+ /**
75
+ * @inheritDoc
76
+ */
74
77
  MouseWheelZoomModifier3D.prototype.toJSON = function () {
75
- return {
76
- type: ChartModifierType_1.EChart3DModifierType.MouseWheelZoom,
77
- options: { mouseWheelSensitivity: this.mouseWheelSensitivity }
78
+ var json = _super.prototype.toJSON.call(this);
79
+ var options = {
80
+ mouseWheelSensitivity: this.mouseWheelSensitivity
78
81
  };
82
+ Object.assign(json.options, options);
83
+ return json;
79
84
  };
80
85
  return MouseWheelZoomModifier3D;
81
86
  }(ChartModifierBase3D_1.ChartModifierBase3D));
@@ -1,6 +1,11 @@
1
1
  import { ModifierMouseArgs } from "../../Charting/ChartModifiers/ModifierMouseArgs";
2
2
  import { EChart3DModifierType } from "../../types/ChartModifierType";
3
- import { ChartModifierBase3D } from "./ChartModifierBase3D";
3
+ import { ChartModifierBase3D, IChartModifierBase3DOptions } from "./ChartModifierBase3D";
4
+ /**
5
+ * Optional parameters passed to the constructor of {@link OrbitModifier3D} to configure it
6
+ */
7
+ export interface IOrbitModifier3DOptions extends IChartModifierBase3DOptions {
8
+ }
4
9
  /**
5
10
  * @summary The {@link OrbitModifier3D} provides behavior to orbit around a target point on a 3D {@link SciChart3DSurface}
6
11
  * within SciChart - High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript 3D Charts}
@@ -15,9 +20,13 @@ import { ChartModifierBase3D } from "./ChartModifierBase3D";
15
20
  * ```
16
21
  */
17
22
  export declare class OrbitModifier3D extends ChartModifierBase3D {
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ readonly type = EChart3DModifierType.Orbit;
18
27
  private pointStart;
19
28
  private isDragging;
20
- constructor();
29
+ constructor(options?: IOrbitModifier3DOptions);
21
30
  /**
22
31
  * @inheritDoc
23
32
  */
@@ -30,7 +39,4 @@ export declare class OrbitModifier3D extends ChartModifierBase3D {
30
39
  * @inheritDoc
31
40
  */
32
41
  modifierMouseUp(args: ModifierMouseArgs): void;
33
- toJSON(): {
34
- type: EChart3DModifierType;
35
- };
36
42
  }
@@ -34,8 +34,13 @@ var ChartModifierBase3D_1 = require("./ChartModifierBase3D");
34
34
  */
35
35
  var OrbitModifier3D = /** @class */ (function (_super) {
36
36
  __extends(OrbitModifier3D, _super);
37
- function OrbitModifier3D() {
38
- return _super.call(this) || this;
37
+ function OrbitModifier3D(options) {
38
+ var _this = _super.call(this, options) || this;
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ _this.type = ChartModifierType_1.EChart3DModifierType.Orbit;
43
+ return _this;
39
44
  }
40
45
  /**
41
46
  * @inheritDoc
@@ -80,9 +85,6 @@ var OrbitModifier3D = /** @class */ (function (_super) {
80
85
  this.isDragging = false;
81
86
  this.pointStart = undefined;
82
87
  };
83
- OrbitModifier3D.prototype.toJSON = function () {
84
- return { type: ChartModifierType_1.EChart3DModifierType.Orbit };
85
- };
86
88
  return OrbitModifier3D;
87
89
  }(ChartModifierBase3D_1.ChartModifierBase3D));
88
90
  exports.OrbitModifier3D = OrbitModifier3D;
@@ -17,7 +17,7 @@ export interface IResetCamera3DOptions extends IChartModifierBase3DOptions {
17
17
  /**
18
18
  * Defines the easing function for animation. See {@link TEasingFn} for a range of functions
19
19
  */
20
- easingFunction?: TEasingFn;
20
+ easingFunction?: TEasingFn | string;
21
21
  /**
22
22
  * The camera settings to reset to. Defaults to the camera state when the modifier was attached to the chart.
23
23
  */
@@ -45,6 +45,10 @@ export declare type TCameraState = {
45
45
  *
46
46
  */
47
47
  export declare class ResetCamera3DModifier extends ChartModifierBase3D {
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ readonly type = EChart3DModifierType.ZoomExtents;
48
52
  /**
49
53
  * When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
50
54
  */
@@ -68,12 +72,11 @@ export declare class ResetCamera3DModifier extends ChartModifierBase3D {
68
72
  * @inheritDoc
69
73
  */
70
74
  modifierDoubleClick(args: ModifierMouseArgs): void;
71
- toJSON?(): {
72
- type: EChart3DModifierType;
73
- options: {
74
- animationDuration: number;
75
- easingFunction: string;
76
- isAnimated: boolean;
77
- };
75
+ /**
76
+ * @inheritDoc
77
+ */
78
+ toJSON(): {
79
+ type: string;
80
+ options: Required<Omit<IChartModifierBase3DOptions, never>>;
78
81
  };
79
82
  }
@@ -46,6 +46,10 @@ var ResetCamera3DModifier = /** @class */ (function (_super) {
46
46
  var _this = this;
47
47
  var _a, _b, _c;
48
48
  _this = _super.call(this, options) || this;
49
+ /**
50
+ * @inheritDoc
51
+ */
52
+ _this.type = ChartModifierType_1.EChart3DModifierType.ZoomExtents;
49
53
  /**
50
54
  * When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
51
55
  */
@@ -64,6 +68,7 @@ var ResetCamera3DModifier = /** @class */ (function (_super) {
64
68
  options.easingFunction = EasingFunctions_1.easing[options.easingFunction];
65
69
  }
66
70
  _this.easingFunction = (_c = options === null || options === void 0 ? void 0 : options.easingFunction) !== null && _c !== void 0 ? _c : EasingFunctions_1.easing.outExpo;
71
+ _this.destination = options === null || options === void 0 ? void 0 : options.destination;
67
72
  return _this;
68
73
  }
69
74
  ResetCamera3DModifier.prototype.onAttach = function () {
@@ -128,16 +133,19 @@ var ResetCamera3DModifier = /** @class */ (function (_super) {
128
133
  }
129
134
  args.handled = true;
130
135
  };
131
- // @ts-ignore
136
+ /**
137
+ * @inheritDoc
138
+ */
132
139
  ResetCamera3DModifier.prototype.toJSON = function () {
133
- return {
134
- type: ChartModifierType_1.EChart3DModifierType.ZoomExtents,
135
- options: {
136
- animationDuration: this.animationDuration,
137
- easingFunction: this.easingFunction.name,
138
- isAnimated: this.isAnimated
139
- }
140
+ var json = _super.prototype.toJSON.call(this);
141
+ var options = {
142
+ animationDuration: this.animationDuration,
143
+ easingFunction: this.easingFunction.name,
144
+ isAnimated: this.isAnimated,
145
+ destination: this.destination
140
146
  };
147
+ Object.assign(json.options, options);
148
+ return json;
141
149
  };
142
150
  return ResetCamera3DModifier;
143
151
  }(ChartModifierBase3D_1.ChartModifierBase3D));
@@ -1,4 +1,4 @@
1
1
  import { TSciChart } from "../types/TSciChart";
2
2
  import { TSciChart3D } from "../types/TSciChart3D";
3
- export declare const libraryVersion = "3.0.300";
3
+ export declare const libraryVersion = "3.0.301";
4
4
  export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.checkBuildStamp = exports.libraryVersion = void 0;
4
- var buildStamp = "2023-02-17T00:00:00";
4
+ var buildStamp = "2023-02-27T00:00:00";
5
5
  var result;
6
6
  // tslint:disable-next-line:no-var-requires
7
- exports.libraryVersion = "3.0.300";
7
+ exports.libraryVersion = "3.0.301";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;