-
Notifications
You must be signed in to change notification settings - Fork 462
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
i cann't set margin #45
Comments
@aduonggm you could have provided a better description :( I'm experiencing the same problem. I can't set the global margin with version 1.3.4 in react. The problem also occurs on the react example linked in the readme. What also is to mention: |
I'm facing the same issue. It seems that the As a workaround I did: import { Options } from 'qr-code-styling/lib/core/QROptions'
interface MissingOption extends Options {
margin?: number
}
...
const qrCode = new QRCodeStyling({
width: ...,
height: ...,
margin: 10, // Add missing margin
image: ...,
dotsOptions: {},
imageOptions: {},
} as MissingOption) // add extended interface |
@aduonggm @davemecha @awran5 thanks for your help |
No description provided.
The text was updated successfully, but these errors were encountered: