@cardenelabs/dragon 0.43.0 → 0.44.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/cli.cjs +2337 -627
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2337 -627
- package/dist/cli.js.map +1 -1
- package/dist/export.cjs +2193 -619
- package/dist/export.cjs.map +1 -1
- package/dist/export.d.cts +1 -1
- package/dist/export.d.ts +1 -1
- package/dist/export.js +2193 -619
- package/dist/export.js.map +1 -1
- package/dist/index.cjs +2377 -644
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -3
- package/dist/index.d.ts +55 -3
- package/dist/index.js +2377 -644
- package/dist/index.js.map +1 -1
- package/dist/{ink-B6s_SMXG.d.cts → ink-DeDtzaTL.d.cts} +27 -3
- package/dist/{ink-B6s_SMXG.d.ts → ink-DeDtzaTL.d.ts} +27 -3
- package/dist/node.cjs +1932 -680
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1932 -680
- package/dist/node.js.map +1 -1
- package/dist/player.global.js +3 -3
- package/package.json +1 -1
- package/src/field-messages.ts +6 -0
- package/src/index.ts +4 -0
- package/src/layout/lineup.ts +219 -0
- package/src/look/values.ts +31 -2
- package/src/messages.ts +54 -0
- package/src/parser.ts +123 -1
- package/src/printer.ts +30 -1
- package/src/render/lineup.ts +184 -0
- package/src/render/parts.ts +16 -7
- package/src/render/svg.ts +34 -6
- package/src/render/tree.ts +3 -2
- package/src/schema.ts +52 -4
- package/src/schemas/diagram.schema.json +145 -22
- package/src/schemas/validate-diagram.js +1 -1
- package/src/timeline.ts +14 -0
- package/src/words.ts +15 -2
|
@@ -119,7 +119,10 @@ type DiagramEvent = {
|
|
|
119
119
|
} | {
|
|
120
120
|
type: "now";
|
|
121
121
|
to: number;
|
|
122
|
-
} | TimeMarkEvent | TimeSpanEvent | TreeLeaf | TreeNode
|
|
122
|
+
} | TimeMarkEvent | TimeSpanEvent | TreeLeaf | TreeNode | LineupOrder | {
|
|
123
|
+
type: "seal" | "open" | "pick";
|
|
124
|
+
box: string;
|
|
125
|
+
} | LineupStamp;
|
|
123
126
|
/** 時間軸の図 (#3165) の、印の列 `row` の `from` から `to` の目盛りの印の色を変える出来事 */
|
|
124
127
|
interface TimeMarkEvent {
|
|
125
128
|
type: "mark";
|
|
@@ -207,6 +210,24 @@ interface TreeNode {
|
|
|
207
210
|
children: string[];
|
|
208
211
|
hash?: string;
|
|
209
212
|
}
|
|
213
|
+
/** 列の図 (#3239) の、列 `box` の並びを `items` に書き換える出来事。前の段との差分を描く部品が滑る動きに変える */
|
|
214
|
+
interface LineupOrder {
|
|
215
|
+
type: "line";
|
|
216
|
+
box: string;
|
|
217
|
+
items: string[];
|
|
218
|
+
}
|
|
219
|
+
/** 列の図の、列 `box` の右に `text` の札を押す出来事 */
|
|
220
|
+
interface LineupStamp {
|
|
221
|
+
type: "stamp";
|
|
222
|
+
box: string;
|
|
223
|
+
text: string;
|
|
224
|
+
}
|
|
225
|
+
/** 列の図のチップ。`color` を書かないチップは薄い色で、`label` を書かないチップは色だけで出す */
|
|
226
|
+
interface LineupItem {
|
|
227
|
+
id: string;
|
|
228
|
+
color?: Color;
|
|
229
|
+
label?: string;
|
|
230
|
+
}
|
|
210
231
|
/** 枝分かれの図の枝。上から宣言した順に帯を並べる */
|
|
211
232
|
interface GitBranch {
|
|
212
233
|
id: string;
|
|
@@ -233,7 +254,7 @@ interface Step {
|
|
|
233
254
|
}
|
|
234
255
|
interface Diagram {
|
|
235
256
|
version: number;
|
|
236
|
-
kind: "sequence" | "architecture" | "state" | "git" | "time" | "tree";
|
|
257
|
+
kind: "sequence" | "architecture" | "state" | "git" | "time" | "tree" | "lineup";
|
|
237
258
|
title: string;
|
|
238
259
|
view?: ViewMode;
|
|
239
260
|
regions?: Region[];
|
|
@@ -254,6 +275,9 @@ interface Diagram {
|
|
|
254
275
|
branches: GitBranch[];
|
|
255
276
|
};
|
|
256
277
|
time?: TimeSpec;
|
|
278
|
+
lineup?: {
|
|
279
|
+
items: LineupItem[];
|
|
280
|
+
};
|
|
257
281
|
}
|
|
258
282
|
interface FieldError {
|
|
259
283
|
/** 誤った欄の場所 (JSON Pointer) */
|
|
@@ -469,4 +493,4 @@ type Overlap = {
|
|
|
469
493
|
*/
|
|
470
494
|
declare function describeOverlap(overlap: Overlap, lang?: NotationLang): string;
|
|
471
495
|
|
|
472
|
-
export { type
|
|
496
|
+
export { type TimePoint as $, type SceneLabel as A, type Box as B, type CheckOptions as C, type Diagram as D, type SceneLifeline as E, type FieldError as F, type GitBranch as G, type ScenePath as H, type InkPart as I, type SceneRegion as J, type SceneSide as K, type Layout as L, type SceneStrip as M, type NotationLang as N, type Overlap as O, type Point as P, type SceneTrail as Q, type Rect as R, type SceneBox as S, type Theme as T, type StatePath as U, type ViewMode as V, type Step as W, type StepSource as X, type StripMeter as Y, type TimeMarkEvent as Z, type TimePeriod as _, type ColorKey as a, type TimeRow as a0, type TimeScale as a1, type TimeSpanEvent as a2, type TimeSpec as a3, type TreeLeaf as a4, type TreeNode as a5, describeOverlap as a6, resolvePalette as a7, validateDiagram as a8, type TextStyle as b, type Colors as c, type Carry as d, type Checked as e, type Color as f, type ColorName as g, DEFAULT_PALETTE as h, type DiagramEvent as i, FONTS as j, type Family as k, type GitCommit as l, type LabelSide as m, type LineupItem as n, type LineupOrder as o, type LineupStamp as p, type OverlapSpot as q, PALETTES as r, type Palette as s, READABLE_PX as t, type Region as u, type SceneAction as v, type SceneBadge as w, type SceneEdge as x, type SceneEnd as y, type SceneField as z };
|
|
@@ -119,7 +119,10 @@ type DiagramEvent = {
|
|
|
119
119
|
} | {
|
|
120
120
|
type: "now";
|
|
121
121
|
to: number;
|
|
122
|
-
} | TimeMarkEvent | TimeSpanEvent | TreeLeaf | TreeNode
|
|
122
|
+
} | TimeMarkEvent | TimeSpanEvent | TreeLeaf | TreeNode | LineupOrder | {
|
|
123
|
+
type: "seal" | "open" | "pick";
|
|
124
|
+
box: string;
|
|
125
|
+
} | LineupStamp;
|
|
123
126
|
/** 時間軸の図 (#3165) の、印の列 `row` の `from` から `to` の目盛りの印の色を変える出来事 */
|
|
124
127
|
interface TimeMarkEvent {
|
|
125
128
|
type: "mark";
|
|
@@ -207,6 +210,24 @@ interface TreeNode {
|
|
|
207
210
|
children: string[];
|
|
208
211
|
hash?: string;
|
|
209
212
|
}
|
|
213
|
+
/** 列の図 (#3239) の、列 `box` の並びを `items` に書き換える出来事。前の段との差分を描く部品が滑る動きに変える */
|
|
214
|
+
interface LineupOrder {
|
|
215
|
+
type: "line";
|
|
216
|
+
box: string;
|
|
217
|
+
items: string[];
|
|
218
|
+
}
|
|
219
|
+
/** 列の図の、列 `box` の右に `text` の札を押す出来事 */
|
|
220
|
+
interface LineupStamp {
|
|
221
|
+
type: "stamp";
|
|
222
|
+
box: string;
|
|
223
|
+
text: string;
|
|
224
|
+
}
|
|
225
|
+
/** 列の図のチップ。`color` を書かないチップは薄い色で、`label` を書かないチップは色だけで出す */
|
|
226
|
+
interface LineupItem {
|
|
227
|
+
id: string;
|
|
228
|
+
color?: Color;
|
|
229
|
+
label?: string;
|
|
230
|
+
}
|
|
210
231
|
/** 枝分かれの図の枝。上から宣言した順に帯を並べる */
|
|
211
232
|
interface GitBranch {
|
|
212
233
|
id: string;
|
|
@@ -233,7 +254,7 @@ interface Step {
|
|
|
233
254
|
}
|
|
234
255
|
interface Diagram {
|
|
235
256
|
version: number;
|
|
236
|
-
kind: "sequence" | "architecture" | "state" | "git" | "time" | "tree";
|
|
257
|
+
kind: "sequence" | "architecture" | "state" | "git" | "time" | "tree" | "lineup";
|
|
237
258
|
title: string;
|
|
238
259
|
view?: ViewMode;
|
|
239
260
|
regions?: Region[];
|
|
@@ -254,6 +275,9 @@ interface Diagram {
|
|
|
254
275
|
branches: GitBranch[];
|
|
255
276
|
};
|
|
256
277
|
time?: TimeSpec;
|
|
278
|
+
lineup?: {
|
|
279
|
+
items: LineupItem[];
|
|
280
|
+
};
|
|
257
281
|
}
|
|
258
282
|
interface FieldError {
|
|
259
283
|
/** 誤った欄の場所 (JSON Pointer) */
|
|
@@ -469,4 +493,4 @@ type Overlap = {
|
|
|
469
493
|
*/
|
|
470
494
|
declare function describeOverlap(overlap: Overlap, lang?: NotationLang): string;
|
|
471
495
|
|
|
472
|
-
export { type
|
|
496
|
+
export { type TimePoint as $, type SceneLabel as A, type Box as B, type CheckOptions as C, type Diagram as D, type SceneLifeline as E, type FieldError as F, type GitBranch as G, type ScenePath as H, type InkPart as I, type SceneRegion as J, type SceneSide as K, type Layout as L, type SceneStrip as M, type NotationLang as N, type Overlap as O, type Point as P, type SceneTrail as Q, type Rect as R, type SceneBox as S, type Theme as T, type StatePath as U, type ViewMode as V, type Step as W, type StepSource as X, type StripMeter as Y, type TimeMarkEvent as Z, type TimePeriod as _, type ColorKey as a, type TimeRow as a0, type TimeScale as a1, type TimeSpanEvent as a2, type TimeSpec as a3, type TreeLeaf as a4, type TreeNode as a5, describeOverlap as a6, resolvePalette as a7, validateDiagram as a8, type TextStyle as b, type Colors as c, type Carry as d, type Checked as e, type Color as f, type ColorName as g, DEFAULT_PALETTE as h, type DiagramEvent as i, FONTS as j, type Family as k, type GitCommit as l, type LabelSide as m, type LineupItem as n, type LineupOrder as o, type LineupStamp as p, type OverlapSpot as q, PALETTES as r, type Palette as s, READABLE_PX as t, type Region as u, type SceneAction as v, type SceneBadge as w, type SceneEdge as x, type SceneEnd as y, type SceneField as z };
|