d3-svg-to-png
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "d3-svg-to-png", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Converts SVG elements to PNG and other image formats while keeping CSS styles", | ||
@@ -9,2 +9,3 @@ "main": "index.js", | ||
}, | ||
"types": "typing.d.ts", | ||
"keywords": [ | ||
@@ -11,0 +12,0 @@ "svg", |
@@ -29,3 +29,9 @@ #d3-svg-to-png | ||
const d3ToPng = require('d3-svg-to-png'); | ||
d3ToPng('svg', 'name', { scale: 3, format: 'webp', quality: 0.01, download: false, ignore: '.ignored' }).then(fileData => { | ||
d3ToPng('svg', 'name', { | ||
scale: 3, | ||
format: 'webp', | ||
quality: 0.01, | ||
download: false, | ||
ignore: '.ignored' | ||
}).then(fileData => { | ||
//do something with the data | ||
@@ -47,2 +53,6 @@ }); | ||
## Contribution | ||
Please make your changes to the **dev** branch, so that automated tests can be run before merging to **master**. Also, if possible, provide tests for new functionality. | ||
## TODO | ||
@@ -56,1 +66,6 @@ | ||
If you liked this you might like some of my [app prototyping](https://prototyping.barcelona). | ||
## Acknowledgements/credits | ||
- [Juan Irache](https://github.com/JuanIrache) - Main developer | ||
- [Thành Trang](https://github.com/trangcongthanh) - Contributor |
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
6910
5
82
69