@cardenelabs/dragon 0.9.0 → 0.11.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/dist/index.cjs +33 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -9
- package/dist/index.d.ts +24 -9
- package/dist/index.js +33 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/compile.ts +30 -22
- package/src/index.ts +1 -1
- package/src/json-parser.ts +2 -3
- package/src/schemas/diagram.json +2 -2
- package/src/types.ts +5 -5
- package/src/v05/parser.ts +38 -5
package/dist/index.d.cts
CHANGED
|
@@ -440,15 +440,15 @@ type DslPhase = {
|
|
|
440
440
|
body?: string;
|
|
441
441
|
badge?: string;
|
|
442
442
|
/**
|
|
443
|
-
*
|
|
443
|
+
* その段で起点から描くもの (#1312 / #1314 / #1318)。
|
|
444
444
|
*
|
|
445
|
-
*
|
|
446
|
-
*
|
|
445
|
+
* 受ける語は `line` / `bar` / `pie` / `journey` / `mind` / `tree` / `gantt` / `funnel`。
|
|
446
|
+
* 語と同じ図種で、その段の間に線・棒・扇・枝・帯・段が各図の起点から現れる。
|
|
447
447
|
*
|
|
448
448
|
* **最上位ではなく段に置く**。 記法は動き (`tween` / `set` / `focus` / `badge`) を段に、
|
|
449
|
-
* 静的な性質 (`eyebrow` / `axes`) を最上位に書く分け方を既に持つ。
|
|
449
|
+
* 静的な性質 (`eyebrow` / `axes`) を最上位に書く分け方を既に持つ。 起点から描くのは動き。
|
|
450
450
|
*
|
|
451
|
-
* 相手の名前は書かせない =
|
|
451
|
+
* 相手の名前は書かせない = 対象の 8 図種はいずれも図全体を 1 箱で描くため相手が決まる。
|
|
452
452
|
*/
|
|
453
453
|
draw?: string;
|
|
454
454
|
/**
|
|
@@ -810,6 +810,14 @@ declare function parseTextDslV05(src: string): V05ParseResult;
|
|
|
810
810
|
* 画面側も同じ関数を使う (#1028) = 別々に持つと、片方だけが読める本文ができる。
|
|
811
811
|
*/
|
|
812
812
|
declare function stripQuotes(s: string): string;
|
|
813
|
+
/**
|
|
814
|
+
* 段に書ける項目の英語名。 `parsePhase` が受け付ける名前の入口でも使う。
|
|
815
|
+
*
|
|
816
|
+
* 誤りの案内で使うほか、**見本が値の名前にこの語を使っていないか** を見るのにも使う
|
|
817
|
+
* (#1330)。 段の項目と値は階層が違うので衝突しないが、同じ語が 2 つの意味で並ぶと
|
|
818
|
+
* 見本を読む人が階層から意味を判断することになる。
|
|
819
|
+
*/
|
|
820
|
+
declare const PHASE_ITEM_WORDS: readonly ["focus", "badge", "body", "description", "tween", "set", "draw"];
|
|
813
821
|
/**
|
|
814
822
|
* `draw:` に書ける語と、その語が効く図種 (#1312 / #1314)。
|
|
815
823
|
*
|
|
@@ -822,6 +830,14 @@ declare function stripQuotes(s: string): string;
|
|
|
822
830
|
* | `line` | `line` | 左端から右へ線が伸びる |
|
|
823
831
|
* | `bar` | `bar` | 横軸から上へ棒が伸びる |
|
|
824
832
|
* | `pie` | `pie` | 12 時から時計回りに扇が開く |
|
|
833
|
+
* | `journey` | `journey` | 左端から右へ気持ちの線が伸びる |
|
|
834
|
+
* | `mind` | `mind` | 中心から外へ枝が伸びる |
|
|
835
|
+
* | `tree` | `tree` | 根から下へ枝が伸びる |
|
|
836
|
+
* | `gantt` | `gantt` | 各帯の始端から右へ帯が伸びる |
|
|
837
|
+
* | `funnel` | `funnel` | 上端から順に段が積まれる |
|
|
838
|
+
*
|
|
839
|
+
* `quadrant` は入れない。 4 つの区画に項目を置く図で **項目に順序が無く**、起点を決められない
|
|
840
|
+
* (順番を書いた順で決めると、動きが図の意味を持たない)。
|
|
825
841
|
*
|
|
826
842
|
* いまは語と図種が同じ綴りだが、**同じものとして扱わない**。 語は書き手が書く名前で、
|
|
827
843
|
* 図種は `type:` が取る値。 片方だけ別名を足したくなった時に、対応が表に残っている形にする。
|
|
@@ -1402,10 +1418,9 @@ interface JsonPhase {
|
|
|
1402
1418
|
/** badge label */
|
|
1403
1419
|
badge?: string;
|
|
1404
1420
|
/**
|
|
1405
|
-
*
|
|
1421
|
+
* その段で起点から描くもの (#1312 / #1314 / #1318)。 記法の `draw:` と同じ。
|
|
1406
1422
|
*
|
|
1407
|
-
*
|
|
1408
|
-
* 右へ伸びる。
|
|
1423
|
+
* 受ける 8 語は `DRAW_WORDS` が持つ。 語と同じ図種で、その段の間に図が起点から現れる。
|
|
1409
1424
|
*/
|
|
1410
1425
|
draw?: string;
|
|
1411
1426
|
/**
|
|
@@ -2017,4 +2032,4 @@ interface CompileOpts {
|
|
|
2017
2032
|
*/
|
|
2018
2033
|
declare function textDslToDiagram(src: string, opts?: CompileOpts): CdlDiagram;
|
|
2019
2034
|
|
|
2020
|
-
export { type AnchorBox, type CompileNotice, type CompileOpts, DIAGRAM_BOUNDARY_PADDING, DRAW_TARGETS, DRAW_WORDS, type DiagramBoundingBox, type DragonJson, type DslActor, type DslAnimate, type DslDocument, type DslError, type DslGroup, type DslLane, type DslPhase, type DslSet, type DslState, type DslStep, type DslTween, type DslValue, type DslViewport, type FocusEntry, type InputSize, JSONを分解する, type JsonActor, type JsonActorNodeOverride, type JsonAxes, type JsonDslError, type JsonPhase, type JsonStep, type LayoutMode, type LayoutPos, type LintIssue, type LintReport, type LintSeverity, MAX_INPUT_BYTES, MAX_INPUT_ELEMENTS, MAX_PART_SCALE, NODE_KIND_ALIAS, NODE_KIND_VALID, PRESET_TYPES, type PresetType, RELATIVE_GAP_DEFAULT, type RelativeDirection, type RelativePos, TONE_ALIAS, TOP_LEVEL_KEYS, autoFix, compileToCdl, computeDiagramBoundingBox, countBytes, countDiagramElements, countDocElements, describeOversize, describeOversizeSource, diagramJsonSchema, isColorValue, jsonToDiagram, lintDiagram, measureActorBoxes, normalizePartScale, orderByDependency, parseFocusEntry, parseRelativePos, parseTextDsl, parseTextDslV05, partBoxInFrame, partDrawsInDiagram, partIsMeasurable, partRenderSize, partScaleFactor, partTargetScale, partTargetSize, partVisualSize, partsGridCenters, pointsOutside, rectsOverlap, resolveRelativePos, stripExternalPaint, stripQuotes, textDslToDiagram, validateDragonJson, writeActorPosition, type トークン, type トークンの種類, 区間に広げる, 記法を分解する };
|
|
2035
|
+
export { type AnchorBox, type CompileNotice, type CompileOpts, DIAGRAM_BOUNDARY_PADDING, DRAW_TARGETS, DRAW_WORDS, type DiagramBoundingBox, type DragonJson, type DslActor, type DslAnimate, type DslDocument, type DslError, type DslGroup, type DslLane, type DslPhase, type DslSet, type DslState, type DslStep, type DslTween, type DslValue, type DslViewport, type FocusEntry, type InputSize, JSONを分解する, type JsonActor, type JsonActorNodeOverride, type JsonAxes, type JsonDslError, type JsonPhase, type JsonStep, type LayoutMode, type LayoutPos, type LintIssue, type LintReport, type LintSeverity, MAX_INPUT_BYTES, MAX_INPUT_ELEMENTS, MAX_PART_SCALE, NODE_KIND_ALIAS, NODE_KIND_VALID, PHASE_ITEM_WORDS, PRESET_TYPES, type PresetType, RELATIVE_GAP_DEFAULT, type RelativeDirection, type RelativePos, TONE_ALIAS, TOP_LEVEL_KEYS, autoFix, compileToCdl, computeDiagramBoundingBox, countBytes, countDiagramElements, countDocElements, describeOversize, describeOversizeSource, diagramJsonSchema, isColorValue, jsonToDiagram, lintDiagram, measureActorBoxes, normalizePartScale, orderByDependency, parseFocusEntry, parseRelativePos, parseTextDsl, parseTextDslV05, partBoxInFrame, partDrawsInDiagram, partIsMeasurable, partRenderSize, partScaleFactor, partTargetScale, partTargetSize, partVisualSize, partsGridCenters, pointsOutside, rectsOverlap, resolveRelativePos, stripExternalPaint, stripQuotes, textDslToDiagram, validateDragonJson, writeActorPosition, type トークン, type トークンの種類, 区間に広げる, 記法を分解する };
|
package/dist/index.d.ts
CHANGED
|
@@ -440,15 +440,15 @@ type DslPhase = {
|
|
|
440
440
|
body?: string;
|
|
441
441
|
badge?: string;
|
|
442
442
|
/**
|
|
443
|
-
*
|
|
443
|
+
* その段で起点から描くもの (#1312 / #1314 / #1318)。
|
|
444
444
|
*
|
|
445
|
-
*
|
|
446
|
-
*
|
|
445
|
+
* 受ける語は `line` / `bar` / `pie` / `journey` / `mind` / `tree` / `gantt` / `funnel`。
|
|
446
|
+
* 語と同じ図種で、その段の間に線・棒・扇・枝・帯・段が各図の起点から現れる。
|
|
447
447
|
*
|
|
448
448
|
* **最上位ではなく段に置く**。 記法は動き (`tween` / `set` / `focus` / `badge`) を段に、
|
|
449
|
-
* 静的な性質 (`eyebrow` / `axes`) を最上位に書く分け方を既に持つ。
|
|
449
|
+
* 静的な性質 (`eyebrow` / `axes`) を最上位に書く分け方を既に持つ。 起点から描くのは動き。
|
|
450
450
|
*
|
|
451
|
-
* 相手の名前は書かせない =
|
|
451
|
+
* 相手の名前は書かせない = 対象の 8 図種はいずれも図全体を 1 箱で描くため相手が決まる。
|
|
452
452
|
*/
|
|
453
453
|
draw?: string;
|
|
454
454
|
/**
|
|
@@ -810,6 +810,14 @@ declare function parseTextDslV05(src: string): V05ParseResult;
|
|
|
810
810
|
* 画面側も同じ関数を使う (#1028) = 別々に持つと、片方だけが読める本文ができる。
|
|
811
811
|
*/
|
|
812
812
|
declare function stripQuotes(s: string): string;
|
|
813
|
+
/**
|
|
814
|
+
* 段に書ける項目の英語名。 `parsePhase` が受け付ける名前の入口でも使う。
|
|
815
|
+
*
|
|
816
|
+
* 誤りの案内で使うほか、**見本が値の名前にこの語を使っていないか** を見るのにも使う
|
|
817
|
+
* (#1330)。 段の項目と値は階層が違うので衝突しないが、同じ語が 2 つの意味で並ぶと
|
|
818
|
+
* 見本を読む人が階層から意味を判断することになる。
|
|
819
|
+
*/
|
|
820
|
+
declare const PHASE_ITEM_WORDS: readonly ["focus", "badge", "body", "description", "tween", "set", "draw"];
|
|
813
821
|
/**
|
|
814
822
|
* `draw:` に書ける語と、その語が効く図種 (#1312 / #1314)。
|
|
815
823
|
*
|
|
@@ -822,6 +830,14 @@ declare function stripQuotes(s: string): string;
|
|
|
822
830
|
* | `line` | `line` | 左端から右へ線が伸びる |
|
|
823
831
|
* | `bar` | `bar` | 横軸から上へ棒が伸びる |
|
|
824
832
|
* | `pie` | `pie` | 12 時から時計回りに扇が開く |
|
|
833
|
+
* | `journey` | `journey` | 左端から右へ気持ちの線が伸びる |
|
|
834
|
+
* | `mind` | `mind` | 中心から外へ枝が伸びる |
|
|
835
|
+
* | `tree` | `tree` | 根から下へ枝が伸びる |
|
|
836
|
+
* | `gantt` | `gantt` | 各帯の始端から右へ帯が伸びる |
|
|
837
|
+
* | `funnel` | `funnel` | 上端から順に段が積まれる |
|
|
838
|
+
*
|
|
839
|
+
* `quadrant` は入れない。 4 つの区画に項目を置く図で **項目に順序が無く**、起点を決められない
|
|
840
|
+
* (順番を書いた順で決めると、動きが図の意味を持たない)。
|
|
825
841
|
*
|
|
826
842
|
* いまは語と図種が同じ綴りだが、**同じものとして扱わない**。 語は書き手が書く名前で、
|
|
827
843
|
* 図種は `type:` が取る値。 片方だけ別名を足したくなった時に、対応が表に残っている形にする。
|
|
@@ -1402,10 +1418,9 @@ interface JsonPhase {
|
|
|
1402
1418
|
/** badge label */
|
|
1403
1419
|
badge?: string;
|
|
1404
1420
|
/**
|
|
1405
|
-
*
|
|
1421
|
+
* その段で起点から描くもの (#1312 / #1314 / #1318)。 記法の `draw:` と同じ。
|
|
1406
1422
|
*
|
|
1407
|
-
*
|
|
1408
|
-
* 右へ伸びる。
|
|
1423
|
+
* 受ける 8 語は `DRAW_WORDS` が持つ。 語と同じ図種で、その段の間に図が起点から現れる。
|
|
1409
1424
|
*/
|
|
1410
1425
|
draw?: string;
|
|
1411
1426
|
/**
|
|
@@ -2017,4 +2032,4 @@ interface CompileOpts {
|
|
|
2017
2032
|
*/
|
|
2018
2033
|
declare function textDslToDiagram(src: string, opts?: CompileOpts): CdlDiagram;
|
|
2019
2034
|
|
|
2020
|
-
export { type AnchorBox, type CompileNotice, type CompileOpts, DIAGRAM_BOUNDARY_PADDING, DRAW_TARGETS, DRAW_WORDS, type DiagramBoundingBox, type DragonJson, type DslActor, type DslAnimate, type DslDocument, type DslError, type DslGroup, type DslLane, type DslPhase, type DslSet, type DslState, type DslStep, type DslTween, type DslValue, type DslViewport, type FocusEntry, type InputSize, JSONを分解する, type JsonActor, type JsonActorNodeOverride, type JsonAxes, type JsonDslError, type JsonPhase, type JsonStep, type LayoutMode, type LayoutPos, type LintIssue, type LintReport, type LintSeverity, MAX_INPUT_BYTES, MAX_INPUT_ELEMENTS, MAX_PART_SCALE, NODE_KIND_ALIAS, NODE_KIND_VALID, PRESET_TYPES, type PresetType, RELATIVE_GAP_DEFAULT, type RelativeDirection, type RelativePos, TONE_ALIAS, TOP_LEVEL_KEYS, autoFix, compileToCdl, computeDiagramBoundingBox, countBytes, countDiagramElements, countDocElements, describeOversize, describeOversizeSource, diagramJsonSchema, isColorValue, jsonToDiagram, lintDiagram, measureActorBoxes, normalizePartScale, orderByDependency, parseFocusEntry, parseRelativePos, parseTextDsl, parseTextDslV05, partBoxInFrame, partDrawsInDiagram, partIsMeasurable, partRenderSize, partScaleFactor, partTargetScale, partTargetSize, partVisualSize, partsGridCenters, pointsOutside, rectsOverlap, resolveRelativePos, stripExternalPaint, stripQuotes, textDslToDiagram, validateDragonJson, writeActorPosition, type トークン, type トークンの種類, 区間に広げる, 記法を分解する };
|
|
2035
|
+
export { type AnchorBox, type CompileNotice, type CompileOpts, DIAGRAM_BOUNDARY_PADDING, DRAW_TARGETS, DRAW_WORDS, type DiagramBoundingBox, type DragonJson, type DslActor, type DslAnimate, type DslDocument, type DslError, type DslGroup, type DslLane, type DslPhase, type DslSet, type DslState, type DslStep, type DslTween, type DslValue, type DslViewport, type FocusEntry, type InputSize, JSONを分解する, type JsonActor, type JsonActorNodeOverride, type JsonAxes, type JsonDslError, type JsonPhase, type JsonStep, type LayoutMode, type LayoutPos, type LintIssue, type LintReport, type LintSeverity, MAX_INPUT_BYTES, MAX_INPUT_ELEMENTS, MAX_PART_SCALE, NODE_KIND_ALIAS, NODE_KIND_VALID, PHASE_ITEM_WORDS, PRESET_TYPES, type PresetType, RELATIVE_GAP_DEFAULT, type RelativeDirection, type RelativePos, TONE_ALIAS, TOP_LEVEL_KEYS, autoFix, compileToCdl, computeDiagramBoundingBox, countBytes, countDiagramElements, countDocElements, describeOversize, describeOversizeSource, diagramJsonSchema, isColorValue, jsonToDiagram, lintDiagram, measureActorBoxes, normalizePartScale, orderByDependency, parseFocusEntry, parseRelativePos, parseTextDsl, parseTextDslV05, partBoxInFrame, partDrawsInDiagram, partIsMeasurable, partRenderSize, partScaleFactor, partTargetScale, partTargetSize, partVisualSize, partsGridCenters, pointsOutside, rectsOverlap, resolveRelativePos, stripExternalPaint, stripQuotes, textDslToDiagram, validateDragonJson, writeActorPosition, type トークン, type トークンの種類, 区間に広げる, 記法を分解する };
|
package/dist/index.js
CHANGED
|
@@ -2086,6 +2086,9 @@ function ensureAnimate(a, lineNo) {
|
|
|
2086
2086
|
if (a) return a;
|
|
2087
2087
|
return { states: [], phases: [], pos: { line: lineNo } };
|
|
2088
2088
|
}
|
|
2089
|
+
var PHASE_ITEM_WORDS = ["focus", "badge", "body", "description", "tween", "set", "draw"];
|
|
2090
|
+
var \u6BB5\u306E\u9805\u76EE\u306E\u82F1\u8A9E = PHASE_ITEM_WORDS;
|
|
2091
|
+
var \u6BB5\u306E\u9805\u76EE\u306E\u96C6\u5408 = new Set(PHASE_ITEM_WORDS);
|
|
2089
2092
|
function parsePhase(block, errors) {
|
|
2090
2093
|
const head = block[0];
|
|
2091
2094
|
const m = head.trimmed.match(/^step\s*:\s*(.+)$/);
|
|
@@ -2126,6 +2129,15 @@ function parsePhase(block, errors) {
|
|
|
2126
2129
|
}
|
|
2127
2130
|
const key = (propMatch[1] ?? "").toLowerCase();
|
|
2128
2131
|
const value = (propMatch[2] ?? "").trim();
|
|
2132
|
+
if (!\u6BB5\u306E\u9805\u76EE\u306E\u96C6\u5408.has(key)) {
|
|
2133
|
+
errors.push({
|
|
2134
|
+
line: ln.no,
|
|
2135
|
+
message: `\u6BB5\u306E\u9805\u76EE\u540D\u304C\u8AAD\u3081\u307E\u305B\u3093: "${propMatch[1] ?? ""}"`,
|
|
2136
|
+
hint: \u6BB5\u306E\u9805\u76EE\u306E\u30D2\u30F3\u30C8(propMatch[1] ?? "")
|
|
2137
|
+
});
|
|
2138
|
+
i += 1;
|
|
2139
|
+
continue;
|
|
2140
|
+
}
|
|
2129
2141
|
if (key === "focus") {
|
|
2130
2142
|
phase.highlight = parseFocusList(value);
|
|
2131
2143
|
i += 1;
|
|
@@ -2219,11 +2231,15 @@ function \u6BB5\u306E\u9805\u76EE\u306E\u30D2\u30F3\u30C8(\u66F8\u3044\u305F\u54
|
|
|
2219
2231
|
const \u82F1\u8A9E = \u6BB5\u306E\u9805\u76EE\u306E\u65E5\u672C\u8A9E[\u66F8\u3044\u305F\u540D\u524D];
|
|
2220
2232
|
return \u82F1\u8A9E !== void 0 ? `v0.5 \u3067\u306F\u82F1\u8A9E\u3067\u66F8\u304F (\`${\u82F1\u8A9E}\`)` : `\u4F7F\u3048\u308B\u9805\u76EE = ${\u6BB5\u306E\u9805\u76EE\u306E\u82F1\u8A9E.join(", ")}`;
|
|
2221
2233
|
}
|
|
2222
|
-
var \u6BB5\u306E\u9805\u76EE\u306E\u82F1\u8A9E = ["focus", "badge", "body", "description", "tween", "set", "draw"];
|
|
2223
2234
|
var DRAW_TARGETS = /* @__PURE__ */ new Map([
|
|
2224
2235
|
["line", "line"],
|
|
2225
2236
|
["bar", "bar"],
|
|
2226
|
-
["pie", "pie"]
|
|
2237
|
+
["pie", "pie"],
|
|
2238
|
+
["journey", "journey"],
|
|
2239
|
+
["mind", "mind"],
|
|
2240
|
+
["tree", "tree"],
|
|
2241
|
+
["gantt", "gantt"],
|
|
2242
|
+
["funnel", "funnel"]
|
|
2227
2243
|
]);
|
|
2228
2244
|
var DRAW_WORDS = new Set(DRAW_TARGETS.keys());
|
|
2229
2245
|
var \u6BB5\u306E\u9805\u76EE\u306E\u65E5\u672C\u8A9E = {
|
|
@@ -4978,7 +4994,7 @@ function compileTree(doc, onNotice) {
|
|
|
4978
4994
|
const data = doc.actors.map((a) => {
|
|
4979
4995
|
const id = slugify(a.name);
|
|
4980
4996
|
const p3 = \u89AA.get(id);
|
|
4981
|
-
return { id,
|
|
4997
|
+
return { id, ...\u653E\u5C04\u306B\u51FA\u3059\u6587\u5B57(a), ...p3 !== void 0 ? { parent: p3 } : {} };
|
|
4982
4998
|
});
|
|
4983
4999
|
b.node(`${slugify(doc.title)}-chart`, {
|
|
4984
5000
|
lane: "chart",
|
|
@@ -5243,7 +5259,7 @@ function \u653E\u5C04\u3067\u63CF\u3051\u306A\u3044\u6B04\u3092\u66F8\u3044\u305
|
|
|
5243
5259
|
}
|
|
5244
5260
|
function \u653E\u5C04\u306B\u51FA\u3059\u6587\u5B57(a) {
|
|
5245
5261
|
const \u7D9A\u304D = [a.subtitle, a.value].map((x) => x?.trim()).filter((x) => !!x);
|
|
5246
|
-
return
|
|
5262
|
+
return { title: a.name, ...\u7D9A\u304D.length > 0 ? { subtitle: \u7D9A\u304D.join(" ") } : {} };
|
|
5247
5263
|
}
|
|
5248
5264
|
function compileMind(doc, onNotice) {
|
|
5249
5265
|
const b = diagram(slugify(doc.title), { topic: doc.title });
|
|
@@ -5335,7 +5351,7 @@ function compileMind(doc, onNotice) {
|
|
|
5335
5351
|
\u8A18\u9332\u3059\u308B(a);
|
|
5336
5352
|
branches.push({
|
|
5337
5353
|
id,
|
|
5338
|
-
|
|
5354
|
+
...\u653E\u5C04\u306B\u51FA\u3059\u6587\u5B57(a),
|
|
5339
5355
|
parent: \u89AA.get(id) ?? rootId,
|
|
5340
5356
|
...a.tone ? { tone: a.tone } : {}
|
|
5341
5357
|
});
|
|
@@ -5356,7 +5372,15 @@ function compileMind(doc, onNotice) {
|
|
|
5356
5372
|
...\u56F3\u306E\u5C0F\u898B\u51FA\u3057(doc),
|
|
5357
5373
|
w: W,
|
|
5358
5374
|
h: H,
|
|
5359
|
-
mindData:
|
|
5375
|
+
mindData: (() => {
|
|
5376
|
+
const \u4E2D\u5FC3 = \u653E\u5C04\u306B\u51FA\u3059\u6587\u5B57(root);
|
|
5377
|
+
return {
|
|
5378
|
+
rootId,
|
|
5379
|
+
rootTitle: \u4E2D\u5FC3.title,
|
|
5380
|
+
...\u4E2D\u5FC3.subtitle === void 0 ? {} : { rootSubtitle: \u4E2D\u5FC3.subtitle },
|
|
5381
|
+
branches
|
|
5382
|
+
};
|
|
5383
|
+
})()
|
|
5360
5384
|
});
|
|
5361
5385
|
return b.build();
|
|
5362
5386
|
}
|
|
@@ -7903,8 +7927,8 @@ var diagram_default = {
|
|
|
7903
7927
|
},
|
|
7904
7928
|
draw: {
|
|
7905
7929
|
type: "string",
|
|
7906
|
-
enum: ["line", "bar", "pie"],
|
|
7907
|
-
description: "\u3053\u306E phase \u3067\u8D77\u70B9\u304B\u3089\u63CF\u304F\u3082\u306E\u3002 \u8A9E\u306F\u56F3\u7A2E\u3068\u63C3\u3048\u308B\u3002 line = \
|
|
7930
|
+
enum: ["line", "bar", "pie", "journey", "mind", "tree", "gantt", "funnel"],
|
|
7931
|
+
description: "\u3053\u306E phase \u3067\u8D77\u70B9\u304B\u3089\u63CF\u304F\u3082\u306E\u3002 \u8A9E\u306F\u56F3\u7A2E\u3068\u63C3\u3048\u308B\u3002 line / journey = \u7DDA\u304C\u5DE6\u7AEF\u304B\u3089\u53F3\u3078\u4F38\u3073\u308B / bar = \u68D2\u304C\u6A2A\u8EF8\u304B\u3089\u4E0A\u3078\u4F38\u3073\u308B / pie = \u6247\u304C 12 \u6642\u304B\u3089\u6642\u8A08\u56DE\u308A\u306B\u958B\u304F / mind = \u679D\u304C\u4E2D\u5FC3\u304B\u3089\u5916\u3078\u4F38\u3073\u308B / tree = \u679D\u304C\u6839\u304B\u3089\u4E0B\u3078\u4F38\u3073\u308B / gantt = \u5E2F\u304C\u5404\u59CB\u7AEF\u304B\u3089\u53F3\u3078\u4F38\u3073\u308B / funnel = \u6BB5\u304C\u4E0A\u7AEF\u304B\u3089\u9806\u306B\u7A4D\u307E\u308C\u308B"
|
|
7908
7932
|
},
|
|
7909
7933
|
tween: {
|
|
7910
7934
|
type: "object",
|
|
@@ -8111,6 +8135,6 @@ function isV05Source(src) {
|
|
|
8111
8135
|
return true;
|
|
8112
8136
|
}
|
|
8113
8137
|
|
|
8114
|
-
export { DIAGRAM_BOUNDARY_PADDING, DRAW_TARGETS, DRAW_WORDS, JSONを分解する, MAX_INPUT_BYTES, MAX_INPUT_ELEMENTS, MAX_PART_SCALE, NODE_KIND_ALIAS, NODE_KIND_VALID, PRESET_TYPES, RELATIVE_GAP_DEFAULT, TONE_ALIAS, TOP_LEVEL_KEYS, autoFix, compileToCdl, computeDiagramBoundingBox, countBytes, countDiagramElements, countDocElements, describeOversize, describeOversizeSource, diagramJsonSchema, isColorValue, jsonToDiagram, lintDiagram, measureActorBoxes, normalizePartScale, orderByDependency, parseFocusEntry, parseRelativePos, parseTextDsl, parseTextDslV05, partBoxInFrame, partDrawsInDiagram, partIsMeasurable, partRenderSize, partScaleFactor, partTargetScale, partTargetSize, partVisualSize, partsGridCenters, pointsOutside, rectsOverlap, resolveRelativePos, stripExternalPaint, stripQuotes, textDslToDiagram, validateDragonJson, writeActorPosition, 区間に広げる, 記法を分解する };
|
|
8138
|
+
export { DIAGRAM_BOUNDARY_PADDING, DRAW_TARGETS, DRAW_WORDS, JSONを分解する, MAX_INPUT_BYTES, MAX_INPUT_ELEMENTS, MAX_PART_SCALE, NODE_KIND_ALIAS, NODE_KIND_VALID, PHASE_ITEM_WORDS, PRESET_TYPES, RELATIVE_GAP_DEFAULT, TONE_ALIAS, TOP_LEVEL_KEYS, autoFix, compileToCdl, computeDiagramBoundingBox, countBytes, countDiagramElements, countDocElements, describeOversize, describeOversizeSource, diagramJsonSchema, isColorValue, jsonToDiagram, lintDiagram, measureActorBoxes, normalizePartScale, orderByDependency, parseFocusEntry, parseRelativePos, parseTextDsl, parseTextDslV05, partBoxInFrame, partDrawsInDiagram, partIsMeasurable, partRenderSize, partScaleFactor, partTargetScale, partTargetSize, partVisualSize, partsGridCenters, pointsOutside, rectsOverlap, resolveRelativePos, stripExternalPaint, stripQuotes, textDslToDiagram, validateDragonJson, writeActorPosition, 区間に広げる, 記法を分解する };
|
|
8115
8139
|
//# sourceMappingURL=index.js.map
|
|
8116
8140
|
//# sourceMappingURL=index.js.map
|