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

Dots style 'dots' problem #177

Open
Vinnte opened this issue Jun 13, 2023 · 4 comments
Open

Dots style 'dots' problem #177

Vinnte opened this issue Jun 13, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Vinnte
Copy link

Vinnte commented Jun 13, 2023

Dots style 'Dots' creates horizontal smears on the upper part of the QR image, in the preview and also the downloaded image if the data length is long.

qr-code-styling

@spacehaz
Copy link

Hi! any updates? I have the same issue. Can it be somehow related to browser chrome update?
On 113.0.5672.126 bug is not presented, but can be noticed on 114.0.5735

@spacehaz
Copy link

@Vinnte hi, I found out that it should work on previous version of chromium (not on 114). you can try it with brave browser version v1.51.118 (Chromium 113.0.5672.126)

https://github.com/brave/brave-browser/releases/tag/v1.51.118

@amaneku-ueshima
Copy link

I don't know why this issue is fixed, but the following code fixes it.

/src/figures/dot/canvas/QRDot.ts
Add context.moveTo(0, 0); to line 66

  _basicDot(args: BasicFigureDrawArgsCanvas): void {
    const { size, context } = args;

    this._rotateFigure({
      ...args,
      draw: () => {
        context.moveTo(0, 0);
        context.arc(0, 0, size / 2, 0, Math.PI * 2);
      }
    });
  }

@simone-boa-ideas
Copy link

Any update on this? It looks like this library hasn't been managed for over 2 years.
Is there someone that forked it and kept it maintained?

nickjamesio added a commit to nickjamesio/qr-code-styling that referenced this issue May 28, 2024
commit change from kozakdenys#177
@kozakdenys kozakdenys added the bug Something isn't working label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants