@react-pdf/png-js
Advanced tools
Comparing version 2.3.0 to 2.3.1
{ | ||
"name": "@react-pdf/png-js", | ||
"description": "A PNG decoder in JS", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "type": "module", |
@@ -19,2 +19,3 @@ <p align="center"> | ||
- Uses rollup for build | ||
## Browser Usage | ||
@@ -47,5 +48,5 @@ | ||
You can also call `PNG.load` if you want to load the PNG (but not decode the pixels) synchronously. If you already | ||
have the PNG data in a buffer, simply use `new PNG(buffer)`. In both of these cases, you need to call `png.decode` | ||
yourself which passes your callback the decoded pixels as a buffer. If you already have a buffer you want the pixels | ||
You can also call `PNG.load` if you want to load the PNG (but not decode the pixels) synchronously. If you already | ||
have the PNG data in a buffer, simply use `new PNG(buffer)`. In both of these cases, you need to call `png.decode` | ||
yourself which passes your callback the decoded pixels as a buffer. If you already have a buffer you want the pixels | ||
copied to, call `copyToImageData` with your buffer and the decoded pixels as returned from `decodePixels`. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
51
0
812867
23325