resvg-js

A high-performance SVG renderer and toolkit, powered by Rust based resvg and napi-rs.

MPL-2.0 License

Downloads
5.8M
Stars
1.4K
Committers
13

Bot releases are visible (Hide)

resvg-js - v2.0.0-alpha.0

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.

What's Changed

New Contributors

Full Changelog: https://github.com/yisibl/resvg-js/compare/v1.4.0...v2.0.0-alpha.0

resvg-js - v1.4.0

Published by github-actions[bot] over 2 years ago

What's Changed

Full Changelog: https://github.com/yisibl/resvg-js/compare/v1.3.0...v1.4.0

resvg-js -

Published by github-actions[bot] almost 3 years ago

1.3.0 - 2022-01-02

Added

  • feat: upgrade to resvg 0.20.0(tiny-skia to 0.6.2).
  • chore: add oslllo-svg2 to the examples and bench.
resvg-js -

Published by github-actions[bot] almost 3 years ago

1.2.0 - 2021-12-25

Added

  • feat: upgrading to napi-rs v2.
  • feat: support Android armv7(@resvg/resvg-js-android-arm-eabi).

Changed

  • fix: default_font_family changed from Times New Roman to Arial.
    This is closer to the default rendering font in the browser.
resvg-js - v1.1.0

Published by github-actions[bot] almost 3 years ago

Added

  • 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.

Changed

  • fix: the default font no longer throws an error if it is not found, it changes to a warning.
  • chore: benchmark adds tests for svg icons and other improvements.
  • chore: upgrade Rust Edition to 2021.
resvg-js - https://github.com/yisibl/resvg-js/releases/tag/v1.0.4

Published by github-actions[bot] about 3 years ago

resvg-js - https://github.com/yisibl/resvg-js/releases/tag/v1.0.3

Published by github-actions[bot] about 3 years ago

resvg-js - https://github.com/yisibl/resvg-js/releases/tag/v1.0.2

Published by github-actions[bot] about 3 years ago

resvg-js - https://github.com/yisibl/resvg-js/releases/tag/v1.0.1

Published by github-actions[bot] about 3 years ago

resvg-js - https://github.com/yisibl/resvg-js/releases/tag/v1.0.0

Published by github-actions[bot] about 3 years ago