@cardenelabs/dragon 0.30.0 → 0.32.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 +314 -12
- package/dist/index.cjs +6966 -1438
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2150 -118
- package/dist/index.d.ts +2150 -118
- package/dist/index.js +6950 -1440
- package/dist/index.js.map +1 -1
- package/package.json +12 -13
- package/src/compile/actor-ids.ts +6 -15
- package/src/compile/actor-option-notice.ts +379 -0
- package/src/compile/actors.ts +32 -3
- package/src/compile/c4.ts +0 -3
- package/src/compile/chain.ts +43 -4
- package/src/compile/chart-fields.ts +16 -1
- package/src/compile/direction.ts +50 -11
- package/src/compile/edge-option-notice.ts +112 -0
- package/src/compile/flowchart.ts +344 -0
- package/src/compile/funnel.ts +14 -2
- package/src/compile/gantt.ts +141 -36
- package/src/compile/generic.ts +473 -61
- package/src/compile/journey.ts +14 -5
- package/src/compile/kinds.ts +5 -13
- package/src/compile/lanes.ts +95 -13
- package/src/compile/metro.ts +271 -0
- package/src/compile/mind.ts +55 -5
- package/src/compile/notice.ts +51 -4
- package/src/compile/order.ts +62 -0
- package/src/compile/parts.ts +107 -33
- package/src/compile/placement-apply.ts +27 -11
- package/src/compile/quadrant.ts +171 -16
- package/src/compile/record.ts +75 -0
- package/src/compile/row-marks.ts +128 -0
- package/src/compile/sequence.ts +105 -26
- package/src/compile/slug.ts +9 -1
- package/src/compile/stages.ts +247 -0
- package/src/compile/subtitle.ts +15 -2
- package/src/compile/swimlane-marks.ts +87 -0
- package/src/compile/swimlane.ts +13 -14
- package/src/compile/timeline.ts +213 -0
- package/src/compile/topology.ts +3 -9
- package/src/compile/tree.ts +13 -4
- package/src/compile/value-chart.ts +179 -25
- package/src/compile.ts +1550 -370
- package/src/focus.ts +2 -2
- package/src/index.ts +34 -2
- package/src/json-parser.ts +1407 -48
- package/src/keywords.ts +251 -17
- package/src/notation-lint.ts +41 -64
- package/src/schemas/diagram.json +643 -20
- package/src/types.ts +336 -35
- package/src/v05/parser.ts +2451 -271
- package/src/compile/class.ts +0 -100
- package/src/compile/er.ts +0 -44
- package/src/compile/solidity.ts +0 -39
- package/src/compile/state.ts +0 -71
package/src/focus.ts
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* 書き方は 2 通り。 箱の名前 1 つか、 矢印 (`A -> B`) で 2 者を指す形。
|
|
5
5
|
*
|
|
6
6
|
* 読み方をここに 1 つだけ置く。 id の形は図種で違う (順序図は縦列の上端 / 下端 / 手順箱、
|
|
7
|
-
*
|
|
7
|
+
* フローは箱 1 個) ため id への解決は図種ごとに残すが、 「どちらの書き方か」 の判断を
|
|
8
8
|
* 図種ごとに持つと、 同じ記述が図種によって別の意味になる。
|
|
9
9
|
*
|
|
10
10
|
* 以前は図種ごとに判定していて、 順序図と汎用の 2 経路が `-` 1 文字を矢印と見なしていた。
|
|
11
11
|
* その結果 `api-gateway` のような名前が「api から gateway への矢印」 と読まれ、 順序図では
|
|
12
|
-
* 光らず、
|
|
12
|
+
* 光らず、 フローでは名前に部分一致した別の矢印が光っていた (実測)。
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/** 光らせる相手の指定。 */
|
package/src/index.ts
CHANGED
|
@@ -24,8 +24,37 @@ export type { CompileNotice } from "./compile";
|
|
|
24
24
|
export type { CdlDiagram } from "@cardenelabs/cdl";
|
|
25
25
|
export { parseTextDslV05 } from "./v05";
|
|
26
26
|
// 記法一覧が「実際に受け付ける値」 を実装から引くための公開。 手書きすると説明と実装がずれる。
|
|
27
|
-
export {
|
|
28
|
-
|
|
27
|
+
export {
|
|
28
|
+
DRAW_TARGETS,
|
|
29
|
+
DRAW_WORDS,
|
|
30
|
+
PHASE_ITEM_WORDS,
|
|
31
|
+
PRESET_TYPES,
|
|
32
|
+
TOP_LEVEL_KEYS,
|
|
33
|
+
TYPE_ALIASES,
|
|
34
|
+
} from "./v05/parser";
|
|
35
|
+
// 行頭の印の語 (#2782)。 見本がどの語を使っているかを数える検査が、一覧を実装から引く
|
|
36
|
+
export { 行頭の語 } from "./compile/row-marks";
|
|
37
|
+
export {
|
|
38
|
+
TONE_ALIAS,
|
|
39
|
+
NODE_KIND_ALIAS,
|
|
40
|
+
DIRECTION_ALIAS,
|
|
41
|
+
ORDERS,
|
|
42
|
+
ORDER_ALIAS,
|
|
43
|
+
SHAPES,
|
|
44
|
+
SWIMLANE_SHAPES,
|
|
45
|
+
DIAGRAM_SHAPES,
|
|
46
|
+
ALL_DIAGRAM_SHAPES,
|
|
47
|
+
THEMES,
|
|
48
|
+
THEME_ALIAS,
|
|
49
|
+
resolveTheme,
|
|
50
|
+
LEGEND_MARK_ALIAS,
|
|
51
|
+
resolveLegendMark,
|
|
52
|
+
意匠の字の測り方,
|
|
53
|
+
意匠の円の区画の間,
|
|
54
|
+
棒を描く節か,
|
|
55
|
+
意匠の棒の角,
|
|
56
|
+
} from "./keywords";
|
|
57
|
+
export type { DslTheme, DslShape, DslSwimlaneShape, DslDiagramShape } from "./keywords";
|
|
29
58
|
export { lintDiagram, autoFix } from "./notation-lint";
|
|
30
59
|
export type { LintIssue, LintReport, LintSeverity } from "./notation-lint";
|
|
31
60
|
// canvas pivot 新 spec 図境界計算 helper (§diagram-boundary SSOT)
|
|
@@ -49,6 +78,9 @@ export { measureActorBoxes } from "./compile";
|
|
|
49
78
|
// 本文に書いた部品の状態の上書きと色番号を、部品の図へ当てる。 編集画面が重ねて描く部品にも
|
|
50
79
|
// 組み立て側と同じ値を使う (#1973)
|
|
51
80
|
export { 部品に上書きを当てる } from "./compile";
|
|
81
|
+
// 測るためだけの配置が受け取った、描かれない図についての知らせの数 (#2312)。 読み込み時の
|
|
82
|
+
// 知らせを 0 行で固定する検査が、母数として読む (0 件なら測る経路を通っていない)
|
|
83
|
+
export { 測るために受け取った知らせの数 } from "./compile";
|
|
52
84
|
// パーツの見た目の大きさと、 位置を書かなかった時の格子。 画面側と組み立て側で同じ規則を使う。
|
|
53
85
|
// 記法が受理する種類の全体。 画面側が「本文が見本を使っているか」 を判定するのに使う (#1022)。
|
|
54
86
|
export { NODE_KIND_VALID } from "./v05/parser";
|