Missing forEachObject and getObjects methods in Group in v6? #9535
Closed
lukaszkowalik2
started this conversation in
General
Replies: 1 comment
-
Where did you get that impression? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In version v5 of the fabric.js library, the Group object had convenient methods like
forEachObject
andgetObjects
. However, in the transition to v6, these methods seem to be missing. The absence of these methods has led to a workaround, but I am uncertain if it is the optimal solution.Current Workaround:
Concerns:
The current workaround involves accessing private properties (_objects), which may not be a sustainable or recommended approach. Is this the preferred way to iterate through objects in a fabric.js Group in version v6, or is there a better alternative?
Request for Guidance:
I would appreciate guidance on whether the current workaround is a suitable solution or if there is a recommended method to achieve the same result in fabric.js v6.
CodeSandbox Link:
CodeSandbox - fabric.js v6 Group Issue
Beta Was this translation helpful? Give feedback.
All reactions