Replies: 1 comment 2 replies
-
What is your end goal? knowing which objects are inside the rectangle or select them? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, today I was fiddling with our implementation of seat allocation tool to improve its performance. And while I succeeded with that by grouping objects inside the bigger groups and caching these (less caches to create, thus better performance) the new problem arisen.

Let's consider this example:
In this example all of the seats are within single group which has
selectable: true
. The current implementation of selection in fabric v5 always checks only the top-level objects when looking for intersection, it also does not provide any option to get the box created for selection (so the selected objects could be calculated by yourself). So in this example when I make selection it will return only singleGroup
object. I believe that when the nested objects also have theselectable: true
flag then these objects should also be taken into account. Same goes for events likemouseup
wheretarget
will always be the "top-level" object.Is there any workaround for this except overwriting the whole implementation of
_collectObjects
method (for selection) and other tweaks for the mouse up ?Beta Was this translation helpful? Give feedback.
All reactions