Skip to content
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

[Question] Right way to deal with group #239

Open
guillaumegarcia13 opened this issue Aug 26, 2019 · 1 comment
Open

[Question] Right way to deal with group #239

guillaumegarcia13 opened this issue Aug 26, 2019 · 1 comment
Labels
Feature New features to implement Need Discussion Need discussion or investigation

Comments

@guillaumegarcia13
Copy link

Version

3.5.2

Development Environment

Windows 10 / Chrome

Current Behavior

We tried to add some group into the canvas using the following.

var canvas = imageEditor._graphics._canvas;
  ... // create line and circle

var groupArrow = new fabric.Group([
    lineOriginal.clone(),
    circleOriginal.clone()
]);

lineOriginal.remove();
circleOriginal.remove();

canvas.add(groupArrow);

Problem is the removal that raises error (The object is not in canvas) in the removeActiveObject method (the group is seen as a single object)

Expected Behavior

Being able to manipulate group objects consistently.

@junghwan-park
Copy link
Member

@guillaumegarcia13
Currently, imageEditor.removeActiveObject() method is remove an object that ImageEditor added self. ImageEditor not support group object officially from now, I'll consider add group object to ImageEditor object type. Thanks.

@junghwan-park junghwan-park added Need Discussion Need discussion or investigation Feature New features to implement labels Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New features to implement Need Discussion Need discussion or investigation
Projects
None yet
Development

No branches or pull requests

2 participants