@kubohiroya/turbowarp-aframe 0.10.0 → 0.12.0
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 +11 -1
- package/README.md +11 -1
- package/package.json +14 -7
package/README.ja.md
CHANGED
|
@@ -8,6 +8,16 @@ TurboWarp-A-Frame は、TurboWarp のブロックから宣言型の A-Frame シ
|
|
|
8
8
|
|
|
9
9
|
Scratch のスプライトや背景を 3D オブジェクトとして扱うのではなく、3D シーン定義とイベント処理を置く場所として扱います。3D ノードは id、class、data 属性、A-Frame 属性、template、selector、event で操作します。
|
|
10
10
|
|
|
11
|
+
## 最小デモ
|
|
12
|
+
|
|
13
|
+
[TurboWarp Editorで開く](https://turbowarp.org/editor?project_url=https%3A%2F%2Fkubohiroya.github.io%2Fturbowarp-aframe%2Fsamples%2Fmove-one-cube.sb3) · [SB3](https://kubohiroya.github.io/turbowarp-aframe/samples/move-one-cube.sb3)
|
|
14
|
+
|
|
15
|
+
読み込み時に同梱拡張の「Run extension without sandbox」を選びAllow。緑の旗で立方体を作り、Spaceで立方体を右へ0.5移動します。Cキーで立方体を削除し、再度緑の旗で初期状態に戻ります。
|
|
16
|
+
|
|
17
|
+
WebGL対応ブラウザとjsDelivrへの接続が必要です。A-Frame 1.8.0を本体が読み込みます。停止ボタンやCキー後も描画キャンバスは残り、GPU描画の終了にはタブを閉じてください。シーン全体の終了ブロックは現在ありません。再実行時に旧シーンを置き換えます。
|
|
18
|
+
|
|
19
|
+
[編集・再生成手順](samples/README.md)
|
|
20
|
+
|
|
11
21
|
## できること
|
|
12
22
|
|
|
13
23
|
- TurboWarp から埋め込み A-Frame シーンを作成します。
|
|
@@ -84,7 +94,7 @@ TurboWarp では `dist/turbowarp-aframe.js` を unsandboxed custom extension と
|
|
|
84
94
|
package として参照する場合は version を固定します。
|
|
85
95
|
|
|
86
96
|
```bash
|
|
87
|
-
pnpm add --save-exact @kubohiroya/turbowarp-aframe@0.
|
|
97
|
+
pnpm add --save-exact @kubohiroya/turbowarp-aframe@0.12.0
|
|
88
98
|
```
|
|
89
99
|
|
|
90
100
|
## ブロック概要
|
package/README.md
CHANGED
|
@@ -8,6 +8,16 @@ TurboWarp-A-Frame is an unsandboxed TurboWarp extension for building declarative
|
|
|
8
8
|
|
|
9
9
|
It treats TurboWarp sprites and backdrops as places to run 3D scene logic, not as 3D object identities. The 3D world is addressed with A-Frame-style node ids, classes, data attributes, attributes, templates, selectors, and events.
|
|
10
10
|
|
|
11
|
+
## Minimal demo
|
|
12
|
+
|
|
13
|
+
[Open in TurboWarp Editor](https://turbowarp.org/editor?project_url=https%3A%2F%2Fkubohiroya.github.io%2Fturbowarp-aframe%2Fsamples%2Fmove-one-cube.sb3) · [SB3](https://kubohiroya.github.io/turbowarp-aframe/samples/move-one-cube.sb3)
|
|
14
|
+
|
|
15
|
+
Select “Run extension without sandbox” and Allow for each embedded extension. Green flag creates one cube; Space moves the cube 0.5 to the right. C removes the cube; green flag resets the scene.
|
|
16
|
+
|
|
17
|
+
Requires a WebGL browser and access to jsDelivr for A-Frame 1.8.0. Stop and C leave the rendering canvas active. Close the tab to end GPU rendering; there is currently no scene shutdown block. Running again replaces the previous scene.
|
|
18
|
+
|
|
19
|
+
[Source and regeneration](samples/README.md)
|
|
20
|
+
|
|
11
21
|
## What it does
|
|
12
22
|
|
|
13
23
|
- Creates an embedded A-Frame scene host from TurboWarp.
|
|
@@ -84,7 +94,7 @@ Load `dist/turbowarp-aframe.js` as an unsandboxed custom extension in TurboWarp.
|
|
|
84
94
|
For package-based reuse, pin the version:
|
|
85
95
|
|
|
86
96
|
```bash
|
|
87
|
-
pnpm add --save-exact @kubohiroya/turbowarp-aframe@0.
|
|
97
|
+
pnpm add --save-exact @kubohiroya/turbowarp-aframe@0.12.0
|
|
88
98
|
```
|
|
89
99
|
|
|
90
100
|
## Block reference
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubohiroya/turbowarp-aframe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "A TurboWarp extension for declarative A-Frame scene graphs.",
|
|
5
|
-
"author":
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Hiroya Kubo",
|
|
7
|
+
"email": "hiroya@cuc.ac.jp",
|
|
8
|
+
"url": "https://github.com/kubohiroya"
|
|
9
|
+
},
|
|
6
10
|
"license": "MPL-2.0",
|
|
7
11
|
"homepage": "https://github.com/kubohiroya/turbowarp-aframe#readme",
|
|
8
12
|
"repository": {
|
|
@@ -57,15 +61,18 @@
|
|
|
57
61
|
"docs:check": "pnpm run docs && git diff --exit-code -- README.md",
|
|
58
62
|
"repo:check": "node scripts/check-repo.ts",
|
|
59
63
|
"pack:check": "npm pack --dry-run --ignore-scripts",
|
|
60
|
-
"check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run docs:check && pnpm run check:dist && pnpm run repo:check && pnpm run pack:check",
|
|
64
|
+
"check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run docs:check && pnpm run check:dist && pnpm run repo:check && pnpm run pack:check && pnpm run samples:check",
|
|
61
65
|
"check:dist": "pnpm run build && node scripts/check-dist.ts",
|
|
62
66
|
"build:editor": "tsc -p tsconfig.editor.json",
|
|
63
|
-
"prepare": "npm run build"
|
|
67
|
+
"prepare": "npm run build",
|
|
68
|
+
"samples:build": "node scripts/build-samples.mjs",
|
|
69
|
+
"samples:check": "node scripts/build-samples.mjs --check && node --test scripts/verify-samples.mjs",
|
|
70
|
+
"pages:build": "node scripts/prepare-pages.mjs"
|
|
64
71
|
},
|
|
65
72
|
"devDependencies": {
|
|
66
73
|
"@eslint/js": "^9.39.5",
|
|
67
|
-
"@kubohiroya/turbowarp-extension-manifest": "^0.
|
|
68
|
-
"@kubohiroya/vite-plugin-turbowarp-extension": "^0.
|
|
74
|
+
"@kubohiroya/turbowarp-extension-manifest": "^0.5.0",
|
|
75
|
+
"@kubohiroya/vite-plugin-turbowarp-extension": "^0.11.0",
|
|
69
76
|
"@pixiv/three-vrm": "3.5.5",
|
|
70
77
|
"@types/node": "^24.13.3",
|
|
71
78
|
"@types/three": "0.184.0",
|
|
@@ -78,7 +85,7 @@
|
|
|
78
85
|
"react-dom": "18.3.1"
|
|
79
86
|
},
|
|
80
87
|
"dependencies": {
|
|
81
|
-
"@kubohiroya/turbowarp-extension-data-editor": "^0.
|
|
88
|
+
"@kubohiroya/turbowarp-extension-data-editor": "^0.8.1"
|
|
82
89
|
},
|
|
83
90
|
"exports": {
|
|
84
91
|
"./*": "./*",
|