@wcstack/raf 4.0.4 → 4.1.1
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.ja.md +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -40,8 +40,8 @@ npm install @wcstack/raf
|
|
|
40
40
|
`<wcs-raf>` は DOM に接続されると自動でフレームループを開始します。`tick` / `dt` をバインドするか、event token でフレームを受けて 1 フレーム 1 ステップを回します:
|
|
41
41
|
|
|
42
42
|
```html
|
|
43
|
-
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
44
43
|
<script type="module" src="https://esm.run/@wcstack/raf/auto"></script>
|
|
44
|
+
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
45
45
|
|
|
46
46
|
<wcs-state>
|
|
47
47
|
<script type="module">
|
package/README.md
CHANGED
|
@@ -40,8 +40,8 @@ npm install @wcstack/raf
|
|
|
40
40
|
When `<wcs-raf>` is connected to the DOM, it automatically starts a frame loop. Bind `tick` / `dt` to state paths — or receive the frame as an event token and run one physics step per frame:
|
|
41
41
|
|
|
42
42
|
```html
|
|
43
|
-
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
44
43
|
<script type="module" src="https://esm.run/@wcstack/raf/auto"></script>
|
|
44
|
+
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
45
45
|
|
|
46
46
|
<wcs-state>
|
|
47
47
|
<script type="module">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wcstack/raf",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Declarative requestAnimationFrame component for Web Components. Framework-agnostic frame-source primitive (tick/dt/suspended) via wc-bindable-protocol.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.esm.js",
|