mirror of
https://github.com/rive-app/rive-react.git
synced 2026-03-13 08:22:30 +08:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
353fbf8e9d | ||
|
|
ae05ad4375 | ||
|
|
ff8bbb084c | ||
|
|
89a6802fa0 | ||
|
|
91025e6772 | ||
|
|
d3bc913bcf | ||
|
|
ce56321e1d | ||
|
|
4b6f5410fd | ||
|
|
6544874d3d | ||
|
|
ed90c7f7c9 | ||
|
|
e06fdd1c8b | ||
|
|
b8ffb6b53c | ||
|
|
2dc925ef70 | ||
|
|
639de79c9e | ||
|
|
a9961c821a |
26
.github/workflows/add_to_project.yml
vendored
Normal file
26
.github/workflows/add_to_project.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: Adds all new issues to project board
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
add-to-project:
|
||||||
|
name: Add issue to project
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/add-to-project@v0.5.0
|
||||||
|
with:
|
||||||
|
project-url: https://github.com/orgs/rive-app/projects/12/views/1
|
||||||
|
github-token: ${{ secrets.ADD_TO_PROJECT_ACTION }}
|
||||||
|
|
||||||
|
- uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
github.rest.issues.addLabels({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
labels: ["triage"]
|
||||||
|
})
|
||||||
@@ -4,9 +4,9 @@ All notable changes to this project will be documented in this file. Dates are d
|
|||||||
|
|
||||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||||
|
|
||||||
#### [v3.0.41](https://github.com/rive-app/rive-react/compare/v3.0.38...v3.0.41)
|
#### [v3.0.48](https://github.com/rive-app/rive-react/compare/v3.0.38...v3.0.48)
|
||||||
|
|
||||||
- patch: bump wasm dependency for blend state enhancements [`87fa1ae`](https://github.com/rive-app/rive-react/commit/87fa1ae2a56a5d71fe137fa33a0a3eb0cb3e9c1c)
|
- feature: bump web runtime to support joysticks [`ae05ad4`](https://github.com/rive-app/rive-react/commit/ae05ad4375375f43b1f4493c76bcc18cd6c40676)
|
||||||
|
|
||||||
#### [v3.0.38](https://github.com/rive-app/rive-react/compare/v3.0.37...v3.0.38)
|
#### [v3.0.38](https://github.com/rive-app/rive-react/compare/v3.0.37...v3.0.38)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rive-react",
|
"name": "rive-react",
|
||||||
"version": "3.0.41",
|
"version": "3.0.48",
|
||||||
"description": "React wrapper around the rive-js library",
|
"description": "React wrapper around the rive-js library",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/types/index.d.ts",
|
"typings": "dist/types/index.d.ts",
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/rive-app/rive-react#readme",
|
"homepage": "https://github.com/rive-app/rive-react#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@rive-app/canvas": "1.1.1",
|
"@rive-app/canvas": "1.1.7",
|
||||||
"@rive-app/webgl": "1.1.1"
|
"@rive-app/webgl": "1.1.7"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||||
|
|||||||
@@ -28,7 +28,11 @@ export interface RiveProps {
|
|||||||
* For `@rive-app/react-webgl`, sets this property to maintain a single WebGL context for multiple canvases. **We recommend to keep the default value** when rendering multiple Rive instances on a page.
|
* For `@rive-app/react-webgl`, sets this property to maintain a single WebGL context for multiple canvases. **We recommend to keep the default value** when rendering multiple Rive instances on a page.
|
||||||
*/
|
*/
|
||||||
useOffscreenRenderer?: boolean;
|
useOffscreenRenderer?: boolean;
|
||||||
};
|
/**
|
||||||
|
* Specify whether to disable Rive listeners on the canvas, thus preventing any event listeners to be attached to the canvas element
|
||||||
|
*/
|
||||||
|
shouldDisableRiveListeners?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
const Rive = ({
|
const Rive = ({
|
||||||
src,
|
src,
|
||||||
@@ -37,6 +41,7 @@ const Rive = ({
|
|||||||
stateMachines,
|
stateMachines,
|
||||||
layout,
|
layout,
|
||||||
useOffscreenRenderer = true,
|
useOffscreenRenderer = true,
|
||||||
|
shouldDisableRiveListeners = false,
|
||||||
...rest
|
...rest
|
||||||
}: RiveProps & ComponentProps<'canvas'>) => {
|
}: RiveProps & ComponentProps<'canvas'>) => {
|
||||||
const params = {
|
const params = {
|
||||||
@@ -46,6 +51,7 @@ const Rive = ({
|
|||||||
layout,
|
layout,
|
||||||
stateMachines,
|
stateMachines,
|
||||||
autoplay: true,
|
autoplay: true,
|
||||||
|
shouldDisableRiveListeners,
|
||||||
};
|
};
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
|
|||||||
Reference in New Issue
Block a user