@resvg/resvg-js-linux-arm64-gnu
Advanced tools
Changelog
[2.0.0-alpha.0] - 2022-02-15
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.
Changelog
[1.4.0] - 2022-01-24
feat: support for glibc 2.12(via zig-cc) (#50)
Changelog
[1.3.0] - 2022-01-01
Changelog
[1.2.0] - 2021-12-25
Changelog
[1.1.0] - 2021-11-11
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
.
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
.
Changelog
[1.0.4] - 2021-10-19
feat: background
option supports alpha channel, currently only supports CSS Colors 3.
CSS color parse depends on svgtypes.
render(svgString, {
// Support
background: 'rgba(77, 25, 230, .8)',
background: 'rgb(77, 25, 230, .8)',
background: 'rgba(77%, 25%, 230%, .8)',
background: 'hsla(255, 80%, 50%, .8)',
background: 'hsl(255, 80%, 50%, .8)',
// Not support
background: 'rgb(77 25 230 / 80%)',
background: 'rgb(77 25 230 / .8)',
background: 'hsl(255deg 80% 50% / 80%)',
})
Changelog
[1.0.3] - 2021-10-15
logLevel
option, the font loading log is no longer output by default. @axelhzfpath
option because we never implemented itChangelog
[1.0.2] - 2021-10-13
Changelog
[1.0.1] - 2021-10-11
npm has malfunctioned, which caused this version to fail to install.
See also: https://status.npmjs.org/incidents/wy4002vc8ryc
Changelog
[1.0.0] - 2021-10-09
The first official version, use resvg 0.18.0. Mainly have the following functions: