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

fix: copy canvas when using enableGhostResize #129

Merged
merged 2 commits into from
Aug 30, 2021
Merged

fix: copy canvas when using enableGhostResize #129

merged 2 commits into from
Aug 30, 2021

Conversation

JBeen
Copy link
Contributor

@JBeen JBeen commented Aug 20, 2021

Copy all content of resized node, includes canvas.
Use implementation deepCloneNode from @angular/cdk 11.0

@mattlewis92
Copy link
Owner

Nice one, thanks for this! Would you be able to take a go at adding a test for it as well? I think we can use the code you added to the demo as a test case and then we just need to assert that the ghost element has the canvas text inside it while resizing. Let me know if that makes sense or you need any help! 🙌

@JBeen
Copy link
Contributor Author

JBeen commented Aug 29, 2021

Ok. I added test. I used canvas.toDataURL() to check canvas inner data.

Copy link
Owner

@mattlewis92 mattlewis92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot!!

@mattlewis92 mattlewis92 changed the title fix: copy canvas when ghost resize fix: copy canvas when using enableGhostResize Aug 30, 2021
@mattlewis92 mattlewis92 merged commit d65c257 into mattlewis92:master Aug 30, 2021
@mattlewis92
Copy link
Owner

Released as 4.0.0, thanks for your contribution! 🥳

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