Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Define objects before creating group #103

Open
codezion opened this issue May 2, 2020 · 5 comments
Open

Define objects before creating group #103

codezion opened this issue May 2, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@codezion
Copy link

codezion commented May 2, 2020

Maybe props are ignored some reason. Such properties are introduced in other components, but not in this. Could it be the solution?

@bensladden
Copy link
Owner

Hello, i cant replicate your issue:

See here: https://codesandbox.io/s/stickman-pubww?file=/src/App.vue

@bensladden bensladden added awaiting reply question Further information is requested labels May 3, 2020
@codezion
Copy link
Author

codezion commented May 3, 2020

Hi,
That runtime move works, but not the initial position.
In your example, the initial left is set to 40 but it draws it to position 0
Thank you for the wrapper. It will be very useful.

@bensladden
Copy link
Owner

Hi,
I believe the group position only works once the objects are added to the group. A work around would be to get the objects in position you want before grouping

@codezion
Copy link
Author

codezion commented May 4, 2020

Does the limitation come from the fabric lib or the wrapper (vue architecture)?
The only point of the grouping is to avoid managing each drawing separately so I think some magic is needed to add to the wrapper to get it working. A wrapper without the grouping is not very useful. After all, it is only the problem that the data do not go through or it do not go through at the right time.

@bensladden
Copy link
Owner

Its due to the individual components been added to the group after the group is defined. In hindsight these items need to be defined first when their parent is the group.

@bensladden bensladden added enhancement New feature or request and removed awaiting reply question Further information is requested labels May 5, 2020
@bensladden bensladden changed the title fabric-group top, left, etc do not work Define objects before creating group May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants