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

Nice web-based solution #263

Closed
professor-rage opened this issue Sep 25, 2024 · 2 comments
Closed

Nice web-based solution #263

professor-rage opened this issue Sep 25, 2024 · 2 comments
Assignees

Comments

@professor-rage
Copy link

I tried the angular 17 version but [scale] in directive mode does not work. The dot scale remains the same regardless of number entered.

Browser: Google Chrome 129.x

<qrcode [qrdata]="'Your data string'" [width]="256" [scale]="1" [errorCorrectionLevel]="'M'">

Any guidance is greatly appreciated.

Thanks,
Dean
https://tapple.io

@Cordobo
Copy link
Owner

Cordobo commented Sep 29, 2024

Hi @professor-rage

The scale factor works when the width is set to 10 (default)

<qrcode
[qrdata]="'https://github.com/Cordobo/angularx-qrcode'"
[allowEmptyString]="true"
[ariaLabel]="'QR Code image with the following content...'"
[cssClass]="'center'"
[colorDark]="'#000000ff'"
[colorLight]="'#ffffffff'"
[elementType]="'canvas'"
[errorCorrectionLevel]="'M'"
[imageSrc]="'./assets/angular-logo.png'"
[imageHeight]="75"
[imageWidth]="75"
[scale]="32"
[title]="'A custom title attribute'"
[width]="10"

You can play around with the values here
https://cordobo.github.io/angularx-qrcode/

@Cordobo Cordobo closed this as completed Sep 29, 2024
@Cordobo Cordobo self-assigned this Sep 29, 2024
@professor-rage
Copy link
Author

Perfect. Thank you.

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

No branches or pull requests

2 participants