-
Notifications
You must be signed in to change notification settings - Fork 209
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
Added options startingX and startingY in Add-Qr Module #1520
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1520 +/- ##
==========================================
+ Coverage 66.71% 66.79% +0.07%
==========================================
Files 129 129
Lines 2668 2671 +3
Branches 430 430
==========================================
+ Hits 1780 1784 +4
+ Misses 888 887 -1
|
@publiclab/is-reviewers |
Waiting for the tests... |
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.
What if user inputs value for X=1000 for a 600x500 image, the QR will be generated outside the image, maybe you can fix that!
@blurry-x-face, technically it should be generated outside the image(means no qr code image should be generated), and for loop will restrict the creation of QR code in that case. |
In that case maybe we can just generate the QR at the corner? What do you think? |
The fact is that maybe someone wants only half a qr code, I feel like by not sticking the qr at the end, we are giving a feature rather than a limitation. |
Why would someone want only half a QR code? what are your thoughts @harshkhandeparkar |
@blurry-x-face, now I feels like you are right. Maybe fixing the qr code at the end is better. I will create the changes soon. |
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.
Nice! 🎉
Really nice! Thank you! |
Added startingX and startingY for the QR Code Module.
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!