@rive-app/webgl 1.0.58 → 1.0.61
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 +9 -6
- package/package.json +1 -1
- package/rive.js +1 -1
- package/rive.wasm +0 -0
package/README.md
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
3
|
# Rive
|
|
4
|
-
High
|
|
4
|
+
High-level Rive API using WebGL. Please see https://github.com/rive-app/rive-wasm for a list of all the available web runtimes and their details.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## WebGL
|
|
7
7
|
```
|
|
8
8
|
npm install @rive-app/webgl
|
|
9
9
|
```
|
|
10
|
-
An easy
|
|
10
|
+
An easy-to-use high-level Rive API using the [WebGL](https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API) renderer. This runtime will support Rive's upcoming advanced rendering features which may not be available to the Canvas renderers. Some benefits of this package:
|
|
11
11
|
- Highest fidelity with edit-time experience.
|
|
12
|
-
-
|
|
13
|
-
-
|
|
12
|
+
- Support for future advanced rendering features
|
|
13
|
+
- Requests the Web Assembly (WASM) backing dependency for you
|
|
14
14
|
|
|
15
|
+
**A note about WebGL:** Most browsers limit the number of concurrent WebGL contexts by page/domain. Using Rive, this means that the browser limit impacts the number of new Rive({...}) instances created. See the README docs for the `useOffscreenRenderer` option that may assist in working around this limitation.
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
If you're planning on displaying Rive content in a list/grid or many times on the same page, it's up to you to manage the lifecycle of the provided context and `<canvas>` element. If you need to display many animations (i.e grids/lists), consider using the `@rive-app/canvas package` which uses the `CanvasRenderingContext2D` renderer and does not have a context limitation.
|
|
18
|
+
|
|
19
|
+
[Getting Started](https://github.com/rive-app/rive-wasm#getting-started)
|
package/package.json
CHANGED
package/rive.js
CHANGED
|
@@ -172,7 +172,7 @@ k.run=td;if(k.preInit)for("function"==typeof k.preInit&&(k.preInit=[k.preInit]);
|
|
|
172
172
|
/* 2 */
|
|
173
173
|
/***/ ((module) => {
|
|
174
174
|
|
|
175
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"1.0.
|
|
175
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"1.0.61","description":"Rive\'s webgl based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
176
176
|
|
|
177
177
|
/***/ }),
|
|
178
178
|
/* 3 */
|
package/rive.wasm
CHANGED
|
Binary file
|