scichart 3.2.509 → 3.2.525
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/ChartModifiers/CursorModifier.d.ts +11 -0
- package/Charting/ChartModifiers/CursorModifier.js +67 -23
- package/Charting/ChartModifiers/RolloverModifier.js +18 -10
- package/Charting/ChartModifiers/constants.d.ts +2 -1
- package/Charting/ChartModifiers/constants.js +1 -0
- package/Charting/Model/ChartData/SeriesInfo.d.ts +1 -0
- package/Charting/Model/ChartData/SeriesInfo.js +1 -0
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +1 -2
- package/Charting/Visuals/Annotations/BoxAnnotation.js +1 -2
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +35 -6
- package/Charting/Visuals/Annotations/CustomAnnotation.js +54 -14
- package/Charting/Visuals/Annotations/LineAnnotation.js +1 -2
- package/Charting/Visuals/Annotations/NativeTextAnnotation.js +49 -3
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +1 -2
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +9 -5
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +8 -2
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +2 -3
- package/Charting/Visuals/Annotations/TextAnnotation.d.ts +42 -0
- package/Charting/Visuals/Annotations/TextAnnotation.js +91 -12
- package/Charting/Visuals/Annotations/constants.d.ts +1 -0
- package/Charting/Visuals/Annotations/constants.js +1 -0
- package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +2 -2
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +1 -1
- package/Charting/Visuals/Legend/SciChartLegendBase.js +8 -3
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +4 -4
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +5 -5
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +4 -4
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.js +13 -0
- package/Charting/Visuals/RenderableSeries/HitTest/ImpulseSeriesHitTestProvider.js +3 -3
- package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +4 -4
- package/Charting/Visuals/RenderableSeries/HitTest/ScatterSeriesHitTestProvider.js +3 -3
- package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +9 -3
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +39 -56
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.js +12 -0
- package/Charting/Visuals/RenderableSeries/RolloverModifier/constants.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/RolloverModifier/constants.js +1 -0
- package/Charting/Visuals/SciChartSurface.d.ts +14 -0
- package/Charting/Visuals/SciChartSurface.js +18 -0
- package/Charting/Visuals/createMaster.d.ts +1 -3
- package/Charting/Visuals/createMaster.js +4 -5
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Mouse/MouseManager.js +2 -2
- package/README.md +5 -1
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +1 -1
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +1 -0
- package/index.dev.js +425 -178
- package/index.js +13 -11
- package/index.min.js +1 -1
- package/package.json +1 -1
- package/types/TSciChart.d.ts +9 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.hitTestHelpers = void 0;
|
|
4
|
+
var Deleter_1 = require("../../../../Core/Deleter");
|
|
4
5
|
var Point_1 = require("../../../../Core/Point");
|
|
5
6
|
var ErrorDirection_1 = require("../../../../types/ErrorDirection");
|
|
6
7
|
var pointUtil_1 = require("../../../../utils/pointUtil");
|
|
@@ -23,7 +24,7 @@ var interpolateLinear = function (x, x1, y1, x2, y2) {
|
|
|
23
24
|
* @param nearestPointIndex
|
|
24
25
|
* @param hitTestRadius
|
|
25
26
|
*/
|
|
26
|
-
var createHitTestInfo = function (renderableSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, hitTestRadius) {
|
|
27
|
+
var createHitTestInfo = function (renderableSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, hitTestRadius, distance) {
|
|
27
28
|
var isCategoryAxis = xCoordinateCalculator.isCategoryCoordinateCalculator;
|
|
28
29
|
var hitTestInfo = new HitTestInfo_1.HitTestInfo(renderableSeries);
|
|
29
30
|
hitTestInfo.dataSeriesName = dataSeries.dataSeriesName;
|
|
@@ -35,6 +36,7 @@ var createHitTestInfo = function (renderableSeries, xCoordinateCalculator, yCoor
|
|
|
35
36
|
hitTestInfo.dataSeriesIndex = nearestPointIndex;
|
|
36
37
|
hitTestInfo.hitTestRadius = hitTestRadius;
|
|
37
38
|
hitTestInfo.isCategoryAxis = isCategoryAxis;
|
|
39
|
+
hitTestInfo.distance = distance;
|
|
38
40
|
// If there is no data, don't attempt to access it.
|
|
39
41
|
if (nearestPointIndex >= 0) {
|
|
40
42
|
var xValue = isCategoryAxis ? nearestPointIndex : xNativeValues.get(nearestPointIndex);
|
|
@@ -74,70 +76,51 @@ var createHitTestInfo = function (renderableSeries, xCoordinateCalculator, yCoor
|
|
|
74
76
|
return hitTestInfo;
|
|
75
77
|
};
|
|
76
78
|
var getNearestXPoint = function (webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, isSorted) {
|
|
77
|
-
var
|
|
79
|
+
var result = getNearestXyPoint(webAssemblyContext, xCoordinateCalculator, xCoordinateCalculator, dataSeries, xHitCoord, 0, 0);
|
|
80
|
+
return result.nearestPointIndex;
|
|
81
|
+
};
|
|
82
|
+
var getNearestXyPoint = function (webassemblyContext, xCoordinateCalculator, yCoordinateCalculator, dataSeries, xHitCoord, yHitCoord, hitTestRadius) {
|
|
78
83
|
var isCategoryAxis = xCoordinateCalculator.isCategoryCoordinateCalculator;
|
|
79
|
-
var
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
var dataX = isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
|
|
85
|
+
var dataY = dataSeries.getNativeYValues();
|
|
86
|
+
var result;
|
|
87
|
+
try {
|
|
88
|
+
result = webassemblyContext.SCRTHitTestHelper.GetNearestXyPoint(xCoordinateCalculator.nativeCalculator, yCoordinateCalculator.nativeCalculator, dataX, dataY, dataSeries.dataDistributionCalculator.isSortedAscending, xHitCoord, yHitCoord, hitTestRadius !== null && hitTestRadius !== void 0 ? hitTestRadius : 1 // Default to 1 here so unsorted data will get nearest by x and y
|
|
89
|
+
);
|
|
90
|
+
return { nearestPointIndex: result.minD, distance: result.maxD };
|
|
82
91
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
var nearestPointIndex = -1;
|
|
86
|
-
var currentDistance = Number.MAX_VALUE;
|
|
87
|
-
for (var i = 0; i < dataLength; i++) {
|
|
88
|
-
var xValue = xValues.get(i);
|
|
89
|
-
var distance = Math.abs(xHitValue - xValue);
|
|
90
|
-
if (distance < currentDistance) {
|
|
91
|
-
nearestPointIndex = i;
|
|
92
|
-
currentDistance = distance;
|
|
93
|
-
}
|
|
92
|
+
finally {
|
|
93
|
+
(0, Deleter_1.deleteSafe)(result);
|
|
94
94
|
}
|
|
95
|
-
return nearestPointIndex;
|
|
96
95
|
};
|
|
97
|
-
var
|
|
98
|
-
var dataLength = dataSeries.count();
|
|
99
|
-
// TODO: if isSorted
|
|
100
|
-
var nearestPointIndex = -1;
|
|
101
|
-
var currentDistance = Number.MAX_VALUE;
|
|
96
|
+
var getNearestXyyPoint = function (webassemblyContext, xCoordinateCalculator, yCoordinateCalculator, dataSeries, xHitCoord, yHitCoord, hitTestRadius) {
|
|
102
97
|
var isCategoryAxis = xCoordinateCalculator.isCategoryCoordinateCalculator;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
98
|
+
var dataX = isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
|
|
99
|
+
var dataY = dataSeries.getNativeYValues();
|
|
100
|
+
var result;
|
|
101
|
+
var nearestY;
|
|
102
|
+
var distanceY;
|
|
103
|
+
try {
|
|
104
|
+
result = webassemblyContext.SCRTHitTestHelper.GetNearestXyPoint(xCoordinateCalculator.nativeCalculator, yCoordinateCalculator.nativeCalculator, dataX, dataY, dataSeries.dataDistributionCalculator.isSortedAscending, xHitCoord, yHitCoord, hitTestRadius !== null && hitTestRadius !== void 0 ? hitTestRadius : 1);
|
|
105
|
+
nearestY = result.minD;
|
|
106
|
+
distanceY = result.maxD;
|
|
113
107
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
for (var i = 0; i < dataLength; i++) {
|
|
123
|
-
var dataX = isCategoryAxis ? i : dataSeries.getNativeXValues().get(i);
|
|
124
|
-
var dataY = dataSeries.getNativeYValues().get(i);
|
|
125
|
-
var dataY1 = dataSeries.getNativeY1Values().get(i);
|
|
126
|
-
var coordX = xCoordinateCalculator.getCoordinate(dataX);
|
|
127
|
-
var coordY = yCoordinateCalculator.getCoordinate(dataY);
|
|
128
|
-
var coordY1 = yCoordinateCalculator.getCoordinate(dataY1);
|
|
129
|
-
var distance = (0, pointUtil_1.calcDistance)(xHitCoord, yHitCoord, coordX, coordY);
|
|
130
|
-
var distance1 = (0, pointUtil_1.calcDistance)(xHitCoord, yHitCoord, coordX, coordY1);
|
|
131
|
-
if (distance < currentDistance) {
|
|
132
|
-
nearestPointIndex = i;
|
|
133
|
-
currentDistance = distance;
|
|
108
|
+
finally {
|
|
109
|
+
(0, Deleter_1.deleteSafe)(result);
|
|
110
|
+
}
|
|
111
|
+
try {
|
|
112
|
+
result = webassemblyContext.SCRTHitTestHelper.GetNearestXyPoint(xCoordinateCalculator.nativeCalculator, yCoordinateCalculator.nativeCalculator, dataX, dataSeries.getNativeY1Values(), dataSeries.dataDistributionCalculator.isSortedAscending, xHitCoord, yHitCoord, hitTestRadius !== null && hitTestRadius !== void 0 ? hitTestRadius : 1);
|
|
113
|
+
if (distanceY < result.maxD) {
|
|
114
|
+
// Y is nearer
|
|
115
|
+
return { nearestPointIndex: nearestY, distance: distanceY };
|
|
134
116
|
}
|
|
135
|
-
|
|
136
|
-
nearestPointIndex
|
|
137
|
-
currentDistance = distance1;
|
|
117
|
+
else {
|
|
118
|
+
return { nearestPointIndex: result.minD, distance: result.maxD };
|
|
138
119
|
}
|
|
139
120
|
}
|
|
140
|
-
|
|
121
|
+
finally {
|
|
122
|
+
(0, Deleter_1.deleteSafe)(result);
|
|
123
|
+
}
|
|
141
124
|
};
|
|
142
125
|
var getNearestUniformHeatmapPoint = function (xCoordinateCalculator, yCoordinateCalculator, heatmapDataSeries, xHitCoord, yHitCoord) {
|
|
143
126
|
var xHitValue = xCoordinateCalculator.getDataValue(xHitCoord);
|
|
@@ -29,6 +29,7 @@ export declare class RolloverModifierRenderableSeriesProps {
|
|
|
29
29
|
private tooltipTextColorProperty;
|
|
30
30
|
private tooltipTitleProperty;
|
|
31
31
|
private markerColorProperty;
|
|
32
|
+
private shadowColorProperty;
|
|
32
33
|
private tooltipDataTemplateProperty?;
|
|
33
34
|
private isY1;
|
|
34
35
|
constructor(renderableSeries: IRenderableSeries, isY1?: boolean);
|
|
@@ -43,6 +44,8 @@ export declare class RolloverModifierRenderableSeriesProps {
|
|
|
43
44
|
set tooltipTitle(value: string);
|
|
44
45
|
get markerColor(): string;
|
|
45
46
|
set markerColor(value: string);
|
|
47
|
+
get shadowColor(): string;
|
|
48
|
+
set shadowColor(value: string);
|
|
46
49
|
get tooltipDataTemplate(): TRolloverTooltipDataTemplate;
|
|
47
50
|
set tooltipDataTemplate(value: TRolloverTooltipDataTemplate);
|
|
48
51
|
get tooltipLegendTemplate(): (tooltipProps: RolloverModifierRenderableSeriesProps, seriesInfo: SeriesInfo) => string;
|
package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.js
CHANGED
|
@@ -26,6 +26,7 @@ var RolloverModifierRenderableSeriesProps = /** @class */ (function () {
|
|
|
26
26
|
to.tooltipTemplate = from.tooltipTemplate;
|
|
27
27
|
to.tooltipTextColorProperty = from.tooltipTextColorProperty;
|
|
28
28
|
to.tooltipTitleProperty = from.tooltipTitle;
|
|
29
|
+
to.shadowColorProperty = from.shadowColorProperty;
|
|
29
30
|
to.invalidateParentCallback = from.invalidateParentCallback;
|
|
30
31
|
};
|
|
31
32
|
RolloverModifierRenderableSeriesProps.prototype.setInvalidateParentCallback = function (callback) {
|
|
@@ -102,6 +103,17 @@ var RolloverModifierRenderableSeriesProps = /** @class */ (function () {
|
|
|
102
103
|
enumerable: false,
|
|
103
104
|
configurable: true
|
|
104
105
|
});
|
|
106
|
+
Object.defineProperty(RolloverModifierRenderableSeriesProps.prototype, "shadowColor", {
|
|
107
|
+
get: function () {
|
|
108
|
+
return this.shadowColorProperty;
|
|
109
|
+
},
|
|
110
|
+
set: function (value) {
|
|
111
|
+
this.shadowColorProperty = value;
|
|
112
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.TOOLTIP_SHADOW_COLOR);
|
|
113
|
+
},
|
|
114
|
+
enumerable: false,
|
|
115
|
+
configurable: true
|
|
116
|
+
});
|
|
105
117
|
Object.defineProperty(RolloverModifierRenderableSeriesProps.prototype, "tooltipDataTemplate", {
|
|
106
118
|
get: function () {
|
|
107
119
|
return this.tooltipDataTemplateProperty;
|
|
@@ -4,5 +4,6 @@ export declare enum PROPERTY {
|
|
|
4
4
|
TOOLTIP_COLOR = "TOOLTIP_COLOR",
|
|
5
5
|
TOOLTIP_DATA_TEMPLATE = "TOOLTIP_DATA_TEMPLATE",
|
|
6
6
|
TOOLTIP_TEXT_COLOR = "TOOLTIP_TEXT_COLOR",
|
|
7
|
-
TOOLTIP_TITLE = "TOOLTIP_TITLE"
|
|
7
|
+
TOOLTIP_TITLE = "TOOLTIP_TITLE",
|
|
8
|
+
TOOLTIP_SHADOW_COLOR = "TOOLTIP_SHADOW_COLOR"
|
|
8
9
|
}
|
|
@@ -9,4 +9,5 @@ var PROPERTY;
|
|
|
9
9
|
PROPERTY["TOOLTIP_DATA_TEMPLATE"] = "TOOLTIP_DATA_TEMPLATE";
|
|
10
10
|
PROPERTY["TOOLTIP_TEXT_COLOR"] = "TOOLTIP_TEXT_COLOR";
|
|
11
11
|
PROPERTY["TOOLTIP_TITLE"] = "TOOLTIP_TITLE";
|
|
12
|
+
PROPERTY["TOOLTIP_SHADOW_COLOR"] = "TOOLTIP_SHADOW_COLOR";
|
|
12
13
|
})(PROPERTY = exports.PROPERTY || (exports.PROPERTY = {}));
|
|
@@ -91,12 +91,26 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
91
91
|
static configure(config: TSciChartConfig): void;
|
|
92
92
|
/**
|
|
93
93
|
* Tell SciChart to load the Wasm and Data files from CDN, rather than expecting them to be served by the host server.
|
|
94
|
+
* @deprecated the method name breaks [eslint react-hooks/rules-of-hooks](https://legacy.reactjs.org/docs/hooks-rules.html).
|
|
95
|
+
* To avoid this error in React, use {@link loadWasmFromCDN} instead.
|
|
96
|
+
*
|
|
94
97
|
*/
|
|
95
98
|
static useWasmFromCDN(): void;
|
|
96
99
|
/**
|
|
97
100
|
* Tell SciChart to load the Wasm and Data files from the local server, rather than from CDN.
|
|
101
|
+
* @deprecated the method name breaks [eslint react-hooks/rules-of-hooks](https://legacy.reactjs.org/docs/hooks-rules.html).
|
|
102
|
+
* To avoid this error in React, use {@link loadWasmLocal} instead.
|
|
103
|
+
*
|
|
98
104
|
*/
|
|
99
105
|
static useWasmLocal(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Tell SciChart to load the Wasm and Data files from CDN, rather than expecting them to be served by the host server.
|
|
108
|
+
*/
|
|
109
|
+
static loadWasmFromCDN(): void;
|
|
110
|
+
/**
|
|
111
|
+
* Tell SciChart to load the Wasm and Data files from the local server, rather than from CDN.
|
|
112
|
+
*/
|
|
113
|
+
static loadWasmLocal(): void;
|
|
100
114
|
static isSubSurface(surface: SciChartSurface): surface is SciChartSubSurface;
|
|
101
115
|
private static createTest;
|
|
102
116
|
renderSurface: RenderSurface;
|
|
@@ -344,6 +344,9 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
344
344
|
};
|
|
345
345
|
/**
|
|
346
346
|
* Tell SciChart to load the Wasm and Data files from CDN, rather than expecting them to be served by the host server.
|
|
347
|
+
* @deprecated the method name breaks [eslint react-hooks/rules-of-hooks](https://legacy.reactjs.org/docs/hooks-rules.html).
|
|
348
|
+
* To avoid this error in React, use {@link loadWasmFromCDN} instead.
|
|
349
|
+
*
|
|
347
350
|
*/
|
|
348
351
|
SciChartSurface.useWasmFromCDN = function () {
|
|
349
352
|
exports.sciChartConfig.dataUrl = "https://cdn.jsdelivr.net/npm/scichart@".concat(BuildStamp_1.libraryVersion, "/_wasm/scichart2d.data");
|
|
@@ -351,10 +354,25 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
351
354
|
};
|
|
352
355
|
/**
|
|
353
356
|
* Tell SciChart to load the Wasm and Data files from the local server, rather than from CDN.
|
|
357
|
+
* @deprecated the method name breaks [eslint react-hooks/rules-of-hooks](https://legacy.reactjs.org/docs/hooks-rules.html).
|
|
358
|
+
* To avoid this error in React, use {@link loadWasmLocal} instead.
|
|
359
|
+
*
|
|
354
360
|
*/
|
|
355
361
|
SciChartSurface.useWasmLocal = function () {
|
|
356
362
|
SciChartSurface.configure(undefined);
|
|
357
363
|
};
|
|
364
|
+
/**
|
|
365
|
+
* Tell SciChart to load the Wasm and Data files from CDN, rather than expecting them to be served by the host server.
|
|
366
|
+
*/
|
|
367
|
+
SciChartSurface.loadWasmFromCDN = function () {
|
|
368
|
+
return SciChartSurface.useWasmFromCDN();
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Tell SciChart to load the Wasm and Data files from the local server, rather than from CDN.
|
|
372
|
+
*/
|
|
373
|
+
SciChartSurface.loadWasmLocal = function () {
|
|
374
|
+
return SciChartSurface.useWasmLocal();
|
|
375
|
+
};
|
|
358
376
|
SciChartSurface.isSubSurface = function (surface) {
|
|
359
377
|
return surface.isSubSurface;
|
|
360
378
|
};
|
|
@@ -3,10 +3,8 @@ import { I2DSurfaceOptions } from "./I2DSurfaceOptions";
|
|
|
3
3
|
import { TWebAssemblyChart } from "./SciChartSurface";
|
|
4
4
|
/** @ignore */
|
|
5
5
|
export declare const createMultichart: (divElement: string | HTMLDivElement, options?: I2DSurfaceOptions) => Promise<TWebAssemblyChart>;
|
|
6
|
-
|
|
7
|
-
declare const initializeChartEngine: () => Promise<void>;
|
|
6
|
+
export declare const initializeChartEngine2D: () => Promise<void>;
|
|
8
7
|
/** @ignore */
|
|
9
8
|
export declare const disposeMultiChart: () => void;
|
|
10
9
|
/** @ignore */
|
|
11
10
|
export declare const monitorWebGL: (wasmContext: TSciChart) => void;
|
|
12
|
-
export { initializeChartEngine as initializeChartEngine2D };
|
|
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.monitorWebGL = exports.disposeMultiChart = exports.initializeChartEngine2D = exports.createMultichart = void 0;
|
|
40
40
|
// @ts-ignore
|
|
41
41
|
var WasmModule2D = require("../../_wasm/scichart2d");
|
|
42
42
|
var BuildStamp_1 = require("../../Core/BuildStamp");
|
|
@@ -77,7 +77,7 @@ var createMultichart = function (divElement, options) { return __awaiter(void 0,
|
|
|
77
77
|
_d.label = 1;
|
|
78
78
|
case 1:
|
|
79
79
|
_d.trys.push([1, 3, , 4]);
|
|
80
|
-
return [4 /*yield*/,
|
|
80
|
+
return [4 /*yield*/, (0, exports.initializeChartEngine2D)()];
|
|
81
81
|
case 2:
|
|
82
82
|
_d.sent();
|
|
83
83
|
createChildSurface = sciChartMaster.createChildSurface, wasmContext_1 = sciChartMaster.wasmContext;
|
|
@@ -102,8 +102,7 @@ var createMultichart = function (divElement, options) { return __awaiter(void 0,
|
|
|
102
102
|
});
|
|
103
103
|
}); };
|
|
104
104
|
exports.createMultichart = createMultichart;
|
|
105
|
-
|
|
106
|
-
var initializeChartEngine = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
105
|
+
var initializeChartEngine2D = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
107
106
|
var master;
|
|
108
107
|
return __generator(this, function (_a) {
|
|
109
108
|
switch (_a.label) {
|
|
@@ -127,7 +126,7 @@ var initializeChartEngine = function () { return __awaiter(void 0, void 0, void
|
|
|
127
126
|
}
|
|
128
127
|
});
|
|
129
128
|
}); };
|
|
130
|
-
exports.initializeChartEngine2D =
|
|
129
|
+
exports.initializeChartEngine2D = initializeChartEngine2D;
|
|
131
130
|
var cleanupWasmContext;
|
|
132
131
|
/** @ignore */
|
|
133
132
|
var disposeMultiChart = function () {
|
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.2.
|
|
3
|
+
export declare const libraryVersion = "3.2.525";
|
|
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 = "2023-11-
|
|
4
|
+
var buildStamp = "2023-11-21T00:00:00";
|
|
5
5
|
var result;
|
|
6
6
|
// tslint:disable-next-line:no-var-requires
|
|
7
|
-
exports.libraryVersion = "3.2.
|
|
7
|
+
exports.libraryVersion = "3.2.525";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|
|
@@ -566,8 +566,8 @@ var MouseManager = /** @class */ (function () {
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
else {
|
|
569
|
-
// If not over the subchart, don't process
|
|
570
|
-
if (
|
|
569
|
+
// If not over the subchart, don't process events other than these
|
|
570
|
+
if (![EMouseEventType.Cancel, EMouseEventType.Up, EMouseEventType.Move].includes(subEventType)) {
|
|
571
571
|
subEventType = undefined;
|
|
572
572
|
}
|
|
573
573
|
}
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# SciChart.js: High Performance JavaScript Chart Library
|
|
2
2
|
|
|
3
|
+
> **NEW!** ChangeLog
|
|
4
|
+
>
|
|
5
|
+
> Find out what's new in every Major and Minor release at the [Change Log here](https://www.scichart.com/changelog/scichart-js/)
|
|
6
|
+
|
|
3
7
|
[SciChart.js](https://www.scichart.com) is a High Performance JavaScript & TypeScript Charting library
|
|
4
8
|
which WebGL and WebAssembly to achieve incredible real-time and big-data performance. Fast and able to draw millions of datapoints in realtime, our charts will never cause your app to slow down again!
|
|
5
9
|
|
|
@@ -11,7 +15,7 @@ which WebGL and WebAssembly to achieve incredible real-time and big-data perform
|
|
|
11
15
|
|
|
12
16
|
SciChart.JS v3.2 is released! Check out
|
|
13
17
|
|
|
14
|
-
- [Latest Changes](https://www.scichart.com/
|
|
18
|
+
- [Latest Changes](https://www.scichart.com/changelog/scichart-js/)
|
|
15
19
|
- [v3.2 Release notes](https://www.scichart.com/scichart-js-v3-2-released/)
|
|
16
20
|
- [v3.1 Release notes](https://www.scichart.com/scichart-js-v3-1-released/)
|
|
17
21
|
- [v3.0 Release notes](https://www.scichart.com/scichart-js-v3-0-released) There should not be any breaking changes from v2.
|