-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: events #844
Open
andretchen0
wants to merge
17
commits into
main
Choose a base branch
from
refactor/events
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
refactor: events #844
Commits on Sep 12, 2024
-
* (fix) BREAKING - remove `event.intersects` – use `event.intersections` * (fix) BREAKING - remove `event.stopPropagating` – use `event.stopPropagation` * (fix) BREAKING – from TresCanvas, don't emit pointer/click events bubbled from Tres objects * (fix) BREAKING – `event.delta` is now reset to `0` following a `click`. * (fix) BREAKING – `pointerleave` handlers were sent previous intersections at `event.intersections`, now current intersections. * (fix) BREAKING – `@dblclick` now fires whenever the canvas `dblclick` is emitted. Any TresObject with an `@dblclick` handler will receive the event if it is under the pointer. (Previously objects not under the initial click did not receive the `@dblclick`.) * (fix) `event.pointer` is now defined – previously typed but was `undefined` in implementation. * (fix) `event.unprojectedPoint` is now properly calculated. Was previously left as `TODO`. * (fix) `event.eventObject` holds the object that registered the event handler. Was previously typed but `undefined` in implementation. * (fix) use Vue-style ("flatcase") event names, e.g. `@pointerdown`. Keep support for old-style ("kebab-case") event names, e.g. `@pointer-down`, and warn. Mixing both on the same object is not supported and may lead to handlers being overwritten. * (fix) `@pointer{leave,out}` was fired multiple times on a single "leave" – Issue #801 * (feat) BREAKING – `pointermissed` fires when the object that registered the handler is missed – previously only fired when ALL objects were missed * (feat) add filtering/sorting for intersections, prior to handling events. `:events={filter: (intersections) => ...}` * (feat) support Vue event modifiers – `stop, prevent, self, once`. (Tres cannot support `passive` and does not currently support `capture`.) * (feat) via `:events-target` prop, allow users to specify an HTML `addEventListener` target – allows Tres to respond to events, even if there's an overlay on the canvas. * (feat) via `:events-enabled` prop, allow `eventManager` to be enabled/disabled while Tres is running. * (feat) via `:events` prop, allow `eventManager` functions to be set/overwritten (non-reactive). * (feat) via `:events` prop, allow events system to be disabled completely: `<TresCanvas :events="null" />` (non-reactive) * (feat) `pointer{leave,out}` is triggered (if necessary) just prior to object removal. * (feat) `:blocking="true"` makes a subtree "solid"; objects behind objects in the subtree will not be "hit".
Configuration menu - View commit details
-
Copy full SHA for 46545d5 - Browse repository at this point
Copy the full SHA 46545d5View commit details
Commits on Sep 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0b2a3e7 - Browse repository at this point
Copy the full SHA 0b2a3e7View commit details
Commits on Sep 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 56ebfc5 - Browse repository at this point
Copy the full SHA 56ebfc5View commit details
Commits on Sep 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e1af2e9 - Browse repository at this point
Copy the full SHA e1af2e9View commit details
Commits on Sep 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 33daa91 - Browse repository at this point
Copy the full SHA 33daa91View commit details
Commits on Sep 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 75e0436 - Browse repository at this point
Copy the full SHA 75e0436View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67afe06 - Browse repository at this point
Copy the full SHA 67afe06View commit details
Commits on Sep 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 359c6ef - Browse repository at this point
Copy the full SHA 359c6efView commit details -
Configuration menu - View commit details
-
Copy full SHA for d67e156 - Browse repository at this point
Copy the full SHA d67e156View commit details -
Configuration menu - View commit details
-
Copy full SHA for 033372c - Browse repository at this point
Copy the full SHA 033372cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3f90ff - Browse repository at this point
Copy the full SHA b3f90ffView commit details
Commits on Sep 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0a1835d - Browse repository at this point
Copy the full SHA 0a1835dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f765254 - Browse repository at this point
Copy the full SHA f765254View commit details -
Configuration menu - View commit details
-
Copy full SHA for 350b854 - Browse repository at this point
Copy the full SHA 350b854View commit details -
Configuration menu - View commit details
-
Copy full SHA for e601be0 - Browse repository at this point
Copy the full SHA e601be0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 395d8a9 - Browse repository at this point
Copy the full SHA 395d8a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 799ad72 - Browse repository at this point
Copy the full SHA 799ad72View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.