@resvg/resvg-js
Advanced tools
Comparing version 2.0.0-alpha.0 to 2.0.0-alpha.1
{ | ||
"name": "@resvg/resvg-js", | ||
"version": "2.0.0-alpha.0", | ||
"version": "2.0.0-alpha.1", | ||
"description": "A high-performance SVG renderer, powered by Rust based resvg and napi-rs", | ||
@@ -143,15 +143,15 @@ "main": "index.js", | ||
"optionalDependencies": { | ||
"@resvg/resvg-js-win32-x64-msvc": "2.0.0-alpha.0", | ||
"@resvg/resvg-js-darwin-x64": "2.0.0-alpha.0", | ||
"@resvg/resvg-js-linux-x64-gnu": "2.0.0-alpha.0", | ||
"@resvg/resvg-js-linux-x64-musl": "2.0.0-alpha.0", | ||
"@resvg/resvg-js-linux-arm64-gnu": "2.0.0-alpha.0", | ||
"@resvg/resvg-js-win32-ia32-msvc": "2.0.0-alpha.0", | ||
"@resvg/resvg-js-linux-arm-gnueabihf": "2.0.0-alpha.0", | ||
"@resvg/resvg-js-darwin-arm64": "2.0.0-alpha.0", | ||
"@resvg/resvg-js-android-arm64": "2.0.0-alpha.0", | ||
"@resvg/resvg-js-android-arm-eabi": "2.0.0-alpha.0", | ||
"@resvg/resvg-js-linux-arm64-musl": "2.0.0-alpha.0", | ||
"@resvg/resvg-js-win32-arm64-msvc": "2.0.0-alpha.0" | ||
"@resvg/resvg-js-win32-x64-msvc": "2.0.0-alpha.1", | ||
"@resvg/resvg-js-darwin-x64": "2.0.0-alpha.1", | ||
"@resvg/resvg-js-linux-x64-gnu": "2.0.0-alpha.1", | ||
"@resvg/resvg-js-linux-x64-musl": "2.0.0-alpha.1", | ||
"@resvg/resvg-js-linux-arm64-gnu": "2.0.0-alpha.1", | ||
"@resvg/resvg-js-win32-ia32-msvc": "2.0.0-alpha.1", | ||
"@resvg/resvg-js-linux-arm-gnueabihf": "2.0.0-alpha.1", | ||
"@resvg/resvg-js-darwin-arm64": "2.0.0-alpha.1", | ||
"@resvg/resvg-js-android-arm64": "2.0.0-alpha.1", | ||
"@resvg/resvg-js-android-arm-eabi": "2.0.0-alpha.1", | ||
"@resvg/resvg-js-linux-arm64-musl": "2.0.0-alpha.1", | ||
"@resvg/resvg-js-win32-arm64-msvc": "2.0.0-alpha.1" | ||
} | ||
} |
@@ -81,9 +81,9 @@ # resvg-js | ||
```js | ||
import { render, initWasm } from '@resvg/resvg-js-wasm' | ||
import { render, initWasm } from '@resvg/resvg-wasm' | ||
;(async function () { | ||
// The wasm must be initialized first | ||
await initWasm(fetch('./index_bg.wasm')) | ||
// The wasm must be initialized first, | ||
await initWasm(fetch('/your/path/index_bg.wasm')) | ||
const opts = { | ||
fitTo: { | ||
mode: 'width', | ||
mode: 'width', // If you need to change the size | ||
value: 800, | ||
@@ -152,3 +152,3 @@ }, | ||
- Install `Node.js@10+` which fully supported `Node-API` | ||
- install `wasm-pack` | ||
- Install `wasm-pack` | ||
```bash | ||
@@ -155,0 +155,0 @@ curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh |
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
36245