scichart 2.1.2290 → 2.1.2294
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.
- package/Charting/Visuals/SciChartSurface.d.ts +6 -1
- package/Charting/Visuals/SciChartSurface.js +10 -1
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +95 -95
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +95 -95
- package/_wasm/scichart3d.wasm +0 -0
- package/package.json +1 -1
|
@@ -65,7 +65,8 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
65
65
|
static createSingle(divElement: string | HTMLDivElement, options?: I2DSurfaceOptions): Promise<TWebAssemblyChart>;
|
|
66
66
|
/**
|
|
67
67
|
* Allows setting of web URL for Wasm and Data files, in the case you are loading SciChart outside of npm/webpack environment.
|
|
68
|
-
* Note
|
|
68
|
+
* Note the version number of data/wasm Urls must match the version number of SciChart.js you are using.
|
|
69
|
+
* To use the default CDN, just call SciChart.SciChartSurface.useWasmFromCDN();
|
|
69
70
|
* @example
|
|
70
71
|
* ```ts
|
|
71
72
|
* SciChart.SciChartSurface.configure({
|
|
@@ -76,6 +77,10 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
76
77
|
* @param config
|
|
77
78
|
*/
|
|
78
79
|
static configure(config: TSciChartConfig): void;
|
|
80
|
+
/**
|
|
81
|
+
* Tell SciChart to load the Wasm and Data files from CDN, rather than expecting them to be served by the host server.
|
|
82
|
+
*/
|
|
83
|
+
static useWasmFromCDN(): void;
|
|
79
84
|
private static createTest;
|
|
80
85
|
readonly renderSurface: RenderSurface;
|
|
81
86
|
/**
|
|
@@ -31,6 +31,7 @@ var chartBuilder_1 = require("../../Builder/chartBuilder");
|
|
|
31
31
|
var classFactory_1 = require("../../Builder/classFactory");
|
|
32
32
|
var app_1 = require("../../constants/app");
|
|
33
33
|
var EasingFunctions_1 = require("../../Core/Animations/EasingFunctions");
|
|
34
|
+
var BuildStamp_1 = require("../../Core/BuildStamp");
|
|
34
35
|
var Deleter_1 = require("../../Core/Deleter");
|
|
35
36
|
var Dictionary_1 = require("../../Core/Dictionary");
|
|
36
37
|
var EventHandler_1 = require("../../Core/EventHandler");
|
|
@@ -231,7 +232,8 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
231
232
|
};
|
|
232
233
|
/**
|
|
233
234
|
* Allows setting of web URL for Wasm and Data files, in the case you are loading SciChart outside of npm/webpack environment.
|
|
234
|
-
* Note
|
|
235
|
+
* Note the version number of data/wasm Urls must match the version number of SciChart.js you are using.
|
|
236
|
+
* To use the default CDN, just call SciChart.SciChartSurface.useWasmFromCDN();
|
|
235
237
|
* @example
|
|
236
238
|
* ```ts
|
|
237
239
|
* SciChart.SciChartSurface.configure({
|
|
@@ -246,6 +248,13 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
246
248
|
exports.sciChartConfig.dataUrl = (_a = config === null || config === void 0 ? void 0 : config.dataUrl) !== null && _a !== void 0 ? _a : undefined;
|
|
247
249
|
exports.sciChartConfig.wasmUrl = (_b = config === null || config === void 0 ? void 0 : config.wasmUrl) !== null && _b !== void 0 ? _b : undefined;
|
|
248
250
|
};
|
|
251
|
+
/**
|
|
252
|
+
* Tell SciChart to load the Wasm and Data files from CDN, rather than expecting them to be served by the host server.
|
|
253
|
+
*/
|
|
254
|
+
SciChartSurface.useWasmFromCDN = function () {
|
|
255
|
+
exports.sciChartConfig.dataUrl = "https://cdn.jsdelivr.net/npm/scichart@".concat(BuildStamp_1.libraryVersion, "/_wasm/scichart2d.data");
|
|
256
|
+
exports.sciChartConfig.wasmUrl = "https://cdn.jsdelivr.net/npm/scichart@".concat(BuildStamp_1.libraryVersion, "/_wasm/scichart2d.wasm");
|
|
257
|
+
};
|
|
249
258
|
SciChartSurface.createTest = function (divElement, options) {
|
|
250
259
|
var _a, _b;
|
|
251
260
|
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, sciChartInitCommon_1.default.ECanvasType.canvas2D);
|
package/Core/BuildStamp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TSciChart } from "../types/TSciChart";
|
|
2
2
|
import { TSciChart3D } from "../types/TSciChart3D";
|
|
3
|
-
export declare const libraryVersion = "2.1.
|
|
3
|
+
export declare const libraryVersion = "2.1.2294";
|
|
4
4
|
export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
|
package/Core/BuildStamp.js
CHANGED
|
@@ -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-03-
|
|
4
|
+
var buildStamp = "2022-03-16T00:00:00";
|
|
5
5
|
var result;
|
|
6
6
|
// tslint:disable-next-line:no-var-requires
|
|
7
|
-
exports.libraryVersion = "2.1.
|
|
7
|
+
exports.libraryVersion = "2.1.2294";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|