@rive-app/canvas-single
v2.23.7
Published
Rive's high-level canvas based web api all in one js file.
Downloads
5,575
Readme
Rive
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.
Canvas Single
npm install @rive-app/canvas-single
An easy-to-use high-level Rive API using a backing CanvasRenderingContext2D renderer. This lets Rive use the browser's native high-level vector graphics renderer. Some benefits of this package:
- Extremely small download size
- 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)
- Support for simple vector graphics animations, raster, and mesh deformations
- 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