How do I access artboard and view model instance with useRive?
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
Start by reviewing the Rive instance initialized through @rive-app/react-canvas and determine how the loaded file and its artboard are exposed. Compare the available API with the documented ViewModelInstance access, and consider the work complete when the requested artboard and view-model properties can be accessed for runtime updates.
索引モデルが issue の本文から書いたものです。
説明
My rive file got update, if before I used to use rive.setNumberStateAtPath to change my block lines count, now I need to access view model instance to directly change text in that box, for example change its font size.
From rive docs, I received these instructions on how to do it:
Access the View Model Instance:
Within your application, retrieve the Artboard from the loaded Rive file. Then, access the ViewModelInstance associated with that Artboard. This instance contains the properties you’ve defined and bound in the Rive editor.
Modify Properties at Runtime:
Once you have access to the View ModelInstance, you can get or set its properties to reflect changes in your application. For example, if you have a property controlling font size, you can update it based on user input or other runtime conditions.
BUT, the problem is, there is no properties on my rive to get artboard
Here is how I initialize the rive:
Importing everything from @rive-app/react-canvas
- 主要言語
- TypeScript
- スター
- 1.2k
- フォーク
- 58
- 平均マージ
- 52分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rive-app/rive-react のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
rive-app/rive-react#410 · コメント 1 件 ·
-
Fit.Layout doesn't reflow elements in canvas-lite対応中かも @usero-agent が 124 日前に担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
rive-app/rive-react#409 · コメント 3 件 ·
-
Issue: Re-mount RiveComponent multiple times cause web page laggy対応中かも @usero-agent が 124 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
rive-app/rive-react#400 ·
-
triage
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
rive-app/rive-react#392 ·
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
rive-app/rive-react#386 · リアクション 1 件 ·
rive-app/rive-react の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
yjh051108/dsh-routing-suite#216 ·
-
kind/bug priority/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memory対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 半日 初心者へのやさしさ 66/100
apache/fineract-consumer-facing#175 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1時間未満 初心者へのやさしさ 82/100
awslabs/visual-asset-management-system#413 ·
メンテナーはふだん 1 日以内に返信