scichart 2.0.2204 → 2.0.2228

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 (49) hide show
  1. package/Charting/Drawing/BrushCache.d.ts +8 -2
  2. package/Charting/Drawing/BrushCache.js +16 -8
  3. package/Charting/LayoutManager/BaseAxisLayoutStrategy.d.ts +2 -0
  4. package/Charting/LayoutManager/BaseAxisLayoutStrategy.js +33 -0
  5. package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +18 -2
  6. package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +19 -2
  7. package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +18 -2
  8. package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +18 -2
  9. package/Charting/Model/OhlcDataSeries.js +10 -10
  10. package/Charting/Model/XyDataSeries.js +4 -4
  11. package/Charting/Model/XyyDataSeries.js +6 -6
  12. package/Charting/Model/XyzDataSeries.js +6 -6
  13. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +1 -1
  14. package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +1 -1
  15. package/Charting/Visuals/Annotations/SvgAnnotationBase.js +7 -2
  16. package/Charting/Visuals/Axis/AxisBase2D.d.ts +23 -0
  17. package/Charting/Visuals/Axis/AxisBase2D.js +71 -24
  18. package/Charting/Visuals/Axis/AxisRenderer.js +31 -4
  19. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +10 -3
  20. package/Charting/Visuals/SciChartSurface.d.ts +4 -4
  21. package/Charting/Visuals/SciChartSurface.js +18 -11
  22. package/Charting/Visuals/SciChartSurfaceBase.d.ts +3 -2
  23. package/Charting/Visuals/SciChartSurfaceBase.js +4 -4
  24. package/Charting/Visuals/createMaster.d.ts +1 -1
  25. package/Charting/Visuals/createMaster.js +11 -6
  26. package/Charting/Visuals/createSingle.d.ts +1 -1
  27. package/Charting/Visuals/createSingle.js +2 -2
  28. package/Charting/Visuals/sciChartInitCommon.d.ts +2 -2
  29. package/Charting/Visuals/sciChartInitCommon.js +18 -12
  30. package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -2
  31. package/Charting3D/Visuals/SciChart3DSurface.js +3 -3
  32. package/Charting3D/Visuals/createMaster3d.d.ts +1 -1
  33. package/Charting3D/Visuals/createMaster3d.js +11 -6
  34. package/Charting3D/Visuals/createSingle3d.d.ts +1 -1
  35. package/Charting3D/Visuals/createSingle3d.js +2 -2
  36. package/Core/BuildStamp.d.ts +1 -1
  37. package/Core/BuildStamp.js +2 -2
  38. package/Core/NumberRange.d.ts +1 -0
  39. package/Core/NumberRange.js +8 -0
  40. package/_wasm/scichart.browser.js +1 -1
  41. package/_wasm/scichart2d.js +95 -95
  42. package/_wasm/scichart2d.wasm +0 -0
  43. package/_wasm/scichart3d.js +95 -95
  44. package/_wasm/scichart3d.wasm +0 -0
  45. package/package.json +1 -1
  46. package/types/NumberArray.d.ts +1 -0
  47. package/types/NumberArray.js +5 -1
  48. package/types/TStackedAxisLength.d.ts +4 -0
  49. package/types/TStackedAxisLength.js +4 -0
