@cardenelabs/dragon 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/dist/index.cjs +6384 -5215
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +347 -8
- package/dist/index.d.ts +347 -8
- package/dist/index.js +6380 -5216
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/compile.ts +65 -1
- package/src/index.ts +26 -15
- package/src/json-parser.ts +927 -99
- package/src/schemas/diagram.json +368 -44
- package/src/tokenize.ts +289 -0
- package/src/types.ts +19 -0
- package/src/v05/parser.ts +683 -138
package/README.md
CHANGED
|
@@ -72,11 +72,11 @@ flow:
|
|
|
72
72
|
<!-- notation:actor:start -->
|
|
73
73
|
| 欄 | 何を書くか |
|
|
74
74
|
|---|---|
|
|
75
|
-
| `kind` | 見た目の種別 (`card` / `storage` / `service` / `person`
|
|
76
|
-
| `subtitle` | 題の下の補足 |
|
|
75
|
+
| `kind` | 見た目の種別 (`card` / `storage` / `service` / `person` 等、`種類` とも書ける) |
|
|
76
|
+
| `subtitle` | 題の下の補足 (`補足` とも書ける) |
|
|
77
77
|
| `eyebrow` | 題の上の小見出し |
|
|
78
|
-
| `value` | 箱に出す値 |
|
|
79
|
-
| `rows` | 箱の中に並べる行 |
|
|
78
|
+
| `value` | 箱に出す値 (`値` とも書ける) |
|
|
79
|
+
| `rows` | 箱の中に並べる行 (`行` とも書ける) |
|
|
80
80
|
| `lane` | どの縦列に置くか |
|
|
81
81
|
| `stack` | 縦列の中の何段目に置くか |
|
|
82
82
|
| `initial` | 状態遷移図で始まりの状態か |
|
|
@@ -279,6 +279,10 @@ const diagram = jsonToDiagram(json);
|
|
|
279
279
|
| `step: "..." 1.4s` | `{step: "...", duration: 1.4}` |
|
|
280
280
|
| `focus: [A, B]` | `{focus: ["A", "B"]}` |
|
|
281
281
|
|
|
282
|
+
箱に書ける項目 (`tone` / `owner` / `posX` 等) は両方の記法で同じ。 一覧は実装
|
|
283
|
+
(`INLINE_ACTOR_KEYS`) が持ち、`packages/dragon/test/json-actor-fields.test.ts` が
|
|
284
|
+
両入口の一致を確かめる。 ここに一覧を写すと項目が増えた時に取り残されるため書かない。
|
|
285
|
+
|
|
282
286
|
## License
|
|
283
287
|
|
|
284
288
|
MIT
|