A high-performance SVG renderer and toolkit, powered by Rust based resvg and napi-rs.
MPL-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] over 2 years ago
resvg-js now supports WebAssembly. 🎉 What can I do now?
With WebAssembly, resvg-js gains broader cross-platform compatibility, all by loading only about 2MB of WASM files. And, the API is consistent with the Node.js side.
The current version of WASM does not support loading fonts, so please submit an issue if you have a request.
Full Changelog: https://github.com/yisibl/resvg-js/compare/v1.4.0...v2.0.0-alpha.0
Published by github-actions[bot] over 2 years ago
Full Changelog: https://github.com/yisibl/resvg-js/compare/v1.3.0...v1.4.0
default_font_family
changed from Times New Roman
to Arial
.Published by github-actions[bot] almost 3 years ago
feat: implement renderAsync()
function. By @Brooooooklyn
We have made a major upgrade to napi-rs, from v1 to 2.x alpha. This allows better support for asynchronous binding and automatic generation of TypeScript definitions. Now you can enjoy async/await
.
The allocator
is also enabled, which gives a small performanceh boost.
const { renderAsync } = require('@resvg/resvg-js')
async function main() {
const pngData = await renderAsync(/* SVG string or buffer */)
}
feat: The input to the render()
and renderAsync()
functions supports buffer.
feat: improved webpack support, no more need @node-rs/helper
dependency.
The @node-rs/helper
is convenient to load native binary cross platform and cpu arch. But it's not friendly to webpack
, vercel/nft
and vercel/ncc
because the logic is too dynamic.
feat: add example/compare.js
.
Published by github-actions[bot] about 3 years ago
Published by github-actions[bot] about 3 years ago
Published by github-actions[bot] about 3 years ago
Published by github-actions[bot] about 3 years ago
Published by github-actions[bot] about 3 years ago