@@ -55,15 +55,15 @@ var sciChartMaster3D = {
55
55
  /** @ignore */
56
56
  var sciChartMaster3DPromise;
57
57
  /** @ignore */
58
- var createMultichart3d = function (divElementId, options) { return __awaiter(void 0, void 0, void 0, function () {
59
- var canvases, loader, loaderDiv, master, createChildSurface, wasmContext_1, sciChart3DSurface_1, err_1;
58
+ var createMultichart3d = function (divElement, options) { return __awaiter(void 0, void 0, void 0, function () {
59
+ var canvases, loader, loaderDiv, master, createChildSurface, wasmContext_1, divElementId, sciChart3DSurface_1, err_1;
60
60
  var _a, _b, _c, _d, _e;
61
61
  return __generator(this, function (_f) {
62
62
  switch (_f.label) {
63
63
  case 0:
64
64
  (0, chartBuilder_1.ensureRegistrations)();
65
- sciChartInitCommon_1.default.checkChartDivExists(divElementId);
66
- canvases = sciChartInitCommon_1.default.initCanvas(divElementId, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0, sciChartInitCommon_1.default.ECanvasType.canvas2D);
65
+ sciChartInitCommon_1.default.checkChartDivExists(divElement);
66
+ canvases = sciChartInitCommon_1.default.initCanvas(divElement, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0, sciChartInitCommon_1.default.ECanvasType.canvas2D);
67
67
  loader = (_c = options === null || options === void 0 ? void 0 : options.loader) !== null && _c !== void 0 ? _c : new loader_1.DefaultSciChartLoader();
68
68
  loaderDiv = loader.addChartLoader(canvases.domDivContainer, (_d = options === null || options === void 0 ? void 0 : options.theme) !== null && _d !== void 0 ? _d : SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME);
69
69
  _f.label = 1;
@@ -85,6 +85,7 @@ var createMultichart3d = function (divElementId, options) { return __awaiter(voi
85
85
  _f.label = 3;
86
86
  case 3:
87
87
  createChildSurface = sciChartMaster3D.createChildSurface, wasmContext_1 = sciChartMaster3D.wasmContext;
88
+ divElementId = canvases.domChartRoot.id;
88
89
  sciChart3DSurface_1 = createChildSurface(divElementId, canvases, (_e = options === null || options === void 0 ? void 0 : options.theme) !== null && _e !== void 0 ? _e : SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME);
89
90
  return [2 /*return*/, new Promise(function (resolve) {
90
91
  setTimeout(function () {
@@ -117,7 +118,7 @@ var createMaster = function () {
117
118
  return sciChart3DSurface;
118
119
  };
119
120
  var addDestination = function (wasmContext, canvasElementId, sciChartSurface, width, height, chartInitObj3D) {
120
- var newDestination = (0, SciChartSurfaceBase_1.createChartDestination)(canvasElementId);
121
+ var newDestination = (0, SciChartSurfaceBase_1.createChartDestination)(sciChartSurface.domCanvas2D);
121
122
  if (!newDestination) {
122
123
  sciChartSurface.delete();
123
124
  return;
@@ -182,7 +183,7 @@ var createMaster = function () {
182
183
  wasmContext.SCRTSetGlobalSampleChartInterface3D(chartInitObj);
183
184
  // create an object that native side can trigger the copy to from...
184
185
  var canvasCopyObj = wasmContext.SCRTCopyToDestinationInterface.implement({
185
- CopyToDestination: (0, SciChartSurfaceBase_1.copyToCanvas)(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas)
186
+ CopyToDestination: (0, SciChartSurfaceBase_1.copyToCanvas)(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas, getDestinationById)
186
187
  });
187
188
  wasmContext.SCRTSetGlobalCopyToDestinationInterface(canvasCopyObj);
188
189
  wasmContext.TSRSetDrawRequestsEnabled(true);
@@ -194,3 +195,7 @@ var createMaster = function () {
194
195
  });
195
196
  });
196
197
  };
198
+ /** @ignore */
199
+ var getDestinationById = function (destinationId) {
200
+ return exports.sciChartDestinations.find(function (dest) { return dest.canvasElementId === destinationId; });
201
+ };
@@ -1,3 +1,3 @@
1
1
  import { I2DSurfaceOptions } from "../../Charting/Visuals/I2DSurfaceOptions";
2
2
  import { TWebAssemblyChart3D } from "./SciChart3DSurface";
3
- export declare const createSingle3dInternal: (divElementId: string, options?: I2DSurfaceOptions) => Promise<TWebAssemblyChart3D>;
3
+ export declare const createSingle3dInternal: (divElement: string | HTMLDivElement, options?: I2DSurfaceOptions) => Promise<TWebAssemblyChart3D>;
@@ -12,11 +12,11 @@ var WebGlHelper_1 = require("../../Core/WebGlHelper");
12
12
  var logger_1 = require("../../utils/logger");
13
13
  var licenseManager3D_1 = require("./licenseManager3D");
14
14
  var SciChart3DSurface_1 = require("./SciChart3DSurface");
15
- var createSingle3dInternal = function (divElementId, options) {
15
+ var createSingle3dInternal = function (divElement, options) {
16
16
  (0, chartBuilder_1.ensureRegistrations)();
17
17
  return new Promise(function (resolve, reject) {
18
18
  var _a, _b, _c, _d;
19
- var canvases = sciChartInitCommon_1.default.initCanvas(divElementId, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0);
19
+ var canvases = sciChartInitCommon_1.default.initCanvas(divElement, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0);
20
20
  var loader = (_c = options === null || options === void 0 ? void 0 : options.loader) !== null && _c !== void 0 ? _c : new loader_1.DefaultSciChartLoader();
21
21
  var loaderDiv = loader.addChartLoader(canvases.domDivContainer, (_d = options === null || options === void 0 ? void 0 : options.theme) !== null && _d !== void 0 ? _d : SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME);
22
22
  var webGLSupport = WebGlHelper_1.WebGlHelper.getWebGlSupport();
@@ -1,4 +1,4 @@
1
1
  import { TSciChart } from "../types/TSciChart";
2
2
  import { TSciChart3D } from "../types/TSciChart3D";
3
- export declare const libraryVersion = "2.0.2204";
3
+ export declare const libraryVersion = "2.0.2228";
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 = "2022-01-11T00:00:00";
4
+ var buildStamp = "2022-01-24T00:00:00";
5
5
  var result;
6
6
  // tslint:disable-next-line:no-var-requires
7
- exports.libraryVersion = "2.0.2204";
7
+ exports.libraryVersion = "2.0.2228";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;
@@ -51,4 +51,5 @@ export declare class NumberRange {
51
51
  * Returns true if the range min === range max
52
52
  */
53
53
  isZero(): boolean;
54
+ static areEqual(range1: NumberRange, range2: NumberRange): boolean;
54
55
  }
@@ -117,6 +117,14 @@ var NumberRange = /** @class */ (function () {
117
117
  NumberRange.prototype.isZero = function () {
118
118
  return this.min === this.max;
119
119
  };
120
+ NumberRange.areEqual = function (range1, range2) {
121
+ if (range1 === range2)
122
+ return true;
123
+ if (range1) {
124
+ return range1.equals(range2);
125
+ }
126
+ return false;
127
+ };
120
128
  return NumberRange;
121
129
  }());
122
130
  exports.NumberRange = NumberRange;