angular-three 4.1.1 → 4.2.1
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/fesm2022/angular-three.mjs +13 -1
- package/fesm2022/angular-three.mjs.map +1 -1
- package/metadata.json +384 -2196
- package/package.json +2 -2
- package/types/angular-three-dom.d.ts +1 -1
- package/types/angular-three-testing.d.ts +2 -2
- package/web-types.json +321 -2253
|
@@ -1351,7 +1351,19 @@ function createEvents(store) {
|
|
|
1351
1351
|
const duplicates = new Set();
|
|
1352
1352
|
const intersections = [];
|
|
1353
1353
|
// Allow callers to eliminate event objects
|
|
1354
|
-
const
|
|
1354
|
+
const allEventsObjects = filter ? filter(state.internal.interaction) : state.internal.interaction;
|
|
1355
|
+
// filter out invisible objects
|
|
1356
|
+
const eventsObjects = [];
|
|
1357
|
+
for (const eventsObject of allEventsObjects) {
|
|
1358
|
+
let current = eventsObject;
|
|
1359
|
+
while (current) {
|
|
1360
|
+
if (!current.visible)
|
|
1361
|
+
break;
|
|
1362
|
+
current = current.parent;
|
|
1363
|
+
}
|
|
1364
|
+
if (!current)
|
|
1365
|
+
eventsObjects.push(eventsObject);
|
|
1366
|
+
}
|
|
1355
1367
|
if (!state.previousRoot) {
|
|
1356
1368
|
// Make sure root-level pointer and ray are set up
|
|
1357
1369
|
state.events.compute?.(event, store, null);
|