-
Notifications
You must be signed in to change notification settings - Fork 208
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
Change dimension upon loading an Image through UI #1395
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1395 +/- ##
==========================================
- Coverage 66.36% 66.35% -0.02%
==========================================
Files 125 125
Lines 2572 2574 +2
Branches 406 406
==========================================
+ Hits 1707 1708 +1
- Misses 865 866 +1
|
@harshkhandeparkar @jywarren @keshav234156 |
Does this do the reloading? Instead, I think there should be a load image callback or even which could trigger just the dimensions function(or anything else if you want). What do you think? |
Yes you’re correct |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks fine to me except for a few comments which I think you will fix soon.
Sure |
@harshkhandeparkar removed the comments and refactored please review |
examples/lib/defaultHtmlStepUi.js
Outdated
@@ -353,6 +351,12 @@ function DefaultHtmlStepUi(_sequencer, options) { | |||
else $step('.wasm-tooltip').fadeOut(); | |||
} | |||
|
|||
function changeDimension(step){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this function be called updateDimensions
? The current name may be misleading. Please add JSDoc description comment for the function too. Thanks!
🎉 |
Fixes #1391
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
npm test
@publiclab/is-reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!