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

#4911 - insert image from ket to canvas #4956

Merged
merged 3 commits into from
Jul 9, 2024
Merged

Conversation

daniil-sloboda
Copy link
Collaborator

@daniil-sloboda daniil-sloboda commented Jul 1, 2024

How the feature works? / How did you fix the issue?

  • Loading image from ket file to canvas
  • Saving image from struct to ket
  • operations to move image during paste\replace

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

* Loading image from ket file to canvas
* Saving image from struct to ket
* operations to move image during paste\replace
Comment on lines +30 to +33
return new RasterImage(
this.bitmap,
this.position.map((item) => item) as Position,
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like position.item still sharing between instance and it's clone

@daniil-sloboda daniil-sloboda linked an issue Jul 4, 2024 that may be closed by this pull request
@daniil-sloboda daniil-sloboda marked this pull request as ready for review July 8, 2024 21:07
@rrodionov91 rrodionov91 merged commit ebb1187 into master Jul 9, 2024
5 checks passed
@rrodionov91 rrodionov91 deleted the 4911-load-save-ket-image branch July 9, 2024 11:23
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

Successfully merging this pull request may close these issues.

Save/Load image to/from KET file to canvas
2 participants