@kubohiroya/turbowarp-aframe 0.8.0 → 0.9.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.
@@ -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
@@ -5,9 +5,11 @@
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <title>TurboWarp-A-Frame documentation</title>
7
7
  <style>
8
- body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;max-width:900px;margin:0 auto;padding:2rem;line-height:1.6;color:#222}
9
- code{background:#f3f3f3;padding:.1em .3em;border-radius:.25em}
10
- pre{background:#f6f8fa;padding:1rem;overflow:auto;border-radius:.5rem}
8
+ :root{color-scheme:light dark;--fg:#222;--bg:#fff;--code-bg:#f3f3f3;--pre-bg:#f6f8fa}
9
+ @media (prefers-color-scheme:dark){:root{--fg:#e7eaf2;--bg:#12141a;--code-bg:#242833;--pre-bg:#1b1e26}}
10
+ body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;max-width:900px;margin:0 auto;padding:2rem;line-height:1.6;color:var(--fg);background:var(--bg)}
11
+ code{background:var(--code-bg);padding:.1em .3em;border-radius:.25em}
12
+ pre{background:var(--pre-bg);padding:1rem;overflow:auto;border-radius:.5rem}
11
13
  </style>
12
14
  <style id="block-reference-style">
13
15
  #extension-block-reference{max-width:72rem;margin:2rem auto;padding:1rem;line-height:1.6;overflow-wrap:anywhere}
@@ -96,9 +98,14 @@
96
98
  <li><a href="#block-vrmExpressionNames"><code>VRM [SELECTOR] expressions</code></a></li>
97
99
  <li><a href="#block-vrmState"><code>VRM [SELECTOR] state</code></a></li>
98
100
  </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></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>{&quot;type&quot;:&quot;box&quot;,&quot;id&quot;:&quot;body&quot;,&quot;attributes&quot;:{&quot;color&quot;:&quot;#4cffb0&quot;}}</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></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></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></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></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></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></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></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></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></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></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></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></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></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&#x27;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></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&#x27;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>
101
+ <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>{&quot;type&quot;:&quot;box&quot;,&quot;id&quot;:&quot;body&quot;,&quot;attributes&quot;:{&quot;color&quot;:&quot;#4cffb0&quot;}}</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&#x27;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&#x27;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
102
  <p><a href="https://github.com/kubohiroya/turbowarp-aframe/blob/main/README.md">Repository guide and examples</a></p>
101
103
  </section>
102
104
  <!-- END COMPLETE BLOCK REFERENCE -->
105
+ <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>
106
+ <!-- The shared TurboWarp Plus header. It inserts itself at the top of the
107
+ page in a shadow root, so it cannot disturb the styles below. -->
108
+ <script type="module"
109
+ src="https://kubohiroya.github.io/turbowarp-plus-site-header/dist/auto.js"></script>
103
110
  </body>
104
111
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubohiroya/turbowarp-aframe",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "A TurboWarp extension for declarative A-Frame scene graphs.",
5
5
  "author": "Hiroya Kubo <hiroya@cuc.ac.jp>",
6
6
  "license": "MPL-2.0",
@@ -25,6 +25,7 @@
25
25
  ],
26
26
  "type": "module",
27
27
  "files": [
28
+ "assets/",
28
29
  "dist/",
29
30
  "docs/",
30
31
  "schemas/",
@@ -33,7 +34,9 @@
33
34
  "README.ja.md",
34
35
  "LICENSE",
35
36
  "THIRD_PARTY_NOTICES.md",
36
- "lib-editor/"
37
+ "lib-editor/",
38
+ "schemas/",
39
+ "docs/fixed-input-editors.ja.md"
37
40
  ],
38
41
  "publishConfig": {
39
42
  "access": "public",
@@ -61,8 +64,8 @@
61
64
  },
62
65
  "devDependencies": {
63
66
  "@eslint/js": "^9.39.5",
64
- "@kubohiroya/turbowarp-extension-manifest": "0.2.0",
65
- "@kubohiroya/vite-plugin-turbowarp-extension": "0.4.0",
67
+ "@kubohiroya/turbowarp-extension-manifest": "^0.3.2",
68
+ "@kubohiroya/vite-plugin-turbowarp-extension": "^0.8.0",
66
69
  "@pixiv/three-vrm": "3.5.5",
67
70
  "@types/node": "^24.13.3",
68
71
  "@types/three": "0.184.0",
@@ -75,7 +78,7 @@
75
78
  "react-dom": "18.3.1"
76
79
  },
77
80
  "dependencies": {
78
- "@kubohiroya/turbowarp-extension-data-editor": "git+https://github.com/kubohiroya/turbowarp-extension-data-editor.git#76fa1d50a3c188082ceef723ea018a9d8769ea6e"
81
+ "@kubohiroya/turbowarp-extension-data-editor": "^0.3.4"
79
82
  },
80
83
  "exports": {
81
84
  "./*": "./*",
@@ -83,5 +86,11 @@
83
86
  "types": "./lib-editor/src/editor-schema.d.ts",
84
87
  "import": "./lib-editor/src/editor-schema.js"
85
88
  }
89
+ },
90
+ "gitHead": "c59e28a3911296826e6476cc97813b3c4fce485e",
91
+ "x-turbowarp-source": {
92
+ "revision": "c59e28a3911296826e6476cc97813b3c4fce485e",
93
+ "revisionRole": "base-commit",
94
+ "sourceState": "local-release-overlay"
86
95
  }
87
96
  }
@@ -0,0 +1,229 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://kubohiroya.github.io/turbowarp-aframe/schemas/block-editor-fixed-inputs.schema.json",
4
+ "title": "turbowarp-aframe fixed input registration schema",
5
+ "$defs": {
6
+ "createScene": {
7
+ "type": "object",
8
+ "properties": {
9
+ "LAYER": {
10
+ "type": "string",
11
+ "enum": [
12
+ "above-stage",
13
+ "below-stage"
14
+ ]
15
+ }
16
+ }
17
+ },
18
+ "setPosition": {
19
+ "type": "object",
20
+ "properties": {
21
+ "X": {
22
+ "type": "number",
23
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
24
+ },
25
+ "Y": {
26
+ "type": "number",
27
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
28
+ },
29
+ "Z": {
30
+ "type": "number",
31
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
32
+ }
33
+ }
34
+ },
35
+ "moveBy": {
36
+ "type": "object",
37
+ "properties": {
38
+ "X": {
39
+ "type": "number",
40
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
41
+ },
42
+ "Y": {
43
+ "type": "number",
44
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
45
+ },
46
+ "Z": {
47
+ "type": "number",
48
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
49
+ }
50
+ }
51
+ },
52
+ "setRotation": {
53
+ "type": "object",
54
+ "properties": {
55
+ "X": {
56
+ "type": "number",
57
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
58
+ },
59
+ "Y": {
60
+ "type": "number",
61
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
62
+ },
63
+ "Z": {
64
+ "type": "number",
65
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
66
+ }
67
+ }
68
+ },
69
+ "createAnimationClip": {
70
+ "type": "object",
71
+ "properties": {
72
+ "DURATION": {
73
+ "type": "number",
74
+ "minimum": -1,
75
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
76
+ }
77
+ }
78
+ },
79
+ "addVectorKeyframeTrack": {
80
+ "type": "object",
81
+ "properties": {
82
+ "PATH": {
83
+ "type": "string",
84
+ "enum": [
85
+ ".position",
86
+ ".scale"
87
+ ]
88
+ }
89
+ }
90
+ },
91
+ "addQuaternionKeyframeTrack": {
92
+ "type": "object",
93
+ "properties": {
94
+ "PATH": {
95
+ "type": "string",
96
+ "enum": [
97
+ ".quaternion"
98
+ ]
99
+ }
100
+ }
101
+ },
102
+ "addEulerRotationKeyframeTrack": {
103
+ "type": "object",
104
+ "properties": {
105
+ "PATH": {
106
+ "type": "string",
107
+ "enum": [
108
+ ".quaternion"
109
+ ]
110
+ },
111
+ "UNIT": {
112
+ "type": "string",
113
+ "enum": [
114
+ "degrees",
115
+ "radians"
116
+ ]
117
+ }
118
+ }
119
+ },
120
+ "addPositionKeyframe": {
121
+ "type": "object",
122
+ "properties": {
123
+ "TIME": {
124
+ "type": "number",
125
+ "minimum": 0,
126
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
127
+ },
128
+ "X": {
129
+ "type": "number",
130
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
131
+ },
132
+ "Y": {
133
+ "type": "number",
134
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
135
+ },
136
+ "Z": {
137
+ "type": "number",
138
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
139
+ }
140
+ }
141
+ },
142
+ "addScaleKeyframe": {
143
+ "type": "object",
144
+ "properties": {
145
+ "TIME": {
146
+ "type": "number",
147
+ "minimum": 0,
148
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
149
+ },
150
+ "X": {
151
+ "type": "number",
152
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
153
+ },
154
+ "Y": {
155
+ "type": "number",
156
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
157
+ },
158
+ "Z": {
159
+ "type": "number",
160
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
161
+ }
162
+ }
163
+ },
164
+ "addEulerRotationKeyframe": {
165
+ "type": "object",
166
+ "properties": {
167
+ "TIME": {
168
+ "type": "number",
169
+ "minimum": 0,
170
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
171
+ },
172
+ "X": {
173
+ "type": "number",
174
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
175
+ },
176
+ "Y": {
177
+ "type": "number",
178
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
179
+ },
180
+ "Z": {
181
+ "type": "number",
182
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
183
+ },
184
+ "UNIT": {
185
+ "type": "string",
186
+ "enum": [
187
+ "degrees",
188
+ "radians"
189
+ ]
190
+ }
191
+ }
192
+ },
193
+ "setAnimationTimeScale": {
194
+ "type": "object",
195
+ "properties": {
196
+ "SCALE": {
197
+ "type": "number",
198
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
199
+ }
200
+ }
201
+ },
202
+ "setVrmBoneRotation": {
203
+ "type": "object",
204
+ "properties": {
205
+ "X": {
206
+ "type": "number",
207
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
208
+ },
209
+ "Y": {
210
+ "type": "number",
211
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
212
+ },
213
+ "Z": {
214
+ "type": "number",
215
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
216
+ }
217
+ }
218
+ },
219
+ "setVrmExpression": {
220
+ "type": "object",
221
+ "properties": {
222
+ "WEIGHT": {
223
+ "type": "number",
224
+ "$comment": "New finite numeric input uses NP-finite-new-input-v1. Existing raw is preserved on no-op; runtime clamp/floor is not applied to stored raw."
225
+ }
226
+ }
227
+ }
228
+ }
229
+ }