scichart 3.3.560 → 3.3.567
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/Builder/buildSurface.d.ts +1 -1
- package/Builder/buildSurface.js +27 -14
- package/Charting/ChartModifiers/CursorModifier.js +3 -0
- package/Charting/ChartModifiers/RolloverModifier.js +3 -0
- package/Charting/Model/XyDataSeries.js +7 -0
- package/Charting/Services/SciChartRenderer.d.ts +1 -0
- package/Charting/Services/SciChartRenderer.js +19 -3
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +4 -2
- package/Charting/Visuals/SciChartDefaults.d.ts +5 -0
- package/Charting/Visuals/SciChartDefaults.js +5 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +1 -1
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +6 -3
- package/Charting/Visuals/SciChartSurface.d.ts +14 -2
- package/Charting/Visuals/SciChartSurface.js +57 -5
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +20 -5
- package/Charting/Visuals/SciChartSurfaceBase.js +100 -18
- package/Charting/Visuals/UpdateSuspender.d.ts +7 -3
- package/Charting/Visuals/UpdateSuspender.js +38 -8
- package/Charting/Visuals/copyCanvasUtils.d.ts +5 -0
- package/Charting/Visuals/copyCanvasUtils.js +24 -0
- package/Charting/Visuals/createMaster.js +25 -9
- package/Charting/Visuals/createSingle.js +10 -0
- package/Charting/Visuals/licenseManager2D.d.ts +1 -1
- package/Charting/Visuals/licenseManager2D.js +3 -3
- package/Charting/Visuals/sciChartInitCommon.js +5 -2
- package/Charting3D/Visuals/SciChart3DRenderer.d.ts +1 -0
- package/Charting3D/Visuals/SciChart3DRenderer.js +10 -1
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +1 -0
- package/Charting3D/Visuals/SciChart3DSurface.js +28 -2
- package/Charting3D/Visuals/createMaster3d.js +2 -1
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Mouse/MouseManager.js +12 -7
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +1 -1
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +1 -1
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +2 -2
- package/index.dev.js +477 -63
- package/index.js +14 -12
- package/index.min.js +1 -1
- package/package.json +1 -1
- package/utils/logger.js +10 -1
- package/utils/perfomance.d.ts +139 -0
- package/utils/perfomance.js +150 -0
|
@@ -39,6 +39,7 @@ var Globals_1 = require("../../Core/Globals");
|
|
|
39
39
|
var createMaster_1 = require("../../Charting/Visuals/createMaster");
|
|
40
40
|
var EventHandler_1 = require("../../Core/EventHandler");
|
|
41
41
|
var Thickness_1 = require("../../Core/Thickness");
|
|
42
|
+
var perfomance_1 = require("../../utils/perfomance");
|
|
42
43
|
exports.sciChartConfig3D = {};
|
|
43
44
|
/**
|
|
44
45
|
* @summary The {@link SciChart3DSurface} is the root 3D Chart control in SciChart's High Performance Real-time
|
|
@@ -133,8 +134,16 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
133
134
|
* @param options Optional parameters of type {@link I3DSurfaceOptions}
|
|
134
135
|
*/
|
|
135
136
|
SciChart3DSurface.createSingle = function (divElement, options) {
|
|
137
|
+
var startMark = perfomance_1.PerformanceDebugHelper.mark(perfomance_1.EPerformanceMarkType.InitializationStart, {
|
|
138
|
+
contextId: options === null || options === void 0 ? void 0 : options.id
|
|
139
|
+
});
|
|
136
140
|
return (0, createSingle3d_1.createSingle3dInternal)(divElement, options).then(function (result) {
|
|
141
|
+
var _a;
|
|
137
142
|
result.sciChart3DSurface.applyOptions(options);
|
|
143
|
+
perfomance_1.PerformanceDebugHelper.mark(perfomance_1.EPerformanceMarkType.InitializationEnd, {
|
|
144
|
+
contextId: result.sciChart3DSurface.id,
|
|
145
|
+
relatedId: (_a = startMark === null || startMark === void 0 ? void 0 : startMark.detail) === null || _a === void 0 ? void 0 : _a.relatedId
|
|
146
|
+
});
|
|
138
147
|
return result;
|
|
139
148
|
});
|
|
140
149
|
};
|
|
@@ -184,8 +193,14 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
184
193
|
* @param options Optional parameters of type {@link I3DSurfaceOptions}
|
|
185
194
|
*/
|
|
186
195
|
SciChart3DSurface.create = function (divElementId, options) {
|
|
196
|
+
var mark = perfomance_1.PerformanceDebugHelper.mark(perfomance_1.EPerformanceMarkType.InitializationStart, { contextId: options === null || options === void 0 ? void 0 : options.id });
|
|
187
197
|
return (0, createMaster3d_1.createMultichart3d)(divElementId, options).then(function (result) {
|
|
198
|
+
var _a, _b;
|
|
188
199
|
result.sciChart3DSurface.applyOptions(options);
|
|
200
|
+
perfomance_1.PerformanceDebugHelper.mark(perfomance_1.EPerformanceMarkType.InitializationEnd, {
|
|
201
|
+
contextId: (_a = result.sciChart3DSurface) === null || _a === void 0 ? void 0 : _a.id,
|
|
202
|
+
relatedId: (_b = mark === null || mark === void 0 ? void 0 : mark.detail) === null || _b === void 0 ? void 0 : _b.relatedId
|
|
203
|
+
});
|
|
189
204
|
return result;
|
|
190
205
|
});
|
|
191
206
|
};
|
|
@@ -441,7 +456,7 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
441
456
|
SciChart3DSurface.prototype.invalidateElement = function () {
|
|
442
457
|
var _a;
|
|
443
458
|
// When isSuspended (see suspendUpdates() function) ignore drawing
|
|
444
|
-
if (this.isSuspended || this.isDeleted) {
|
|
459
|
+
if (this.isSuspended || this.isDeleted || !this.isInitialized) {
|
|
445
460
|
// Logger.log("SciChart3DSurface.isSuspended = true. Ignoring invalidateElement() call");
|
|
446
461
|
return;
|
|
447
462
|
}
|
|
@@ -449,6 +464,7 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
449
464
|
if ((_a = WebGlHelper_1.WebGlHelper.getContext(this.webAssemblyContext3D.canvas)) === null || _a === void 0 ? void 0 : _a.isContextLost()) {
|
|
450
465
|
return;
|
|
451
466
|
}
|
|
467
|
+
this.sciChart3DRenderer.isInvalidated = true;
|
|
452
468
|
var canvasId = this.domCanvas2D ? this.domCanvas2D.id : "undefinedCanvasId";
|
|
453
469
|
this.webAssemblyContext3D.TSRRequestCanvasDraw(canvasId);
|
|
454
470
|
};
|
|
@@ -472,6 +488,14 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
472
488
|
enumerable: false,
|
|
473
489
|
configurable: true
|
|
474
490
|
});
|
|
491
|
+
Object.defineProperty(SciChart3DSurface.prototype, "isInvalidated", {
|
|
492
|
+
get: function () {
|
|
493
|
+
var _a;
|
|
494
|
+
return (_a = this.sciChart3DRenderer) === null || _a === void 0 ? void 0 : _a.isInvalidated;
|
|
495
|
+
},
|
|
496
|
+
enumerable: false,
|
|
497
|
+
configurable: true
|
|
498
|
+
});
|
|
475
499
|
/**
|
|
476
500
|
* Called after the {@link SciChart3DSurface} has rendered.
|
|
477
501
|
*/
|
|
@@ -479,7 +503,9 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
479
503
|
this.chartModifiers.asArray().forEach(function (cm) {
|
|
480
504
|
cm.onParentSurfaceRendered();
|
|
481
505
|
});
|
|
482
|
-
this.
|
|
506
|
+
if (!this.isCopyCanvasSurface) {
|
|
507
|
+
this.rendered.raiseEvent(this.sciChart3DRenderer.isInvalidated);
|
|
508
|
+
}
|
|
483
509
|
};
|
|
484
510
|
/**
|
|
485
511
|
* Called internally - the main drawing loop
|
|
@@ -40,6 +40,7 @@ exports.disposeMultiChart3d = exports.createMultichart3d = void 0;
|
|
|
40
40
|
// @ts-ignore
|
|
41
41
|
var WasmModule3D = require("../../_wasm/scichart3d");
|
|
42
42
|
var chartBuilder_1 = require("../../Builder/chartBuilder");
|
|
43
|
+
var copyCanvasUtils_1 = require("../../Charting/Visuals/copyCanvasUtils");
|
|
43
44
|
var licenseManager2D_1 = require("../../Charting/Visuals/licenseManager2D");
|
|
44
45
|
var loader_1 = require("../../Charting/Visuals/loader");
|
|
45
46
|
var SciChartDefaults_1 = require("../../Charting/Visuals/SciChartDefaults");
|
|
@@ -244,7 +245,7 @@ var createMaster = function () {
|
|
|
244
245
|
wasmContext.SCRTSetGlobalSampleChartInterface(chartInitObj);
|
|
245
246
|
// create an object that native side can trigger the copy to from...
|
|
246
247
|
var canvasCopyObj = wasmContext.SCRTCopyToDestinationInterface.implement({
|
|
247
|
-
CopyToDestination: (0,
|
|
248
|
+
CopyToDestination: (0, copyCanvasUtils_1.copyToCanvas)(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas, getDestinationById)
|
|
248
249
|
});
|
|
249
250
|
wasmContext.SCRTSetGlobalCopyToDestinationInterface(canvasCopyObj);
|
|
250
251
|
wasmContext.TSRSetDrawRequestsEnabled(true);
|
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 = "3.3.
|
|
3
|
+
export declare const libraryVersion = "3.3.567";
|
|
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 = "2024-
|
|
4
|
+
var buildStamp = "2024-02-12T00:00:00";
|
|
5
5
|
var result;
|
|
6
6
|
// tslint:disable-next-line:no-var-requires
|
|
7
|
-
exports.libraryVersion = "3.3.
|
|
7
|
+
exports.libraryVersion = "3.3.567";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|
|
@@ -541,6 +541,8 @@ var MouseManager = /** @class */ (function () {
|
|
|
541
541
|
MouseManager.prototype.updateSubCharts = function (args, eventType) {
|
|
542
542
|
var _this = this;
|
|
543
543
|
var subCharts = this.sciChartSurface.subCharts;
|
|
544
|
+
if (!subCharts || subCharts.length === 0)
|
|
545
|
+
return;
|
|
544
546
|
var currentActiveSubChart = subCharts === null || subCharts === void 0 ? void 0 : subCharts.find(function (scs) {
|
|
545
547
|
var _a = scs.padding, top = _a.top, left = _a.left, bottom = _a.bottom, right = _a.right;
|
|
546
548
|
var _b = args.mousePoint, x = _b.x, y = _b.y;
|
|
@@ -596,14 +598,17 @@ var MouseManager = /** @class */ (function () {
|
|
|
596
598
|
// modifiers on parent may prevent handling of modifer on subchart
|
|
597
599
|
args.handled = false;
|
|
598
600
|
this.callEvent(eventType, scs, args);
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
601
|
+
if (args.isActiveSubChartEvent) {
|
|
602
|
+
// Only replicate modifier group events for active subchart
|
|
603
|
+
scs.chartModifierGroups.forEach(function (modifierGroup) {
|
|
604
|
+
subCharts
|
|
605
|
+
.filter(function (sc) { return sc.id !== scs.id; })
|
|
606
|
+
.forEach(function (scOther) {
|
|
607
|
+
var args2 = ModifierMouseArgs_1.ModifierMouseArgs.copyForSubChart(args, modifierGroup, scs.seriesViewRect, scOther.seriesViewRect, masterData);
|
|
608
|
+
_this.callEvent(eventType, scOther, args2);
|
|
609
|
+
});
|
|
605
610
|
});
|
|
606
|
-
}
|
|
611
|
+
}
|
|
607
612
|
};
|
|
608
613
|
MouseManager.prototype.callEvent = function (eventType, scs, args) {
|
|
609
614
|
switch (eventType) {
|