Comments (5)
Hi @ngnono,
we've removed node-canvas
dependency, to use canvas in node you need to specify a node-canvas
instance as first parameter of toCanvas function.
QRCode.toCanvas(new Canvas(), text, opts, function (err) {
})
from node-qrcode.
@vigreco was this a breaking change or a docs issue?
from node-qrcode.
@soldair, neither of them I think.
toCanvas
is part of new APIs and wasn't available before, so it cannot break code which use old versions.
However, I'll look into it to be sure.
from node-qrcode.
great =) just curious
from node-qrcode.
okay. :)
from node-qrcode.
Related Issues (20)
- Since version 1.5.2,`build` folder is missing in the NPM package HOT 1
- Redraw of QR code seems not to work out-of-the-box
- window.print() renders QR code svg as black square in print preview. firefox only HOT 1
- Support for `title` tag for SVG accessibility
- Use from within modules in the browser HOT 1
- Using it through module.js file in node.js
- Intermittent truncated response
- Text wrapping,文本换行
- QRCode.toDataUrl returns nothing
- Installation failure HOT 1
- install from npm does not build browser version HOT 7
- How make qr code larger? HOT 1
- 'Unexpected token' error - brackets needed in url
- "You need to specify a canvas element" error when using Cloudflare Workers with `qrcode` HOT 5
- callback function delays to execute HOT 1
- Extract the core into its own module
- install breaks with node v20.5.1 HOT 4
- No assets on CDNJS for versions 1.5.2 and 1.5.3
- Please check out i have updated the README.md
- 1.5.3 版本出现的 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-qrcode.