scichart 3.2.481 → 3.2.491
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/Drawing/WebGlRenderContext2D.d.ts +1 -1
- package/Charting/Drawing/WebGlRenderContext2D.js +1 -1
- package/Charting/Visuals/Legend/SciChartLegendBase.js +15 -2
- package/Charting/Visuals/RenderableSeries/HitTest/ScatterSeriesHitTestProvider.js +16 -5
- package/Charting/Visuals/TextureManager/CanvasTexture.js +1 -7
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/ObservableArray.d.ts +1 -1
- package/Core/ObservableArray.js +1 -1
- 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.dev.js +39 -21
- package/index.min.js +1 -1
- package/package.json +1 -1
- package/types/TSciChart.d.ts +1 -0
|
@@ -38,7 +38,7 @@ export declare enum ELineDrawMode {
|
|
|
38
38
|
*/
|
|
39
39
|
export declare class WebGlRenderContext2D extends DeletableEntity implements IRenderContext2D {
|
|
40
40
|
/**
|
|
41
|
-
* Should store
|
|
41
|
+
* Should store references to all cached WebGlResources {@link ICacheable}
|
|
42
42
|
* Is used to invalidate the resources when the WebGL context is lost.
|
|
43
43
|
*/
|
|
44
44
|
static readonly webGlResourcesRefs: Set<ICacheable>;
|
|
@@ -358,7 +358,7 @@ var WebGlRenderContext2D = /** @class */ (function (_super) {
|
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
/**
|
|
361
|
-
* Should store
|
|
361
|
+
* Should store references to all cached WebGlResources {@link ICacheable}
|
|
362
362
|
* Is used to invalidate the resources when the WebGL context is lost.
|
|
363
363
|
*/
|
|
364
364
|
WebGlRenderContext2D.webGlResourcesRefs = new Set();
|
|
@@ -371,8 +371,21 @@ exports.getLegendItemHtml = getLegendItemHtml;
|
|
|
371
371
|
var getLegendContainerHtml = function (placement, textColor, backgroundColor, margin, body) {
|
|
372
372
|
if (!body)
|
|
373
373
|
return "";
|
|
374
|
-
|
|
375
|
-
var
|
|
374
|
+
//const float = [ELegendPlacement.TopLeft, ELegendPlacement.BottomLeft].includes(placement) ? "left" : "right";
|
|
375
|
+
var positionStyle = "";
|
|
376
|
+
if (placement === ELegendPlacement.TopLeft) {
|
|
377
|
+
positionStyle = "left: 0; top: 0;";
|
|
378
|
+
}
|
|
379
|
+
else if (placement === ELegendPlacement.TopRight) {
|
|
380
|
+
positionStyle = "right: 0; top: 0;";
|
|
381
|
+
}
|
|
382
|
+
else if (placement === ELegendPlacement.BottomLeft) {
|
|
383
|
+
positionStyle = "left: 0; bottom: 0;";
|
|
384
|
+
}
|
|
385
|
+
else if (placement === ELegendPlacement.BottomRight) {
|
|
386
|
+
positionStyle = "right: 0; bottom: 0;";
|
|
387
|
+
}
|
|
388
|
+
var htmlStr = "<div class=\"scichart__legend\" style=\"height: 100%; position: absolute; display: flex; ".concat(positionStyle, " text-align: center;\">");
|
|
376
389
|
var alignSelf = [ELegendPlacement.TopLeft, ELegendPlacement.TopRight].includes(placement)
|
|
377
390
|
? "flex-start"
|
|
378
391
|
: "flex-end";
|
|
@@ -83,12 +83,23 @@ var ScatterSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
83
83
|
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
84
84
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
85
85
|
if (nearestPointIndex >= 0) {
|
|
86
|
-
var isCategoryAxis = xCoordinateCalculator.isCategoryCoordinateCalculator;
|
|
87
|
-
var xFirstValue = isCategoryAxis ? 0 : xNativeValues.get(0);
|
|
88
|
-
var xFirstCoord = xCoordinateCalculator.getCoordinate(xFirstValue);
|
|
89
|
-
var xLastValue = isCategoryAxis ? xNativeValues.size() - 1 : xNativeValues.get(xNativeValues.size() - 1);
|
|
90
|
-
var xLastCoord = xCoordinateCalculator.getCoordinate(xLastValue);
|
|
91
86
|
var width = this.parentSeries.pointMarker.width;
|
|
87
|
+
var isCategoryAxis = xCoordinateCalculator.isCategoryCoordinateCalculator;
|
|
88
|
+
var xFirstCoord = void 0;
|
|
89
|
+
var xLastCoord = void 0;
|
|
90
|
+
if (dataSeries.dataDistributionCalculator.isSortedAscending) {
|
|
91
|
+
var xFirstValue = isCategoryAxis ? 0 : xNativeValues.get(0);
|
|
92
|
+
xFirstCoord = xCoordinateCalculator.getCoordinate(xFirstValue);
|
|
93
|
+
var xLastValue = isCategoryAxis
|
|
94
|
+
? xNativeValues.size() - 1
|
|
95
|
+
: xNativeValues.get(xNativeValues.size() - 1);
|
|
96
|
+
xLastCoord = xCoordinateCalculator.getCoordinate(xLastValue);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
var xRange = dataSeries.getXRange();
|
|
100
|
+
xFirstCoord = xCoordinateCalculator.getCoordinate(xRange.min);
|
|
101
|
+
xLastCoord = xCoordinateCalculator.getCoordinate(xRange.max);
|
|
102
|
+
}
|
|
92
103
|
hitTestInfo.isWithinDataBounds = (0, pointUtil_1.testIsInInterval)(xHitCoord, xFirstCoord, xLastCoord, width / 2);
|
|
93
104
|
hitTestInfo.isHit = hitTestInfo.isWithinDataBounds;
|
|
94
105
|
}
|
|
@@ -18,7 +18,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.CanvasTexture = void 0;
|
|
19
19
|
var app_1 = require("../../../constants/app");
|
|
20
20
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
21
|
-
var colorUtil_1 = require("../../../utils/colorUtil");
|
|
22
21
|
var TextureCache_1 = require("../../Drawing/TextureCache");
|
|
23
22
|
var Guard_1 = require("../../../Core/Guard");
|
|
24
23
|
var DeletableEntity_1 = require("../../../Core/DeletableEntity");
|
|
@@ -149,12 +148,7 @@ var CanvasTexture = /** @class */ (function (_super) {
|
|
|
149
148
|
this.wasmContext.SCRTFillTextureAbgr(tsrTexture, this.width, this.height, this.intermediateVector);
|
|
150
149
|
};
|
|
151
150
|
CanvasTexture.prototype.applyOpacity = function (opacity) {
|
|
152
|
-
|
|
153
|
-
for (var i = 0; i < size; i++) {
|
|
154
|
-
var oldPixel = this.originalIntermediateVector.get(i);
|
|
155
|
-
var newPixel = (0, colorUtil_1.uintArgbColorMultiplyOpacity)(oldPixel, opacity);
|
|
156
|
-
this.intermediateVector.set(i, newPixel);
|
|
157
|
-
}
|
|
151
|
+
this.wasmContext.SCRTMultiplyColorVectorOpacity(this.originalIntermediateVector, this.intermediateVector, opacity);
|
|
158
152
|
var tsrTexture = this.tsrTextureCache.value;
|
|
159
153
|
this.wasmContext.SCRTFillTextureAbgr(tsrTexture, this.width, this.height, this.intermediateVector);
|
|
160
154
|
};
|
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.491";
|
|
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-10-
|
|
4
|
+
var buildStamp = "2023-10-18T00: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.491";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|
package/Core/ObservableArray.js
CHANGED
|
@@ -34,7 +34,7 @@ var ObservableArray = /** @class */ (function () {
|
|
|
34
34
|
this.collectionChanged.raiseEvent(new ObservableArrayChangedArgs_1.ObservableArrayChangedArgs(ObservableArrayChangedArgs_1.EObservableArrayChangedAction.Add, items, undefined));
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Returns the backing array. Do not modify this collection. Use add or remove instead.
|
|
38
38
|
*/
|
|
39
39
|
ObservableArray.prototype.asArray = function () {
|
|
40
40
|
return this.items;
|