scichart-engine 1.10.1 → 1.10.3
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/dist/core/OverlayRenderer.d.ts +1 -1
- package/dist/core/chart/ChartRenderLoop.d.ts +3 -3
- package/dist/{index.core-BbUNB-sR.js → index.core-DzCWF264.js} +22 -12
- package/dist/index.core-DzCWF264.js.map +1 -0
- package/dist/scichart-engine.full.js +2 -2
- package/dist/scichart-engine.js +1 -1
- package/package.json +1 -1
- package/dist/index.core-BbUNB-sR.js.map +0 -1
|
@@ -23,8 +23,8 @@ export interface RenderLoopContext {
|
|
|
23
23
|
overlay: OverlayRenderer;
|
|
24
24
|
backgroundColor: [number, number, number, number];
|
|
25
25
|
plotAreaBackground: [number, number, number, number];
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
getCursorOptions: () => CursorOptions | null;
|
|
27
|
+
getCursorPosition: () => {
|
|
28
28
|
x: number;
|
|
29
29
|
y: number;
|
|
30
30
|
} | null;
|
|
@@ -36,7 +36,7 @@ export interface RenderLoopContext {
|
|
|
36
36
|
} | null;
|
|
37
37
|
events: EventEmitter<ChartEventMap>;
|
|
38
38
|
selectionManager: SelectionManager;
|
|
39
|
-
|
|
39
|
+
getHoveredSeriesId: () => string | null;
|
|
40
40
|
pluginManager: PluginManagerImpl;
|
|
41
41
|
updateSeriesBuffer: (s: Series) => void;
|
|
42
42
|
getPlotArea: () => PlotArea;
|
|
@@ -1185,8 +1185,9 @@ class Et {
|
|
|
1185
1185
|
/**
|
|
1186
1186
|
* Clear the overlay
|
|
1187
1187
|
*/
|
|
1188
|
-
clear(
|
|
1189
|
-
this.ctx.
|
|
1188
|
+
clear() {
|
|
1189
|
+
const e = this.ctx.canvas;
|
|
1190
|
+
this.ctx.save(), this.ctx.setTransform(1, 0, 0, 1, 0, 0), this.ctx.clearRect(0, 0, e.width, e.height), this.ctx.restore();
|
|
1190
1191
|
}
|
|
1191
1192
|
/**
|
|
1192
1193
|
* Draw the grid
|
|
@@ -5585,7 +5586,7 @@ function Fe(i, e, t) {
|
|
|
5585
5586
|
);
|
|
5586
5587
|
return;
|
|
5587
5588
|
}
|
|
5588
|
-
i.overlay.clear(
|
|
5589
|
+
i.overlay.clear();
|
|
5589
5590
|
let s = !1, o = !1, r = !1, a = 0, l = "degrees", h = 5, f = 12;
|
|
5590
5591
|
i.series.forEach((y) => {
|
|
5591
5592
|
const x = y.getType();
|
|
@@ -5727,8 +5728,8 @@ class Ui {
|
|
|
5727
5728
|
renderer: this.ctx.renderer,
|
|
5728
5729
|
overlay: this.ctx.overlay,
|
|
5729
5730
|
backgroundColor: this.ctx.backgroundColor,
|
|
5730
|
-
cursorOptions: this.ctx.
|
|
5731
|
-
cursorPosition: this.ctx.
|
|
5731
|
+
cursorOptions: this.ctx.getCursorOptions(),
|
|
5732
|
+
cursorPosition: this.ctx.getCursorPosition(),
|
|
5732
5733
|
selectionRect: this.ctx.selectionRect,
|
|
5733
5734
|
events: this.ctx.events,
|
|
5734
5735
|
updateSeriesBuffer: this.ctx.updateSeriesBuffer,
|
|
@@ -5736,7 +5737,7 @@ class Ui {
|
|
|
5736
5737
|
pixelToDataX: this.ctx.pixelToDataX,
|
|
5737
5738
|
pixelToDataY: this.ctx.pixelToDataY,
|
|
5738
5739
|
selectionManager: this.ctx.selectionManager,
|
|
5739
|
-
hoveredSeriesId: this.ctx.
|
|
5740
|
+
hoveredSeriesId: this.ctx.getHoveredSeriesId()
|
|
5740
5741
|
}, o = performance.now(), r = {
|
|
5741
5742
|
timestamp: o,
|
|
5742
5743
|
deltaTime: o - this.lastRenderTime,
|
|
@@ -5967,12 +5968,12 @@ class Wi {
|
|
|
5967
5968
|
overlay: this.overlay,
|
|
5968
5969
|
backgroundColor: this.backgroundColor,
|
|
5969
5970
|
plotAreaBackground: this.plotAreaBackground,
|
|
5970
|
-
|
|
5971
|
-
|
|
5971
|
+
getCursorOptions: () => this.cursorOptions,
|
|
5972
|
+
getCursorPosition: () => this.cursorPosition,
|
|
5972
5973
|
selectionRect: this.selectionRect,
|
|
5973
5974
|
events: this.events,
|
|
5974
5975
|
selectionManager: this.selectionManager,
|
|
5975
|
-
|
|
5976
|
+
getHoveredSeriesId: () => this.hoveredSeriesId,
|
|
5976
5977
|
pluginManager: this.pluginManager,
|
|
5977
5978
|
updateSeriesBuffer: (o) => de(this.getSeriesContext(), o),
|
|
5978
5979
|
getPlotArea: () => this.getPlotArea(),
|
|
@@ -6004,10 +6005,19 @@ class Wi {
|
|
|
6004
6005
|
},
|
|
6005
6006
|
onBoxZoom: (o) => this.handleBoxZoom(o),
|
|
6006
6007
|
onCursorMove: (o, r) => {
|
|
6007
|
-
|
|
6008
|
+
var h, f;
|
|
6009
|
+
this.cursorPosition = { x: o, y: r };
|
|
6010
|
+
const a = this.getPlotArea();
|
|
6011
|
+
if (o >= a.x && o <= a.x + a.width && r >= a.y && r <= a.y + a.height) {
|
|
6012
|
+
(h = this.cursorOptions) != null && h.enabled && (this.container.style.cursor = "crosshair");
|
|
6013
|
+
const c = this.selectionManager.hitTest(o, r), d = (c == null ? void 0 : c.seriesId) ?? null;
|
|
6014
|
+
this.hoveredSeriesId !== d && (this.hoveredSeriesId = d, this.requestRender());
|
|
6015
|
+
} else (f = this.cursorOptions) != null && f.enabled && (this.container.style.cursor = "default");
|
|
6016
|
+
this.tooltip && this.tooltip.handleCursorMove(o, r), this.requestOverlayRender();
|
|
6008
6017
|
},
|
|
6009
6018
|
onCursorLeave: () => {
|
|
6010
|
-
|
|
6019
|
+
var o;
|
|
6020
|
+
this.cursorPosition = null, (o = this.cursorOptions) != null && o.enabled && (this.container.style.cursor = "default"), this.hoveredSeriesId && (this.hoveredSeriesId = null, this.requestRender()), this.tooltip && this.tooltip.handleCursorLeave(), this.requestOverlayRender();
|
|
6011
6021
|
},
|
|
6012
6022
|
onBoxSelect: (o, r) => {
|
|
6013
6023
|
if (o) {
|
|
@@ -6900,4 +6910,4 @@ export {
|
|
|
6900
6910
|
Oi as y,
|
|
6901
6911
|
Yi as z
|
|
6902
6912
|
};
|
|
6903
|
-
//# sourceMappingURL=index.core-
|
|
6913
|
+
//# sourceMappingURL=index.core-DzCWF264.js.map
|