scichart 2.2.2401 → 2.2.2404

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.
@@ -541,6 +541,9 @@ isSorted) {
541
541
  if (!(0, isRealNumber_1.isRealNumber)(minMax.minD) || !(0, isRealNumber_1.isRealNumber)(minMax.maxD)) {
542
542
  return undefined;
543
543
  }
544
+ if (minMax.minD === minMax.maxD) {
545
+ return new NumberRange_1.NumberRange(minMax.minD - 1, minMax.minD + 1);
546
+ }
544
547
  return new NumberRange_1.NumberRange(minMax.minD, minMax.maxD);
545
548
  }
546
549
  finally {
@@ -645,12 +645,12 @@ var AxisBase2D = /** @class */ (function (_super) {
645
645
  // nativeTitleRect = createNativeRect(this.webAssemblyContext2D, 0, 0 - shift, viewTitleRect.width, viewTitleRect.height + additionalSize);
646
646
  // }
647
647
  nativeAxisRect = (0, createNativeRect_1.createNativeRect)(_this.webAssemblyContext2D, 0, 0, viewAxisRect.width, viewAxisRect.height);
648
- nativeTitleRect = (0, createNativeRect_1.createNativeRect)(_this.webAssemblyContext2D, 0, 0, viewTitleRect.width, viewTitleRect.height);
649
648
  if (nativeAxisRect) {
650
649
  var vecRects = (0, NativeObject_1.getVectorRectVertex)(_this.webAssemblyContext2D);
651
650
  vecRects.push_back(nativeAxisRect);
652
651
  renderContext.drawRects(vecRects, brush, viewAxisRect.left, viewAxisRect.top);
653
652
  }
653
+ nativeTitleRect = (0, createNativeRect_1.createNativeRect)(_this.webAssemblyContext2D, 0, 0, viewTitleRect.width, viewTitleRect.height);
654
654
  if (nativeTitleRect) {
655
655
  var vecRects = (0, NativeObject_1.getVectorRectVertex)(_this.webAssemblyContext2D);
656
656
  vecRects.push_back(nativeTitleRect);
@@ -1,4 +1,4 @@
1
1
  import { TSciChart } from "../types/TSciChart";
2
2
  import { TSciChart3D } from "../types/TSciChart3D";
3
- export declare const libraryVersion = "2.2.2401";
3
+ export declare const libraryVersion = "2.2.2404";
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-07-07T00:00:00";
4
+ var buildStamp = "2022-07-26T00:00:00";
5
5
  var result;
6
6
  // tslint:disable-next-line:no-var-requires
7
- exports.libraryVersion = "2.2.2401";
7
+ exports.libraryVersion = "2.2.2404";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;
package/README.md CHANGED
@@ -72,7 +72,7 @@ See more at the Release Notes section at bottom of the page.
72
72
  <meta name="viewport" content="width=device-width, initial-scale=1" />
73
73
  <!-- Include SciChart.js -->
74
74
  <script
75
- src="https://cdn.jsdelivr.net/npm/scichart@2.1.2261/_wasm/scichart.browser.js"
75
+ src="https://cdn.jsdelivr.net/npm/scichart@2.2.2401/_wasm/scichart.browser.js"
76
76
  crossorigin="anonymous"
77
77
  ></script>
78
78
  <script src="scichart-example.js" defer></script>
@@ -119,7 +119,8 @@ SciChart.js can be loaded as an ES6 module with Babel or TypeScript transpiler.
119
119
 
120
120
  4. **Add webpack.config.js file**
121
121
 
122
- Use CopyPlugin to copy wasm and data files and serve them by webpack-dev-server. SciChart.js uses WebAssembly and those files must be loaded.
122
+ Use CopyPlugin to copy wasm and data files and serve them by webpack-dev-server. SciChart.js uses WebAssembly and those files must be loaded. You can avoid this by using SciChart.SciChartSurface.useWasmFromCDN() as noted below,
123
+ but in many scenarios it will be important to be able to serve the webassembly files directly.
123
124
 
124
125
  ```
125
126
  const path = require('path');