Skip to content

Add efficiency to resize#13

Open
zbtirrell wants to merge 1 commit intoquicksketch:masterfrom
zbtirrell:more-efficient-resize
Open

Add efficiency to resize#13
zbtirrell wants to merge 1 commit intoquicksketch:masterfrom
zbtirrell:more-efficient-resize

Conversation

@zbtirrell
Copy link
Copy Markdown
Contributor

These elements do not need to be done on each iteration of the loop over all the area tags, better to do them outside the each

  • calculating the rescale ratio
  • adjusting the image size
  • triggering the change handler on the target

These elements do not need to be done on each iteration of the loop over all the area tags, better to do them outside the each
- calculating the rescale ratio
- adjusting the image size
- triggering the change handler on the target
@quicksketch
Copy link
Copy Markdown
Owner

Thanks! Good suggestions. I'll need to test these out, but the code looks great!

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.

2 participants