scichart 3.0.300 → 3.0.317

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 (39) 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/Charting/Services/SciChartRenderer.js +6 -1
  10. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +12 -1
  11. package/Charting/Visuals/Annotations/AnnotationBase.js +25 -2
  12. package/Charting/Visuals/Annotations/BoxAnnotation.js +1 -1
  13. package/Charting/Visuals/Axis/AxisRenderer.d.ts +0 -1
  14. package/Charting/Visuals/Axis/AxisRenderer.js +5 -5
  15. package/Charting/Visuals/SciChartSurface.js +1 -1
  16. package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +18 -0
  17. package/Charting3D/ChartModifiers/ChartModifierBase3D.js +8 -1
  18. package/Charting3D/ChartModifiers/CustomChartModifier3D.d.ts +16 -0
  19. package/Charting3D/ChartModifiers/CustomChartModifier3D.js +40 -0
  20. package/Charting3D/ChartModifiers/MouseWheelZoomModifier3D.d.ts +7 -5
  21. package/Charting3D/ChartModifiers/MouseWheelZoomModifier3D.js +9 -4
  22. package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +11 -5
  23. package/Charting3D/ChartModifiers/OrbitModifier3D.js +7 -5
  24. package/Charting3D/ChartModifiers/ResetCamera3DModifier.d.ts +11 -8
  25. package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +16 -8
  26. package/Core/BuildStamp.d.ts +1 -1
  27. package/Core/BuildStamp.js +2 -2
  28. package/_wasm/scichart.browser.js +1 -1
  29. package/_wasm/scichart2d.js +1 -1
  30. package/_wasm/scichart2d.wasm +0 -0
  31. package/_wasm/scichart3d.js +10 -10
  32. package/_wasm/scichart3d.wasm +0 -0
  33. package/index.d.ts +3 -0
  34. package/index.js +17 -13
  35. package/index.min.js +1 -1
  36. package/package.json +1 -1
  37. package/types/ChartModifierType.d.ts +2 -1
  38. package/types/ChartModifierType.js +1 -0
  39. package/utils/imageUtil.js +1 -0
@@ -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.317";
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-03-16T00: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.317";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;