scichart 3.2.442 → 3.2.446
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/Annotations/CursorTooltipSvgAnnotation.js +1 -1
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +1 -1
- package/Charting/Visuals/Legend/SciChartLegendBase.js +1 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +8 -1
- package/Charting/Visuals/SciChartSurface.js +5 -2
- package/Charting/Visuals/licenseManager2D.js +1 -1
- package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.js +1 -1
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +7 -3
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.wasm +0 -0
- package/index.dev.js +26 -12
- package/index.min.js +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ var CursorTooltipSvgAnnotation = /** @class */ (function (_super) {
|
|
|
49
49
|
_this.cursorModifier = options.cursorModifier;
|
|
50
50
|
_this.placementDivId = (_j = options === null || options === void 0 ? void 0 : options.placementDivId) !== null && _j !== void 0 ? _j : _this.placementDivId;
|
|
51
51
|
if (_this.placementDivId) {
|
|
52
|
-
var svgRoot = document.
|
|
52
|
+
var svgRoot = document.querySelector("[id='".concat(_this.placementDivId, "']"));
|
|
53
53
|
_this.svgDivRoot = svgRoot;
|
|
54
54
|
}
|
|
55
55
|
return _this;
|
|
@@ -150,7 +150,7 @@ var RolloverTooltipSvgAnnotation = /** @class */ (function (_super) {
|
|
|
150
150
|
else {
|
|
151
151
|
svgString = this.generateSvgString();
|
|
152
152
|
}
|
|
153
|
-
this.svgDivRoot = document.
|
|
153
|
+
this.svgDivRoot = document.querySelector("[id='".concat(this.placementDivId, "']"));
|
|
154
154
|
var svgNode = annotationHelpers_1.annotationHelpers.createSvg(svgString, this.svgDivRoot);
|
|
155
155
|
this.setSvg(svgNode);
|
|
156
156
|
};
|
|
@@ -336,7 +336,7 @@ var SciChartLegendBase = /** @class */ (function (_super) {
|
|
|
336
336
|
SciChartLegendBase.prototype.getParentDiv = function () {
|
|
337
337
|
if (this.placementDivId) {
|
|
338
338
|
return typeof this.placementDivId === "string"
|
|
339
|
-
? document.
|
|
339
|
+
? document.querySelector("[id='".concat(this.placementDivId, "']"))
|
|
340
340
|
: this.placementDivId;
|
|
341
341
|
}
|
|
342
342
|
return this.rootDiv;
|
|
@@ -193,6 +193,7 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
193
193
|
else {
|
|
194
194
|
this.pointSeries.xRange = rp.xVisibleRange;
|
|
195
195
|
}
|
|
196
|
+
console.log(rp.resamplingMode);
|
|
196
197
|
var ps = this.pointSeries;
|
|
197
198
|
var ds = this.dataSeries;
|
|
198
199
|
var xValues = ds.getNativeXValues();
|
|
@@ -201,6 +202,7 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
201
202
|
var result = this.resamplerHelper.resampleIntoPointSeries(this.webAssemblyContext, rp, xValues, yValues, this.xyyTempPointSeries.intIndexes, undefined, this.xyyTempPointSeries.xValues, this.xyyTempPointSeries.yValues, false);
|
|
202
203
|
this.pointSeries.fifoStartIndex = result.OutputSplitIndex;
|
|
203
204
|
var xySize = this.xyyTempPointSeries.intIndexes.size();
|
|
205
|
+
console.log(this.xyyTempPointSeries.xValues.size(), xySize);
|
|
204
206
|
this.resamplerHelper.resampleIntoPointSeries(this.webAssemblyContext, rp, xValues, y1Values, this.xyyTempPointSeries.intIndexes, undefined, this.xyyTempPointSeries.xValues, this.xyyTempPointSeries.y1Values);
|
|
205
207
|
// Because intIndexes vector is not cleared indexes for rpLow are appended at the end of rpHigh indexes
|
|
206
208
|
var xy1Size = this.xyyTempPointSeries.intIndexes.size() - xySize;
|
|
@@ -208,7 +210,12 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
208
210
|
var mergedSize = this.resamplerHelper.mergeIndexes(this.xyyTempPointSeries.intIndexes, xySize, xy1Size, ps.intIndexes);
|
|
209
211
|
// Clear the intIndexes as long as we do not need them any more
|
|
210
212
|
this.xyyTempPointSeries.intIndexes.clear();
|
|
211
|
-
|
|
213
|
+
if (rp.dataIsFifo) {
|
|
214
|
+
ps.indexes.resizeFast(mergedSize);
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
ps.indexes.resizeFast(mergedSize + 1);
|
|
218
|
+
}
|
|
212
219
|
// Get values by indexes for Y and Y1 values
|
|
213
220
|
this.resamplerHelper.copyValuesByIndexes(ps.intIndexes, xValues, yValues, y1Values, mergedSize, rp.isCategoryAxis, this.dataSeries.fifoSweeping, ps.indexes, ps.xValues, ps.yValues, ps.y1Values);
|
|
214
221
|
// This is now done in the copy step above
|
|
@@ -1495,7 +1495,7 @@ var SciChartSubSurface = /** @class */ (function (_super) {
|
|
|
1495
1495
|
if (_this.subChartContainerId) {
|
|
1496
1496
|
_this.subChartContainer =
|
|
1497
1497
|
typeof _this.subChartContainerId === "string"
|
|
1498
|
-
? document.
|
|
1498
|
+
? document.querySelector("[id='".concat(_this.subChartContainerId, "']"))
|
|
1499
1499
|
: _this.subChartContainerId;
|
|
1500
1500
|
}
|
|
1501
1501
|
_this.applyOptions(options.subSurfaceOptions);
|
|
@@ -1705,7 +1705,10 @@ var SciChartSubSurface = /** @class */ (function (_super) {
|
|
|
1705
1705
|
SciChartSubSurface.prototype.getSubChartRect = function () {
|
|
1706
1706
|
var _a = this.renderSurface.viewportSize, width = _a.width, height = _a.height;
|
|
1707
1707
|
var _b = this.adjustedPadding, top = _b.top, left = _b.left, bottom = _b.bottom, right = _b.right;
|
|
1708
|
-
|
|
1708
|
+
// When resizing too fast it could happen that width < left + right or height < top + bottom and it breaks subcharts
|
|
1709
|
+
var newWidth = width - left - right > 0 ? width - left - right : 0;
|
|
1710
|
+
var newHeight = height - top - bottom > 0 ? height - top - bottom : 0;
|
|
1711
|
+
return new Rect_1.Rect(left, top, newWidth, newHeight);
|
|
1709
1712
|
};
|
|
1710
1713
|
/**
|
|
1711
1714
|
* @inheritDoc
|
|
@@ -705,7 +705,7 @@ var createLicenseModal = function (message, postFormMessage) {
|
|
|
705
705
|
licenseModal.style.display = "none";
|
|
706
706
|
}
|
|
707
707
|
};
|
|
708
|
-
var oldModal = document.
|
|
708
|
+
var oldModal = document.querySelector("[id='".concat(licenseModal.id, "']"));
|
|
709
709
|
if (oldModal == null)
|
|
710
710
|
document.body.appendChild(licenseModal);
|
|
711
711
|
else
|
|
@@ -49,7 +49,7 @@ var TooltipSvgAnnotation3D = /** @class */ (function (_super) {
|
|
|
49
49
|
_this.placementDivIdProperty = (_h = options === null || options === void 0 ? void 0 : options.placementDivId) !== null && _h !== void 0 ? _h : _this.placementDivId;
|
|
50
50
|
_this.tooltipDataTemplateProperty = options === null || options === void 0 ? void 0 : options.tooltipDataTemplate;
|
|
51
51
|
if (_this.placementDivId) {
|
|
52
|
-
var svgRoot = document.
|
|
52
|
+
var svgRoot = document.querySelector("[id='".concat(_this.placementDivId, "']"));
|
|
53
53
|
_this.svgDivRoot = svgRoot;
|
|
54
54
|
}
|
|
55
55
|
return _this;
|
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.446";
|
|
4
4
|
export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
|
package/Core/BuildStamp.js
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkBuildStamp = exports.libraryVersion = void 0;
|
|
4
|
-
var buildStamp = "2023-07-
|
|
4
|
+
var buildStamp = "2023-07-28T00: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.446";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|
|
11
11
|
if (!wasmContext)
|
|
12
12
|
return false;
|
|
13
13
|
if (wasmContext.SCRTCredentials.GetBuildStamp) {
|
|
14
|
-
|
|
14
|
+
var wasmBuildStamp = wasmContext.SCRTCredentials.GetBuildStamp();
|
|
15
|
+
if (wasmBuildStamp === buildStamp) {
|
|
15
16
|
result = true;
|
|
16
17
|
return result;
|
|
17
18
|
}
|
|
19
|
+
else {
|
|
20
|
+
console.warn("Build stamp diff: JS - ".concat(buildStamp, "; WASM - ").concat(wasmBuildStamp));
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
console.warn("The SciChart webassembly module is from a different version than the javascript that is calling it.\n Ensure that your build process is copying the correct wasm and data files.");
|
|
20
24
|
result = false;
|