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

Feat: Copy and paste elements into the canvas #35

Open
2 of 3 tasks
sandstone991 opened this issue Jun 23, 2023 · 2 comments
Open
2 of 3 tasks

Feat: Copy and paste elements into the canvas #35

sandstone991 opened this issue Jun 23, 2023 · 2 comments

Comments

@sandstone991
Copy link
Member

sandstone991 commented Jun 23, 2023

A user should be able to select one or more elements, copy them and paste them wherever the cursor is at that time.

  • Should be able to validate the structure of the pasted content to detect whether they are zagyElements or not
  • Should find a solution for asking for clipboard permission (other vendors seem to have it solved)
  • Should be able to paste across different instances of the page

The elements will need to be recreated since you wouldn't be able to transform things like canvases or Path2d into a string

@sandstone991
Copy link
Member Author

Attaching a global paste event seems to have done the trick

@nagy-nabil
Copy link
Member

copy and export scene in #61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants