@diagrammo/dgmo 0.71.0 → 0.72.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/advanced.d.ts +34 -26
- package/dist/advanced.js +30 -30
- package/dist/block.js +5 -5
- package/dist/chart-meta.js +1 -1
- package/dist/{chunk-YYVTBZZC.js → chunk-24YPR5EH.js} +1 -1
- package/dist/{chunk-LXGUK56B.js → chunk-2OTYNNHS.js} +2 -2
- package/dist/{chunk-LJS4Z326.js → chunk-2VBJCTSG.js} +2 -2
- package/dist/{chunk-2JY7KE7C.js → chunk-66VHK7PP.js} +2 -2
- package/dist/{chunk-C3MVZ7EW.js → chunk-6DGMS2WJ.js} +2 -2
- package/dist/{chunk-HTGYAMOK.js → chunk-6OAKQTXQ.js} +2 -2
- package/dist/{chunk-XJZSN42P.js → chunk-7RAWNJI5.js} +33 -31
- package/dist/{chunk-IWNHEK5K.js → chunk-7U3NDE7T.js} +2 -2
- package/dist/{chunk-ISKO4MQ5.js → chunk-DHKVHP3Y.js} +2 -2
- package/dist/{chunk-T3LNWU7B.js → chunk-DZ34UUXC.js} +3 -3
- package/dist/{chunk-CH4WODSG.js → chunk-FTPNAYL2.js} +16 -4
- package/dist/{chunk-722TKHMS.js → chunk-GCTKJDLY.js} +2 -2
- package/dist/{chunk-LUI425JB.js → chunk-GK4AU57A.js} +2 -2
- package/dist/{chunk-ENJWB5LU.js → chunk-HKL66CKW.js} +21 -17
- package/dist/{chunk-PLSTP7P4.js → chunk-HZQCKXPB.js} +31 -346
- package/dist/{chunk-6EDBUKC7.js → chunk-IXVK7XCN.js} +2 -2
- package/dist/{chunk-7REARI5N.js → chunk-L3XB446I.js} +2 -2
- package/dist/{chunk-UIBPFSIT.js → chunk-MUVASOBD.js} +3 -3
- package/dist/{chunk-CR5WIA6I.js → chunk-N34OTOGH.js} +11 -2
- package/dist/{chunk-TGGKBY22.js → chunk-N5247W2W.js} +2 -2
- package/dist/{chunk-RNSGPTOZ.js → chunk-O4OVVK6J.js} +2 -2
- package/dist/{chunk-5GTYY2XV.js → chunk-P6RPHRX7.js} +2 -2
- package/dist/{chunk-IFJIYUI6.js → chunk-PKTRDOBI.js} +2 -2
- package/dist/{chunk-FAJS2N4O.js → chunk-QITH5XOX.js} +2 -2
- package/dist/{chunk-YCOGUPHL.js → chunk-U4NFAWQW.js} +2 -2
- package/dist/{chunk-X2NX2SK6.js → chunk-UCGEBFUC.js} +2 -2
- package/dist/{chunk-XQW4KFJ4.js → chunk-UF3EALKC.js} +2 -2
- package/dist/{chunk-UVAOL2EO.js → chunk-UKOOGXRF.js} +284 -22
- package/dist/{chunk-ZNHPCITV.js → chunk-VLXYWPPE.js} +2 -2
- package/dist/{chunk-IQ4W4Q2R.js → chunk-WRWUZ2C4.js} +2 -2
- package/dist/{dgmo-router-J6OWNMEJ.js → dgmo-router-O55I5UXN.js} +2 -2
- package/dist/{flowchart-renderer-HB277GNE.js → flowchart-renderer-JMGOCLTQ.js} +3 -3
- package/dist/index.js +9 -5
- package/dist/{layout-BNR6ZDB6.js → layout-4D5JRUHX.js} +2 -2
- package/dist/{layout-N6ZOOAYT.js → layout-VMDNULKS.js} +3 -3
- package/dist/{layout-PBB2RQJ4.js → layout-VVTXA3W2.js} +2 -2
- package/dist/{renderer-7VPABTMS.js → renderer-2T2RAFWX.js} +4 -4
- package/dist/{renderer-35HBBPIQ.js → renderer-4DFEFP4X.js} +3 -3
- package/dist/{renderer-4CUV63GT.js → renderer-ACGZ5KJG.js} +3 -3
- package/dist/{renderer-V3PN5ZQS.js → renderer-B4Q6LUW2.js} +3 -3
- package/dist/{renderer-3DSU72CP.js → renderer-CB44E262.js} +4 -4
- package/dist/{renderer-4ORE7HJ3.js → renderer-CL4X5S3T.js} +3 -3
- package/dist/{renderer-S5MGQHRQ.js → renderer-E42I44WZ.js} +3 -3
- package/dist/{renderer-JWSO5O2L.js → renderer-IH5C7NQT.js} +3 -3
- package/dist/{renderer-5FQFMCBZ.js → renderer-IZFO3G22.js} +3 -3
- package/dist/{renderer-BQWAUDEF.js → renderer-K73COK5L.js} +3 -3
- package/dist/{renderer-5YV6KP4U.js → renderer-UPTO25OX.js} +4 -4
- package/dist/{renderer-KFWZPVYT.js → renderer-VEN6AIWW.js} +3 -3
- package/dist/{renderer-ZEPPPA3W.js → renderer-VP4DPLDY.js} +3 -3
- package/dist/{renderer-JFZVWH2G.js → renderer-W7JC2CTQ.js} +3 -3
- package/dist/{renderer-LVAUI6T6.js → renderer-WLA3NQCC.js} +3 -3
- package/dist/{renderer-FCIOD2QK.js → renderer-XR4SVKNE.js} +3 -3
- package/dist/{renderer-7BGC4KPZ.js → renderer-Y3D36RIT.js} +3 -3
- package/dist/{renderer-QOWN3XDI.js → renderer-Y4VC3VH4.js} +3 -3
- package/dist/{renderer-DGZDRRJW.js → renderer-YROML2KW.js} +4 -4
- package/dist/{renderer-ANWAX5QO.js → renderer-ZRHTC24Q.js} +3 -3
- package/dist/{state-renderer-776LP3NE.js → state-renderer-FJ2GT4MU.js} +3 -3
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-FJ57274M.js";
|
|
7
7
|
import {
|
|
8
8
|
ScaleContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-24YPR5EH.js";
|
|
10
10
|
import {
|
|
11
11
|
serializeSvg
|
|
12
12
|
} from "./chunk-RU2HHHYA.js";
|
|
@@ -168,6 +168,14 @@ var COLUMN_RADIUS = 8;
|
|
|
168
168
|
var COLUMN_HEADER_RADIUS = 8;
|
|
169
169
|
var COLLAPSED_COLUMN_WIDTH = 40;
|
|
170
170
|
var COLLAPSED_LANE_HEIGHT = 26;
|
|
171
|
+
var COLLAPSED_CHIP_HEIGHT = 16;
|
|
172
|
+
var COLLAPSED_CHIP_GAP = 4;
|
|
173
|
+
var COLLAPSED_CHIP_INSET = 6;
|
|
174
|
+
var COLLAPSED_CHIP_RADIUS = 5;
|
|
175
|
+
var COLLAPSED_NAME_GAP = 10;
|
|
176
|
+
var COLLAPSED_CHIP_MAX_SLOTS = 4;
|
|
177
|
+
var COLLAPSED_CHIP_MIN_WIDTH = 22;
|
|
178
|
+
var COLLAPSED_CHIP_LABEL_PADDING = 10;
|
|
171
179
|
function resolveCardTagMeta(card, tagGroups, hiddenMetaGroups) {
|
|
172
180
|
const meta = [];
|
|
173
181
|
for (const group of tagGroups) {
|
|
@@ -200,7 +208,38 @@ function resolveCardTagColor(card, tagGroups, activeTagGroup) {
|
|
|
200
208
|
);
|
|
201
209
|
return entry?.color;
|
|
202
210
|
}
|
|
203
|
-
function
|
|
211
|
+
function collapsedChips(cards, group) {
|
|
212
|
+
if (!group) return [];
|
|
213
|
+
const legendOrder = new Map(
|
|
214
|
+
group.entries.map((entry, index) => [entry.value.toLowerCase(), index])
|
|
215
|
+
);
|
|
216
|
+
const tagKey = tagAttrKey(group.name);
|
|
217
|
+
const byValue = /* @__PURE__ */ new Map();
|
|
218
|
+
for (const card of cards) {
|
|
219
|
+
const raw = card.tags[tagKey] ?? group.defaultValue;
|
|
220
|
+
if (!raw) continue;
|
|
221
|
+
const key = raw.toLowerCase();
|
|
222
|
+
const seen = byValue.get(key);
|
|
223
|
+
if (seen) {
|
|
224
|
+
seen.count++;
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
const entry = group.entries.find((e) => e.value.toLowerCase() === key);
|
|
228
|
+
byValue.set(key, {
|
|
229
|
+
value: entry?.value ?? raw,
|
|
230
|
+
count: 1,
|
|
231
|
+
...entry?.color !== void 0 && { color: entry.color }
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
const rank = (key) => legendOrder.get(key) ?? Number.MAX_SAFE_INTEGER;
|
|
235
|
+
return [...byValue.entries()].sort(
|
|
236
|
+
([aKey, a], [bKey, b]) => b.count - a.count || rank(aKey) - rank(bKey) || aKey.localeCompare(bKey)
|
|
237
|
+
).map(([, entry]) => entry);
|
|
238
|
+
}
|
|
239
|
+
function collapsedLaneLabel(laneName, total) {
|
|
240
|
+
return `${laneName} (${total})`;
|
|
241
|
+
}
|
|
242
|
+
function computeLayout(parsed, _palette, collapsedColumns, hiddenMetaGroups, sDiagramPadding = DIAGRAM_PADDING, sTitleHeight = TITLE_HEIGHT, sCardTitleFontSize = CARD_TITLE_FONT_SIZE, sColumnHeaderFontSize = COLUMN_HEADER_FONT_SIZE, sColumnHeaderHeight = COLUMN_HEADER_HEIGHT, sColumnPadding = COLUMN_PADDING, sCardPaddingX = CARD_PADDING_X, sCardPaddingY = CARD_PADDING_Y, sCardSeparatorGap = CARD_SEPARATOR_GAP, sCardMetaLineHeight = CARD_META_LINE_HEIGHT, sCardHeaderHeight = CARD_HEADER_HEIGHT, sCardMetaFontSize = CARD_META_FONT_SIZE, sCardGap = CARD_GAP, sColumnMinWidth = COLUMN_MIN_WIDTH, sColumnGap = COLUMN_GAP, sCollapsedColumnWidth = COLLAPSED_COLUMN_WIDTH, activeTagGroup = null, sCollapsedChipHeight = COLLAPSED_CHIP_HEIGHT, sCollapsedChipGap = COLLAPSED_CHIP_GAP, sCollapsedNameGap = COLLAPSED_NAME_GAP) {
|
|
204
243
|
const showTitle = !!parsed.title && parsed.options["no-title"] !== "on";
|
|
205
244
|
const headerHeight = showTitle ? sTitleHeight + 8 : 0;
|
|
206
245
|
const startY = sDiagramPadding + headerHeight;
|
|
@@ -270,6 +309,31 @@ function computeLayout(parsed, _palette, collapsedColumns, hiddenMetaGroups, sDi
|
|
|
270
309
|
cardLayouts
|
|
271
310
|
});
|
|
272
311
|
}
|
|
312
|
+
const layoutActiveGroup = activeTagGroup ? parsed.tagGroups.find(
|
|
313
|
+
(g) => g.name.toLowerCase() === activeTagGroup.toLowerCase()
|
|
314
|
+
) : void 0;
|
|
315
|
+
if (layoutActiveGroup) {
|
|
316
|
+
let nameExtent = 0;
|
|
317
|
+
let mostChips = 0;
|
|
318
|
+
for (const col of visibleColumns) {
|
|
319
|
+
if (!(collapsedColumns?.has(col.id) ?? false)) continue;
|
|
320
|
+
nameExtent = Math.max(
|
|
321
|
+
nameExtent,
|
|
322
|
+
measureText(col.name, sCardTitleFontSize, { bold: true })
|
|
323
|
+
);
|
|
324
|
+
mostChips = Math.max(
|
|
325
|
+
mostChips,
|
|
326
|
+
collapsedChips(col.cards, layoutActiveGroup).length
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
const slots = Math.min(mostChips, COLLAPSED_CHIP_MAX_SLOTS);
|
|
330
|
+
if (slots > 0) {
|
|
331
|
+
maxColumnHeight = Math.max(
|
|
332
|
+
maxColumnHeight,
|
|
333
|
+
sColumnHeaderHeight + sColumnPadding + nameExtent + sCollapsedNameGap + slots * sCollapsedChipHeight + (slots - 1) * sCollapsedChipGap + sColumnPadding
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
273
337
|
let currentX = sDiagramPadding;
|
|
274
338
|
for (const cl of columnLayouts) {
|
|
275
339
|
cl.x = currentX;
|
|
@@ -327,6 +391,11 @@ function renderKanban(container, parsed, palette, isDark, options) {
|
|
|
327
391
|
const sColumnHeaderRadius = ctx.structural(COLUMN_HEADER_RADIUS);
|
|
328
392
|
const sCollapsedColumnWidth = ctx.structural(COLLAPSED_COLUMN_WIDTH);
|
|
329
393
|
const sCollapsedLaneHeight = ctx.structural(COLLAPSED_LANE_HEIGHT);
|
|
394
|
+
const sCollapsedChipHeight = ctx.structural(COLLAPSED_CHIP_HEIGHT);
|
|
395
|
+
const sCollapsedChipGap = ctx.aesthetic(COLLAPSED_CHIP_GAP);
|
|
396
|
+
const sCollapsedChipInset = ctx.aesthetic(COLLAPSED_CHIP_INSET);
|
|
397
|
+
const sCollapsedChipRadius = ctx.structural(COLLAPSED_CHIP_RADIUS);
|
|
398
|
+
const sCollapsedNameGap = ctx.aesthetic(COLLAPSED_NAME_GAP);
|
|
330
399
|
const sTitleFontSize = ctx.text(TITLE_FONT_SIZE);
|
|
331
400
|
const sLaneHeaderWidth = ctx.structural(LANE_HEADER_WIDTH);
|
|
332
401
|
const sLaneGap = ctx.aesthetic(LANE_GAP);
|
|
@@ -350,7 +419,11 @@ function renderKanban(container, parsed, palette, isDark, options) {
|
|
|
350
419
|
sCardGap,
|
|
351
420
|
sColumnMinWidth,
|
|
352
421
|
sColumnGap,
|
|
353
|
-
sCollapsedColumnWidth
|
|
422
|
+
sCollapsedColumnWidth,
|
|
423
|
+
activeTagGroup,
|
|
424
|
+
sCollapsedChipHeight,
|
|
425
|
+
sCollapsedChipGap,
|
|
426
|
+
sCollapsedNameGap
|
|
354
427
|
);
|
|
355
428
|
const width = exportDims?.width ?? layout.totalWidth;
|
|
356
429
|
const height = exportDims?.height ?? layout.totalHeight;
|
|
@@ -441,12 +514,31 @@ function renderKanban(container, parsed, palette, isDark, options) {
|
|
|
441
514
|
sCardPaddingX,
|
|
442
515
|
sCardStrokeWidth,
|
|
443
516
|
sCardTitleFontSize,
|
|
444
|
-
sCardMetaFontSize
|
|
517
|
+
sCardMetaFontSize,
|
|
518
|
+
{
|
|
519
|
+
height: sCollapsedChipHeight,
|
|
520
|
+
gap: sCollapsedChipGap,
|
|
521
|
+
inset: sCollapsedChipInset,
|
|
522
|
+
radius: sCollapsedChipRadius,
|
|
523
|
+
nameGap: sCollapsedNameGap,
|
|
524
|
+
fontSize: sCardMetaFontSize
|
|
525
|
+
}
|
|
445
526
|
);
|
|
446
527
|
return;
|
|
447
528
|
}
|
|
448
529
|
const defaultColBg = isDark ? mix(palette.surface, palette.bg, 50) : mix(palette.surface, palette.bg, 30);
|
|
449
530
|
const defaultColHeaderBg = isDark ? mix(palette.surface, palette.bg, 70) : mix(palette.surface, palette.bg, 50);
|
|
531
|
+
const activeGroup = activeTagGroup ? parsed.tagGroups.find(
|
|
532
|
+
(g) => g.name.toLowerCase() === activeTagGroup.toLowerCase()
|
|
533
|
+
) : void 0;
|
|
534
|
+
const collapsedNameExtent = layout.columns.reduce(
|
|
535
|
+
(max, cl) => collapsedColumns?.has(cl.column.id) ?? false ? Math.max(
|
|
536
|
+
max,
|
|
537
|
+
measureText(cl.column.name, sCardTitleFontSize, { bold: true })
|
|
538
|
+
) : max,
|
|
539
|
+
0
|
|
540
|
+
);
|
|
541
|
+
const collapsedChipTop = sColumnHeaderHeight + sColumnPadding + collapsedNameExtent + sCollapsedNameGap;
|
|
450
542
|
for (const colLayout of layout.columns) {
|
|
451
543
|
const col = colLayout.column;
|
|
452
544
|
const isColCollapsed = collapsedColumns?.has(col.id) ?? false;
|
|
@@ -466,6 +558,53 @@ function renderKanban(container, parsed, palette, isDark, options) {
|
|
|
466
558
|
g.append("rect").attr("x", colLayout.x).attr("y", colLayout.y).attr("width", sCollapsedColumnWidth).attr("height", sColumnHeaderHeight).attr("rx", sColumnHeaderRadius).attr("fill", thisColHeaderBg);
|
|
467
559
|
g.append("text").attr("x", colLayout.x + sCollapsedColumnWidth / 2).attr("y", colLayout.y + sColumnHeaderHeight / 2).attr("dominant-baseline", "central").attr("font-size", sWipFontSize).attr("font-weight", "bold").attr("fill", col.color ? onHeaderText : palette.textMuted).attr("text-anchor", "middle").text(String(col.cards.length));
|
|
468
560
|
g.append("text").attr("x", colLayout.x + sCollapsedColumnWidth / 2).attr("y", colLayout.y + sColumnHeaderHeight + sColumnPadding).attr("font-size", sCardTitleFontSize).attr("font-weight", "bold").attr("fill", palette.text).attr("text-anchor", "middle").attr("writing-mode", "tb").text(col.name);
|
|
561
|
+
const chips = collapsedChips(col.cards, activeGroup);
|
|
562
|
+
if (chips.length > 0) {
|
|
563
|
+
const chipX = colLayout.x + sCollapsedChipInset;
|
|
564
|
+
const chipW = sCollapsedColumnWidth - sCollapsedChipInset * 2;
|
|
565
|
+
const step = sCollapsedChipHeight + sCollapsedChipGap;
|
|
566
|
+
const room = colLayout.height - collapsedChipTop - sColumnPadding;
|
|
567
|
+
const slots = Math.max(
|
|
568
|
+
0,
|
|
569
|
+
Math.floor((room + sCollapsedChipGap) / step)
|
|
570
|
+
);
|
|
571
|
+
const shown = chips.length > slots ? Math.max(0, slots - 1) : chips.length;
|
|
572
|
+
const hidden = chips.length - shown;
|
|
573
|
+
const cg = g.append("g").attr("class", "kanban-collapsed-chips");
|
|
574
|
+
const drawChip = (index, fill, stroke, label, title) => {
|
|
575
|
+
const y = colLayout.y + collapsedChipTop + index * step;
|
|
576
|
+
const chip = cg.append("g").attr("class", "kanban-collapsed-chip").attr("data-tag-value", title);
|
|
577
|
+
chip.append("rect").attr("x", chipX).attr("y", y).attr("width", chipW).attr("height", sCollapsedChipHeight).attr("rx", sCollapsedChipRadius).attr("fill", fill).attr("stroke", stroke).attr("stroke-width", 1);
|
|
578
|
+
chip.append("text").attr("x", chipX + chipW / 2).attr("y", y + sCollapsedChipHeight / 2).attr("dominant-baseline", "central").attr("text-anchor", "middle").attr("font-size", sCardMetaFontSize).attr("font-weight", "bold").attr(
|
|
579
|
+
"fill",
|
|
580
|
+
contrastText(
|
|
581
|
+
fill,
|
|
582
|
+
palette.textOnFillLight,
|
|
583
|
+
palette.textOnFillDark
|
|
584
|
+
)
|
|
585
|
+
).text(label);
|
|
586
|
+
};
|
|
587
|
+
for (let i = 0; i < shown; i++) {
|
|
588
|
+
const chip = chips[i];
|
|
589
|
+
const intent = chip.color ?? palette.textMuted;
|
|
590
|
+
drawChip(
|
|
591
|
+
i,
|
|
592
|
+
shapeFill(palette, intent, isDark, { mode: fillMode }),
|
|
593
|
+
intent,
|
|
594
|
+
String(chip.count),
|
|
595
|
+
chip.value
|
|
596
|
+
);
|
|
597
|
+
}
|
|
598
|
+
if (hidden > 0 && shown < slots) {
|
|
599
|
+
drawChip(
|
|
600
|
+
shown,
|
|
601
|
+
fillMode === "outline" ? baseBg : defaultColHeaderBg,
|
|
602
|
+
palette.textMuted,
|
|
603
|
+
`+${hidden}`,
|
|
604
|
+
`${hidden} more`
|
|
605
|
+
);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
469
608
|
continue;
|
|
470
609
|
}
|
|
471
610
|
g.append("rect").attr("x", colLayout.x).attr("y", colLayout.y).attr("width", colLayout.width).attr("height", colLayout.height).attr("rx", sColumnRadius).attr("fill", fillMode === "outline" ? baseBg : thisColBg).call((sel) => {
|
|
@@ -558,6 +697,12 @@ function renderKanbanForExport(content, theme, palette) {
|
|
|
558
697
|
}
|
|
559
698
|
var LANE_HEADER_WIDTH = 140;
|
|
560
699
|
var LANE_GAP = 14;
|
|
700
|
+
var LANE_HEADER_TRIM = 8;
|
|
701
|
+
var LANE_LABEL_X = 10;
|
|
702
|
+
var LANE_DOT_ADVANCE = 14;
|
|
703
|
+
var LANE_LABEL_BASELINE = 20;
|
|
704
|
+
var COLLAPSED_LANE_FONT_SIZE = 10;
|
|
705
|
+
var LANE_FONT_SIZE = 12;
|
|
561
706
|
function drawSwimlaneIcon(parent, x, y, isActive, palette) {
|
|
562
707
|
const iconG = parent.append("g").attr("class", "kanban-swimlane-icon").attr("transform", `translate(${x}, ${y})`);
|
|
563
708
|
iconG.append("rect").attr("x", -5).attr("y", -5).attr("width", 22).attr("height", 18).attr("fill", "transparent");
|
|
@@ -611,11 +756,66 @@ function computeCardHeight(card, tagGroups, hiddenMetaGroups, sCardSeparatorGap
|
|
|
611
756
|
const metaHeight = metaCount > 0 ? sCardSeparatorGap + 1 + sCardPaddingY + metaCount * sCardMetaLineHeight : 0;
|
|
612
757
|
return sCardHeaderHeight + sCardPaddingY + metaHeight;
|
|
613
758
|
}
|
|
614
|
-
function computeSwimlaneLayout(parsed, buckets, baseLayout, collapsedLanes, collapsedColumns, hiddenMetaGroups, sDiagramPadding = DIAGRAM_PADDING, sTitleHeight = TITLE_HEIGHT, sLaneHeaderWidth = LANE_HEADER_WIDTH, sColumnGap = COLUMN_GAP, sCollapsedColumnWidth = COLLAPSED_COLUMN_WIDTH, sColumnHeaderHeight = COLUMN_HEADER_HEIGHT, sColumnPadding = COLUMN_PADDING, sCardHeaderHeight = CARD_HEADER_HEIGHT, sCardPaddingY = CARD_PADDING_Y, sCardGap = CARD_GAP, sCollapsedLaneHeight = COLLAPSED_LANE_HEIGHT, sLaneGap = LANE_GAP, sCardSeparatorGap = CARD_SEPARATOR_GAP, sCardMetaLineHeight = CARD_META_LINE_HEIGHT) {
|
|
759
|
+
function computeSwimlaneLayout(parsed, buckets, baseLayout, collapsedLanes, collapsedColumns, hiddenMetaGroups, sDiagramPadding = DIAGRAM_PADDING, sTitleHeight = TITLE_HEIGHT, sLaneHeaderWidth = LANE_HEADER_WIDTH, sColumnGap = COLUMN_GAP, sCollapsedColumnWidth = COLLAPSED_COLUMN_WIDTH, sColumnHeaderHeight = COLUMN_HEADER_HEIGHT, sColumnPadding = COLUMN_PADDING, sCardHeaderHeight = CARD_HEADER_HEIGHT, sCardPaddingY = CARD_PADDING_Y, sCardGap = CARD_GAP, sCollapsedLaneHeight = COLLAPSED_LANE_HEIGHT, sLaneGap = LANE_GAP, sCardSeparatorGap = CARD_SEPARATOR_GAP, sCardMetaLineHeight = CARD_META_LINE_HEIGHT, activeGroup, chipStyle) {
|
|
615
760
|
const headerHeight = parsed.title && parsed.options["no-title"] !== "on" ? sTitleHeight + 8 : 0;
|
|
616
761
|
const startY = sDiagramPadding + headerHeight;
|
|
762
|
+
const laneChipsByLane = /* @__PURE__ */ new Map();
|
|
763
|
+
let chipStartX = 0;
|
|
764
|
+
let chipWidth = 0;
|
|
765
|
+
let chipSlots = 0;
|
|
766
|
+
if (activeGroup && chipStyle) {
|
|
767
|
+
let widestLabel = 0;
|
|
768
|
+
for (const bucket of buckets) {
|
|
769
|
+
if (!(collapsedLanes?.has(bucket.laneName) ?? false)) continue;
|
|
770
|
+
const cards = Object.values(bucket.cellsByColumn).flat();
|
|
771
|
+
const chips = collapsedChips(cards, activeGroup);
|
|
772
|
+
if (chips.length === 0) continue;
|
|
773
|
+
laneChipsByLane.set(bucket.laneName, chips);
|
|
774
|
+
chipSlots = Math.max(chipSlots, chips.length);
|
|
775
|
+
widestLabel = Math.max(
|
|
776
|
+
widestLabel,
|
|
777
|
+
LANE_LABEL_X + (bucket.laneColor ? LANE_DOT_ADVANCE : 0) + measureText(
|
|
778
|
+
collapsedLaneLabel(bucket.laneName, cards.length),
|
|
779
|
+
COLLAPSED_LANE_FONT_SIZE
|
|
780
|
+
)
|
|
781
|
+
);
|
|
782
|
+
}
|
|
783
|
+
chipSlots = Math.min(chipSlots, COLLAPSED_CHIP_MAX_SLOTS);
|
|
784
|
+
if (chipSlots > 0) {
|
|
785
|
+
let widestChipLabel = 0;
|
|
786
|
+
for (const chips of laneChipsByLane.values()) {
|
|
787
|
+
const shown = chips.length > chipSlots ? chipSlots - 1 : chips.length;
|
|
788
|
+
for (let i = 0; i < shown; i++) {
|
|
789
|
+
widestChipLabel = Math.max(
|
|
790
|
+
widestChipLabel,
|
|
791
|
+
measureText(String(chips[i].count), chipStyle.fontSize, {
|
|
792
|
+
bold: true
|
|
793
|
+
})
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
if (chips.length > shown) {
|
|
797
|
+
widestChipLabel = Math.max(
|
|
798
|
+
widestChipLabel,
|
|
799
|
+
measureText(`+${chips.length - shown}`, chipStyle.fontSize, {
|
|
800
|
+
bold: true
|
|
801
|
+
})
|
|
802
|
+
);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
chipWidth = Math.max(
|
|
806
|
+
COLLAPSED_CHIP_MIN_WIDTH,
|
|
807
|
+
widestChipLabel + COLLAPSED_CHIP_LABEL_PADDING
|
|
808
|
+
);
|
|
809
|
+
chipStartX = widestLabel + chipStyle.nameGap;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
const ribbonWidth = chipSlots > 0 ? chipSlots * chipWidth + (chipSlots - 1) * (chipStyle?.gap ?? 0) : 0;
|
|
813
|
+
const laneHeaderWidth = ribbonWidth > 0 ? Math.max(
|
|
814
|
+
sLaneHeaderWidth,
|
|
815
|
+
chipStartX + ribbonWidth + (chipStyle?.inset ?? 0) + LANE_HEADER_TRIM
|
|
816
|
+
) : sLaneHeaderWidth;
|
|
617
817
|
const columnXs = [];
|
|
618
|
-
let currentX = sDiagramPadding +
|
|
818
|
+
let currentX = sDiagramPadding + laneHeaderWidth;
|
|
619
819
|
for (const col of baseLayout.columns) {
|
|
620
820
|
const isColCollapsed = collapsedColumns?.has(col.column.id) ?? false;
|
|
621
821
|
const w = isColCollapsed ? sCollapsedColumnWidth : col.width;
|
|
@@ -634,7 +834,13 @@ function computeSwimlaneLayout(parsed, buckets, baseLayout, collapsedLanes, coll
|
|
|
634
834
|
cards: bucket.cellsByColumn[colInfo.column.id] ?? [],
|
|
635
835
|
cardLayouts: []
|
|
636
836
|
}));
|
|
637
|
-
lanes.push({
|
|
837
|
+
lanes.push({
|
|
838
|
+
bucket,
|
|
839
|
+
y: laneY,
|
|
840
|
+
height: sCollapsedLaneHeight,
|
|
841
|
+
cells: cells2,
|
|
842
|
+
chips: laneChipsByLane.get(bucket.laneName) ?? []
|
|
843
|
+
});
|
|
638
844
|
laneY += sCollapsedLaneHeight + sLaneGap;
|
|
639
845
|
continue;
|
|
640
846
|
}
|
|
@@ -693,15 +899,35 @@ function computeSwimlaneLayout(parsed, buckets, baseLayout, collapsedLanes, coll
|
|
|
693
899
|
}
|
|
694
900
|
return { column: tmp.column, cards: tmp.cards, cardLayouts };
|
|
695
901
|
});
|
|
696
|
-
lanes.push({ bucket, y: laneY, height: laneHeight, cells });
|
|
902
|
+
lanes.push({ bucket, y: laneY, height: laneHeight, cells, chips: [] });
|
|
697
903
|
laneY += laneHeight + sLaneGap;
|
|
698
904
|
}
|
|
699
905
|
const totalHeight = laneY - sLaneGap + sColumnPadding + sDiagramPadding;
|
|
700
|
-
return {
|
|
906
|
+
return {
|
|
907
|
+
columnXs,
|
|
908
|
+
lanes,
|
|
909
|
+
totalWidth,
|
|
910
|
+
totalHeight,
|
|
911
|
+
startY,
|
|
912
|
+
laneHeaderWidth,
|
|
913
|
+
laneChips: { startX: chipStartX, chipWidth, slots: chipSlots }
|
|
914
|
+
};
|
|
701
915
|
}
|
|
702
|
-
function renderSwimlaneBoard(svg, parsed, baseLayout, swimlaneGroup, palette, isDark, activeTagGroup, collapsedLanes, collapsedColumns, hiddenMetaGroups, sDiagramPadding = DIAGRAM_PADDING, sTitleHeight = TITLE_HEIGHT, sLaneHeaderWidth = LANE_HEADER_WIDTH, sColumnGap = COLUMN_GAP, sCollapsedColumnWidth = COLLAPSED_COLUMN_WIDTH, sColumnHeaderHeight = COLUMN_HEADER_HEIGHT, sColumnPadding = COLUMN_PADDING, sCardHeaderHeight = CARD_HEADER_HEIGHT, sCardPaddingY = CARD_PADDING_Y, sCardGap = CARD_GAP, sCollapsedLaneHeight = COLLAPSED_LANE_HEIGHT, sLaneGap = LANE_GAP, sCardSeparatorGap = CARD_SEPARATOR_GAP, sCardMetaLineHeight = CARD_META_LINE_HEIGHT, sColumnHeaderFontSize = COLUMN_HEADER_FONT_SIZE, sColumnRadius = COLUMN_RADIUS, sColumnHeaderRadius = COLUMN_HEADER_RADIUS, sWipFontSize = WIP_FONT_SIZE, sCardRadius = CARD_RADIUS, sCardPaddingX = CARD_PADDING_X, sCardStrokeWidth = CARD_STROKE_WIDTH, sCardTitleFontSize = CARD_TITLE_FONT_SIZE, sCardMetaFontSize = CARD_META_FONT_SIZE
|
|
916
|
+
function renderSwimlaneBoard(svg, parsed, baseLayout, swimlaneGroup, palette, isDark, activeTagGroup, collapsedLanes, collapsedColumns, hiddenMetaGroups, sDiagramPadding = DIAGRAM_PADDING, sTitleHeight = TITLE_HEIGHT, sLaneHeaderWidth = LANE_HEADER_WIDTH, sColumnGap = COLUMN_GAP, sCollapsedColumnWidth = COLLAPSED_COLUMN_WIDTH, sColumnHeaderHeight = COLUMN_HEADER_HEIGHT, sColumnPadding = COLUMN_PADDING, sCardHeaderHeight = CARD_HEADER_HEIGHT, sCardPaddingY = CARD_PADDING_Y, sCardGap = CARD_GAP, sCollapsedLaneHeight = COLLAPSED_LANE_HEIGHT, sLaneGap = LANE_GAP, sCardSeparatorGap = CARD_SEPARATOR_GAP, sCardMetaLineHeight = CARD_META_LINE_HEIGHT, sColumnHeaderFontSize = COLUMN_HEADER_FONT_SIZE, sColumnRadius = COLUMN_RADIUS, sColumnHeaderRadius = COLUMN_HEADER_RADIUS, sWipFontSize = WIP_FONT_SIZE, sCardRadius = CARD_RADIUS, sCardPaddingX = CARD_PADDING_X, sCardStrokeWidth = CARD_STROKE_WIDTH, sCardTitleFontSize = CARD_TITLE_FONT_SIZE, sCardMetaFontSize = CARD_META_FONT_SIZE, chipStyle = {
|
|
917
|
+
height: COLLAPSED_CHIP_HEIGHT,
|
|
918
|
+
gap: COLLAPSED_CHIP_GAP,
|
|
919
|
+
inset: COLLAPSED_CHIP_INSET,
|
|
920
|
+
radius: COLLAPSED_CHIP_RADIUS,
|
|
921
|
+
nameGap: COLLAPSED_NAME_GAP,
|
|
922
|
+
fontSize: CARD_META_FONT_SIZE
|
|
923
|
+
}) {
|
|
703
924
|
const visibleColumns = parsed.columns.filter((c) => !isArchiveColumn(c.name));
|
|
704
925
|
const buckets = bucketCardsBySwimlane(visibleColumns, swimlaneGroup);
|
|
926
|
+
const fillMode = fillModeFromOptions(parsed.options);
|
|
927
|
+
const baseBg = themeBaseBg(palette, isDark);
|
|
928
|
+
const activeGroup = activeTagGroup && activeTagGroup.toLowerCase() !== swimlaneGroup.name.toLowerCase() ? parsed.tagGroups.find(
|
|
929
|
+
(g) => g.name.toLowerCase() === activeTagGroup.toLowerCase()
|
|
930
|
+
) : void 0;
|
|
705
931
|
const grid = computeSwimlaneLayout(
|
|
706
932
|
parsed,
|
|
707
933
|
buckets,
|
|
@@ -722,7 +948,9 @@ function renderSwimlaneBoard(svg, parsed, baseLayout, swimlaneGroup, palette, is
|
|
|
722
948
|
sCollapsedLaneHeight,
|
|
723
949
|
sLaneGap,
|
|
724
950
|
sCardSeparatorGap,
|
|
725
|
-
sCardMetaLineHeight
|
|
951
|
+
sCardMetaLineHeight,
|
|
952
|
+
activeGroup,
|
|
953
|
+
chipStyle
|
|
726
954
|
);
|
|
727
955
|
const currentW = parseFloat(svg.attr("width") || "0");
|
|
728
956
|
const currentH = parseFloat(svg.attr("height") || "0");
|
|
@@ -746,9 +974,7 @@ function renderSwimlaneBoard(svg, parsed, baseLayout, swimlaneGroup, palette, is
|
|
|
746
974
|
const col = colInfo.column;
|
|
747
975
|
const isColCollapsed = collapsedColumns?.has(col.id) ?? false;
|
|
748
976
|
const headerG = svg.append("g").attr("class", "kanban-column kanban-column-header").attr("data-column-id", col.id).attr("data-line-number", col.lineNumber);
|
|
749
|
-
const colHeaderBg = col.color ? shapeFill(palette, col.color, isDark, {
|
|
750
|
-
mode: fillModeFromOptions(parsed.options)
|
|
751
|
-
}) : defaultColHeaderBg;
|
|
977
|
+
const colHeaderBg = col.color ? shapeFill(palette, col.color, isDark, { mode: fillMode }) : defaultColHeaderBg;
|
|
752
978
|
headerG.append("rect").attr("x", colInfo.x).attr("y", grid.startY).attr("width", colInfo.width).attr("height", sColumnHeaderHeight).attr("rx", sColumnHeaderRadius).attr("fill", colHeaderBg);
|
|
753
979
|
if (isColCollapsed) {
|
|
754
980
|
headerG.append("text").attr("x", colInfo.x + colInfo.width / 2).attr("y", grid.startY + sColumnHeaderHeight / 2).attr("dominant-baseline", "central").attr("font-size", sWipFontSize).attr("font-weight", "bold").attr("fill", palette.textMuted).attr("text-anchor", "middle").text(String(col.cards.length));
|
|
@@ -766,17 +992,53 @@ function renderSwimlaneBoard(svg, parsed, baseLayout, swimlaneGroup, palette, is
|
|
|
766
992
|
"transform",
|
|
767
993
|
`translate(${sDiagramPadding}, ${lane.y - sColumnPadding})`
|
|
768
994
|
);
|
|
769
|
-
headerG.append("rect").attr("x", 0).attr("y", 0).attr("width",
|
|
770
|
-
let labelX =
|
|
995
|
+
headerG.append("rect").attr("x", 0).attr("y", 0).attr("width", grid.laneHeaderWidth - LANE_HEADER_TRIM).attr("height", lane.height + sColumnPadding * 2).attr("rx", sColumnRadius).attr("fill", defaultColBg);
|
|
996
|
+
let labelX = LANE_LABEL_X;
|
|
771
997
|
const totalCards = lane.cells.reduce((s, c) => s + c.cards.length, 0);
|
|
772
998
|
if (lane.bucket.laneColor) {
|
|
773
999
|
headerG.append("circle").attr("cx", labelX + 4).attr("cy", 16).attr("r", 4).attr("fill", lane.bucket.laneColor);
|
|
774
|
-
labelX +=
|
|
1000
|
+
labelX += LANE_DOT_ADVANCE;
|
|
775
1001
|
}
|
|
776
1002
|
if (isLaneCollapsed) {
|
|
777
|
-
headerG.append("text").attr("x", labelX).attr("y",
|
|
1003
|
+
headerG.append("text").attr("x", labelX).attr("y", LANE_LABEL_BASELINE).attr("font-size", COLLAPSED_LANE_FONT_SIZE).attr("fill", palette.textMuted).text(collapsedLaneLabel(lane.bucket.laneName, totalCards));
|
|
778
1004
|
} else {
|
|
779
|
-
headerG.append("text").attr("x", labelX).attr("y",
|
|
1005
|
+
headerG.append("text").attr("x", labelX).attr("y", LANE_LABEL_BASELINE).attr("font-size", LANE_FONT_SIZE).attr("font-weight", "bold").attr("fill", lane.bucket.isFallback ? palette.textMuted : palette.text).text(lane.bucket.laneName);
|
|
1006
|
+
}
|
|
1007
|
+
if (isLaneCollapsed && lane.chips.length > 0 && grid.laneChips.slots > 0) {
|
|
1008
|
+
const { startX, chipWidth, slots } = grid.laneChips;
|
|
1009
|
+
const shown = lane.chips.length > slots ? Math.max(0, slots - 1) : lane.chips.length;
|
|
1010
|
+
const hidden = lane.chips.length - shown;
|
|
1011
|
+
const step = chipWidth + chipStyle.gap;
|
|
1012
|
+
const chipY = LANE_LABEL_BASELINE - chipStyle.height / 2 - 4;
|
|
1013
|
+
const cg = headerG.append("g").attr("class", "kanban-collapsed-chips");
|
|
1014
|
+
const drawChip = (index, fill, stroke, label, title) => {
|
|
1015
|
+
const chip = cg.append("g").attr("class", "kanban-collapsed-chip").attr("data-tag-value", title);
|
|
1016
|
+
chip.append("rect").attr("x", startX + index * step).attr("y", chipY).attr("width", chipWidth).attr("height", chipStyle.height).attr("rx", chipStyle.radius).attr("fill", fill).attr("stroke", stroke).attr("stroke-width", 1);
|
|
1017
|
+
chip.append("text").attr("x", startX + index * step + chipWidth / 2).attr("y", chipY + chipStyle.height / 2).attr("dominant-baseline", "central").attr("text-anchor", "middle").attr("font-size", chipStyle.fontSize).attr("font-weight", "bold").attr(
|
|
1018
|
+
"fill",
|
|
1019
|
+
contrastText(fill, palette.textOnFillLight, palette.textOnFillDark)
|
|
1020
|
+
).text(label);
|
|
1021
|
+
};
|
|
1022
|
+
for (let i = 0; i < shown; i++) {
|
|
1023
|
+
const chip = lane.chips[i];
|
|
1024
|
+
const intent = chip.color ?? palette.textMuted;
|
|
1025
|
+
drawChip(
|
|
1026
|
+
i,
|
|
1027
|
+
shapeFill(palette, intent, isDark, { mode: fillMode }),
|
|
1028
|
+
intent,
|
|
1029
|
+
String(chip.count),
|
|
1030
|
+
chip.value
|
|
1031
|
+
);
|
|
1032
|
+
}
|
|
1033
|
+
if (hidden > 0 && shown < slots) {
|
|
1034
|
+
drawChip(
|
|
1035
|
+
shown,
|
|
1036
|
+
fillMode === "outline" ? baseBg : defaultColHeaderBg,
|
|
1037
|
+
palette.textMuted,
|
|
1038
|
+
`+${hidden}`,
|
|
1039
|
+
`${hidden} more`
|
|
1040
|
+
);
|
|
1041
|
+
}
|
|
780
1042
|
}
|
|
781
1043
|
if (isLaneCollapsed) {
|
|
782
1044
|
for (const cell of lane.cells) {
|
|
@@ -796,7 +1058,7 @@ function renderSwimlaneBoard(svg, parsed, baseLayout, swimlaneGroup, palette, is
|
|
|
796
1058
|
}
|
|
797
1059
|
}
|
|
798
1060
|
}
|
|
799
|
-
laneG.append("line").attr("x1", sDiagramPadding +
|
|
1061
|
+
laneG.append("line").attr("x1", sDiagramPadding + grid.laneHeaderWidth).attr("x2", grid.totalWidth - sDiagramPadding).attr("y1", lane.y + lane.height + sColumnPadding).attr("y2", lane.y + lane.height + sColumnPadding).attr("stroke", palette.border ?? palette.textMuted).attr("stroke-opacity", 0.4).attr("stroke-width", 1);
|
|
800
1062
|
if (!isLaneCollapsed) {
|
|
801
1063
|
for (const cell of lane.cells) {
|
|
802
1064
|
const isColCollapsed = collapsedColumns?.has(cell.column.id) ?? false;
|
|
@@ -820,7 +1082,7 @@ function renderSwimlaneBoard(svg, parsed, baseLayout, swimlaneGroup, palette, is
|
|
|
820
1082
|
palette,
|
|
821
1083
|
isDark,
|
|
822
1084
|
hiddenMetaGroups,
|
|
823
|
-
|
|
1085
|
+
fillMode,
|
|
824
1086
|
sCardRadius,
|
|
825
1087
|
sCardPaddingX,
|
|
826
1088
|
sCardPaddingY,
|
|
@@ -892,4 +1154,4 @@ export {
|
|
|
892
1154
|
renderKanban,
|
|
893
1155
|
renderKanbanForExport
|
|
894
1156
|
};
|
|
895
|
-
//# sourceMappingURL=chunk-
|
|
1157
|
+
//# sourceMappingURL=chunk-UKOOGXRF.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-YRYKTYMQ.js";
|
|
5
5
|
import {
|
|
6
6
|
ScaleContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-24YPR5EH.js";
|
|
8
8
|
import {
|
|
9
9
|
createTooltip,
|
|
10
10
|
hideTooltip,
|
|
@@ -1672,4 +1672,4 @@ export {
|
|
|
1672
1672
|
formatDateLabel,
|
|
1673
1673
|
renderTimeline
|
|
1674
1674
|
};
|
|
1675
|
-
//# sourceMappingURL=chunk-
|
|
1675
|
+
//# sourceMappingURL=chunk-VLXYWPPE.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-WGC42WJU.js";
|
|
7
7
|
import {
|
|
8
8
|
ScaleContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-24YPR5EH.js";
|
|
10
10
|
import {
|
|
11
11
|
TITLE_FONT_SIZE,
|
|
12
12
|
TITLE_FONT_WEIGHT,
|
|
@@ -428,4 +428,4 @@ export {
|
|
|
428
428
|
renderPyramid,
|
|
429
429
|
renderPyramidForExport
|
|
430
430
|
};
|
|
431
|
-
//# sourceMappingURL=chunk-
|
|
431
|
+
//# sourceMappingURL=chunk-WRWUZ2C4.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
looksLikeGantt,
|
|
10
10
|
parseDgmo,
|
|
11
11
|
parseDgmoChartType
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HZQCKXPB.js";
|
|
13
13
|
import "./chunk-NEC7R2CB.js";
|
|
14
14
|
import "./chunk-A2RUBBVT.js";
|
|
15
15
|
import "./chunk-MC2H32SM.js";
|
|
@@ -86,4 +86,4 @@ export {
|
|
|
86
86
|
parseDgmo,
|
|
87
87
|
parseDgmoChartType
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=dgmo-router-
|
|
89
|
+
//# sourceMappingURL=dgmo-router-O55I5UXN.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderFlowchart,
|
|
3
3
|
renderFlowchartForExport
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P6RPHRX7.js";
|
|
5
5
|
import "./chunk-PDKUANDZ.js";
|
|
6
6
|
import "./chunk-IKHV5IJB.js";
|
|
7
7
|
import "./chunk-LP7EC4MI.js";
|
|
@@ -12,7 +12,7 @@ import "./chunk-5DH3KYFH.js";
|
|
|
12
12
|
import "./chunk-NCT22MOD.js";
|
|
13
13
|
import "./chunk-WGC42WJU.js";
|
|
14
14
|
import "./chunk-FJ57274M.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-24YPR5EH.js";
|
|
16
16
|
import "./chunk-RU2HHHYA.js";
|
|
17
17
|
import "./chunk-A4GOY3PE.js";
|
|
18
18
|
import "./chunk-UTCPNJND.js";
|
|
@@ -33,4 +33,4 @@ export {
|
|
|
33
33
|
renderFlowchart,
|
|
34
34
|
renderFlowchartForExport
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=flowchart-renderer-
|
|
36
|
+
//# sourceMappingURL=flowchart-renderer-JMGOCLTQ.js.map
|
package/dist/index.js
CHANGED
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
} from "./chunk-SQAG3UXH.js";
|
|
12
12
|
import {
|
|
13
13
|
render
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7RAWNJI5.js";
|
|
15
15
|
import {
|
|
16
16
|
renderErrorCard
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6OAKQTXQ.js";
|
|
18
18
|
import {
|
|
19
19
|
MAP_DIAGNOSTICS
|
|
20
20
|
} from "./chunk-EOYPX6SF.js";
|
|
@@ -24,9 +24,9 @@ import {
|
|
|
24
24
|
supportsD3DataChart
|
|
25
25
|
} from "./chunk-VE7PPEU3.js";
|
|
26
26
|
import "./chunk-L65WI4HO.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-VLXYWPPE.js";
|
|
28
28
|
import "./chunk-YRYKTYMQ.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-24YPR5EH.js";
|
|
30
30
|
import "./chunk-SPA7DCB3.js";
|
|
31
31
|
import "./chunk-6CLC26GU.js";
|
|
32
32
|
import "./chunk-RU2HHHYA.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./chunk-U7VO6JAA.js";
|
|
43
43
|
import {
|
|
44
44
|
parseDgmo
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-HZQCKXPB.js";
|
|
46
46
|
import "./chunk-NEC7R2CB.js";
|
|
47
47
|
import "./chunk-A2RUBBVT.js";
|
|
48
48
|
import "./chunk-MC2H32SM.js";
|
|
@@ -791,6 +791,10 @@ var UNIVERSAL_DIAGNOSTICS = [
|
|
|
791
791
|
title: "Active tag group not found",
|
|
792
792
|
message: "`active-tag` names a group the diagram does not declare, so nothing is coloured.",
|
|
793
793
|
hint: "Check the spelling against the declared `tag` groups, or use `active-tag none` to colour nothing on purpose.",
|
|
794
|
+
// The group name in this example is misspelled on purpose — showing a name
|
|
795
|
+
// that matches no declared group is the example's whole job. Ignored for
|
|
796
|
+
// this file rather than added to cspell.json, which would excuse the same
|
|
797
|
+
// typo anywhere in the library. cspell:ignore Rnak
|
|
794
798
|
example: "org Crew\nactive-tag Rnak\n\ntag Rank as r\n Captain red\n\nBlackbeard r: Captain\n"
|
|
795
799
|
},
|
|
796
800
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutOrg
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FTPNAYL2.js";
|
|
4
4
|
import "./chunk-QX53GOI7.js";
|
|
5
5
|
import "./chunk-MTGGOCND.js";
|
|
6
6
|
import "./chunk-DPGI742S.js";
|
|
@@ -12,4 +12,4 @@ import "./chunk-5WRI5ZAA.js";
|
|
|
12
12
|
export {
|
|
13
13
|
layoutOrg
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=layout-
|
|
15
|
+
//# sourceMappingURL=layout-4D5JRUHX.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutMindmap
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IXVK7XCN.js";
|
|
4
|
+
import "./chunk-24YPR5EH.js";
|
|
5
5
|
import "./chunk-MTGGOCND.js";
|
|
6
6
|
import "./chunk-IYULMRBE.js";
|
|
7
7
|
import "./chunk-DPGI742S.js";
|
|
@@ -12,4 +12,4 @@ import "./chunk-5WRI5ZAA.js";
|
|
|
12
12
|
export {
|
|
13
13
|
layoutMindmap
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=layout-
|
|
15
|
+
//# sourceMappingURL=layout-VMDNULKS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutSitemap
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N34OTOGH.js";
|
|
4
4
|
import "./chunk-QX53GOI7.js";
|
|
5
5
|
import "./chunk-MTGGOCND.js";
|
|
6
6
|
import "./chunk-DPGI742S.js";
|
|
@@ -12,4 +12,4 @@ import "./chunk-5WRI5ZAA.js";
|
|
|
12
12
|
export {
|
|
13
13
|
layoutSitemap
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=layout-
|
|
15
|
+
//# sourceMappingURL=layout-VVTXA3W2.js.map
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
focusEventLine,
|
|
4
4
|
renderEventLine,
|
|
5
5
|
renderEventLineForExport
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-66VHK7PP.js";
|
|
7
7
|
import "./chunk-NCT22MOD.js";
|
|
8
8
|
import "./chunk-5GM6BZO7.js";
|
|
9
9
|
import "./chunk-WGC42WJU.js";
|
|
10
10
|
import "./chunk-FJ57274M.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-VLXYWPPE.js";
|
|
12
12
|
import "./chunk-YRYKTYMQ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-24YPR5EH.js";
|
|
14
14
|
import "./chunk-SPA7DCB3.js";
|
|
15
15
|
import "./chunk-6CLC26GU.js";
|
|
16
16
|
import "./chunk-RU2HHHYA.js";
|
|
@@ -35,4 +35,4 @@ export {
|
|
|
35
35
|
renderEventLine,
|
|
36
36
|
renderEventLineForExport
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=renderer-
|
|
38
|
+
//# sourceMappingURL=renderer-2T2RAFWX.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildTagLaneRowList,
|
|
3
3
|
renderGantt
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O4OVVK6J.js";
|
|
5
5
|
import "./chunk-YRYKTYMQ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-24YPR5EH.js";
|
|
7
7
|
import "./chunk-6CLC26GU.js";
|
|
8
8
|
import "./chunk-A4GOY3PE.js";
|
|
9
9
|
import "./chunk-6S53NO3M.js";
|
|
@@ -23,4 +23,4 @@ export {
|
|
|
23
23
|
buildTagLaneRowList,
|
|
24
24
|
renderGantt
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=renderer-
|
|
26
|
+
//# sourceMappingURL=renderer-4DFEFP4X.js.map
|