-
Notifications
You must be signed in to change notification settings - Fork 980
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
Draw a target line across the screen #452
Comments
@ericblade, is my question doesn’t makes sense? Can you clarify? |
You could just place an HTML element over the top of the canvas, I think? Or you could draw something using the canvas, as many of the examples do with barcode detection lines. |
@ericblade thank you for your help. I ended up, absolute positioning the line over the canvas. ----- CSS
---HTML
--Typescript
-- Service
|
Hi,
Thank you for an amazing library. I have a pwa app, and it works great. The issue I currently have is that after making the canvas responsive by setting
#barcode-scanner video, canvas {
width: 100%;
height: auto;
}
my screen height is longer then my width, I lost the barcode canvas shape, and its confusing to users.
I saw people mentioning but there is no concrete example on how to draw a target line across the screen to make it more intuitive for the user. Is it possible? I installed version 0.12.1 from npm.
Can someone please advise?
Thank you in advance for your help.
The text was updated successfully, but these errors were encountered: