@kubohiroya/turbowarp-aframe 0.7.0 → 0.8.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 +6 -1
- package/README.md +6 -1
- package/dist/turbowarp-aframe.js +16548 -7926
- package/docs/editor-schema-ci-fix-20261018.ja.md +25 -0
- package/docs/editor-schema-ci-fix-20261018.json +88 -0
- package/docs/editor-schema-publication.ja.md +13 -0
- package/docs/editor-schema-publication.json +100 -0
- package/docs/editor-schema-verification.json +50 -0
- package/docs/editor-schema.ja.md +23 -0
- package/docs/fixed-input-editors.ja.md +52 -0
- package/docs/index.html +56 -1
- package/docs/source-editor.ja.md +13 -0
- package/docs/stage-2-publication.ja.md +34 -0
- package/docs/stage-2-publication.json +67 -0
- package/lib-editor/schemas/block-editor-template-compat.schema.json +48 -0
- package/lib-editor/src/editor-schema.d.ts +44 -0
- package/lib-editor/src/editor-schema.js +100 -0
- package/lib-editor/src/template-validation.d.ts +10 -0
- package/lib-editor/src/template-validation.js +69 -0
- package/package.json +29 -6
- package/schemas/block-editor-fixed-inputs.schema.json +229 -0
- package/schemas/block-editor-template-compat.schema.json +48 -0
- package/src/editor-schema.ts +111 -0
- package/src/extension.ts +22 -78
- package/src/fixed-input-editors.ts +142 -0
- package/src/fixed-input-schema.ts +14 -0
- package/src/source-editors.ts +30 -0
- package/src/template-validation.ts +79 -0
- package/schemas/extension-manifest.schema.json +0 -49
- package/src/extension-manifest.ts +0 -149
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# 段階1: pack 検査の CI 修正(2026-10-18)
|
|
2
|
+
|
|
3
|
+
## 変更と互換性
|
|
4
|
+
|
|
5
|
+
`aframe` の `scripts/check-repo.ts` にある `npm pack --dry-run --ignore-scripts --json` 呼び出しへ `--foreground-scripts=false` を追加した。CI の npm 10.9.8 で lifecycle の stdout が JSON 出力へ混入し、`JSON.parse(stdout)` が失敗する問題への修正である。明示的な CLI 設定により JSON を機械可読に保つ。`--dry-run`・`--ignore-scripts` と既存の梱包内容検査は維持する。
|
|
6
|
+
|
|
7
|
+
公開 API、JSON Schema、データの読み書き、既存の梱包対象は変更しない。段階2以降の UI 実装、merge、npm 公開は対象外である。依存 artifact 更新後の SHA、pin・lock・実解決、全体の生成物照合は集約した検証記録で対応付ける。この文書の単体検証は依存更新前の共通 `b5f4b8d2e391a0d57d091c8f3e1c2d58da152dc8` と既存 producer pin に対する結果である。
|
|
8
|
+
|
|
9
|
+
## 検証と受け入れ基準
|
|
10
|
+
|
|
11
|
+
- `PATH=/tmp/schema-stage1-bin:$PATH npm_config_cache=/tmp/schema-stage1-npm-cache corepack pnpm run check` が終了コード 0。55 テスト成功。typecheck、lint、docs、build と dist、repository policy、pack の検査が成功した。
|
|
12
|
+
- Node 26.7.0、npm 11.19.0、packageManager 指定の pnpm 11.11.0 を使用した。
|
|
13
|
+
- 子プロセスの `npm` を npm 10.9.8(Node 22.16.0)へ切り替えた `pnpm run repo:check` も終了コード 0。梱包 JSON の parse と既存 policy の全検査が成功した。
|
|
14
|
+
- 検査後、追跡済み生成物・既存データ・公開 API に差分がないことを確認した。
|
|
15
|
+
|
|
16
|
+
| ログ | SHA-256 |
|
|
17
|
+
|---|---|
|
|
18
|
+
| `aframe-check.log` | `309d7ace6b8778025753fd267ddfeb12da7fa1c0e595e4931212e38af46c4570` |
|
|
19
|
+
| `aframe-repo-npm10.log` | `6b0c5217e10070716f2a27162d456c7a39f0d7ecb02420ead4c9713a6a5672cf` |
|
|
20
|
+
|
|
21
|
+
採取先は `/tmp/schema-stage1-ci-fix-20261018/`。当日の検証時点のログであり、依存 pin 更新後の検証は集約記録を参照する。
|
|
22
|
+
|
|
23
|
+
## ロールバック
|
|
24
|
+
|
|
25
|
+
問題が起きた場合、この修正 commit を revert して `--foreground-scripts=false` の追加を戻す。データ形式・公開 API・梱包対象への変更がないため、データ変換は不要である。依存 artifact を同時に戻す場合は集約記録の旧 pin に manifest と lock を揃え、frozen install・実解決・pack 検査を確認する。段階1の UI 登録は既定 OFF のまま保持する。
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"record_kind": "current stage1 CI fix verification snapshot; own final commit is recorded by coordinator to avoid a self hash cycle",
|
|
3
|
+
"observed_at_utc": "2026-10-18T07:09:40.244897+00:00",
|
|
4
|
+
"repository": "kubohiroya/turbowarp-aframe",
|
|
5
|
+
"branch": "feat/schema/stage1-aframe",
|
|
6
|
+
"base_before_CI_fix": "3b1d7359e0ba91eb6b119f4530167f177662b233",
|
|
7
|
+
"PR": "https://github.com/kubohiroya/turbowarp-aframe/pull/20",
|
|
8
|
+
"issue": "https://github.com/kubohiroya/turbowarp-aframe/issues/19",
|
|
9
|
+
"common_revision": "b5f4b8d2e391a0d57d091c8f3e1c2d58da152dc8",
|
|
10
|
+
"dependency_pins": {
|
|
11
|
+
"@kubohiroya/turbowarp-extension-data-editor": "git+https://github.com/kubohiroya/turbowarp-extension-data-editor.git#b5f4b8d2e391a0d57d091c8f3e1c2d58da152dc8"
|
|
12
|
+
},
|
|
13
|
+
"configuration_sha256": {
|
|
14
|
+
"package.json": "6ef0f65aeba368d5dd2ef6119ec7ef5651e12e9118a17f0e152f8ab67eaff200",
|
|
15
|
+
"pnpm-lock.yaml": "dc664b032b94daa88a28860daca14415ee430a901421b40fdd72c907ca997142",
|
|
16
|
+
"pnpm-workspace.yaml": "b4d08a224c9cf5a2c150ce5a5ce190c2398e8546d277ab8b03dd1ea88f6a02eb",
|
|
17
|
+
"tsconfig.editor.json": "719e677d23a27032768057d11778f881e9adf7a911cbcbe3ed4f86704600bbad"
|
|
18
|
+
},
|
|
19
|
+
"source_sha256": {
|
|
20
|
+
"src/globals.d.ts": "465405e5deb8841fc4a81a42797a4743d6576c6274060aded031ec02361137f4",
|
|
21
|
+
"src/extension.ts": "142d5aa4216832decee9632a01cb24ff83c558bccfc7df21be41429efc23b34f",
|
|
22
|
+
"src/editor-schema.ts": "e0488c80ba66df04ca3a5defab960704ab7648190adab98e0857b7bc57e56ead",
|
|
23
|
+
"src/runtime-capability.ts": "1a35338eaf527a1893b346e21a1f5b0b236eb3bf8d93210de6eeae7dff448198",
|
|
24
|
+
"src/block-definitions.json": "c5b290e58d570cf09c37ac3e499ec14dcf6bbea75026fed8f35dc7f25142baa8",
|
|
25
|
+
"src/vrm.ts": "81e0bfe396823f098d22dfe6cc16256ddc9dd0442fbc94ba8841cae1de5fd087",
|
|
26
|
+
"src/aframe-loader.ts": "7a123915144b0ee88c681a49bf3f1efdb8d5444fb28e6e5ee1fdff87ef48be26",
|
|
27
|
+
"src/index.ts": "e4fdf792c01b74405ea031bac9612d6b01934b635a8a093fa244595fa7ae375a",
|
|
28
|
+
"src/config.ts": "94c11342113ea26f49dd00ced0913ada31b876726fcd34f9a511e6eb6b0ad5fa",
|
|
29
|
+
"src/template-validation.ts": "998af3f8b2db555baae23f3aa597d331d5c217ee4438b052be6357735b69a8a1"
|
|
30
|
+
},
|
|
31
|
+
"emitted_sha256": {
|
|
32
|
+
"lib-editor/schemas/block-editor-template-compat.schema.json": "10d385bedffe4133c374059278ed7393023055af23d2a26d49099d5ffaac0e75",
|
|
33
|
+
"lib-editor/src/editor-schema.d.ts": "cbe86a73ec3f2673da0c4d6bc48ff4d9152faaebd0bb4b5807b48b8d6ad09bd7",
|
|
34
|
+
"lib-editor/src/template-validation.js": "9726e75a5f5d2f8d9e75627b2a131245a8bc9fc84da0d23b4b3035eca7a0e2b1",
|
|
35
|
+
"lib-editor/src/editor-schema.js": "c04b24e30465589b35b53ff4d3e682b40b429452885011e58b16ed828838c935",
|
|
36
|
+
"lib-editor/src/template-validation.d.ts": "dec81b820da071d823a9909dd65a0a6b36d08391ddce5a0bd7c50f7b686ee021"
|
|
37
|
+
},
|
|
38
|
+
"resolved_dependencies": [
|
|
39
|
+
{
|
|
40
|
+
"name": "@kubohiroya/turbowarp-extension-data-editor",
|
|
41
|
+
"via": "@kubohiroya/turbowarp-aframe",
|
|
42
|
+
"specifier": "git+https://github.com/kubohiroya/turbowarp-extension-data-editor.git#b5f4b8d2e391a0d57d091c8f3e1c2d58da152dc8",
|
|
43
|
+
"resolved_path": "/private/tmp/schema-stage1-worktrees-20261018/aframe/node_modules/.pnpm/@kubohiroya+turbowarp-extension-data-editor@https+++codeload.github.com+kubohiroya+turb_ea9ed4fbe83b895db0a5315e4e7cce4f/node_modules/@kubohiroya/turbowarp-extension-data-editor",
|
|
44
|
+
"version": "0.1.0",
|
|
45
|
+
"manifest_sha256": "3e86db1bf667088a7a87ada19fc11573082918335dd281073464ca4fcebf74da",
|
|
46
|
+
"build_info": {
|
|
47
|
+
"name": "@kubohiroya/turbowarp-extension-data-editor",
|
|
48
|
+
"version": "0.1.0",
|
|
49
|
+
"repository": "https://github.com/kubohiroya/turbowarp-extension-data-editor",
|
|
50
|
+
"revision": "b5f4b8d2e391a0d57d091c8f3e1c2d58da152dc8"
|
|
51
|
+
},
|
|
52
|
+
"rjsf_type_sha256": "6b68cfc2a04c7b730234968bdd6fac380747e2de6631e1752caf07fd8b9b0c90",
|
|
53
|
+
"rjsf_default_null": true,
|
|
54
|
+
"pure_files_sha256": {
|
|
55
|
+
"schema-compose.d.ts": "e9bb269fcb3be82661b692e7fdf5c55ac433a31d699ac591a86bf5358046b83e",
|
|
56
|
+
"schema-compose.js": "04b32c71920f1ad99425582c3ef57b69b3725f87191efc808ef94e28b8d7bdd2",
|
|
57
|
+
"schema-engine.d.ts": "36049b8206969175b2e9628b3cf0cb670cb6b10836e28963e5aa32c797882681",
|
|
58
|
+
"schema-engine.js": "80f203c8c8035ea3e0becd02087dfe3cd5a77ffbcf1a183cbd7976e79294efff",
|
|
59
|
+
"schema-json.d.ts": "dc0a7644776117235b33129292ec0936bce37f769adb497387a7071508ce4540",
|
|
60
|
+
"schema-json.js": "367f4deb589286fad3d2c05456cfd8b6859d5e1e2efa22dcd84e629f6d9efddc",
|
|
61
|
+
"schema-types.d.ts": "4c56872a799cb4e5e59c5ebcd3b889493e082e08c5ad6629b6b1a1c5ae24a3b0",
|
|
62
|
+
"schema-types.js": "7d29a0d2cb0e10d9c98b299939c91c64fd791f09e1284b5022d8782fa54dad9a",
|
|
63
|
+
"schema-view.d.ts": "77c66c91b30d4ce06a33f1b8fac153202f64ad68936dda467eae251117132702",
|
|
64
|
+
"schema-view.js": "7efbcdd76d653b7fb8ce6dcbbe303cc282f6d640793918501717e5dc04bf0a32",
|
|
65
|
+
"schema.d.ts": "2ad7f9350c391c59d6c641c18120c84926210d7905d0d27e51e58097ced5f7be",
|
|
66
|
+
"schema.js": "c0acab4248f09489a99ae7f931302a4cf83ad0221027e06a9c6d5b32d6d094b2"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"verification": {
|
|
71
|
+
"full_check_passed": true,
|
|
72
|
+
"full_check_tests": 55,
|
|
73
|
+
"logs_sha256": {
|
|
74
|
+
"aframe-check.log": "309d7ace6b8778025753fd267ddfeb12da7fa1c0e595e4931212e38af46c4570",
|
|
75
|
+
"aframe-repo-npm10.log": "6b0c5217e10070716f2a27162d456c7a39f0d7ecb02420ead4c9713a6a5672cf"
|
|
76
|
+
},
|
|
77
|
+
"prior_215_135_record": "The reviewed production source and emitted hashes remain the baseline; coordinator stores the new artifact/re-emit/dependency results after all pins align.",
|
|
78
|
+
"npm10_pack_regression": "foreground-scripts=false keeps prepare output out of JSON where parsed; Camera Source does not parse pack stdout."
|
|
79
|
+
},
|
|
80
|
+
"compatibility": "Existing runtime APIs, source formats and schema acceptance unchanged; explicit pure entry guards remain strict.",
|
|
81
|
+
"main_integration": null,
|
|
82
|
+
"rollback": "Stop new pure/bundle use; restore old pins and matching lock/workspace together or revert the correction commit; source migration is absent. Scene local integration revert uses first parent.",
|
|
83
|
+
"scope": {
|
|
84
|
+
"stage2_or_later": false,
|
|
85
|
+
"PR_merge": false,
|
|
86
|
+
"npm_publish": false
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
> 現在のCI修正・依存artifactの検証は [editor-schema-ci-fix-20261018.ja.md](editor-schema-ci-fix-20261018.ja.md) / [JSON](editor-schema-ci-fix-20261018.json) を参照。以下の旧pin・検証結果は採取時の履歴として保持する。
|
|
2
|
+
|
|
3
|
+
# 段階1 修正版のGit依存固定
|
|
4
|
+
|
|
5
|
+
2026-10-18。対象は既存https://github.com/kubohiroya/turbowarp-aframe/issues/19の段階1修正と依存更新。公開ブランチはfeat/schema/stage1-aframe。自repoの最終commit/remote照合はcoordinatorのstage-1-publication-20261018.jsonに記録し、文書へ自分のcommitを埋め込む循環を避ける。
|
|
6
|
+
|
|
7
|
+
共通artifactをR4修正を含む `b5f4b8d2e391a0d57d091c8f3e1c2d58da152dc8` へ固定した。manifest・lock・allowBuildsの正確なGit URLを揃え、標準frozen installと実解決のbuild-info revisionを照合した。esbuild等の既存制限は維持する。producerを経由する共通依存も同じrevisionとRJSF宣言を確認した。
|
|
8
|
+
|
|
9
|
+
実解決のRJSF型は既定nullで、共通作業成果とhash一致。pure 12ファイルのbyte一致、関連36テスト・型検査・既存prepare build、srcなし/Reactなしimport・globalアクセス0・strict no-DOM型検査、5 emitの再生成hash一致を確認した。RJSF互換型のskipLibCheck:trueは既知の依存宣言制約に限定し、pure consumerはfalse。実際の検証依存版もJSONへ記録した。
|
|
10
|
+
|
|
11
|
+
再レビュー済みsource・Schema正本/生成物・既存データ・UI分類は変更していない。修正内容、raw形式保持、既存API、既定OFFフラグ、同期owner判定の境界も維持する。機械記録はeditor-schema-publication.json。旧editor-schema-verification.jsonと以前の本文は採取時点の履歴。
|
|
12
|
+
|
|
13
|
+
ロールバックはJSONのrollback_dependency_pinsと対応lock/workspace policyへ戻すか、新pure/bundle入口の利用を停止する。保存sourceは移行しない。参照GUIは未更新であり、段階2のUI接続前に修正版artifactの選択・manifest/lock/実解決・capability・raw形式保持・保存直前再検証を確認する。段階2以降・PR・merge・npm公開は含めない。
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"stage": "S1 reviewed fixes and Git artifact alignment",
|
|
3
|
+
"repository": "@kubohiroya/turbowarp-aframe",
|
|
4
|
+
"issue": "https://github.com/kubohiroya/turbowarp-aframe/issues/19",
|
|
5
|
+
"observed_at_utc": "2026-10-18T06:31:21.469328+00:00",
|
|
6
|
+
"base_commit_before_this_publication": "14331b75cbcc5406bc41357fb8bfa415b7b913bd",
|
|
7
|
+
"branch": "feat/schema/stage1-aframe",
|
|
8
|
+
"dependency_pins": {
|
|
9
|
+
"@kubohiroya/turbowarp-extension-data-editor": "git+https://github.com/kubohiroya/turbowarp-extension-data-editor.git#b5f4b8d2e391a0d57d091c8f3e1c2d58da152dc8"
|
|
10
|
+
},
|
|
11
|
+
"common_revision": "b5f4b8d2e391a0d57d091c8f3e1c2d58da152dc8",
|
|
12
|
+
"resolved_dependencies": [
|
|
13
|
+
{
|
|
14
|
+
"name": "@kubohiroya/turbowarp-extension-data-editor",
|
|
15
|
+
"via": "@kubohiroya/turbowarp-aframe",
|
|
16
|
+
"specifier": "git+https://github.com/kubohiroya/turbowarp-extension-data-editor.git#b5f4b8d2e391a0d57d091c8f3e1c2d58da152dc8",
|
|
17
|
+
"resolved_path": "/private/tmp/schema-stage1-worktrees-20261018/aframe/node_modules/.pnpm/@kubohiroya+turbowarp-extension-data-editor@https+++codeload.github.com+kubohiroya+turb_ea9ed4fbe83b895db0a5315e4e7cce4f/node_modules/@kubohiroya/turbowarp-extension-data-editor",
|
|
18
|
+
"version": "0.1.0",
|
|
19
|
+
"manifest_sha256": "3e86db1bf667088a7a87ada19fc11573082918335dd281073464ca4fcebf74da",
|
|
20
|
+
"build_info": {
|
|
21
|
+
"name": "@kubohiroya/turbowarp-extension-data-editor",
|
|
22
|
+
"version": "0.1.0",
|
|
23
|
+
"repository": "https://github.com/kubohiroya/turbowarp-extension-data-editor",
|
|
24
|
+
"revision": "b5f4b8d2e391a0d57d091c8f3e1c2d58da152dc8"
|
|
25
|
+
},
|
|
26
|
+
"rjsf_type_sha256": "6b68cfc2a04c7b730234968bdd6fac380747e2de6631e1752caf07fd8b9b0c90",
|
|
27
|
+
"rjsf_default_null": true,
|
|
28
|
+
"pure_files_sha256": {
|
|
29
|
+
"schema-compose.d.ts": "e9bb269fcb3be82661b692e7fdf5c55ac433a31d699ac591a86bf5358046b83e",
|
|
30
|
+
"schema-compose.js": "04b32c71920f1ad99425582c3ef57b69b3725f87191efc808ef94e28b8d7bdd2",
|
|
31
|
+
"schema-engine.d.ts": "36049b8206969175b2e9628b3cf0cb670cb6b10836e28963e5aa32c797882681",
|
|
32
|
+
"schema-engine.js": "80f203c8c8035ea3e0becd02087dfe3cd5a77ffbcf1a183cbd7976e79294efff",
|
|
33
|
+
"schema-json.d.ts": "dc0a7644776117235b33129292ec0936bce37f769adb497387a7071508ce4540",
|
|
34
|
+
"schema-json.js": "367f4deb589286fad3d2c05456cfd8b6859d5e1e2efa22dcd84e629f6d9efddc",
|
|
35
|
+
"schema-types.d.ts": "4c56872a799cb4e5e59c5ebcd3b889493e082e08c5ad6629b6b1a1c5ae24a3b0",
|
|
36
|
+
"schema-types.js": "7d29a0d2cb0e10d9c98b299939c91c64fd791f09e1284b5022d8782fa54dad9a",
|
|
37
|
+
"schema-view.d.ts": "77c66c91b30d4ce06a33f1b8fac153202f64ad68936dda467eae251117132702",
|
|
38
|
+
"schema-view.js": "7efbcdd76d653b7fb8ce6dcbbe303cc282f6d640793918501717e5dc04bf0a32",
|
|
39
|
+
"schema.d.ts": "2ad7f9350c391c59d6c641c18120c84926210d7905d0d27e51e58097ced5f7be",
|
|
40
|
+
"schema.js": "c0acab4248f09489a99ae7f931302a4cf83ad0221027e06a9c6d5b32d6d094b2"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"configuration_sha256": {
|
|
45
|
+
"package.json": "6ef0f65aeba368d5dd2ef6119ec7ef5651e12e9118a17f0e152f8ab67eaff200",
|
|
46
|
+
"pnpm-lock.yaml": "dc664b032b94daa88a28860daca14415ee430a901421b40fdd72c907ca997142",
|
|
47
|
+
"pnpm-workspace.yaml": "b4d08a224c9cf5a2c150ce5a5ce190c2398e8546d277ab8b03dd1ea88f6a02eb",
|
|
48
|
+
"tsconfig.editor.json": "719e677d23a27032768057d11778f881e9adf7a911cbcbe3ed4f86704600bbad"
|
|
49
|
+
},
|
|
50
|
+
"source_sha256": {
|
|
51
|
+
"src/aframe-loader.ts": "7a123915144b0ee88c681a49bf3f1efdb8d5444fb28e6e5ee1fdff87ef48be26",
|
|
52
|
+
"src/config.ts": "94c11342113ea26f49dd00ced0913ada31b876726fcd34f9a511e6eb6b0ad5fa",
|
|
53
|
+
"src/editor-schema.ts": "e0488c80ba66df04ca3a5defab960704ab7648190adab98e0857b7bc57e56ead",
|
|
54
|
+
"src/extension.ts": "142d5aa4216832decee9632a01cb24ff83c558bccfc7df21be41429efc23b34f",
|
|
55
|
+
"src/globals.d.ts": "465405e5deb8841fc4a81a42797a4743d6576c6274060aded031ec02361137f4",
|
|
56
|
+
"src/index.ts": "e4fdf792c01b74405ea031bac9612d6b01934b635a8a093fa244595fa7ae375a",
|
|
57
|
+
"src/runtime-capability.ts": "1a35338eaf527a1893b346e21a1f5b0b236eb3bf8d93210de6eeae7dff448198",
|
|
58
|
+
"src/template-validation.ts": "998af3f8b2db555baae23f3aa597d331d5c217ee4438b052be6357735b69a8a1",
|
|
59
|
+
"src/vrm.ts": "81e0bfe396823f098d22dfe6cc16256ddc9dd0442fbc94ba8841cae1de5fd087"
|
|
60
|
+
},
|
|
61
|
+
"emitted_sha256": {
|
|
62
|
+
"lib-editor/schemas/block-editor-template-compat.schema.json": "10d385bedffe4133c374059278ed7393023055af23d2a26d49099d5ffaac0e75",
|
|
63
|
+
"lib-editor/src/editor-schema.d.ts": "cbe86a73ec3f2673da0c4d6bc48ff4d9152faaebd0bb4b5807b48b8d6ad09bd7",
|
|
64
|
+
"lib-editor/src/editor-schema.js": "c04b24e30465589b35b53ff4d3e682b40b429452885011e58b16ed828838c935",
|
|
65
|
+
"lib-editor/src/template-validation.d.ts": "dec81b820da071d823a9909dd65a0a6b36d08391ddce5a0bd7c50f7b686ee021",
|
|
66
|
+
"lib-editor/src/template-validation.js": "9726e75a5f5d2f8d9e75627b2a131245a8bc9fc84da0d23b4b3035eca7a0e2b1"
|
|
67
|
+
},
|
|
68
|
+
"verification": {
|
|
69
|
+
"frozen_install": "passed with exact allowBuilds Git URLs",
|
|
70
|
+
"frozen_log_sha256": "419074a6a544bb68539b45353ce2b25d03b5b1156db9ca7daea37eba81d341d0",
|
|
71
|
+
"typecheck": "passed",
|
|
72
|
+
"targeted_runtime_tests": 36,
|
|
73
|
+
"runtime_log_sha256": "445b8e63b05c241363491b17022439fa5264746ff98d071ff4c27f313074f2c3",
|
|
74
|
+
"resolved_R4_type_consumer": "passed; skipLibCheck:true for legacy RJSF dependency declaration limitation",
|
|
75
|
+
"R4_fixture_sha256": "fa95292e9c204f69045fc2f96cc5fcaf53c9f75c7221a0064710231bad4ad5dc",
|
|
76
|
+
"R4_type_log_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
77
|
+
"pure_no_DOM_consumer": "passed; skipLibCheck:false",
|
|
78
|
+
"source_emitted_hash_matches": 5,
|
|
79
|
+
"isolated_consumer": "/tmp/schema-owner-consumer-eB9Cul",
|
|
80
|
+
"global_accesses": 0,
|
|
81
|
+
"React_present": false
|
|
82
|
+
},
|
|
83
|
+
"validation_frameworks": {
|
|
84
|
+
"typescript": "5.9.3",
|
|
85
|
+
"vitest": "4.1.10"
|
|
86
|
+
},
|
|
87
|
+
"reviewed_source_unchanged": true,
|
|
88
|
+
"rollback_dependency_pins": {
|
|
89
|
+
"@kubohiroya/turbowarp-extension-data-editor": "git+https://github.com/kubohiroya/turbowarp-extension-data-editor.git#a1ab4f4f5b384eef08ef26e544186ee9d8ad4543"
|
|
90
|
+
},
|
|
91
|
+
"scope": {
|
|
92
|
+
"new_editor_registrations": false,
|
|
93
|
+
"stage2_or_later": false,
|
|
94
|
+
"GUI_dependency_updated": false,
|
|
95
|
+
"PR_merge_npm_publish": false
|
|
96
|
+
},
|
|
97
|
+
"stage2_start_condition": "Select corrected artifacts in GUI and align manifest/lock/resolution before binding/forms; GUI still public 0.1.0.",
|
|
98
|
+
"record_kind": "historical snapshot before CI corrections and producer re-pinning",
|
|
99
|
+
"current_record": "editor-schema-ci-fix-20261018.json"
|
|
100
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"stage": "S1-4/p",
|
|
3
|
+
"repository": "turbowarp-aframe",
|
|
4
|
+
"issue": "https://github.com/kubohiroya/turbowarp-aframe/issues/19",
|
|
5
|
+
"base": "52069c5770a87a78a67094099b1704fc58560713",
|
|
6
|
+
"branch": "feat/schema/stage1-aframe",
|
|
7
|
+
"targeted_tests_passed": 36,
|
|
8
|
+
"typecheck": "passed",
|
|
9
|
+
"existing_build_and_editor_emit": "passed",
|
|
10
|
+
"source_absent_isolated_import": "passed",
|
|
11
|
+
"isolated_no_DOM_skipLibCheck_false": "passed",
|
|
12
|
+
"resolved_dependencies": {
|
|
13
|
+
"@kubohiroya/turbowarp-extension-data-editor": {
|
|
14
|
+
"version": "0.1.0",
|
|
15
|
+
"resolved_path": "/private/tmp/schema-stage1-worktrees-20261018/aframe/node_modules/.pnpm/@kubohiroya+turbowarp-extension-data-editor@https+++codeload.github.com+kubohiroya+turb_5f902832b16dc00a1fc95546529ab82c/node_modules/@kubohiroya/turbowarp-extension-data-editor",
|
|
16
|
+
"manifest_sha256": "3e86db1bf667088a7a87ada19fc11573082918335dd281073464ca4fcebf74da",
|
|
17
|
+
"specifier": "git+https://github.com/kubohiroya/turbowarp-extension-data-editor.git#a1ab4f4f5b384eef08ef26e544186ee9d8ad4543",
|
|
18
|
+
"via": "@kubohiroya/turbowarp-aframe"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"emitted_sha256": {
|
|
22
|
+
"lib-editor/schemas/block-editor-template-compat.schema.json": "10d385bedffe4133c374059278ed7393023055af23d2a26d49099d5ffaac0e75",
|
|
23
|
+
"lib-editor/src/editor-schema.d.ts": "cbe86a73ec3f2673da0c4d6bc48ff4d9152faaebd0bb4b5807b48b8d6ad09bd7",
|
|
24
|
+
"lib-editor/src/editor-schema.js": "c04b24e30465589b35b53ff4d3e682b40b429452885011e58b16ed828838c935",
|
|
25
|
+
"lib-editor/src/template-validation.d.ts": "dec81b820da071d823a9909dd65a0a6b36d08391ddce5a0bd7c50f7b686ee021",
|
|
26
|
+
"lib-editor/src/template-validation.js": "9726e75a5f5d2f8d9e75627b2a131245a8bc9fc84da0d23b4b3035eca7a0e2b1"
|
|
27
|
+
},
|
|
28
|
+
"source_sha256": {
|
|
29
|
+
"src/aframe-loader.ts": "7a123915144b0ee88c681a49bf3f1efdb8d5444fb28e6e5ee1fdff87ef48be26",
|
|
30
|
+
"src/config.ts": "94c11342113ea26f49dd00ced0913ada31b876726fcd34f9a511e6eb6b0ad5fa",
|
|
31
|
+
"src/editor-schema.ts": "e0488c80ba66df04ca3a5defab960704ab7648190adab98e0857b7bc57e56ead",
|
|
32
|
+
"src/extension.ts": "142d5aa4216832decee9632a01cb24ff83c558bccfc7df21be41429efc23b34f",
|
|
33
|
+
"src/globals.d.ts": "465405e5deb8841fc4a81a42797a4743d6576c6274060aded031ec02361137f4",
|
|
34
|
+
"src/index.ts": "e4fdf792c01b74405ea031bac9612d6b01934b635a8a093fa244595fa7ae375a",
|
|
35
|
+
"src/runtime-capability.ts": "1a35338eaf527a1893b346e21a1f5b0b236eb3bf8d93210de6eeae7dff448198",
|
|
36
|
+
"src/template-validation.ts": "998af3f8b2db555baae23f3aa597d331d5c217ee4438b052be6357735b69a8a1",
|
|
37
|
+
"src/vrm.ts": "81e0bfe396823f098d22dfe6cc16256ddc9dd0442fbc94ba8841cae1de5fd087"
|
|
38
|
+
},
|
|
39
|
+
"source_emit_hash_matches": 5,
|
|
40
|
+
"side_effect_guarded_isolated_import": "0 DOM/VM/network global accesses; React absent",
|
|
41
|
+
"scope": {
|
|
42
|
+
"new_extension_editor_registration": false,
|
|
43
|
+
"schema_authoring_UI": false,
|
|
44
|
+
"arbitrary_schema_UI": false,
|
|
45
|
+
"GUI_dependency_change": false,
|
|
46
|
+
"cause_investigation": false
|
|
47
|
+
},
|
|
48
|
+
"record_kind": "historical snapshot before Git artifact alignment",
|
|
49
|
+
"current_record": "editor-schema-publication.json"
|
|
50
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
> 現在のCI修正・依存artifactの検証は [editor-schema-ci-fix-20261018.ja.md](editor-schema-ci-fix-20261018.ja.md) / [JSON](editor-schema-ci-fix-20261018.json) を参照。以下の旧pin・検証結果は採取時の履歴として保持する。
|
|
2
|
+
|
|
3
|
+
# 段階1: A-Frame固定Schema
|
|
4
|
+
|
|
5
|
+
> 現在のGit依存固定・実解決・検証結果は[editor-schema-publication.ja.md](editor-schema-publication.ja.md)と同名JSONを参照。以下は依存更新前の採取履歴として保持する。
|
|
6
|
+
|
|
7
|
+
追跡: https://github.com/kubohiroya/turbowarp-aframe/issues/19 。共通親はextension-data-editor #18。
|
|
8
|
+
|
|
9
|
+
`./editor-schema`はtemplateSchemaBundle、validateTemplateInput、validateTemplateNode、decodeTemplateSourceを公開する。拡張本体やDOMをimportしない。decodeはJSONのsource/raw dataを保持し、検証は値のString化やclass重複除去を行わない。
|
|
10
|
+
|
|
11
|
+
互換Schemaの正本はschemas/block-editor-template-compat.schema.json。所有条件はsrc/template-validation.tsで、旧runtime validatorの受理条件と例外文面をそのまま抽出した。runtimeも同じ関数へ委譲する。既存schemas/aframe-template.schema.jsonは厳しい参考Schemaとして保持し、必須ゲートにはしない。空type/id、重複class/classes、配列/object属性値、children再帰を受理する。空白だけのrecord keyの拒否はowner層が担当する。
|
|
12
|
+
|
|
13
|
+
共通型はGit commit a1ab4f4f5b384eef08ef26e544186ee9d8ad4543へ固定し、lockfileとpnpmのbuild許可も同じartifactを指す。GitHub archiveではexport-substのrevisionをbuild-infoへ記録する。pnpmのGit prepareは明示許可が必要なため、固定tarball matcherをpnpm-workspace.yamlへ追加した。
|
|
14
|
+
|
|
15
|
+
確認: 型検査、互換fixtureと既存runtime対象テスト35件、既存Vite build+独立JS/型/resource emit、srcなし隔離package importとDOMなし・skipLibCheck:falseのconsumer型検査が成功。既存strict Schemaは変更していない。
|
|
16
|
+
|
|
17
|
+
段階2のフォーム登録・source encode・binding、段階4の候補UIは未実装。既存GUIフラグの既定OFFを維持する。rollbackは新pure入口の利用を外すか、このIssueのcommitをrevertする。保存済みsourceの移行は不要。
|
|
18
|
+
|
|
19
|
+
## S1-5の最終確認
|
|
20
|
+
|
|
21
|
+
対象は合計36ケース(増分検証を含む)。srcを除いた実packageでReact不在・DOM/VM/通信globalアクセス0、skipLibCheck:falseの型検査を確認し、独立生成5ファイルを再emitと全SHA-256照合した。16契約の横断fixtureと依存artifact照合の記録は共通repoのschema-stage1-*.jsonを参照。既存生成基準は保持する。
|
|
22
|
+
|
|
23
|
+
validateTemplateSourceを追加し、形式不正・未知variantでも元sourceを保持した安全な診断を返す。raw parser例外を診断へ混ぜない。
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# 固定入力エディターの契約
|
|
2
|
+
|
|
3
|
+
対応GUIの起動時に`blockEditorDialogs=1&blockEditorFixedInputs=1`を指定して再読込した場合だけ利用できる。固定入力フラグは既定OFF。旧GUIにoptional登録APIがなければ既存動作を維持する。
|
|
4
|
+
|
|
5
|
+
| ブロック | 引数 | UI |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| `createScene` | `LAYER` | enum |
|
|
8
|
+
| `setPosition` | `X` | number |
|
|
9
|
+
| `setPosition` | `Y` | number |
|
|
10
|
+
| `setPosition` | `Z` | number |
|
|
11
|
+
| `moveBy` | `X` | number |
|
|
12
|
+
| `moveBy` | `Y` | number |
|
|
13
|
+
| `moveBy` | `Z` | number |
|
|
14
|
+
| `setRotation` | `X` | number |
|
|
15
|
+
| `setRotation` | `Y` | number |
|
|
16
|
+
| `setRotation` | `Z` | number |
|
|
17
|
+
| `createAnimationClip` | `DURATION` | number |
|
|
18
|
+
| `addVectorKeyframeTrack` | `PATH` | enum |
|
|
19
|
+
| `addQuaternionKeyframeTrack` | `PATH` | enum |
|
|
20
|
+
| `addEulerRotationKeyframeTrack` | `PATH` | enum |
|
|
21
|
+
| `addEulerRotationKeyframeTrack` | `UNIT` | enum |
|
|
22
|
+
| `addPositionKeyframe` | `TIME` | number |
|
|
23
|
+
| `addPositionKeyframe` | `X` | number |
|
|
24
|
+
| `addPositionKeyframe` | `Y` | number |
|
|
25
|
+
| `addPositionKeyframe` | `Z` | number |
|
|
26
|
+
| `addScaleKeyframe` | `TIME` | number |
|
|
27
|
+
| `addScaleKeyframe` | `X` | number |
|
|
28
|
+
| `addScaleKeyframe` | `Y` | number |
|
|
29
|
+
| `addScaleKeyframe` | `Z` | number |
|
|
30
|
+
| `addEulerRotationKeyframe` | `TIME` | number |
|
|
31
|
+
| `addEulerRotationKeyframe` | `X` | number |
|
|
32
|
+
| `addEulerRotationKeyframe` | `Y` | number |
|
|
33
|
+
| `addEulerRotationKeyframe` | `Z` | number |
|
|
34
|
+
| `addEulerRotationKeyframe` | `UNIT` | enum |
|
|
35
|
+
| `playAnimationClip` | `LOOP` | 保存対象外・読取専用 |
|
|
36
|
+
| `setAnimationTimeScale` | `SCALE` | number |
|
|
37
|
+
| `setVrmBoneRotation` | `X` | number |
|
|
38
|
+
| `setVrmBoneRotation` | `Y` | number |
|
|
39
|
+
| `setVrmBoneRotation` | `Z` | number |
|
|
40
|
+
| `setVrmExpression` | `WEIGHT` | number |
|
|
41
|
+
|
|
42
|
+
旧template SOURCEのSchemaを数値・位置・回転の正本へ流用しない。DURATIONは有限かつ>=-1で、-0.5も有効。keyframe TIMEは>=0。その他は有限値を保持し、WEIGHTは0〜1のSchemaに狭めず、既存VRM runtimeのclampを維持する。LAYER/PATH/UNITは固定選択で、既存trim・大小文字aliasは表示投影のみ。BOOLEAN socketのLOOPは保存対象外であり、reporterを評価・置換しない。旧opcode・公開API・serializer・保存データを維持する。
|
|
43
|
+
|
|
44
|
+
Schemaの正本は`schemas/block-editor-fixed-inputs.schema.json`。各登録は実在する`#/$defs/<opcode>/properties/<argument>` fragmentをsourceとして保持し、旧SOURCE Schemaと区別する。`src/extension.ts`およびpure normalizerがruntime契約の正本であり、UI候補や棚卸しだけを受理根拠にしない。外部Schema取得を行わない。
|
|
45
|
+
|
|
46
|
+
新number入力にはNP-finite-new-input-v1を適用し、有限なJSON数値表記だけを保存する。既存rawは未編集ならalias・空白・未知値・旧数値表記もそのまま保持し、表示投影では書き換えない。空白や非有限など投影不能な旧値は読取専用で、明示的な有効値への修復だけを許す。接続reporterは評価・置換しない。対象外の引数はpatchしない。
|
|
47
|
+
|
|
48
|
+
同じ画面では未保存draftと無効bufferを保持し、保存失敗後も保持する。取消・dispose・project/target/登録失効で破棄し、再openは現在rawから始める。getInfoに存在するopcodeだけ登録し、APIまたはopcode集合の変化ではcleanupして再登録する。部分登録失敗・runtime終了・disposeでcleanupする。
|
|
49
|
+
|
|
50
|
+
共通依存はGit commit `485f0e550e622235624b5e9176820161aeeba252`へmanifest・lock・実解決を揃える。型とpure数値parserだけを利用し、runtime bundleと公開型の依存閉包をpack consumerで確認する。既存SourceForms/Descendantsと共存する。
|
|
51
|
+
|
|
52
|
+
切戻しは固定入力フラグをOFFにして再読込する。依存を戻すときはmanifest・lock・実解決を一組で戻す。旧sb3の移行は不要。ローカル検証のみで、commit・push・Issue・PR・merge・Pages・npm公開を含まない。
|
package/docs/index.html
CHANGED
|
@@ -9,8 +9,17 @@
|
|
|
9
9
|
code{background:#f3f3f3;padding:.1em .3em;border-radius:.25em}
|
|
10
10
|
pre{background:#f6f8fa;padding:1rem;overflow:auto;border-radius:.5rem}
|
|
11
11
|
</style>
|
|
12
|
+
<style id="block-reference-style">
|
|
13
|
+
#extension-block-reference{max-width:72rem;margin:2rem auto;padding:1rem;line-height:1.6;overflow-wrap:anywhere}
|
|
14
|
+
#extension-block-reference .block-reference-entry{display:block;scroll-margin-top:6rem;margin:2rem 0;padding:1rem;border:1px solid currentColor;border-radius:.5rem}
|
|
15
|
+
#extension-block-reference .block-reference-table{overflow-x:auto}
|
|
16
|
+
#extension-block-reference table{border-collapse:collapse;width:100%}
|
|
17
|
+
#extension-block-reference th,#extension-block-reference td{text-align:left;vertical-align:top;border:1px solid currentColor;padding:.5rem}
|
|
18
|
+
#extension-block-reference code{white-space:pre-wrap}
|
|
19
|
+
#extension-block-reference a:focus-visible{outline:3px solid currentColor;outline-offset:3px}
|
|
20
|
+
</style>
|
|
12
21
|
</head>
|
|
13
|
-
<body>
|
|
22
|
+
<body><p lang="en" class="complete-block-reference-link"><a href="#extension-block-reference">Complete block reference (36 blocks)</a></p>
|
|
14
23
|
<h1>TurboWarp-A-Frame</h1>
|
|
15
24
|
<p>TurboWarp-A-Frame is an unsandboxed TurboWarp extension for building declarative A-Frame scene graphs from blocks.</p>
|
|
16
25
|
|
|
@@ -46,5 +55,51 @@
|
|
|
46
55
|
|
|
47
56
|
<h2>Development</h2>
|
|
48
57
|
<p>See the repository README and architecture documentation for build, test, release, compatibility, rollback, collision, and AR fallback details.</p>
|
|
58
|
+
<!-- BEGIN COMPLETE BLOCK REFERENCE -->
|
|
59
|
+
<section lang="en" id="extension-block-reference" aria-labelledby="block-reference-title">
|
|
60
|
+
<h2 id="block-reference-title">TurboWarp-A-Frame: complete block reference</h2>
|
|
61
|
+
<p>All 36 blocks are documented below, including compatibility blocks and blocks available through optional features. Select a block to read its behavior, arguments, default values, and menu choices. Each block has a permanent link.</p>
|
|
62
|
+
<nav aria-label="Block reference"><ul><li><a href="#block-createScene"><code>create 3D scene with layer [LAYER] mode [MODE]</code></a></li>
|
|
63
|
+
<li><a href="#block-loadTemplate"><code>load template [ID] from JSON [SOURCE]</code></a></li>
|
|
64
|
+
<li><a href="#block-createNode"><code>create [TYPE] node id [ID] under [PARENT]</code></a></li>
|
|
65
|
+
<li><a href="#block-createFromTemplate"><code>create template [TEMPLATE] as [INSTANCE] under [PARENT]</code></a></li>
|
|
66
|
+
<li><a href="#block-setPosition"><code>set selector [SELECTOR] position x [X] y [Y] z [Z]</code></a></li>
|
|
67
|
+
<li><a href="#block-moveBy"><code>move selector [SELECTOR] by x [X] y [Y] z [Z]</code></a></li>
|
|
68
|
+
<li><a href="#block-setRotation"><code>set selector [SELECTOR] rotation x [X] y [Y] z [Z]</code></a></li>
|
|
69
|
+
<li><a href="#block-addClass"><code>add class [CLASS] to selector [SELECTOR]</code></a></li>
|
|
70
|
+
<li><a href="#block-setData"><code>set selector [SELECTOR] data [KEY] to [VALUE]</code></a></li>
|
|
71
|
+
<li><a href="#block-setAttribute"><code>set selector [SELECTOR] attribute [NAME] to [VALUE]</code></a></li>
|
|
72
|
+
<li><a href="#block-deleteSelector"><code>delete selector [SELECTOR]</code></a></li>
|
|
73
|
+
<li><a href="#block-countSelector"><code>count selector [SELECTOR]</code></a></li>
|
|
74
|
+
<li><a href="#block-eventTargetId"><code>event target id</code></a></li>
|
|
75
|
+
<li><a href="#block-emitEvent"><code>emit 3D event [TYPE] from selector [SELECTOR] with data [DATA]</code></a></li>
|
|
76
|
+
<li><a href="#block-whenSceneReady"><code>when 3D scene ready</code></a></li>
|
|
77
|
+
<li><a href="#block-whenEventOnSelector"><code>when event [TYPE] on selector [SELECTOR]</code></a></li>
|
|
78
|
+
<li><a href="#block-createAnimationClip"><code>create 3D animation clip [NAME] duration [DURATION]</code></a></li>
|
|
79
|
+
<li><a href="#block-deleteAnimationClip"><code>delete 3D animation clip [NAME]</code></a></li>
|
|
80
|
+
<li><a href="#block-addVectorKeyframeTrack"><code>add vector keyframe track to clip [CLIP] path [PATH] times [TIMES] values [VALUES]</code></a></li>
|
|
81
|
+
<li><a href="#block-addQuaternionKeyframeTrack"><code>add quaternion keyframe track to clip [CLIP] path [PATH] times [TIMES] values [VALUES]</code></a></li>
|
|
82
|
+
<li><a href="#block-addEulerRotationKeyframeTrack"><code>add euler rotation keyframe track to clip [CLIP] path [PATH] times [TIMES] values [VALUES] unit [UNIT]</code></a></li>
|
|
83
|
+
<li><a href="#block-addPositionKeyframe"><code>add position keyframe to clip [CLIP] at [TIME] x [X] y [Y] z [Z]</code></a></li>
|
|
84
|
+
<li><a href="#block-addScaleKeyframe"><code>add scale keyframe to clip [CLIP] at [TIME] x [X] y [Y] z [Z]</code></a></li>
|
|
85
|
+
<li><a href="#block-addEulerRotationKeyframe"><code>add euler rotation keyframe to clip [CLIP] at [TIME] x [X] y [Y] z [Z] unit [UNIT]</code></a></li>
|
|
86
|
+
<li><a href="#block-playAnimationClip"><code>play 3D animation clip [CLIP] on selector [SELECTOR] loop [LOOP]</code></a></li>
|
|
87
|
+
<li><a href="#block-stopAnimationClip"><code>stop 3D animation clip [CLIP] on selector [SELECTOR]</code></a></li>
|
|
88
|
+
<li><a href="#block-pauseAnimationClip"><code>pause 3D animation clip [CLIP] on selector [SELECTOR]</code></a></li>
|
|
89
|
+
<li><a href="#block-resumeAnimationClip"><code>resume 3D animation clip [CLIP] on selector [SELECTOR]</code></a></li>
|
|
90
|
+
<li><a href="#block-setAnimationTimeScale"><code>set 3D animation clip [CLIP] on selector [SELECTOR] time scale [SCALE]</code></a></li>
|
|
91
|
+
<li><a href="#block-isAnimationClipPlaying"><code>is 3D animation clip [CLIP] playing on selector [SELECTOR]?</code></a></li>
|
|
92
|
+
<li><a href="#block-loadVrm"><code>load VRM [URL] onto [SELECTOR]</code></a></li>
|
|
93
|
+
<li><a href="#block-setVrmBoneRotation"><code>set VRM [SELECTOR] bone [BONE] rotation x [X] y [Y] z [Z]</code></a></li>
|
|
94
|
+
<li><a href="#block-vrmBoneNames"><code>VRM [SELECTOR] humanoid bones</code></a></li>
|
|
95
|
+
<li><a href="#block-setVrmExpression"><code>set VRM [SELECTOR] expression [NAME] to [WEIGHT]</code></a></li>
|
|
96
|
+
<li><a href="#block-vrmExpressionNames"><code>VRM [SELECTOR] expressions</code></a></li>
|
|
97
|
+
<li><a href="#block-vrmState"><code>VRM [SELECTOR] state</code></a></li>
|
|
98
|
+
</ul></nav>
|
|
99
|
+
<article id="block-createScene" class="block-reference-entry"><h3><code>create 3D scene with layer [LAYER] mode [MODE]</code></h3><p>Loads A-Frame 1.8.0 from jsDelivr when the page does not have it, initializes the A-Frame scene host, and emits the scene ready event.</p><p>Block type: COMMAND. Opcode: <code>createScene</code>. <a href="#block-createScene">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>LAYER</code></th><td>STRING</td><td><code>above-stage</code></td><td></td></tr><tr><th scope="row"><code>MODE</code></th><td>STRING</td><td><code>3d</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-loadTemplate" class="block-reference-entry"><h3><code>load template [ID] from JSON [SOURCE]</code></h3><p>Stores a declarative scene graph template for later instantiation.</p><p>Block type: COMMAND. Opcode: <code>loadTemplate</code>. <a href="#block-loadTemplate">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>ID</code></th><td>STRING</td><td><code>monster</code></td><td></td></tr><tr><th scope="row"><code>SOURCE</code></th><td>STRING</td><td><code>{"type":"box","id":"body","attributes":{"color":"#4cffb0"}}</code></td><td></td></tr></tbody></table></div></article><article id="block-createNode" class="block-reference-entry"><h3><code>create [TYPE] node id [ID] under [PARENT]</code></h3><p>Creates a primitive, model, text, light, camera, or group node.</p><p>Block type: COMMAND. Opcode: <code>createNode</code>. <a href="#block-createNode">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>TYPE</code></th><td>STRING</td><td><code>box</code></td><td></td></tr><tr><th scope="row"><code>ID</code></th><td>STRING</td><td><code>card</code></td><td></td></tr><tr><th scope="row"><code>PARENT</code></th><td>STRING</td><td><code>#scene</code></td><td></td></tr></tbody></table></div></article><article id="block-createFromTemplate" class="block-reference-entry"><h3><code>create template [TEMPLATE] as [INSTANCE] under [PARENT]</code></h3><p>Instantiates a stored template under the first node matching the parent selector.</p><p>Block type: COMMAND. Opcode: <code>createFromTemplate</code>. <a href="#block-createFromTemplate">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>TEMPLATE</code></th><td>STRING</td><td><code>monster</code></td><td></td></tr><tr><th scope="row"><code>INSTANCE</code></th><td>STRING</td><td><code>monster-1</code></td><td></td></tr><tr><th scope="row"><code>PARENT</code></th><td>STRING</td><td><code>#scene</code></td><td></td></tr></tbody></table></div></article><article id="block-setPosition" class="block-reference-entry"><h3><code>set selector [SELECTOR] position x [X] y [Y] z [Z]</code></h3><p>Sets local position on every node matching the selector.</p><p>Block type: COMMAND. Opcode: <code>setPosition</code>. <a href="#block-setPosition">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#card</code></td><td></td></tr><tr><th scope="row"><code>X</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>Y</code></th><td>NUMBER</td><td><code>1</code></td><td></td></tr><tr><th scope="row"><code>Z</code></th><td>NUMBER</td><td><code>-3</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-moveBy" class="block-reference-entry"><h3><code>move selector [SELECTOR] by x [X] y [Y] z [Z]</code></h3><p>Offsets local position on every node matching the selector.</p><p>Block type: COMMAND. Opcode: <code>moveBy</code>. <a href="#block-moveBy">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#card</code></td><td></td></tr><tr><th scope="row"><code>X</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>Y</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>Z</code></th><td>NUMBER</td><td><code>1</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-setRotation" class="block-reference-entry"><h3><code>set selector [SELECTOR] rotation x [X] y [Y] z [Z]</code></h3><p>Sets local Euler rotation in degrees on every node matching the selector.</p><p>Block type: COMMAND. Opcode: <code>setRotation</code>. <a href="#block-setRotation">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#card</code></td><td></td></tr><tr><th scope="row"><code>X</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>Y</code></th><td>NUMBER</td><td><code>45</code></td><td></td></tr><tr><th scope="row"><code>Z</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-addClass" class="block-reference-entry"><h3><code>add class [CLASS] to selector [SELECTOR]</code></h3><p>Adds a CSS-style class to every node matching the selector.</p><p>Block type: COMMAND. Opcode: <code>addClass</code>. <a href="#block-addClass">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLASS</code></th><td>STRING</td><td><code>monster</code></td><td></td></tr><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#card</code></td><td></td></tr></tbody></table></div></article><article id="block-setData" class="block-reference-entry"><h3><code>set selector [SELECTOR] data [KEY] to [VALUE]</code></h3><p>Sets a data-* value on every node matching the selector.</p><p>Block type: COMMAND. Opcode: <code>setData</code>. <a href="#block-setData">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#card</code></td><td></td></tr><tr><th scope="row"><code>KEY</code></th><td>STRING</td><td><code>zone</code></td><td></td></tr><tr><th scope="row"><code>VALUE</code></th><td>STRING</td><td><code>field</code></td><td></td></tr></tbody></table></div></article><article id="block-setAttribute" class="block-reference-entry"><h3><code>set selector [SELECTOR] attribute [NAME] to [VALUE]</code></h3><p>Sets an A-Frame component or HTML attribute on every node matching the selector.</p><p>Block type: COMMAND. Opcode: <code>setAttribute</code>. <a href="#block-setAttribute">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#card</code></td><td></td></tr><tr><th scope="row"><code>NAME</code></th><td>STRING</td><td><code>visible</code></td><td></td></tr><tr><th scope="row"><code>VALUE</code></th><td>STRING</td><td><code>true</code></td><td></td></tr></tbody></table></div></article><article id="block-deleteSelector" class="block-reference-entry"><h3><code>delete selector [SELECTOR]</code></h3><p>Deletes every non-root node matching the selector and its descendants.</p><p>Block type: COMMAND. Opcode: <code>deleteSelector</code>. <a href="#block-deleteSelector">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#card</code></td><td></td></tr></tbody></table></div></article><article id="block-countSelector" class="block-reference-entry"><h3><code>count selector [SELECTOR]</code></h3><p>Returns the number of nodes matching a limited selector.</p><p>Block type: REPORTER. Opcode: <code>countSelector</code>. <a href="#block-countSelector">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>.monster</code></td><td></td></tr></tbody></table></div></article><article id="block-eventTargetId" class="block-reference-entry"><h3><code>event target id</code></h3><p>Returns the id of the most recently handled 3D event target.</p><p>Block type: REPORTER. Opcode: <code>eventTargetId</code>. <a href="#block-eventTargetId">Permanent link</a></p><p>This block has no arguments.</p></article><article id="block-emitEvent" class="block-reference-entry"><h3><code>emit 3D event [TYPE] from selector [SELECTOR] with data [DATA]</code></h3><p>Queues and dispatches a 3D event from the first node matching the selector.</p><p>Block type: COMMAND. Opcode: <code>emitEvent</code>. <a href="#block-emitEvent">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>TYPE</code></th><td>STRING</td><td><code>attack</code></td><td></td></tr><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#card</code></td><td></td></tr><tr><th scope="row"><code>DATA</code></th><td>STRING</td><td><code>{}</code></td><td></td></tr></tbody></table></div></article><article id="block-whenSceneReady" class="block-reference-entry"><h3><code>when 3D scene ready</code></h3><p>Fires once after create 3D scene initializes the scene host.</p><p>Block type: HAT. Opcode: <code>whenSceneReady</code>. <a href="#block-whenSceneReady">Permanent link</a></p><p>This block has no arguments.</p></article><article id="block-whenEventOnSelector" class="block-reference-entry"><h3><code>when event [TYPE] on selector [SELECTOR]</code></h3><p>Fires when a queued 3D event of the given type targets a node matching the selector.</p><p>Block type: HAT. Opcode: <code>whenEventOnSelector</code>. <a href="#block-whenEventOnSelector">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>TYPE</code></th><td>STRING</td><td><code>attack</code></td><td></td></tr><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>.monster</code></td><td></td></tr></tbody></table></div></article><article id="block-createAnimationClip" class="block-reference-entry"><h3><code>create 3D animation clip [NAME] duration [DURATION]</code></h3><p>Creates or replaces a Three.js AnimationClip definition.</p><p>Block type: COMMAND. Opcode: <code>createAnimationClip</code>. <a href="#block-createAnimationClip">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>NAME</code></th><td>STRING</td><td><code>wave</code></td><td></td></tr><tr><th scope="row"><code>DURATION</code></th><td>NUMBER</td><td><code>-1</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-deleteAnimationClip" class="block-reference-entry"><h3><code>delete 3D animation clip [NAME]</code></h3><p>Deletes a stored 3D animation clip definition and stops its active actions.</p><p>Block type: COMMAND. Opcode: <code>deleteAnimationClip</code>. <a href="#block-deleteAnimationClip">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>NAME</code></th><td>STRING</td><td><code>wave</code></td><td></td></tr></tbody></table></div></article><article id="block-addVectorKeyframeTrack" class="block-reference-entry"><h3><code>add vector keyframe track to clip [CLIP] path [PATH] times [TIMES] values [VALUES]</code></h3><p>Adds a Three.js VectorKeyframeTrack definition with x y z values.</p><p>Block type: COMMAND. Opcode: <code>addVectorKeyframeTrack</code>. <a href="#block-addVectorKeyframeTrack">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>move-up</code></td><td></td></tr><tr><th scope="row"><code>PATH</code></th><td>STRING</td><td><code>.position</code></td><td></td></tr><tr><th scope="row"><code>TIMES</code></th><td>STRING</td><td><code>0,0.5,1</code></td><td></td></tr><tr><th scope="row"><code>VALUES</code></th><td>STRING</td><td><code>0,1,-3, 0,1.5,-3, 0,1,-3</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-addQuaternionKeyframeTrack" class="block-reference-entry"><h3><code>add quaternion keyframe track to clip [CLIP] path [PATH] times [TIMES] values [VALUES]</code></h3><p>Adds a Three.js QuaternionKeyframeTrack definition with x y z w values.</p><p>Block type: COMMAND. Opcode: <code>addQuaternionKeyframeTrack</code>. <a href="#block-addQuaternionKeyframeTrack">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>wave</code></td><td></td></tr><tr><th scope="row"><code>PATH</code></th><td>STRING</td><td><code>.quaternion</code></td><td></td></tr><tr><th scope="row"><code>TIMES</code></th><td>STRING</td><td><code>0,0.5,1</code></td><td></td></tr><tr><th scope="row"><code>VALUES</code></th><td>STRING</td><td><code>0,0,0,1, 0,0,0.389,0.921, 0,0,0,1</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-addEulerRotationKeyframeTrack" class="block-reference-entry"><h3><code>add euler rotation keyframe track to clip [CLIP] path [PATH] times [TIMES] values [VALUES] unit [UNIT]</code></h3><p>Adds a quaternion track converted from Euler x y z rotation values.</p><p>Block type: COMMAND. Opcode: <code>addEulerRotationKeyframeTrack</code>. <a href="#block-addEulerRotationKeyframeTrack">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>wave</code></td><td></td></tr><tr><th scope="row"><code>PATH</code></th><td>STRING</td><td><code>.quaternion</code></td><td></td></tr><tr><th scope="row"><code>TIMES</code></th><td>STRING</td><td><code>0,0.25,0.5,0.75,1</code></td><td></td></tr><tr><th scope="row"><code>VALUES</code></th><td>STRING</td><td><code>0,0,0, 0,0,0.8, 0,0,0, 0,0,-0.8, 0,0,0</code></td><td></td></tr><tr><th scope="row"><code>UNIT</code></th><td>STRING</td><td><code>radians</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-addPositionKeyframe" class="block-reference-entry"><h3><code>add position keyframe to clip [CLIP] at [TIME] x [X] y [Y] z [Z]</code></h3><p>Adds or replaces one position keyframe on the clip.</p><p>Block type: COMMAND. Opcode: <code>addPositionKeyframe</code>. <a href="#block-addPositionKeyframe">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>move-up</code></td><td></td></tr><tr><th scope="row"><code>TIME</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>X</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>Y</code></th><td>NUMBER</td><td><code>1</code></td><td></td></tr><tr><th scope="row"><code>Z</code></th><td>NUMBER</td><td><code>-3</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-addScaleKeyframe" class="block-reference-entry"><h3><code>add scale keyframe to clip [CLIP] at [TIME] x [X] y [Y] z [Z]</code></h3><p>Adds or replaces one scale keyframe on the clip.</p><p>Block type: COMMAND. Opcode: <code>addScaleKeyframe</code>. <a href="#block-addScaleKeyframe">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>pulse</code></td><td></td></tr><tr><th scope="row"><code>TIME</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>X</code></th><td>NUMBER</td><td><code>1</code></td><td></td></tr><tr><th scope="row"><code>Y</code></th><td>NUMBER</td><td><code>1</code></td><td></td></tr><tr><th scope="row"><code>Z</code></th><td>NUMBER</td><td><code>1</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-addEulerRotationKeyframe" class="block-reference-entry"><h3><code>add euler rotation keyframe to clip [CLIP] at [TIME] x [X] y [Y] z [Z] unit [UNIT]</code></h3><p>Adds or replaces one Euler rotation keyframe converted to quaternion values.</p><p>Block type: COMMAND. Opcode: <code>addEulerRotationKeyframe</code>. <a href="#block-addEulerRotationKeyframe">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>wave</code></td><td></td></tr><tr><th scope="row"><code>TIME</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>X</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>Y</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>Z</code></th><td>NUMBER</td><td><code>0.8</code></td><td></td></tr><tr><th scope="row"><code>UNIT</code></th><td>STRING</td><td><code>radians</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-playAnimationClip" class="block-reference-entry"><h3><code>play 3D animation clip [CLIP] on selector [SELECTOR] loop [LOOP]</code></h3><p>Plays a stored 3D animation clip on every matching node.</p><p>Block type: COMMAND. Opcode: <code>playAnimationClip</code>. <a href="#block-playAnimationClip">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>wave</code></td><td></td></tr><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#leftArm</code></td><td></td></tr><tr><th scope="row"><code>LOOP</code></th><td>BOOLEAN</td><td><code>true</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-stopAnimationClip" class="block-reference-entry"><h3><code>stop 3D animation clip [CLIP] on selector [SELECTOR]</code></h3><p>Stops a stored 3D animation clip on every matching node.</p><p>Block type: COMMAND. Opcode: <code>stopAnimationClip</code>. <a href="#block-stopAnimationClip">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>wave</code></td><td></td></tr><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#leftArm</code></td><td></td></tr></tbody></table></div></article><article id="block-pauseAnimationClip" class="block-reference-entry"><h3><code>pause 3D animation clip [CLIP] on selector [SELECTOR]</code></h3><p>Pauses a stored 3D animation clip on every matching node.</p><p>Block type: COMMAND. Opcode: <code>pauseAnimationClip</code>. <a href="#block-pauseAnimationClip">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>wave</code></td><td></td></tr><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#leftArm</code></td><td></td></tr></tbody></table></div></article><article id="block-resumeAnimationClip" class="block-reference-entry"><h3><code>resume 3D animation clip [CLIP] on selector [SELECTOR]</code></h3><p>Resumes a paused 3D animation clip on every matching node.</p><p>Block type: COMMAND. Opcode: <code>resumeAnimationClip</code>. <a href="#block-resumeAnimationClip">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>wave</code></td><td></td></tr><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#leftArm</code></td><td></td></tr></tbody></table></div></article><article id="block-setAnimationTimeScale" class="block-reference-entry"><h3><code>set 3D animation clip [CLIP] on selector [SELECTOR] time scale [SCALE]</code></h3><p>Sets the playback speed for a stored 3D animation clip on every matching node.</p><p>Block type: COMMAND. Opcode: <code>setAnimationTimeScale</code>. <a href="#block-setAnimationTimeScale">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>wave</code></td><td></td></tr><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#leftArm</code></td><td></td></tr><tr><th scope="row"><code>SCALE</code></th><td>NUMBER</td><td><code>1</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-isAnimationClipPlaying" class="block-reference-entry"><h3><code>is 3D animation clip [CLIP] playing on selector [SELECTOR]?</code></h3><p>Reports whether any matching node has the stored 3D animation clip playing.</p><p>Block type: BOOLEAN. Opcode: <code>isAnimationClipPlaying</code>. <a href="#block-isAnimationClipPlaying">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>CLIP</code></th><td>STRING</td><td><code>wave</code></td><td></td></tr><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#leftArm</code></td><td></td></tr></tbody></table></div></article><article id="block-loadVrm" class="block-reference-entry"><h3><code>load VRM [URL] onto [SELECTOR]</code></h3><p>Loads a VRM avatar with three-vrm on the A-Frame Three.js and attaches it to the first matching node. The block waits until the model is ready.</p><p>Block type: COMMAND. Opcode: <code>loadVrm</code>. <a href="#block-loadVrm">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>URL</code></th><td>STRING</td><td><code>avatar.vrm</code></td><td></td></tr><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#avatar</code></td><td></td></tr></tbody></table></div></article><article id="block-setVrmBoneRotation" class="block-reference-entry"><h3><code>set VRM [SELECTOR] bone [BONE] rotation x [X] y [Y] z [Z]</code></h3><p>Sets the Euler rotation in degrees of a normalized VRM humanoid bone, relative to the T-pose, on every matching node whose VRM is ready.</p><p>Block type: COMMAND. Opcode: <code>setVrmBoneRotation</code>. <a href="#block-setVrmBoneRotation">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#avatar</code></td><td></td></tr><tr><th scope="row"><code>BONE</code></th><td>STRING</td><td><code>leftUpperArm</code></td><td></td></tr><tr><th scope="row"><code>X</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>Y</code></th><td>NUMBER</td><td><code>0</code></td><td></td></tr><tr><th scope="row"><code>Z</code></th><td>NUMBER</td><td><code>-60</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-vrmBoneNames" class="block-reference-entry"><h3><code>VRM [SELECTOR] humanoid bones</code></h3><p>Returns the humanoid bone names of the first matching node's VRM as a JSON array.</p><p>Block type: REPORTER. Opcode: <code>vrmBoneNames</code>. <a href="#block-vrmBoneNames">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#avatar</code></td><td></td></tr></tbody></table></div></article><article id="block-setVrmExpression" class="block-reference-entry"><h3><code>set VRM [SELECTOR] expression [NAME] to [WEIGHT]</code></h3><p>Sets the weight, clamped to 0 through 1, of a preset or custom VRM expression such as happy or blink on every matching node whose VRM is ready.</p><p>Block type: COMMAND. Opcode: <code>setVrmExpression</code>. <a href="#block-setVrmExpression">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#avatar</code></td><td></td></tr><tr><th scope="row"><code>NAME</code></th><td>STRING</td><td><code>happy</code></td><td></td></tr><tr><th scope="row"><code>WEIGHT</code></th><td>NUMBER</td><td><code>1</code></td><td></td></tr></tbody></table></div><p><a href="#fixed-input-editors">Fixed input controls and value preservation</a></p></article><article id="block-vrmExpressionNames" class="block-reference-entry"><h3><code>VRM [SELECTOR] expressions</code></h3><p>Returns the preset and custom expression names of the first matching node's VRM as a JSON array.</p><p>Block type: REPORTER. Opcode: <code>vrmExpressionNames</code>. <a href="#block-vrmExpressionNames">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#avatar</code></td><td></td></tr></tbody></table></div></article><article id="block-vrmState" class="block-reference-entry"><h3><code>VRM [SELECTOR] state</code></h3><p>Returns none, loading, ready, or error with its reason for the first matching node.</p><p>Block type: REPORTER. Opcode: <code>vrmState</code>. <a href="#block-vrmState">Permanent link</a></p><div class="block-reference-table"><table><thead><tr><th>Argument</th><th>Type</th><th>Default value</th><th>Menu choices</th></tr></thead><tbody><tr><th scope="row"><code>SELECTOR</code></th><td>STRING</td><td><code>#avatar</code></td><td></td></tr></tbody></table></div></article>
|
|
100
|
+
<p><a href="https://github.com/kubohiroya/turbowarp-aframe/blob/main/README.md">Repository guide and examples</a></p>
|
|
101
|
+
</section>
|
|
102
|
+
<!-- END COMPLETE BLOCK REFERENCE -->
|
|
103
|
+
<section id="fixed-input-editors"><h2>Optional fixed-input editor</h2><p>Fixed menus and finite numeric inputs preserve existing raw values unless edited. Connected reporters remain read only and are never evaluated. Failed saves retain drafts; cancel, dispose and scope changes discard them. Existing runtime clamps and serializers remain unchanged. The fixed editor is OFF by default; enable blockEditorDialogs and blockEditorFixedInputs at startup.</p><ul><li><a href="#block-createScene">createScene</a></li><li><a href="#block-setPosition">setPosition</a></li><li><a href="#block-moveBy">moveBy</a></li><li><a href="#block-setRotation">setRotation</a></li><li><a href="#block-createAnimationClip">createAnimationClip</a></li><li><a href="#block-addVectorKeyframeTrack">addVectorKeyframeTrack</a></li><li><a href="#block-addQuaternionKeyframeTrack">addQuaternionKeyframeTrack</a></li><li><a href="#block-addEulerRotationKeyframeTrack">addEulerRotationKeyframeTrack</a></li><li><a href="#block-addPositionKeyframe">addPositionKeyframe</a></li><li><a href="#block-addScaleKeyframe">addScaleKeyframe</a></li><li><a href="#block-addEulerRotationKeyframe">addEulerRotationKeyframe</a></li><li><a href="#block-playAnimationClip">playAnimationClip</a></li><li><a href="#block-setAnimationTimeScale">setAnimationTimeScale</a></li><li><a href="#block-setVrmBoneRotation">setVrmBoneRotation</a></li><li><a href="#block-setVrmExpression">setVrmExpression</a></li></ul><p><a href="fixed-input-editors.ja.md">固定入力の契約・保持規則・切戻し</a></p></section>
|
|
49
104
|
</body>
|
|
50
105
|
</html>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Source/Form編集の接続(段階2)
|
|
2
|
+
|
|
3
|
+
`src/source-editors.ts` は `Scratch.gui?.blockEditors.registerSourceEditor` が存在する場合だけ登録する。旧GUIでは登録を省略し、既存ブロックの実行APIを維持する。GUI側の起動時フラグ `blockEditorSourceForms` は既定OFFで、既存 `blockEditorDialogs` と同時に有効な場合だけ新APIを公開する。
|
|
4
|
+
|
|
5
|
+
正本: schemas/block-editor-template-compat.schema.json と src/template-validation.ts。厳格な旧 aframe-template.schema.json は参照用。空type/id、重複class、attributesの配列/object/nullを保存原文から消さない。未知rootキーは既存parser同様に保存拒否。
|
|
6
|
+
|
|
7
|
+
ブロック・引数の完全な対応は `tests/source-editors.test.ts` のtargetsと `createSourceEditorOptions` で検証する。raw sourceを正本とし、JSON/YAMLのformat・variantを自動変換しない。保存候補文字列は共通エディターで1回だけ作り、fresh contextとともにownerの `validateSource` に渡し、成功したその文字列をそのまま1 transactionで保存する。文字列の代わりにruntimeのcontrollerや正規化値を書き戻すことはない。登録はruntime破棄時に解除する。
|
|
8
|
+
|
|
9
|
+
受け入れ基準は対象入力の網羅、既存API/データ互換、owner validationの副作用がないこと、no-op/cancelの原文保持、複数入力の原子保存、生成物とソースの一致、および最終artifactのpin/lock/実解決一致。候補enumの取得や新規項目作成UIは段階4以降に分離する。
|
|
10
|
+
|
|
11
|
+
ロールバックはGUIの起動時フラグ `blockEditorSourceForms` をOFFにして再起動する。旧登録API・実行API・保存済みデータはそのまま使用できる。依存artifactの切替が必要な場合はproducerより先にconsumerを既存pinへ戻す。
|
|
12
|
+
|
|
13
|
+
公開可能なGit SHAへの依存切替と配布packageでの再検証は [段階2の公開記録](stage-2-publication.ja.md) に記録する。manifest・lock・allowBuilds・実解決を一体で確認し、履歴基準と既存採取ログは保持する。
|