@cardenelabs/cdl 0.121.0 → 0.123.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/CHANGELOG.md +51 -1
- package/README.md +137 -0
- package/SPEC.md +1 -1
- package/dist/index.cjs +1513 -667
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +51 -33
- package/dist/index.d.ts +51 -33
- package/dist/index.js +1513 -668
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1271 -444
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +1271 -444
- package/dist/react.js.map +1 -1
- package/dist/{render-A5AKjNuy.d.cts → render-CVczwfRb.d.cts} +40 -7
- package/dist/{render-A5AKjNuy.d.ts → render-CVczwfRb.d.ts} +40 -7
- package/package.json +9 -12
- package/src/builder.ts +8 -2
- package/src/index.ts +3 -0
- package/src/kinds/box-lines.ts +17 -4
- package/src/kinds/chart-bar.tsx +4 -0
- package/src/kinds/chart-gauge.tsx +20 -9
- package/src/kinds/chart-pie.tsx +67 -17
- package/src/kinds/chart-radial.tsx +7 -2
- package/src/kinds/chart-slope.tsx +26 -7
- package/src/kinds/chart-stacked-bar.tsx +8 -4
- package/src/kinds/chart-stat.tsx +19 -4
- package/src/kinds/chart-waffle.tsx +7 -2
- package/src/kinds/dyn-shape.tsx +22 -9
- package/src/kinds/funnel.tsx +9 -2
- package/src/kinds/generic.tsx +5 -2
- package/src/kinds/mind-map.tsx +26 -10
- package/src/kinds/quadrant.tsx +14 -4
- package/src/kinds/row-align.ts +19 -7
- package/src/kinds/sequence-board-metrics.ts +13 -3
- package/src/kinds/sequence-board.tsx +4 -2
- package/src/kinds/shape-basement.tsx +57 -32
- package/src/kinds/shape-blockchain.tsx +83 -34
- package/src/kinds/shape-commerce.tsx +65 -24
- package/src/kinds/shape-finance.tsx +90 -26
- package/src/kinds/shape-hardware.tsx +48 -17
- package/src/kinds/shape-region.tsx +16 -6
- package/src/kinds/shape-software.tsx +30 -8
- package/src/kinds/station.tsx +29 -0
- package/src/kinds/text-width.ts +17 -3
- package/src/kinds/tree.tsx +25 -7
- package/src/layout/collisions.ts +50 -28
- package/src/layout/curve-path.ts +126 -0
- package/src/layout/edges.ts +271 -58
- package/src/layout/head-label.ts +11 -5
- package/src/layout/lanes.ts +3 -2
- package/src/layout/metro-path.ts +185 -0
- package/src/layout/nodes.ts +14 -6
- package/src/layout/predict-bbox.ts +6 -3
- package/src/layout/self-loop.ts +10 -4
- package/src/layout/spec.ts +36 -7
- package/src/layout/text-width.ts +25 -8
- package/src/layout/tokens.ts +2 -0
- package/src/layout-with-validation.ts +10 -5
- package/src/layout.ts +55 -21
- package/src/presets.ts +69 -43
- package/src/render/edges.tsx +19 -3
- package/src/render/interactive-panel.tsx +34 -7
- package/src/render/nodes.tsx +100 -48
- package/src/render/stage.tsx +3 -0
- package/src/text-metrics.ts +9 -0
- package/src/types.ts +41 -4
- package/src/visual-validate.ts +91 -21
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CdlDiagram, S as Signal, a as CdlInput, b as CdlLane, c as CdlNode, T as Tone, d as Side, E as EdgeStyle, e as EdgeRole, f as EdgeHead, g as EdgeHeadFill, h as
|
|
2
|
-
export {
|
|
1
|
+
import { C as CdlDiagram, S as Signal, a as CdlInput, b as CdlLane, c as CdlNode, T as Tone, d as Side, E as EdgeStyle, e as EdgeRole, f as EdgeHead, g as EdgeHeadFill, h as EdgeRouting, i as CdlState, j as CdlInputOption, k as CdlEventTarget, l as CdlLang, m as CdlTextMetrics, n as Computed, o as CdlDerivedValue, p as CdlScrollTrigger, L as LaidDiagram, q as CdlDiagramViewProps, r as LaidEdge, s as LaidNode, t as CdlEdge, B as BBox, R as RowMark, N as NodeKind, J as JourneyEmotion, Q as QuadrantKey, u as TreeNodePayload } from './render-CVczwfRb.cjs';
|
|
2
|
+
export { v as CdlDiagramView, w as CdlEventBinding, x as CdlEventKind, y as CdlFormula, z as CdlPhase, A as ChartPieForm, D as ChartSlopeForm, F as EDGE_HEADS, G as EDGE_HEAD_DEFAULT, H as EDGE_HEAD_FILLS, I as EDGE_HEAD_FILL_DEFAULT, K as EDGE_REVEALS, M as EDGE_REVEAL_DEFAULT, O as EDGE_STYLES, P as EdgeReveal, U as InteractiveHandlerMap, V as InteractiveSignalsAccessor, W as LaidLane, X as NODE_KINDS, Y as RELATION_FOCUSES, Z as RELATION_FOCUS_DEFAULT, _ as RelationFocus, $ as ScrollProgressHandle, a0 as TONES, a1 as computeEventBindingKey, a2 as computeFormulaKey, a3 as computeInputSignalKey, a4 as computeScrollTriggerKey, a5 as computed, a6 as createInteractiveSignalsAccessor, a7 as createScrollProgressHandle, a8 as createScrollProgressSignals, a9 as hasInteractivePrimitives, aa as resolveLang, ab as sequenceBoardMetrics, ac as sequenceStepId, ad as signal } from './render-CVczwfRb.cjs';
|
|
3
3
|
import { JSX } from 'react';
|
|
4
4
|
|
|
5
5
|
declare function effect(fn: () => void | (() => void)): () => void;
|
|
@@ -1054,7 +1054,7 @@ type DiagramBuilder = {
|
|
|
1054
1054
|
tailLabel?: string;
|
|
1055
1055
|
labelOffsetX?: number;
|
|
1056
1056
|
labelOffsetY?: number;
|
|
1057
|
-
routing?:
|
|
1057
|
+
routing?: EdgeRouting;
|
|
1058
1058
|
/** CAR-549 SSOT ... true で label を edge path 上に重ねる (flowchart condition label 用) */
|
|
1059
1059
|
overlay?: boolean;
|
|
1060
1060
|
/** signal binding: stroke-width template (CAR edge-signal-binding) */
|
|
@@ -1148,7 +1148,7 @@ type DiagramBuilder = {
|
|
|
1148
1148
|
tailLabel?: string;
|
|
1149
1149
|
labelOffsetX?: number;
|
|
1150
1150
|
labelOffsetY?: number;
|
|
1151
|
-
routing?:
|
|
1151
|
+
routing?: EdgeRouting;
|
|
1152
1152
|
/** CAR-549 SSOT ... true で label を edge path 上に重ねる (flowchart condition label 用) */
|
|
1153
1153
|
overlay?: boolean;
|
|
1154
1154
|
}>) => DiagramBuilder;
|
|
@@ -1232,12 +1232,20 @@ declare function diagram(id: string, options: {
|
|
|
1232
1232
|
* 描画側が書く固定の字の言語 (#847)。 詳しくは `CdlDiagram.lang` の説明を参照。
|
|
1233
1233
|
*/
|
|
1234
1234
|
lang?: CdlLang;
|
|
1235
|
+
/** 図の字幅を測る規則。詳しくは `CdlDiagram.textMetrics` の説明を参照。 */
|
|
1236
|
+
textMetrics?: CdlTextMetrics;
|
|
1235
1237
|
/**
|
|
1236
1238
|
* この図がどの種類か (#645)。 詳しくは `CdlDiagram.type` の説明を参照。
|
|
1237
1239
|
*/
|
|
1238
1240
|
type?: string;
|
|
1239
1241
|
}): DiagramBuilder;
|
|
1240
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* 記法などから届いた値を字幅の測り方へ直す。
|
|
1245
|
+
* 完全一致する `"monospace"` 以外は既定の `"proportional"` に落とす。
|
|
1246
|
+
*/
|
|
1247
|
+
declare function resolveTextMetrics(value: unknown): CdlTextMetrics;
|
|
1248
|
+
|
|
1241
1249
|
/**
|
|
1242
1250
|
* formula expression の AST 型 (CAR #244)。
|
|
1243
1251
|
*
|
|
@@ -1459,7 +1467,8 @@ declare function compile(diag: CdlDiagram): LaidDiagram;
|
|
|
1459
1467
|
* - node は lane 内 stack 順で縦並び、 各 stack 間 gap 80px、 上端 80px
|
|
1460
1468
|
* - lane label は lane 上部 30px 高
|
|
1461
1469
|
* - contain: true の lane は内部 node 全部を 24px padding で囲む boundary
|
|
1462
|
-
* - edge routing は orthogonal L 字 (起点 side → 中継 → 終点 side)
|
|
1470
|
+
* - edge routing は orthogonal L 字 (起点 side → 中継 → 終点 side)。`curve` は 3 次曲線、
|
|
1471
|
+
* `metro` は横線と傾き ±1 の斜線を円弧で結ぶ
|
|
1463
1472
|
* - edge label は path 中点から path 進行方向の垂直方向に 50-80px、 node bbox を避ける
|
|
1464
1473
|
* - viewBox は cdl が auto 計算 (右端 +80 / 下端 +80)
|
|
1465
1474
|
*/
|
|
@@ -1828,7 +1837,8 @@ declare function countOrderCrossings(order: readonly OrderResult[], edges: reado
|
|
|
1828
1837
|
* 持つ edge の labelOffsetX/Y を 0 にリセット (作者の手動 offset で bbox 範囲外に押し出された
|
|
1829
1838
|
* label を default 位置に戻す)
|
|
1830
1839
|
* - h2 node-shift-down ... node-overlap error node pair の下 node の stack を +1
|
|
1831
|
-
* - h3 edge-back-detour ... edge-node-cross error edge の routing を
|
|
1840
|
+
* - h3 edge-back-detour ... edge-node-cross error のうち、自動経路の edge の routing を
|
|
1841
|
+
* "back-detour" に切替。 書き手が選んだ曲線と路線図の線は途中の箱を避けない約束なので変えない
|
|
1832
1842
|
*/
|
|
1833
1843
|
|
|
1834
1844
|
interface LayoutWithValidationOptions {
|
|
@@ -2639,7 +2649,7 @@ declare function requiredNearClearance(kindA: string, kindB: string): number;
|
|
|
2639
2649
|
* 上に丸めるのは、 送り幅が小数のため幅が小数になり、 図の座標が読みにくくなるから。 下に
|
|
2640
2650
|
* 丸めると 1 未満だけ足りない箱ができる。
|
|
2641
2651
|
*/
|
|
2642
|
-
declare function requiredRowsWidth(rows: string[] | undefined, kind?: string): number;
|
|
2652
|
+
declare function requiredRowsWidth(rows: string[] | undefined, kind?: string, textMetrics?: CdlTextMetrics): number;
|
|
2643
2653
|
|
|
2644
2654
|
/**
|
|
2645
2655
|
* chain 伝搬 shift で node-node overlap を解消する (CAR-421 導入)。
|
|
@@ -2699,7 +2709,7 @@ declare function resolveOverlapsWithChain(nodes: LaidNode[], minClearance?: numb
|
|
|
2699
2709
|
* @param maxIter 収束上限 iter 数 (default 20、 spec.CHAIN_SHIFT_MAX_ITER と同値)
|
|
2700
2710
|
* @returns shift 済 LaidEdge 列 (input 順序を保持、 label 位置のみ変更、 path d は不変)
|
|
2701
2711
|
*/
|
|
2702
|
-
declare function resolveEdgeLabelOverlapsWithChain(edges: LaidEdge[], fixedObstacles: BBox[], minClearance?: number, maxIter?: number): LaidEdge[];
|
|
2712
|
+
declare function resolveEdgeLabelOverlapsWithChain(edges: LaidEdge[], fixedObstacles: BBox[], minClearance?: number, maxIter?: number, textMetrics?: CdlTextMetrics): LaidEdge[];
|
|
2703
2713
|
/**
|
|
2704
2714
|
* chain 伝搬 shift の拡張版 (CAR-482 導入、 CAR-485 で edge-path 拡張)。 label だけでなく node /
|
|
2705
2715
|
* lane-label / edge-path (別 edge) も同方向同量 shift 連鎖。
|
|
@@ -2736,7 +2746,7 @@ declare function resolveEdgeLabelOverlapsWithChainAndPropagate(edges: LaidEdge[]
|
|
|
2736
2746
|
* (SSOT `LABEL_TO_PATH_CLEARANCE` = 16)、 pair 別 clearance を分離する事で fan-in / fan-out
|
|
2737
2747
|
* などで label が sibling path 近傍 (LABEL_INIT_CLEARANCE 26) にある正常状態を誤検知しない。
|
|
2738
2748
|
*/
|
|
2739
|
-
pathLabelClearance?: number): {
|
|
2749
|
+
pathLabelClearance?: number, textMetrics?: CdlTextMetrics): {
|
|
2740
2750
|
edges: LaidEdge[];
|
|
2741
2751
|
nodeShifts: Map<string, {
|
|
2742
2752
|
dx: number;
|
|
@@ -2756,10 +2766,14 @@ pathLabelClearance?: number): {
|
|
|
2756
2766
|
*
|
|
2757
2767
|
* ## なぜ最終 pass が要るか
|
|
2758
2768
|
*
|
|
2759
|
-
* `resolveEdgeLabelOverlapsWithChainAndPropagate`
|
|
2769
|
+
* `resolveEdgeLabelOverlapsWithChainAndPropagate` の chain 伝搬後に、 経路を動かす 4 つの pass
|
|
2760
2770
|
* (`bowSharedStraightPaths` / `pullOutgoingFirstCorner` / `fanIncomingEndpoints` /
|
|
2761
|
-
* `separateSharedStraightRuns`)
|
|
2762
|
-
*
|
|
2771
|
+
* `separateSharedStraightRuns`) が走る。 4 つとも経路を動かすが、 札も動かすのは
|
|
2772
|
+
* `pullOutgoingFirstCorner` だけで、 動かす区間に一番近い札に限る (`edges.ts` の `labelも動かす`)。
|
|
2773
|
+
*
|
|
2774
|
+
* `bowSharedStraightPaths` と `separateSharedStraightRuns` は札を動かさず、 `fanIncomingEndpoints` が
|
|
2775
|
+
* 残した札は `followLabelsToFannedTails` が追従させる。 追従も `札の移動を塞ぐ相手を探す` で
|
|
2776
|
+
* 置けるかを決める = 別の判定で余白を割る位置へ置くと、 この pass が同じ札を押し直す (#1002)。
|
|
2763
2777
|
*
|
|
2764
2778
|
* 0.30.0 で `pullOutgoingFirstCorner` (#651) と `fanIncomingEndpoints` (#649) が経路を
|
|
2765
2779
|
* 大きく動かすようになり、 消費側の見本帳で札が 11 件動いた (実測 = 最大 217 world)。
|
|
@@ -2787,7 +2801,7 @@ pathLabelClearance?: number): {
|
|
|
2787
2801
|
* 累積は `CHAIN_SHIFT_MAX_ACCUMULATED` で頭を打つ。 札は自分の線の近くに居ることが
|
|
2788
2802
|
* 読みの前提で、 離しすぎるとどの線の札か判らなくなる。
|
|
2789
2803
|
*/
|
|
2790
|
-
declare function resolveLabelClearanceAfterPathPasses(edges: LaidEdge[], obstacles: BBox[], maxIter?: number): LaidEdge[];
|
|
2804
|
+
declare function resolveLabelClearanceAfterPathPasses(edges: LaidEdge[], obstacles: BBox[], maxIter?: number, textMetrics?: CdlTextMetrics): LaidEdge[];
|
|
2791
2805
|
|
|
2792
2806
|
/**
|
|
2793
2807
|
* Engine が予測する label / node bbox の world 単位 public API。
|
|
@@ -2810,7 +2824,7 @@ declare function resolveLabelClearanceAfterPathPasses(edges: LaidEdge[], obstacl
|
|
|
2810
2824
|
* @param edge LaidEdge (labelX, labelY, labelAnchor, label, sub 既確定)
|
|
2811
2825
|
* @returns { x, y, w, h } の world 座標 bbox (render 実 rect 位置と一致)
|
|
2812
2826
|
*/
|
|
2813
|
-
declare function predictLabelBBoxWorld(edge: LaidEdge): {
|
|
2827
|
+
declare function predictLabelBBoxWorld(edge: LaidEdge, textMetrics?: CdlTextMetrics): {
|
|
2814
2828
|
x: number;
|
|
2815
2829
|
y: number;
|
|
2816
2830
|
w: number;
|
|
@@ -2868,6 +2882,10 @@ declare function bboxDiffWorld(predicted: {
|
|
|
2868
2882
|
max: number;
|
|
2869
2883
|
};
|
|
2870
2884
|
|
|
2885
|
+
type TextMetricsPreset = {
|
|
2886
|
+
/** 図の字幅を測る規則。省略時は `"proportional"` */
|
|
2887
|
+
textMetrics?: CdlTextMetrics;
|
|
2888
|
+
};
|
|
2871
2889
|
/**
|
|
2872
2890
|
* 状態を読む書き方 (`{名前}`)。
|
|
2873
2891
|
*
|
|
@@ -2884,7 +2902,7 @@ type BindingRef = `{${名前の頭}${string}}`;
|
|
|
2884
2902
|
* - swimlane({ id, topic, lanes: ["送信元", "コントラクト", "出力"] }) で 3 lane 自動配置
|
|
2885
2903
|
* - flow().step("A", "func").step("B", "storage").build() で sequence diagram 風
|
|
2886
2904
|
*/
|
|
2887
|
-
type SwimlanePreset = {
|
|
2905
|
+
type SwimlanePreset = TextMetricsPreset & {
|
|
2888
2906
|
id: string;
|
|
2889
2907
|
topic: string;
|
|
2890
2908
|
/** lane label の配列。 各 lane width は固定 (default 400)、 x は auto-layout */
|
|
@@ -2916,7 +2934,7 @@ type FlowStepInput = {
|
|
|
2916
2934
|
eyebrow?: string;
|
|
2917
2935
|
subtitle?: string;
|
|
2918
2936
|
};
|
|
2919
|
-
type FlowPreset = {
|
|
2937
|
+
type FlowPreset = TextMetricsPreset & {
|
|
2920
2938
|
id: string;
|
|
2921
2939
|
topic: string;
|
|
2922
2940
|
/** lane label (1 本のみ、 全 step が縦 stack で並ぶ) */
|
|
@@ -3009,7 +3027,7 @@ type SequenceActor = {
|
|
|
3009
3027
|
/** 名前の下に置く日本語の呼び名 (例 "画面" / "受付" / "台帳") */
|
|
3010
3028
|
subtitle?: string;
|
|
3011
3029
|
};
|
|
3012
|
-
type SequencePreset = {
|
|
3030
|
+
type SequencePreset = TextMetricsPreset & {
|
|
3013
3031
|
id: string;
|
|
3014
3032
|
topic: string;
|
|
3015
3033
|
/** actor label の配列 (lifeline、 column 単位)。 呼び名を添えるなら物で書く (#578) */
|
|
@@ -3068,7 +3086,7 @@ type TopologyConnection = {
|
|
|
3068
3086
|
labelOffsetX?: number;
|
|
3069
3087
|
labelOffsetY?: number;
|
|
3070
3088
|
};
|
|
3071
|
-
type TopologyPreset = {
|
|
3089
|
+
type TopologyPreset = TextMetricsPreset & {
|
|
3072
3090
|
id: string;
|
|
3073
3091
|
topic: string;
|
|
3074
3092
|
/** group の lane width (default 360) */
|
|
@@ -3185,7 +3203,7 @@ type ErRelation = {
|
|
|
3185
3203
|
*/
|
|
3186
3204
|
style?: EdgeStyle;
|
|
3187
3205
|
};
|
|
3188
|
-
type ErPreset = {
|
|
3206
|
+
type ErPreset = TextMetricsPreset & {
|
|
3189
3207
|
id: string;
|
|
3190
3208
|
topic: string;
|
|
3191
3209
|
defaultTone?: Tone;
|
|
@@ -3299,7 +3317,7 @@ type FsmTransition = {
|
|
|
3299
3317
|
*/
|
|
3300
3318
|
head?: EdgeHead;
|
|
3301
3319
|
};
|
|
3302
|
-
type StateMachinePreset = {
|
|
3320
|
+
type StateMachinePreset = TextMetricsPreset & {
|
|
3303
3321
|
id: string;
|
|
3304
3322
|
topic: string;
|
|
3305
3323
|
defaultTone?: Tone;
|
|
@@ -3366,7 +3384,7 @@ type InfraConnection = {
|
|
|
3366
3384
|
/** label の垂直方向 fine offset (default 0、 preset 交互 ±60 を override) */
|
|
3367
3385
|
labelOffsetY?: number;
|
|
3368
3386
|
};
|
|
3369
|
-
type InfrastructurePreset = {
|
|
3387
|
+
type InfrastructurePreset = TextMetricsPreset & {
|
|
3370
3388
|
id: string;
|
|
3371
3389
|
topic: string;
|
|
3372
3390
|
/** col あたりの lane width (default 380) */
|
|
@@ -3474,7 +3492,7 @@ type UmlRelation = {
|
|
|
3474
3492
|
/** 線の種類 (#578)。 書かなければ種類から決まる */
|
|
3475
3493
|
style?: EdgeStyle;
|
|
3476
3494
|
};
|
|
3477
|
-
type ClassDiagramPreset = {
|
|
3495
|
+
type ClassDiagramPreset = TextMetricsPreset & {
|
|
3478
3496
|
id: string;
|
|
3479
3497
|
topic: string;
|
|
3480
3498
|
defaultTone?: Tone;
|
|
@@ -3522,7 +3540,7 @@ type TreeNode = {
|
|
|
3522
3540
|
/** 箱の 2 行目に出す補足。 上の小ラベルは木では受けない (#471、 `TreeNodePayload` 参照) */
|
|
3523
3541
|
subtitle?: string;
|
|
3524
3542
|
};
|
|
3525
|
-
type TreePreset = {
|
|
3543
|
+
type TreePreset = TextMetricsPreset & {
|
|
3526
3544
|
id: string;
|
|
3527
3545
|
topic: string;
|
|
3528
3546
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3560,7 +3578,7 @@ type JourneyStep = {
|
|
|
3560
3578
|
/** opportunity (改善余地のメモ) */
|
|
3561
3579
|
opportunity?: string;
|
|
3562
3580
|
};
|
|
3563
|
-
type UserJourneyPreset = {
|
|
3581
|
+
type UserJourneyPreset = TextMetricsPreset & {
|
|
3564
3582
|
id: string;
|
|
3565
3583
|
topic: string;
|
|
3566
3584
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3594,7 +3612,7 @@ type MindBranch = {
|
|
|
3594
3612
|
tone?: Tone;
|
|
3595
3613
|
subtitle?: string;
|
|
3596
3614
|
};
|
|
3597
|
-
type MindMapPreset = {
|
|
3615
|
+
type MindMapPreset = TextMetricsPreset & {
|
|
3598
3616
|
id: string;
|
|
3599
3617
|
topic: string;
|
|
3600
3618
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3631,7 +3649,7 @@ type FunnelStage = {
|
|
|
3631
3649
|
/** stage 詳細 */
|
|
3632
3650
|
subtitle?: string;
|
|
3633
3651
|
};
|
|
3634
|
-
type FunnelPreset = {
|
|
3652
|
+
type FunnelPreset = TextMetricsPreset & {
|
|
3635
3653
|
id: string;
|
|
3636
3654
|
topic: string;
|
|
3637
3655
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3664,7 +3682,7 @@ type QuadrantItem = {
|
|
|
3664
3682
|
quadrant: QuadrantQuadrantLabel | BindingRef;
|
|
3665
3683
|
subtitle?: string;
|
|
3666
3684
|
};
|
|
3667
|
-
type QuadrantPreset = {
|
|
3685
|
+
type QuadrantPreset = TextMetricsPreset & {
|
|
3668
3686
|
id: string;
|
|
3669
3687
|
topic: string;
|
|
3670
3688
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3714,7 +3732,7 @@ type ChartDatum = {
|
|
|
3714
3732
|
/** 個別 tone (default は preset の defaultTone) */
|
|
3715
3733
|
tone?: Tone;
|
|
3716
3734
|
};
|
|
3717
|
-
type ChartPreset = {
|
|
3735
|
+
type ChartPreset = TextMetricsPreset & {
|
|
3718
3736
|
id: string;
|
|
3719
3737
|
topic: string;
|
|
3720
3738
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3760,7 +3778,7 @@ type GanttTask = {
|
|
|
3760
3778
|
/** 依存 task id */
|
|
3761
3779
|
dependsOn?: string;
|
|
3762
3780
|
};
|
|
3763
|
-
type GanttPreset = {
|
|
3781
|
+
type GanttPreset = TextMetricsPreset & {
|
|
3764
3782
|
id: string;
|
|
3765
3783
|
topic: string;
|
|
3766
3784
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3824,7 +3842,7 @@ type FlowchartEdge = {
|
|
|
3824
3842
|
* 足りない。
|
|
3825
3843
|
*/
|
|
3826
3844
|
type FlowchartDirection = "horizontal" | "vertical";
|
|
3827
|
-
type FlowchartPreset = {
|
|
3845
|
+
type FlowchartPreset = TextMetricsPreset & {
|
|
3828
3846
|
id: string;
|
|
3829
3847
|
topic: string;
|
|
3830
3848
|
/** swimlane の lane (role) ラベル */
|
|
@@ -3857,7 +3875,7 @@ type NetworkLink = {
|
|
|
3857
3875
|
protocol?: string;
|
|
3858
3876
|
tone?: Tone;
|
|
3859
3877
|
};
|
|
3860
|
-
type NetworkPreset = {
|
|
3878
|
+
type NetworkPreset = TextMetricsPreset & {
|
|
3861
3879
|
id: string;
|
|
3862
3880
|
topic: string;
|
|
3863
3881
|
defaultTone?: Tone;
|
|
@@ -3903,7 +3921,7 @@ type FsmTransitionExt = {
|
|
|
3903
3921
|
action?: string;
|
|
3904
3922
|
tone?: Tone;
|
|
3905
3923
|
};
|
|
3906
|
-
type StateMachine2Preset = {
|
|
3924
|
+
type StateMachine2Preset = TextMetricsPreset & {
|
|
3907
3925
|
id: string;
|
|
3908
3926
|
topic: string;
|
|
3909
3927
|
defaultTone?: Tone;
|
|
@@ -4021,4 +4039,4 @@ declare function computeStateValues(laid: LaidDiagram, phaseIdx: number, progres
|
|
|
4021
4039
|
*/
|
|
4022
4040
|
declare function interpolate(template: string, values: Record<string, string>, 名前の表?: 値の名前の表): string;
|
|
4023
4041
|
|
|
4024
|
-
export { ARROW_ANGLE_MAX_DEG, ARROW_ENDPOINT_CENTER_TOL, type AnimationChain, type AuthorIntentOptions, type AuthorIntentReport, type BinaryOp, CHAIN_MIN_CLEARANCE, CHAIN_SHIFT_MAX_ACCUMULATED, CHAIN_SHIFT_MAX_ITER, CLASS_RELATION_LOOK, CLEARANCE_LABEL_LABEL, CLEARANCE_LANE_LABEL, CLEARANCE_NODE_LABEL, CLEARANCE_PATH_LABEL, COLUMN_GAP_VARIANCE_TOL, CdlDerivedValue, CdlDiagram, CdlDiagramThumbnail, CdlEdge, type CdlEventHandler, CdlEventTarget, CdlInput, CdlInputOption, CdlLane, CdlLang, CdlNode, CdlScrollTrigger, CdlState, type ChartBuilder, type ChartDatum, type ChartPreset, type ChartType, type ClassDiagramBuilder, type ClassDiagramPreset, type ClassRelationType, Computed, DETOUR_GAP, DETOUR_SLOT_GAP, DIST_LABEL_PATH_MAX, DIST_LABEL_PATH_MIN, type DerivedNotice, type DerivedNoticeKind, type DerivedResult, type DiagramAdapter, type DiagramBuilder, type Discrepancy, type DiscrepancyKind, type DomVerifyReport, EDGE_LABEL_TEXT, EDGE_STUB_OUT, ER_CARDINALITY_HEAD, EdgeHead, EdgeHeadFill, type EdgeLabelLine, type EdgeLabelTextSpec, EdgeStyle, type ErBuilder, type ErColumn, type ErEntity, type ErPreset, type ErRelation, type ErRelationCardinality, type EventAttachHandle, type EventChain, FAN_GAP, FONT_RENDER_TOLERANCE_WORLD, FSM_ACTION_MARK, type FlowBuilder, type FlowPreset, type FlowStepInput, type FlowchartBuilder, type FlowchartDirection, type FlowchartEdge, type FlowchartNode, type FlowchartNodeShape, type FlowchartPreset, type FormulaAst, type FormulaContext, type FsmMark, type FsmState, type FsmStateAction, type FsmStateNested, type FsmTransition, type FsmTransitionExt, type FunnelBuilder, type FunnelPreset, type FunnelStage, type GanttBuilder, type GanttPreset, type GanttTask, type GenericDiagramSpec, type GenericDiscrepancy, type GenericDiscrepancyKind, type GenericVerifyOptions, type Rect as GeometryRect, type Segment as GeometrySegment, type InfraConnection, type InfraNode, type InfrastructureBuilder, type InfrastructurePreset, type InputChain, type IntentDiscrepancy, type IntentDiscrepancyKind, JourneyEmotion, type JourneyStep, LABEL_INIT_CLEARANCE, LABEL_INIT_CLEARANCE_DOTTED_FLOW, LABEL_SIZE_TOLERANCE_WORLD, LABEL_TO_PATH_CLEARANCE, LANE_BORDER_CLEARANCE_TOL, LaidDiagram, LaidEdge, LaidNode, type LayoutWithValidationOptions, type LayoutWithValidationResult, MARKER_GLOW_RADIUS, MIN_COLUMN_ALIGNMENT_TOLERANCE, MIN_ROW_ALIGNMENT_TOLERANCE, type MathFnName, type MindBranch, type MindMapBuilder, type MindMapPreset, NEAR_COLLISION_DEFAULT_MIN, NEAR_COLLISION_POLICY, NODE_FRAME_SELECTOR, type NetworkBuilder, type NetworkDevice, type NetworkDeviceKind, type NetworkLink, type NetworkPreset, NodeKind, type OrderEdge, type OrderNode, type OrderResult, PERF_BUDGET_TOTAL_MS, PERF_SLOWEST_SAMPLE, type PageLike, type PerfClockKind, type PhaseBuilder, type QuadrantBuilder, type QuadrantItem, type QuadrantPreset, type QuadrantQuadrantLabel, ROW_GAP_VARIANCE_TOL, type ReferenceContainer, RowMark, SEQUENCE_MESSAGE_LOOK, SPEC_CLEARANCE_POLICY, STAGE_SVG_SELECTOR, type SequenceActor, type SequenceBuilder, type SequenceMessageKind, type SequencePreset, type SequenceStep, Side, Signal, type StateMachine2Builder, type StateMachine2Preset, type StateMachineBuilder, type StateMachinePreset, type SweepReport, type SwimlanePreset, TARGET_LABEL_PATH_DIST, Tone, type TopologyBuilder, type TopologyConnection, type TopologyContainer, type TopologyGroupBuilder, type TopologyPreset, type TreeBuilder, type TreeNode, type TreePreset, type UmlClass, type UmlRelation, type UserJourneyBuilder, type UserJourneyPreset, type ValidateOptions, type ValidationProfile, type VerifyOptions, type Violation, type VisualAxis, type VisualValidationReport, WCAG_AA_LARGE, WCAG_AA_NORMAL, applyDerivedValues, assertNever, attachEventHandlers, batch, bboxClearance, bboxDiffWorld, cdlAdapter, chart, classDiagram, compile, computeScrollProgress, computeStateValues, computeViewportScale, countEdgeCrossings, countOrderCrossings, createFormulaComputeds, createInputSignals, diagram, drawsFigureTitle, effect, er, evaluate as evaluateFormula, extractIdentifiers, flow, flowchart, funnel, gantt, infrastructure, inputDefaultValue, interpolate, isLargeText, labelInitClearance, layout, layoutWithValidation, mindMap, network, orderNodes, parseFormula, pointRectEdgeDistance, pointToSegmentDistance, predictLabelBBoxWorld, predictNodeBBoxWorld, projectEdgeLabel, projectNode, projectPathSegment, pxToWorld, quadrant, rectRectClearance, rectRectOverlapArea, relatedFocusSet, rendersRows, requiredContrastRatio, requiredNearClearance, requiredRowsHeight, requiredRowsWidth, requiredSpecClearance, resolveEdgeLabelOverlapsWithChain, resolveEdgeLabelOverlapsWithChainAndPropagate, resolveLabelClearanceAfterPathPasses, resolveOverlapsWithChain, resolveTarget, resolveTargetAll, segmentsIntersect, sequence, stateMachine, stateMachine2, swimlane, topology, tree, untrack, userJourney, validate, verifyAllDiagramsDom, verifyAuthorIntent, verifyAuthorIntentAll, verifyDiagramDom, visualValidate, visualValidateAll, visualValidateLaid, withDerivedValues, worldToPx, 木の札の幅, type 関係を持つ線 };
|
|
4042
|
+
export { ARROW_ANGLE_MAX_DEG, ARROW_ENDPOINT_CENTER_TOL, type AnimationChain, type AuthorIntentOptions, type AuthorIntentReport, type BinaryOp, CHAIN_MIN_CLEARANCE, CHAIN_SHIFT_MAX_ACCUMULATED, CHAIN_SHIFT_MAX_ITER, CLASS_RELATION_LOOK, CLEARANCE_LABEL_LABEL, CLEARANCE_LANE_LABEL, CLEARANCE_NODE_LABEL, CLEARANCE_PATH_LABEL, COLUMN_GAP_VARIANCE_TOL, CdlDerivedValue, CdlDiagram, CdlDiagramThumbnail, CdlEdge, type CdlEventHandler, CdlEventTarget, CdlInput, CdlInputOption, CdlLane, CdlLang, CdlNode, CdlScrollTrigger, CdlState, CdlTextMetrics, type ChartBuilder, type ChartDatum, type ChartPreset, type ChartType, type ClassDiagramBuilder, type ClassDiagramPreset, type ClassRelationType, Computed, DETOUR_GAP, DETOUR_SLOT_GAP, DIST_LABEL_PATH_MAX, DIST_LABEL_PATH_MIN, type DerivedNotice, type DerivedNoticeKind, type DerivedResult, type DiagramAdapter, type DiagramBuilder, type Discrepancy, type DiscrepancyKind, type DomVerifyReport, EDGE_LABEL_TEXT, EDGE_STUB_OUT, ER_CARDINALITY_HEAD, EdgeHead, EdgeHeadFill, type EdgeLabelLine, type EdgeLabelTextSpec, EdgeRouting, EdgeStyle, type ErBuilder, type ErColumn, type ErEntity, type ErPreset, type ErRelation, type ErRelationCardinality, type EventAttachHandle, type EventChain, FAN_GAP, FONT_RENDER_TOLERANCE_WORLD, FSM_ACTION_MARK, type FlowBuilder, type FlowPreset, type FlowStepInput, type FlowchartBuilder, type FlowchartDirection, type FlowchartEdge, type FlowchartNode, type FlowchartNodeShape, type FlowchartPreset, type FormulaAst, type FormulaContext, type FsmMark, type FsmState, type FsmStateAction, type FsmStateNested, type FsmTransition, type FsmTransitionExt, type FunnelBuilder, type FunnelPreset, type FunnelStage, type GanttBuilder, type GanttPreset, type GanttTask, type GenericDiagramSpec, type GenericDiscrepancy, type GenericDiscrepancyKind, type GenericVerifyOptions, type Rect as GeometryRect, type Segment as GeometrySegment, type InfraConnection, type InfraNode, type InfrastructureBuilder, type InfrastructurePreset, type InputChain, type IntentDiscrepancy, type IntentDiscrepancyKind, JourneyEmotion, type JourneyStep, LABEL_INIT_CLEARANCE, LABEL_INIT_CLEARANCE_DOTTED_FLOW, LABEL_SIZE_TOLERANCE_WORLD, LABEL_TO_PATH_CLEARANCE, LANE_BORDER_CLEARANCE_TOL, LaidDiagram, LaidEdge, LaidNode, type LayoutWithValidationOptions, type LayoutWithValidationResult, MARKER_GLOW_RADIUS, MIN_COLUMN_ALIGNMENT_TOLERANCE, MIN_ROW_ALIGNMENT_TOLERANCE, type MathFnName, type MindBranch, type MindMapBuilder, type MindMapPreset, NEAR_COLLISION_DEFAULT_MIN, NEAR_COLLISION_POLICY, NODE_FRAME_SELECTOR, type NetworkBuilder, type NetworkDevice, type NetworkDeviceKind, type NetworkLink, type NetworkPreset, NodeKind, type OrderEdge, type OrderNode, type OrderResult, PERF_BUDGET_TOTAL_MS, PERF_SLOWEST_SAMPLE, type PageLike, type PerfClockKind, type PhaseBuilder, type QuadrantBuilder, type QuadrantItem, type QuadrantPreset, type QuadrantQuadrantLabel, ROW_GAP_VARIANCE_TOL, type ReferenceContainer, RowMark, SEQUENCE_MESSAGE_LOOK, SPEC_CLEARANCE_POLICY, STAGE_SVG_SELECTOR, type SequenceActor, type SequenceBuilder, type SequenceMessageKind, type SequencePreset, type SequenceStep, Side, Signal, type StateMachine2Builder, type StateMachine2Preset, type StateMachineBuilder, type StateMachinePreset, type SweepReport, type SwimlanePreset, TARGET_LABEL_PATH_DIST, Tone, type TopologyBuilder, type TopologyConnection, type TopologyContainer, type TopologyGroupBuilder, type TopologyPreset, type TreeBuilder, type TreeNode, type TreePreset, type UmlClass, type UmlRelation, type UserJourneyBuilder, type UserJourneyPreset, type ValidateOptions, type ValidationProfile, type VerifyOptions, type Violation, type VisualAxis, type VisualValidationReport, WCAG_AA_LARGE, WCAG_AA_NORMAL, applyDerivedValues, assertNever, attachEventHandlers, batch, bboxClearance, bboxDiffWorld, cdlAdapter, chart, classDiagram, compile, computeScrollProgress, computeStateValues, computeViewportScale, countEdgeCrossings, countOrderCrossings, createFormulaComputeds, createInputSignals, diagram, drawsFigureTitle, effect, er, evaluate as evaluateFormula, extractIdentifiers, flow, flowchart, funnel, gantt, infrastructure, inputDefaultValue, interpolate, isLargeText, labelInitClearance, layout, layoutWithValidation, mindMap, network, orderNodes, parseFormula, pointRectEdgeDistance, pointToSegmentDistance, predictLabelBBoxWorld, predictNodeBBoxWorld, projectEdgeLabel, projectNode, projectPathSegment, pxToWorld, quadrant, rectRectClearance, rectRectOverlapArea, relatedFocusSet, rendersRows, requiredContrastRatio, requiredNearClearance, requiredRowsHeight, requiredRowsWidth, requiredSpecClearance, resolveEdgeLabelOverlapsWithChain, resolveEdgeLabelOverlapsWithChainAndPropagate, resolveLabelClearanceAfterPathPasses, resolveOverlapsWithChain, resolveTarget, resolveTargetAll, resolveTextMetrics, segmentsIntersect, sequence, stateMachine, stateMachine2, swimlane, topology, tree, untrack, userJourney, validate, verifyAllDiagramsDom, verifyAuthorIntent, verifyAuthorIntentAll, verifyDiagramDom, visualValidate, visualValidateAll, visualValidateLaid, withDerivedValues, worldToPx, 木の札の幅, type 関係を持つ線 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CdlDiagram, S as Signal, a as CdlInput, b as CdlLane, c as CdlNode, T as Tone, d as Side, E as EdgeStyle, e as EdgeRole, f as EdgeHead, g as EdgeHeadFill, h as
|
|
2
|
-
export {
|
|
1
|
+
import { C as CdlDiagram, S as Signal, a as CdlInput, b as CdlLane, c as CdlNode, T as Tone, d as Side, E as EdgeStyle, e as EdgeRole, f as EdgeHead, g as EdgeHeadFill, h as EdgeRouting, i as CdlState, j as CdlInputOption, k as CdlEventTarget, l as CdlLang, m as CdlTextMetrics, n as Computed, o as CdlDerivedValue, p as CdlScrollTrigger, L as LaidDiagram, q as CdlDiagramViewProps, r as LaidEdge, s as LaidNode, t as CdlEdge, B as BBox, R as RowMark, N as NodeKind, J as JourneyEmotion, Q as QuadrantKey, u as TreeNodePayload } from './render-CVczwfRb.js';
|
|
2
|
+
export { v as CdlDiagramView, w as CdlEventBinding, x as CdlEventKind, y as CdlFormula, z as CdlPhase, A as ChartPieForm, D as ChartSlopeForm, F as EDGE_HEADS, G as EDGE_HEAD_DEFAULT, H as EDGE_HEAD_FILLS, I as EDGE_HEAD_FILL_DEFAULT, K as EDGE_REVEALS, M as EDGE_REVEAL_DEFAULT, O as EDGE_STYLES, P as EdgeReveal, U as InteractiveHandlerMap, V as InteractiveSignalsAccessor, W as LaidLane, X as NODE_KINDS, Y as RELATION_FOCUSES, Z as RELATION_FOCUS_DEFAULT, _ as RelationFocus, $ as ScrollProgressHandle, a0 as TONES, a1 as computeEventBindingKey, a2 as computeFormulaKey, a3 as computeInputSignalKey, a4 as computeScrollTriggerKey, a5 as computed, a6 as createInteractiveSignalsAccessor, a7 as createScrollProgressHandle, a8 as createScrollProgressSignals, a9 as hasInteractivePrimitives, aa as resolveLang, ab as sequenceBoardMetrics, ac as sequenceStepId, ad as signal } from './render-CVczwfRb.js';
|
|
3
3
|
import { JSX } from 'react';
|
|
4
4
|
|
|
5
5
|
declare function effect(fn: () => void | (() => void)): () => void;
|
|
@@ -1054,7 +1054,7 @@ type DiagramBuilder = {
|
|
|
1054
1054
|
tailLabel?: string;
|
|
1055
1055
|
labelOffsetX?: number;
|
|
1056
1056
|
labelOffsetY?: number;
|
|
1057
|
-
routing?:
|
|
1057
|
+
routing?: EdgeRouting;
|
|
1058
1058
|
/** CAR-549 SSOT ... true で label を edge path 上に重ねる (flowchart condition label 用) */
|
|
1059
1059
|
overlay?: boolean;
|
|
1060
1060
|
/** signal binding: stroke-width template (CAR edge-signal-binding) */
|
|
@@ -1148,7 +1148,7 @@ type DiagramBuilder = {
|
|
|
1148
1148
|
tailLabel?: string;
|
|
1149
1149
|
labelOffsetX?: number;
|
|
1150
1150
|
labelOffsetY?: number;
|
|
1151
|
-
routing?:
|
|
1151
|
+
routing?: EdgeRouting;
|
|
1152
1152
|
/** CAR-549 SSOT ... true で label を edge path 上に重ねる (flowchart condition label 用) */
|
|
1153
1153
|
overlay?: boolean;
|
|
1154
1154
|
}>) => DiagramBuilder;
|
|
@@ -1232,12 +1232,20 @@ declare function diagram(id: string, options: {
|
|
|
1232
1232
|
* 描画側が書く固定の字の言語 (#847)。 詳しくは `CdlDiagram.lang` の説明を参照。
|
|
1233
1233
|
*/
|
|
1234
1234
|
lang?: CdlLang;
|
|
1235
|
+
/** 図の字幅を測る規則。詳しくは `CdlDiagram.textMetrics` の説明を参照。 */
|
|
1236
|
+
textMetrics?: CdlTextMetrics;
|
|
1235
1237
|
/**
|
|
1236
1238
|
* この図がどの種類か (#645)。 詳しくは `CdlDiagram.type` の説明を参照。
|
|
1237
1239
|
*/
|
|
1238
1240
|
type?: string;
|
|
1239
1241
|
}): DiagramBuilder;
|
|
1240
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* 記法などから届いた値を字幅の測り方へ直す。
|
|
1245
|
+
* 完全一致する `"monospace"` 以外は既定の `"proportional"` に落とす。
|
|
1246
|
+
*/
|
|
1247
|
+
declare function resolveTextMetrics(value: unknown): CdlTextMetrics;
|
|
1248
|
+
|
|
1241
1249
|
/**
|
|
1242
1250
|
* formula expression の AST 型 (CAR #244)。
|
|
1243
1251
|
*
|
|
@@ -1459,7 +1467,8 @@ declare function compile(diag: CdlDiagram): LaidDiagram;
|
|
|
1459
1467
|
* - node は lane 内 stack 順で縦並び、 各 stack 間 gap 80px、 上端 80px
|
|
1460
1468
|
* - lane label は lane 上部 30px 高
|
|
1461
1469
|
* - contain: true の lane は内部 node 全部を 24px padding で囲む boundary
|
|
1462
|
-
* - edge routing は orthogonal L 字 (起点 side → 中継 → 終点 side)
|
|
1470
|
+
* - edge routing は orthogonal L 字 (起点 side → 中継 → 終点 side)。`curve` は 3 次曲線、
|
|
1471
|
+
* `metro` は横線と傾き ±1 の斜線を円弧で結ぶ
|
|
1463
1472
|
* - edge label は path 中点から path 進行方向の垂直方向に 50-80px、 node bbox を避ける
|
|
1464
1473
|
* - viewBox は cdl が auto 計算 (右端 +80 / 下端 +80)
|
|
1465
1474
|
*/
|
|
@@ -1828,7 +1837,8 @@ declare function countOrderCrossings(order: readonly OrderResult[], edges: reado
|
|
|
1828
1837
|
* 持つ edge の labelOffsetX/Y を 0 にリセット (作者の手動 offset で bbox 範囲外に押し出された
|
|
1829
1838
|
* label を default 位置に戻す)
|
|
1830
1839
|
* - h2 node-shift-down ... node-overlap error node pair の下 node の stack を +1
|
|
1831
|
-
* - h3 edge-back-detour ... edge-node-cross error edge の routing を
|
|
1840
|
+
* - h3 edge-back-detour ... edge-node-cross error のうち、自動経路の edge の routing を
|
|
1841
|
+
* "back-detour" に切替。 書き手が選んだ曲線と路線図の線は途中の箱を避けない約束なので変えない
|
|
1832
1842
|
*/
|
|
1833
1843
|
|
|
1834
1844
|
interface LayoutWithValidationOptions {
|
|
@@ -2639,7 +2649,7 @@ declare function requiredNearClearance(kindA: string, kindB: string): number;
|
|
|
2639
2649
|
* 上に丸めるのは、 送り幅が小数のため幅が小数になり、 図の座標が読みにくくなるから。 下に
|
|
2640
2650
|
* 丸めると 1 未満だけ足りない箱ができる。
|
|
2641
2651
|
*/
|
|
2642
|
-
declare function requiredRowsWidth(rows: string[] | undefined, kind?: string): number;
|
|
2652
|
+
declare function requiredRowsWidth(rows: string[] | undefined, kind?: string, textMetrics?: CdlTextMetrics): number;
|
|
2643
2653
|
|
|
2644
2654
|
/**
|
|
2645
2655
|
* chain 伝搬 shift で node-node overlap を解消する (CAR-421 導入)。
|
|
@@ -2699,7 +2709,7 @@ declare function resolveOverlapsWithChain(nodes: LaidNode[], minClearance?: numb
|
|
|
2699
2709
|
* @param maxIter 収束上限 iter 数 (default 20、 spec.CHAIN_SHIFT_MAX_ITER と同値)
|
|
2700
2710
|
* @returns shift 済 LaidEdge 列 (input 順序を保持、 label 位置のみ変更、 path d は不変)
|
|
2701
2711
|
*/
|
|
2702
|
-
declare function resolveEdgeLabelOverlapsWithChain(edges: LaidEdge[], fixedObstacles: BBox[], minClearance?: number, maxIter?: number): LaidEdge[];
|
|
2712
|
+
declare function resolveEdgeLabelOverlapsWithChain(edges: LaidEdge[], fixedObstacles: BBox[], minClearance?: number, maxIter?: number, textMetrics?: CdlTextMetrics): LaidEdge[];
|
|
2703
2713
|
/**
|
|
2704
2714
|
* chain 伝搬 shift の拡張版 (CAR-482 導入、 CAR-485 で edge-path 拡張)。 label だけでなく node /
|
|
2705
2715
|
* lane-label / edge-path (別 edge) も同方向同量 shift 連鎖。
|
|
@@ -2736,7 +2746,7 @@ declare function resolveEdgeLabelOverlapsWithChainAndPropagate(edges: LaidEdge[]
|
|
|
2736
2746
|
* (SSOT `LABEL_TO_PATH_CLEARANCE` = 16)、 pair 別 clearance を分離する事で fan-in / fan-out
|
|
2737
2747
|
* などで label が sibling path 近傍 (LABEL_INIT_CLEARANCE 26) にある正常状態を誤検知しない。
|
|
2738
2748
|
*/
|
|
2739
|
-
pathLabelClearance?: number): {
|
|
2749
|
+
pathLabelClearance?: number, textMetrics?: CdlTextMetrics): {
|
|
2740
2750
|
edges: LaidEdge[];
|
|
2741
2751
|
nodeShifts: Map<string, {
|
|
2742
2752
|
dx: number;
|
|
@@ -2756,10 +2766,14 @@ pathLabelClearance?: number): {
|
|
|
2756
2766
|
*
|
|
2757
2767
|
* ## なぜ最終 pass が要るか
|
|
2758
2768
|
*
|
|
2759
|
-
* `resolveEdgeLabelOverlapsWithChainAndPropagate`
|
|
2769
|
+
* `resolveEdgeLabelOverlapsWithChainAndPropagate` の chain 伝搬後に、 経路を動かす 4 つの pass
|
|
2760
2770
|
* (`bowSharedStraightPaths` / `pullOutgoingFirstCorner` / `fanIncomingEndpoints` /
|
|
2761
|
-
* `separateSharedStraightRuns`)
|
|
2762
|
-
*
|
|
2771
|
+
* `separateSharedStraightRuns`) が走る。 4 つとも経路を動かすが、 札も動かすのは
|
|
2772
|
+
* `pullOutgoingFirstCorner` だけで、 動かす区間に一番近い札に限る (`edges.ts` の `labelも動かす`)。
|
|
2773
|
+
*
|
|
2774
|
+
* `bowSharedStraightPaths` と `separateSharedStraightRuns` は札を動かさず、 `fanIncomingEndpoints` が
|
|
2775
|
+
* 残した札は `followLabelsToFannedTails` が追従させる。 追従も `札の移動を塞ぐ相手を探す` で
|
|
2776
|
+
* 置けるかを決める = 別の判定で余白を割る位置へ置くと、 この pass が同じ札を押し直す (#1002)。
|
|
2763
2777
|
*
|
|
2764
2778
|
* 0.30.0 で `pullOutgoingFirstCorner` (#651) と `fanIncomingEndpoints` (#649) が経路を
|
|
2765
2779
|
* 大きく動かすようになり、 消費側の見本帳で札が 11 件動いた (実測 = 最大 217 world)。
|
|
@@ -2787,7 +2801,7 @@ pathLabelClearance?: number): {
|
|
|
2787
2801
|
* 累積は `CHAIN_SHIFT_MAX_ACCUMULATED` で頭を打つ。 札は自分の線の近くに居ることが
|
|
2788
2802
|
* 読みの前提で、 離しすぎるとどの線の札か判らなくなる。
|
|
2789
2803
|
*/
|
|
2790
|
-
declare function resolveLabelClearanceAfterPathPasses(edges: LaidEdge[], obstacles: BBox[], maxIter?: number): LaidEdge[];
|
|
2804
|
+
declare function resolveLabelClearanceAfterPathPasses(edges: LaidEdge[], obstacles: BBox[], maxIter?: number, textMetrics?: CdlTextMetrics): LaidEdge[];
|
|
2791
2805
|
|
|
2792
2806
|
/**
|
|
2793
2807
|
* Engine が予測する label / node bbox の world 単位 public API。
|
|
@@ -2810,7 +2824,7 @@ declare function resolveLabelClearanceAfterPathPasses(edges: LaidEdge[], obstacl
|
|
|
2810
2824
|
* @param edge LaidEdge (labelX, labelY, labelAnchor, label, sub 既確定)
|
|
2811
2825
|
* @returns { x, y, w, h } の world 座標 bbox (render 実 rect 位置と一致)
|
|
2812
2826
|
*/
|
|
2813
|
-
declare function predictLabelBBoxWorld(edge: LaidEdge): {
|
|
2827
|
+
declare function predictLabelBBoxWorld(edge: LaidEdge, textMetrics?: CdlTextMetrics): {
|
|
2814
2828
|
x: number;
|
|
2815
2829
|
y: number;
|
|
2816
2830
|
w: number;
|
|
@@ -2868,6 +2882,10 @@ declare function bboxDiffWorld(predicted: {
|
|
|
2868
2882
|
max: number;
|
|
2869
2883
|
};
|
|
2870
2884
|
|
|
2885
|
+
type TextMetricsPreset = {
|
|
2886
|
+
/** 図の字幅を測る規則。省略時は `"proportional"` */
|
|
2887
|
+
textMetrics?: CdlTextMetrics;
|
|
2888
|
+
};
|
|
2871
2889
|
/**
|
|
2872
2890
|
* 状態を読む書き方 (`{名前}`)。
|
|
2873
2891
|
*
|
|
@@ -2884,7 +2902,7 @@ type BindingRef = `{${名前の頭}${string}}`;
|
|
|
2884
2902
|
* - swimlane({ id, topic, lanes: ["送信元", "コントラクト", "出力"] }) で 3 lane 自動配置
|
|
2885
2903
|
* - flow().step("A", "func").step("B", "storage").build() で sequence diagram 風
|
|
2886
2904
|
*/
|
|
2887
|
-
type SwimlanePreset = {
|
|
2905
|
+
type SwimlanePreset = TextMetricsPreset & {
|
|
2888
2906
|
id: string;
|
|
2889
2907
|
topic: string;
|
|
2890
2908
|
/** lane label の配列。 各 lane width は固定 (default 400)、 x は auto-layout */
|
|
@@ -2916,7 +2934,7 @@ type FlowStepInput = {
|
|
|
2916
2934
|
eyebrow?: string;
|
|
2917
2935
|
subtitle?: string;
|
|
2918
2936
|
};
|
|
2919
|
-
type FlowPreset = {
|
|
2937
|
+
type FlowPreset = TextMetricsPreset & {
|
|
2920
2938
|
id: string;
|
|
2921
2939
|
topic: string;
|
|
2922
2940
|
/** lane label (1 本のみ、 全 step が縦 stack で並ぶ) */
|
|
@@ -3009,7 +3027,7 @@ type SequenceActor = {
|
|
|
3009
3027
|
/** 名前の下に置く日本語の呼び名 (例 "画面" / "受付" / "台帳") */
|
|
3010
3028
|
subtitle?: string;
|
|
3011
3029
|
};
|
|
3012
|
-
type SequencePreset = {
|
|
3030
|
+
type SequencePreset = TextMetricsPreset & {
|
|
3013
3031
|
id: string;
|
|
3014
3032
|
topic: string;
|
|
3015
3033
|
/** actor label の配列 (lifeline、 column 単位)。 呼び名を添えるなら物で書く (#578) */
|
|
@@ -3068,7 +3086,7 @@ type TopologyConnection = {
|
|
|
3068
3086
|
labelOffsetX?: number;
|
|
3069
3087
|
labelOffsetY?: number;
|
|
3070
3088
|
};
|
|
3071
|
-
type TopologyPreset = {
|
|
3089
|
+
type TopologyPreset = TextMetricsPreset & {
|
|
3072
3090
|
id: string;
|
|
3073
3091
|
topic: string;
|
|
3074
3092
|
/** group の lane width (default 360) */
|
|
@@ -3185,7 +3203,7 @@ type ErRelation = {
|
|
|
3185
3203
|
*/
|
|
3186
3204
|
style?: EdgeStyle;
|
|
3187
3205
|
};
|
|
3188
|
-
type ErPreset = {
|
|
3206
|
+
type ErPreset = TextMetricsPreset & {
|
|
3189
3207
|
id: string;
|
|
3190
3208
|
topic: string;
|
|
3191
3209
|
defaultTone?: Tone;
|
|
@@ -3299,7 +3317,7 @@ type FsmTransition = {
|
|
|
3299
3317
|
*/
|
|
3300
3318
|
head?: EdgeHead;
|
|
3301
3319
|
};
|
|
3302
|
-
type StateMachinePreset = {
|
|
3320
|
+
type StateMachinePreset = TextMetricsPreset & {
|
|
3303
3321
|
id: string;
|
|
3304
3322
|
topic: string;
|
|
3305
3323
|
defaultTone?: Tone;
|
|
@@ -3366,7 +3384,7 @@ type InfraConnection = {
|
|
|
3366
3384
|
/** label の垂直方向 fine offset (default 0、 preset 交互 ±60 を override) */
|
|
3367
3385
|
labelOffsetY?: number;
|
|
3368
3386
|
};
|
|
3369
|
-
type InfrastructurePreset = {
|
|
3387
|
+
type InfrastructurePreset = TextMetricsPreset & {
|
|
3370
3388
|
id: string;
|
|
3371
3389
|
topic: string;
|
|
3372
3390
|
/** col あたりの lane width (default 380) */
|
|
@@ -3474,7 +3492,7 @@ type UmlRelation = {
|
|
|
3474
3492
|
/** 線の種類 (#578)。 書かなければ種類から決まる */
|
|
3475
3493
|
style?: EdgeStyle;
|
|
3476
3494
|
};
|
|
3477
|
-
type ClassDiagramPreset = {
|
|
3495
|
+
type ClassDiagramPreset = TextMetricsPreset & {
|
|
3478
3496
|
id: string;
|
|
3479
3497
|
topic: string;
|
|
3480
3498
|
defaultTone?: Tone;
|
|
@@ -3522,7 +3540,7 @@ type TreeNode = {
|
|
|
3522
3540
|
/** 箱の 2 行目に出す補足。 上の小ラベルは木では受けない (#471、 `TreeNodePayload` 参照) */
|
|
3523
3541
|
subtitle?: string;
|
|
3524
3542
|
};
|
|
3525
|
-
type TreePreset = {
|
|
3543
|
+
type TreePreset = TextMetricsPreset & {
|
|
3526
3544
|
id: string;
|
|
3527
3545
|
topic: string;
|
|
3528
3546
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3560,7 +3578,7 @@ type JourneyStep = {
|
|
|
3560
3578
|
/** opportunity (改善余地のメモ) */
|
|
3561
3579
|
opportunity?: string;
|
|
3562
3580
|
};
|
|
3563
|
-
type UserJourneyPreset = {
|
|
3581
|
+
type UserJourneyPreset = TextMetricsPreset & {
|
|
3564
3582
|
id: string;
|
|
3565
3583
|
topic: string;
|
|
3566
3584
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3594,7 +3612,7 @@ type MindBranch = {
|
|
|
3594
3612
|
tone?: Tone;
|
|
3595
3613
|
subtitle?: string;
|
|
3596
3614
|
};
|
|
3597
|
-
type MindMapPreset = {
|
|
3615
|
+
type MindMapPreset = TextMetricsPreset & {
|
|
3598
3616
|
id: string;
|
|
3599
3617
|
topic: string;
|
|
3600
3618
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3631,7 +3649,7 @@ type FunnelStage = {
|
|
|
3631
3649
|
/** stage 詳細 */
|
|
3632
3650
|
subtitle?: string;
|
|
3633
3651
|
};
|
|
3634
|
-
type FunnelPreset = {
|
|
3652
|
+
type FunnelPreset = TextMetricsPreset & {
|
|
3635
3653
|
id: string;
|
|
3636
3654
|
topic: string;
|
|
3637
3655
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3664,7 +3682,7 @@ type QuadrantItem = {
|
|
|
3664
3682
|
quadrant: QuadrantQuadrantLabel | BindingRef;
|
|
3665
3683
|
subtitle?: string;
|
|
3666
3684
|
};
|
|
3667
|
-
type QuadrantPreset = {
|
|
3685
|
+
type QuadrantPreset = TextMetricsPreset & {
|
|
3668
3686
|
id: string;
|
|
3669
3687
|
topic: string;
|
|
3670
3688
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3714,7 +3732,7 @@ type ChartDatum = {
|
|
|
3714
3732
|
/** 個別 tone (default は preset の defaultTone) */
|
|
3715
3733
|
tone?: Tone;
|
|
3716
3734
|
};
|
|
3717
|
-
type ChartPreset = {
|
|
3735
|
+
type ChartPreset = TextMetricsPreset & {
|
|
3718
3736
|
id: string;
|
|
3719
3737
|
topic: string;
|
|
3720
3738
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3760,7 +3778,7 @@ type GanttTask = {
|
|
|
3760
3778
|
/** 依存 task id */
|
|
3761
3779
|
dependsOn?: string;
|
|
3762
3780
|
};
|
|
3763
|
-
type GanttPreset = {
|
|
3781
|
+
type GanttPreset = TextMetricsPreset & {
|
|
3764
3782
|
id: string;
|
|
3765
3783
|
topic: string;
|
|
3766
3784
|
/** 図の題の上に出す小見出し (#939)。 書かなければ何も出ない */
|
|
@@ -3824,7 +3842,7 @@ type FlowchartEdge = {
|
|
|
3824
3842
|
* 足りない。
|
|
3825
3843
|
*/
|
|
3826
3844
|
type FlowchartDirection = "horizontal" | "vertical";
|
|
3827
|
-
type FlowchartPreset = {
|
|
3845
|
+
type FlowchartPreset = TextMetricsPreset & {
|
|
3828
3846
|
id: string;
|
|
3829
3847
|
topic: string;
|
|
3830
3848
|
/** swimlane の lane (role) ラベル */
|
|
@@ -3857,7 +3875,7 @@ type NetworkLink = {
|
|
|
3857
3875
|
protocol?: string;
|
|
3858
3876
|
tone?: Tone;
|
|
3859
3877
|
};
|
|
3860
|
-
type NetworkPreset = {
|
|
3878
|
+
type NetworkPreset = TextMetricsPreset & {
|
|
3861
3879
|
id: string;
|
|
3862
3880
|
topic: string;
|
|
3863
3881
|
defaultTone?: Tone;
|
|
@@ -3903,7 +3921,7 @@ type FsmTransitionExt = {
|
|
|
3903
3921
|
action?: string;
|
|
3904
3922
|
tone?: Tone;
|
|
3905
3923
|
};
|
|
3906
|
-
type StateMachine2Preset = {
|
|
3924
|
+
type StateMachine2Preset = TextMetricsPreset & {
|
|
3907
3925
|
id: string;
|
|
3908
3926
|
topic: string;
|
|
3909
3927
|
defaultTone?: Tone;
|
|
@@ -4021,4 +4039,4 @@ declare function computeStateValues(laid: LaidDiagram, phaseIdx: number, progres
|
|
|
4021
4039
|
*/
|
|
4022
4040
|
declare function interpolate(template: string, values: Record<string, string>, 名前の表?: 値の名前の表): string;
|
|
4023
4041
|
|
|
4024
|
-
export { ARROW_ANGLE_MAX_DEG, ARROW_ENDPOINT_CENTER_TOL, type AnimationChain, type AuthorIntentOptions, type AuthorIntentReport, type BinaryOp, CHAIN_MIN_CLEARANCE, CHAIN_SHIFT_MAX_ACCUMULATED, CHAIN_SHIFT_MAX_ITER, CLASS_RELATION_LOOK, CLEARANCE_LABEL_LABEL, CLEARANCE_LANE_LABEL, CLEARANCE_NODE_LABEL, CLEARANCE_PATH_LABEL, COLUMN_GAP_VARIANCE_TOL, CdlDerivedValue, CdlDiagram, CdlDiagramThumbnail, CdlEdge, type CdlEventHandler, CdlEventTarget, CdlInput, CdlInputOption, CdlLane, CdlLang, CdlNode, CdlScrollTrigger, CdlState, type ChartBuilder, type ChartDatum, type ChartPreset, type ChartType, type ClassDiagramBuilder, type ClassDiagramPreset, type ClassRelationType, Computed, DETOUR_GAP, DETOUR_SLOT_GAP, DIST_LABEL_PATH_MAX, DIST_LABEL_PATH_MIN, type DerivedNotice, type DerivedNoticeKind, type DerivedResult, type DiagramAdapter, type DiagramBuilder, type Discrepancy, type DiscrepancyKind, type DomVerifyReport, EDGE_LABEL_TEXT, EDGE_STUB_OUT, ER_CARDINALITY_HEAD, EdgeHead, EdgeHeadFill, type EdgeLabelLine, type EdgeLabelTextSpec, EdgeStyle, type ErBuilder, type ErColumn, type ErEntity, type ErPreset, type ErRelation, type ErRelationCardinality, type EventAttachHandle, type EventChain, FAN_GAP, FONT_RENDER_TOLERANCE_WORLD, FSM_ACTION_MARK, type FlowBuilder, type FlowPreset, type FlowStepInput, type FlowchartBuilder, type FlowchartDirection, type FlowchartEdge, type FlowchartNode, type FlowchartNodeShape, type FlowchartPreset, type FormulaAst, type FormulaContext, type FsmMark, type FsmState, type FsmStateAction, type FsmStateNested, type FsmTransition, type FsmTransitionExt, type FunnelBuilder, type FunnelPreset, type FunnelStage, type GanttBuilder, type GanttPreset, type GanttTask, type GenericDiagramSpec, type GenericDiscrepancy, type GenericDiscrepancyKind, type GenericVerifyOptions, type Rect as GeometryRect, type Segment as GeometrySegment, type InfraConnection, type InfraNode, type InfrastructureBuilder, type InfrastructurePreset, type InputChain, type IntentDiscrepancy, type IntentDiscrepancyKind, JourneyEmotion, type JourneyStep, LABEL_INIT_CLEARANCE, LABEL_INIT_CLEARANCE_DOTTED_FLOW, LABEL_SIZE_TOLERANCE_WORLD, LABEL_TO_PATH_CLEARANCE, LANE_BORDER_CLEARANCE_TOL, LaidDiagram, LaidEdge, LaidNode, type LayoutWithValidationOptions, type LayoutWithValidationResult, MARKER_GLOW_RADIUS, MIN_COLUMN_ALIGNMENT_TOLERANCE, MIN_ROW_ALIGNMENT_TOLERANCE, type MathFnName, type MindBranch, type MindMapBuilder, type MindMapPreset, NEAR_COLLISION_DEFAULT_MIN, NEAR_COLLISION_POLICY, NODE_FRAME_SELECTOR, type NetworkBuilder, type NetworkDevice, type NetworkDeviceKind, type NetworkLink, type NetworkPreset, NodeKind, type OrderEdge, type OrderNode, type OrderResult, PERF_BUDGET_TOTAL_MS, PERF_SLOWEST_SAMPLE, type PageLike, type PerfClockKind, type PhaseBuilder, type QuadrantBuilder, type QuadrantItem, type QuadrantPreset, type QuadrantQuadrantLabel, ROW_GAP_VARIANCE_TOL, type ReferenceContainer, RowMark, SEQUENCE_MESSAGE_LOOK, SPEC_CLEARANCE_POLICY, STAGE_SVG_SELECTOR, type SequenceActor, type SequenceBuilder, type SequenceMessageKind, type SequencePreset, type SequenceStep, Side, Signal, type StateMachine2Builder, type StateMachine2Preset, type StateMachineBuilder, type StateMachinePreset, type SweepReport, type SwimlanePreset, TARGET_LABEL_PATH_DIST, Tone, type TopologyBuilder, type TopologyConnection, type TopologyContainer, type TopologyGroupBuilder, type TopologyPreset, type TreeBuilder, type TreeNode, type TreePreset, type UmlClass, type UmlRelation, type UserJourneyBuilder, type UserJourneyPreset, type ValidateOptions, type ValidationProfile, type VerifyOptions, type Violation, type VisualAxis, type VisualValidationReport, WCAG_AA_LARGE, WCAG_AA_NORMAL, applyDerivedValues, assertNever, attachEventHandlers, batch, bboxClearance, bboxDiffWorld, cdlAdapter, chart, classDiagram, compile, computeScrollProgress, computeStateValues, computeViewportScale, countEdgeCrossings, countOrderCrossings, createFormulaComputeds, createInputSignals, diagram, drawsFigureTitle, effect, er, evaluate as evaluateFormula, extractIdentifiers, flow, flowchart, funnel, gantt, infrastructure, inputDefaultValue, interpolate, isLargeText, labelInitClearance, layout, layoutWithValidation, mindMap, network, orderNodes, parseFormula, pointRectEdgeDistance, pointToSegmentDistance, predictLabelBBoxWorld, predictNodeBBoxWorld, projectEdgeLabel, projectNode, projectPathSegment, pxToWorld, quadrant, rectRectClearance, rectRectOverlapArea, relatedFocusSet, rendersRows, requiredContrastRatio, requiredNearClearance, requiredRowsHeight, requiredRowsWidth, requiredSpecClearance, resolveEdgeLabelOverlapsWithChain, resolveEdgeLabelOverlapsWithChainAndPropagate, resolveLabelClearanceAfterPathPasses, resolveOverlapsWithChain, resolveTarget, resolveTargetAll, segmentsIntersect, sequence, stateMachine, stateMachine2, swimlane, topology, tree, untrack, userJourney, validate, verifyAllDiagramsDom, verifyAuthorIntent, verifyAuthorIntentAll, verifyDiagramDom, visualValidate, visualValidateAll, visualValidateLaid, withDerivedValues, worldToPx, 木の札の幅, type 関係を持つ線 };
|
|
4042
|
+
export { ARROW_ANGLE_MAX_DEG, ARROW_ENDPOINT_CENTER_TOL, type AnimationChain, type AuthorIntentOptions, type AuthorIntentReport, type BinaryOp, CHAIN_MIN_CLEARANCE, CHAIN_SHIFT_MAX_ACCUMULATED, CHAIN_SHIFT_MAX_ITER, CLASS_RELATION_LOOK, CLEARANCE_LABEL_LABEL, CLEARANCE_LANE_LABEL, CLEARANCE_NODE_LABEL, CLEARANCE_PATH_LABEL, COLUMN_GAP_VARIANCE_TOL, CdlDerivedValue, CdlDiagram, CdlDiagramThumbnail, CdlEdge, type CdlEventHandler, CdlEventTarget, CdlInput, CdlInputOption, CdlLane, CdlLang, CdlNode, CdlScrollTrigger, CdlState, CdlTextMetrics, type ChartBuilder, type ChartDatum, type ChartPreset, type ChartType, type ClassDiagramBuilder, type ClassDiagramPreset, type ClassRelationType, Computed, DETOUR_GAP, DETOUR_SLOT_GAP, DIST_LABEL_PATH_MAX, DIST_LABEL_PATH_MIN, type DerivedNotice, type DerivedNoticeKind, type DerivedResult, type DiagramAdapter, type DiagramBuilder, type Discrepancy, type DiscrepancyKind, type DomVerifyReport, EDGE_LABEL_TEXT, EDGE_STUB_OUT, ER_CARDINALITY_HEAD, EdgeHead, EdgeHeadFill, type EdgeLabelLine, type EdgeLabelTextSpec, EdgeRouting, EdgeStyle, type ErBuilder, type ErColumn, type ErEntity, type ErPreset, type ErRelation, type ErRelationCardinality, type EventAttachHandle, type EventChain, FAN_GAP, FONT_RENDER_TOLERANCE_WORLD, FSM_ACTION_MARK, type FlowBuilder, type FlowPreset, type FlowStepInput, type FlowchartBuilder, type FlowchartDirection, type FlowchartEdge, type FlowchartNode, type FlowchartNodeShape, type FlowchartPreset, type FormulaAst, type FormulaContext, type FsmMark, type FsmState, type FsmStateAction, type FsmStateNested, type FsmTransition, type FsmTransitionExt, type FunnelBuilder, type FunnelPreset, type FunnelStage, type GanttBuilder, type GanttPreset, type GanttTask, type GenericDiagramSpec, type GenericDiscrepancy, type GenericDiscrepancyKind, type GenericVerifyOptions, type Rect as GeometryRect, type Segment as GeometrySegment, type InfraConnection, type InfraNode, type InfrastructureBuilder, type InfrastructurePreset, type InputChain, type IntentDiscrepancy, type IntentDiscrepancyKind, JourneyEmotion, type JourneyStep, LABEL_INIT_CLEARANCE, LABEL_INIT_CLEARANCE_DOTTED_FLOW, LABEL_SIZE_TOLERANCE_WORLD, LABEL_TO_PATH_CLEARANCE, LANE_BORDER_CLEARANCE_TOL, LaidDiagram, LaidEdge, LaidNode, type LayoutWithValidationOptions, type LayoutWithValidationResult, MARKER_GLOW_RADIUS, MIN_COLUMN_ALIGNMENT_TOLERANCE, MIN_ROW_ALIGNMENT_TOLERANCE, type MathFnName, type MindBranch, type MindMapBuilder, type MindMapPreset, NEAR_COLLISION_DEFAULT_MIN, NEAR_COLLISION_POLICY, NODE_FRAME_SELECTOR, type NetworkBuilder, type NetworkDevice, type NetworkDeviceKind, type NetworkLink, type NetworkPreset, NodeKind, type OrderEdge, type OrderNode, type OrderResult, PERF_BUDGET_TOTAL_MS, PERF_SLOWEST_SAMPLE, type PageLike, type PerfClockKind, type PhaseBuilder, type QuadrantBuilder, type QuadrantItem, type QuadrantPreset, type QuadrantQuadrantLabel, ROW_GAP_VARIANCE_TOL, type ReferenceContainer, RowMark, SEQUENCE_MESSAGE_LOOK, SPEC_CLEARANCE_POLICY, STAGE_SVG_SELECTOR, type SequenceActor, type SequenceBuilder, type SequenceMessageKind, type SequencePreset, type SequenceStep, Side, Signal, type StateMachine2Builder, type StateMachine2Preset, type StateMachineBuilder, type StateMachinePreset, type SweepReport, type SwimlanePreset, TARGET_LABEL_PATH_DIST, Tone, type TopologyBuilder, type TopologyConnection, type TopologyContainer, type TopologyGroupBuilder, type TopologyPreset, type TreeBuilder, type TreeNode, type TreePreset, type UmlClass, type UmlRelation, type UserJourneyBuilder, type UserJourneyPreset, type ValidateOptions, type ValidationProfile, type VerifyOptions, type Violation, type VisualAxis, type VisualValidationReport, WCAG_AA_LARGE, WCAG_AA_NORMAL, applyDerivedValues, assertNever, attachEventHandlers, batch, bboxClearance, bboxDiffWorld, cdlAdapter, chart, classDiagram, compile, computeScrollProgress, computeStateValues, computeViewportScale, countEdgeCrossings, countOrderCrossings, createFormulaComputeds, createInputSignals, diagram, drawsFigureTitle, effect, er, evaluate as evaluateFormula, extractIdentifiers, flow, flowchart, funnel, gantt, infrastructure, inputDefaultValue, interpolate, isLargeText, labelInitClearance, layout, layoutWithValidation, mindMap, network, orderNodes, parseFormula, pointRectEdgeDistance, pointToSegmentDistance, predictLabelBBoxWorld, predictNodeBBoxWorld, projectEdgeLabel, projectNode, projectPathSegment, pxToWorld, quadrant, rectRectClearance, rectRectOverlapArea, relatedFocusSet, rendersRows, requiredContrastRatio, requiredNearClearance, requiredRowsHeight, requiredRowsWidth, requiredSpecClearance, resolveEdgeLabelOverlapsWithChain, resolveEdgeLabelOverlapsWithChainAndPropagate, resolveLabelClearanceAfterPathPasses, resolveOverlapsWithChain, resolveTarget, resolveTargetAll, resolveTextMetrics, segmentsIntersect, sequence, stateMachine, stateMachine2, swimlane, topology, tree, untrack, userJourney, validate, verifyAllDiagramsDom, verifyAuthorIntent, verifyAuthorIntentAll, verifyDiagramDom, visualValidate, visualValidateAll, visualValidateLaid, withDerivedValues, worldToPx, 木の札の幅, type 関係を持つ線 };
|