diff --git a/implementation-plan.md b/implementation-plan.md index 0a616b1..aab3c70 100644 --- a/implementation-plan.md +++ b/implementation-plan.md @@ -20,9 +20,7 @@ PHYの正本は相対座標の木だが、既存エディタ(KLE, kle-ng)の移 ### データ例 -以下は旧形式(`keys` 配列、`position` / `size.width`)で書かれており、現行のPHYスキーマ(`phase1-json-schema.md`)に合わせた変換が必要。 - -#### 60% ANSI PHY Layer +#### 60% ANSI PHY Layer (抜粋) ```json { @@ -38,20 +36,22 @@ PHYの正本は相対座標の木だが、既存エディタ(KLE, kle-ng)の移 "unitSize": { "x": 19.05, "y": 19.05 } } ], - "keys": [ - // Escape key + "root": [ { - "id": "k00", "profile": "standard", - "position": { "x": 0, "y": 0 }, - "size": { "width": 1, "height": 1 }, - "metadata": { "label": "Esc" } + "type": "key", + "id": "k00", + "profile": "standard", + "transform": { "x": 0, "y": 0, "rotation": 0 }, + "size": { "w": 1, "h": 1 }, + "labels": ["Esc"] }, - // Space bar { - "id": "k60", "profile": "standard", - "position": { "x": 5, "y": 4 }, - "size": { "width": 6.25, "height": 1 }, - "metadata": { "label": "Space" } + "type": "key", + "id": "k60", + "profile": "standard", + "transform": { "x": 5, "y": 4, "rotation": 0 }, + "size": { "w": 6.25, "h": 1 }, + "labels": ["Space"] } ] }