@rive-app/canvas-single 1.0.56 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/package.json +1 -1
- package/rive.js +6 -6
- package/rive.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|

|
|
2
2
|
# Rive
|
|
3
|
-
High
|
|
3
|
+
High-level Rive API using CanvasRenderingContext2D with inline WASM. Please see https://github.com/rive-app/rive-wasm for a list of all the available web runtimes and their details.
|
|
4
4
|
|
|
5
|
-
## Canvas
|
|
5
|
+
## Canvas Single
|
|
6
6
|
```
|
|
7
7
|
npm install @rive-app/canvas-single
|
|
8
8
|
```
|
|
9
|
-
An easy
|
|
9
|
+
An easy-to-use high-level Rive API using a backing [CanvasRenderingContext2D](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D) renderer. This lets Rive use the browser's native high-level vector graphics renderer. Some benefits of this package:
|
|
10
10
|
- Extremely small download size
|
|
11
|
-
-
|
|
12
|
-
-
|
|
11
|
+
- Great for displaying many animated canvases concurrently on the screen. This is ideal for when you want to render lists or grids of Rive animations on the screen, as there is no context limit by the browser (as opposed to WebGL)
|
|
12
|
+
- Support for simple vector graphics animations, raster, and mesh deformations
|
|
13
|
+
- Web Assembly (WASM) backing dependency is part of the JS bundle; there is no need to make a request to load it in at runtime
|
|
13
14
|
|
|
14
|
-
[
|
|
15
|
+
[Getting Started](https://github.com/rive-app/rive-wasm#getting-started)
|