@geode/opengeodeweb-front 10.28.0-rc.4 → 10.28.0-rc.5
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.
|
@@ -6,15 +6,15 @@ const bgVal = BACKGROUND_GREY_VALUE / RGB_MAX;
|
|
|
6
6
|
const BACKGROUND_COLOR = [bgVal, bgVal, bgVal];
|
|
7
7
|
const actVal = ACTOR_DARK_VALUE / RGB_MAX;
|
|
8
8
|
const ACTOR_COLOR = [actVal, actVal, actVal];
|
|
9
|
-
const HOVER_THROTTLE_MS = 50;
|
|
10
9
|
const HOVER_TIMEOUT_MS = 500;
|
|
11
10
|
const WHEEL_TIME_OUT_MS = 600;
|
|
11
|
+
const HOVER_DEBOUNCE_MS = 50;
|
|
12
12
|
|
|
13
13
|
export {
|
|
14
14
|
ACTOR_COLOR,
|
|
15
15
|
BACKGROUND_COLOR,
|
|
16
16
|
BACKGROUND_GREY_VALUE,
|
|
17
|
-
|
|
17
|
+
HOVER_DEBOUNCE_MS,
|
|
18
18
|
HOVER_TIMEOUT_MS,
|
|
19
19
|
RGB_MAX,
|
|
20
20
|
WHEEL_TIME_OUT_MS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HOVER_DEBOUNCE_MS, HOVER_TIMEOUT_MS } from "./hybrid_viewer_constants";
|
|
2
2
|
import { database } from "@ogw_internal/database/database.js";
|
|
3
3
|
import { performHoverHighlight } from "./hybrid_viewer";
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ function createHoverHighlight(options) {
|
|
|
28
28
|
clearHoverData,
|
|
29
29
|
} = options;
|
|
30
30
|
|
|
31
|
-
return
|
|
31
|
+
return useDebounceFn((event) => {
|
|
32
32
|
const containerElement = genericRenderWindow.value?.getContainer();
|
|
33
33
|
let relativeMousePosition = { x: 0, y: 0 };
|
|
34
34
|
if (containerElement) {
|
|
@@ -108,7 +108,7 @@ function createHoverHighlight(options) {
|
|
|
108
108
|
}, HOVER_TIMEOUT_MS);
|
|
109
109
|
},
|
|
110
110
|
});
|
|
111
|
-
},
|
|
111
|
+
}, HOVER_DEBOUNCE_MS);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
export { createClearHoverData, createHoverHighlight };
|
package/package.json
CHANGED