@octanejs/three 0.1.59 → 0.1.60
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/package.json +6 -6
- package/src/web/events.ts +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/three",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.60",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@types/three": ">=0.156.0",
|
|
53
|
-
"octane": "^0.
|
|
53
|
+
"octane": "^0.14.0",
|
|
54
54
|
"three": ">=0.156.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@octanejs/rsbuild-plugin": "0.1.
|
|
63
|
-
"@octanejs/rspack-plugin": "0.2.
|
|
64
|
-
"@octanejs/vite-plugin": "0.4.
|
|
62
|
+
"@octanejs/rsbuild-plugin": "0.1.66",
|
|
63
|
+
"@octanejs/rspack-plugin": "0.2.5",
|
|
64
|
+
"@octanejs/vite-plugin": "0.4.2",
|
|
65
65
|
"@react-three/fiber": "9.6.1",
|
|
66
66
|
"@rsbuild/core": "^2.1.6",
|
|
67
67
|
"@rspack/core": "^2.1.4",
|
|
68
68
|
"@tsrx/react": "^0.4.5",
|
|
69
69
|
"@types/three": "0.172.0",
|
|
70
70
|
"esbuild": "^0.28.1",
|
|
71
|
-
"octane": "0.
|
|
71
|
+
"octane": "0.14.0",
|
|
72
72
|
"playwright": "^1.61.1",
|
|
73
73
|
"react": "19.2.7",
|
|
74
74
|
"react-dom": "19.2.7",
|
package/src/web/events.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
'use strong';
|
|
2
|
+
|
|
3
|
+
import { __createDiscreteEventListener } from 'octane';
|
|
2
4
|
import type { RootState, RootStore } from '../core/store.js';
|
|
3
5
|
import {
|
|
4
6
|
createEvents,
|
|
@@ -26,12 +28,12 @@ export function createPointerEvents(store: RootStore): EventManager<HTMLElement>
|
|
|
26
28
|
const { handlePointer } = createEvents(store);
|
|
27
29
|
const handlers = Object.fromEntries(
|
|
28
30
|
(Object.keys(DOM_EVENTS) as Array<keyof typeof DOM_EVENTS>).map((name) => {
|
|
29
|
-
const
|
|
31
|
+
const listener = handlePointer(name);
|
|
30
32
|
return [
|
|
31
33
|
name,
|
|
32
34
|
getThreeEventPriority(name) === 'discrete'
|
|
33
|
-
? (
|
|
34
|
-
:
|
|
35
|
+
? __createDiscreteEventListener(listener)
|
|
36
|
+
: listener,
|
|
35
37
|
];
|
|
36
38
|
}),
|
|
37
39
|
) as unknown as Events;
|