@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.
Files changed (62) hide show
  1. package/dist/advanced.d.ts +34 -26
  2. package/dist/advanced.js +30 -30
  3. package/dist/block.js +5 -5
  4. package/dist/chart-meta.js +1 -1
  5. package/dist/{chunk-YYVTBZZC.js → chunk-24YPR5EH.js} +1 -1
  6. package/dist/{chunk-LXGUK56B.js → chunk-2OTYNNHS.js} +2 -2
  7. package/dist/{chunk-LJS4Z326.js → chunk-2VBJCTSG.js} +2 -2
  8. package/dist/{chunk-2JY7KE7C.js → chunk-66VHK7PP.js} +2 -2
  9. package/dist/{chunk-C3MVZ7EW.js → chunk-6DGMS2WJ.js} +2 -2
  10. package/dist/{chunk-HTGYAMOK.js → chunk-6OAKQTXQ.js} +2 -2
  11. package/dist/{chunk-XJZSN42P.js → chunk-7RAWNJI5.js} +33 -31
  12. package/dist/{chunk-IWNHEK5K.js → chunk-7U3NDE7T.js} +2 -2
  13. package/dist/{chunk-ISKO4MQ5.js → chunk-DHKVHP3Y.js} +2 -2
  14. package/dist/{chunk-T3LNWU7B.js → chunk-DZ34UUXC.js} +3 -3
  15. package/dist/{chunk-CH4WODSG.js → chunk-FTPNAYL2.js} +16 -4
  16. package/dist/{chunk-722TKHMS.js → chunk-GCTKJDLY.js} +2 -2
  17. package/dist/{chunk-LUI425JB.js → chunk-GK4AU57A.js} +2 -2
  18. package/dist/{chunk-ENJWB5LU.js → chunk-HKL66CKW.js} +21 -17
  19. package/dist/{chunk-PLSTP7P4.js → chunk-HZQCKXPB.js} +31 -346
  20. package/dist/{chunk-6EDBUKC7.js → chunk-IXVK7XCN.js} +2 -2
  21. package/dist/{chunk-7REARI5N.js → chunk-L3XB446I.js} +2 -2
  22. package/dist/{chunk-UIBPFSIT.js → chunk-MUVASOBD.js} +3 -3
  23. package/dist/{chunk-CR5WIA6I.js → chunk-N34OTOGH.js} +11 -2
  24. package/dist/{chunk-TGGKBY22.js → chunk-N5247W2W.js} +2 -2
  25. package/dist/{chunk-RNSGPTOZ.js → chunk-O4OVVK6J.js} +2 -2
  26. package/dist/{chunk-5GTYY2XV.js → chunk-P6RPHRX7.js} +2 -2
  27. package/dist/{chunk-IFJIYUI6.js → chunk-PKTRDOBI.js} +2 -2
  28. package/dist/{chunk-FAJS2N4O.js → chunk-QITH5XOX.js} +2 -2
  29. package/dist/{chunk-YCOGUPHL.js → chunk-U4NFAWQW.js} +2 -2
  30. package/dist/{chunk-X2NX2SK6.js → chunk-UCGEBFUC.js} +2 -2
  31. package/dist/{chunk-XQW4KFJ4.js → chunk-UF3EALKC.js} +2 -2
  32. package/dist/{chunk-UVAOL2EO.js → chunk-UKOOGXRF.js} +284 -22
  33. package/dist/{chunk-ZNHPCITV.js → chunk-VLXYWPPE.js} +2 -2
  34. package/dist/{chunk-IQ4W4Q2R.js → chunk-WRWUZ2C4.js} +2 -2
  35. package/dist/{dgmo-router-J6OWNMEJ.js → dgmo-router-O55I5UXN.js} +2 -2
  36. package/dist/{flowchart-renderer-HB277GNE.js → flowchart-renderer-JMGOCLTQ.js} +3 -3
  37. package/dist/index.js +9 -5
  38. package/dist/{layout-BNR6ZDB6.js → layout-4D5JRUHX.js} +2 -2
  39. package/dist/{layout-N6ZOOAYT.js → layout-VMDNULKS.js} +3 -3
  40. package/dist/{layout-PBB2RQJ4.js → layout-VVTXA3W2.js} +2 -2
  41. package/dist/{renderer-7VPABTMS.js → renderer-2T2RAFWX.js} +4 -4
  42. package/dist/{renderer-35HBBPIQ.js → renderer-4DFEFP4X.js} +3 -3
  43. package/dist/{renderer-4CUV63GT.js → renderer-ACGZ5KJG.js} +3 -3
  44. package/dist/{renderer-V3PN5ZQS.js → renderer-B4Q6LUW2.js} +3 -3
  45. package/dist/{renderer-3DSU72CP.js → renderer-CB44E262.js} +4 -4
  46. package/dist/{renderer-4ORE7HJ3.js → renderer-CL4X5S3T.js} +3 -3
  47. package/dist/{renderer-S5MGQHRQ.js → renderer-E42I44WZ.js} +3 -3
  48. package/dist/{renderer-JWSO5O2L.js → renderer-IH5C7NQT.js} +3 -3
  49. package/dist/{renderer-5FQFMCBZ.js → renderer-IZFO3G22.js} +3 -3
  50. package/dist/{renderer-BQWAUDEF.js → renderer-K73COK5L.js} +3 -3
  51. package/dist/{renderer-5YV6KP4U.js → renderer-UPTO25OX.js} +4 -4
  52. package/dist/{renderer-KFWZPVYT.js → renderer-VEN6AIWW.js} +3 -3
  53. package/dist/{renderer-ZEPPPA3W.js → renderer-VP4DPLDY.js} +3 -3
  54. package/dist/{renderer-JFZVWH2G.js → renderer-W7JC2CTQ.js} +3 -3
  55. package/dist/{renderer-LVAUI6T6.js → renderer-WLA3NQCC.js} +3 -3
  56. package/dist/{renderer-FCIOD2QK.js → renderer-XR4SVKNE.js} +3 -3
  57. package/dist/{renderer-7BGC4KPZ.js → renderer-Y3D36RIT.js} +3 -3
  58. package/dist/{renderer-QOWN3XDI.js → renderer-Y4VC3VH4.js} +3 -3
  59. package/dist/{renderer-DGZDRRJW.js → renderer-YROML2KW.js} +4 -4
  60. package/dist/{renderer-ANWAX5QO.js → renderer-ZRHTC24Q.js} +3 -3
  61. package/dist/{state-renderer-776LP3NE.js → state-renderer-FJ2GT4MU.js} +3 -3
  62. package/package.json +1 -1
@@ -5,7 +5,6 @@ import {
5
5
  parseBracket
6
6
  } from "./chunk-MC2H32SM.js";
7
7
  import {
8
- allTasks,
9
8
  parseRaci
10
9
  } from "./chunk-T7W5LM4N.js";
11
10
  import {
@@ -1467,318 +1466,29 @@ function parseQuadrant(content, palette) {
1467
1466
  }
1468
1467
 
1469
1468
  // src/chart-type-registry.ts
1470
- function measureSequence(content) {
1471
- const parsed = parseSequenceDgmo(content);
1472
- return {
1473
- participants: parsed.participants.length,
1474
- messages: parsed.messages.length
1475
- };
1476
- }
1477
- function measureRaci(content) {
1478
- const parsed = parseRaci(content);
1479
- let taskCount = 0;
1480
- for (const _task of allTasks(parsed)) taskCount++;
1481
- return {
1482
- roles: parsed.roles.length,
1483
- tasks: taskCount
1484
- };
1485
- }
1486
- function walkTree(nodes, depth, acc) {
1487
- for (const node of nodes) {
1488
- acc.nodes++;
1489
- if (depth > acc.depth) acc.depth = depth;
1490
- walkTree(
1491
- node.children,
1492
- depth + 1,
1493
- acc
1494
- );
1495
- }
1496
- }
1497
- function measureMindmap(content) {
1498
- const parsed = parseMindmap(content);
1499
- const acc = { nodes: 0, depth: 0 };
1500
- walkTree(parsed.roots, 1, acc);
1501
- return { nodes: acc.nodes, depth: acc.depth };
1502
- }
1503
- function measureTechRadar(content) {
1504
- const parsed = parseTechRadar(content);
1505
- let blipCount = 0;
1506
- for (const q of parsed.quadrants) blipCount += q.blips.length;
1507
- return { blips: blipCount };
1508
- }
1509
- function measureHeatmap(content) {
1510
- const parsed = parseHeatmap(content);
1511
- return {
1512
- columns: parsed.columns?.length ?? 0,
1513
- rows: parsed.heatmapRows?.length ?? parsed.rows?.length ?? 0
1514
- };
1515
- }
1516
- function measureArc(content) {
1517
- const parsed = parseArc(content);
1518
- const allNodes = /* @__PURE__ */ new Set();
1519
- for (const g of parsed.arcNodeGroups) {
1520
- for (const n of g.nodes) allNodes.add(n);
1521
- }
1522
- return { nodes: allNodes.size };
1523
- }
1524
- function measureOrg(content) {
1525
- const parsed = parseOrg(content);
1526
- const acc = { nodes: 0, depth: 0 };
1527
- walkTree(parsed.roots, 1, acc);
1528
- return { nodes: acc.nodes, depth: acc.depth };
1529
- }
1530
- function measureGantt(content) {
1531
- const parsed = parseGantt(content);
1532
- const taskCount = parsed.nodes.filter(
1533
- (n) => n.kind === "task"
1534
- ).length;
1535
- return { tasks: taskCount };
1536
- }
1537
- function measureKanban(content) {
1538
- const parsed = parseKanban(content);
1539
- return { columns: parsed.columns.length };
1540
- }
1541
- function measureER(content) {
1542
- const parsed = parseERDiagram(content);
1543
- return { nodes: parsed.tables.length };
1544
- }
1545
- function measureClass(content) {
1546
- const parsed = parseClassDiagram(content);
1547
- return { nodes: parsed.classes.length };
1548
- }
1549
- function measureFlowchart(content) {
1550
- const parsed = parseFlowchart(content);
1551
- return { nodes: parsed.nodes.length };
1552
- }
1553
- function measureStateGraph(content) {
1554
- const parsed = parseState(content);
1555
- return { nodes: parsed.nodes.length };
1556
- }
1557
- function measurePert(content) {
1558
- const parsed = parsePert(content);
1559
- return { tasks: parsed.activities.length };
1560
- }
1561
- function measureInfra(content) {
1562
- const parsed = parseInfra(content);
1563
- return { nodes: parsed.nodes.length };
1564
- }
1565
- function measureSwimlane(content) {
1566
- const parsed = parseSwimlane(content);
1567
- return { lanes: parsed.lanes.length, nodes: parsed.nodes.length };
1568
- }
1569
- function measureFamily(content) {
1570
- const parsed = parseFamily(content);
1571
- return { nodes: parsed.persons.size };
1572
- }
1573
- function minDimsSequence(c) {
1574
- return {
1575
- width: Math.max((c.participants ?? 2) * 80, 320),
1576
- height: Math.max((c.messages ?? 1) * 20 + 120, 200)
1577
- };
1578
- }
1579
- function minDimsRaci(c) {
1580
- return {
1581
- width: Math.max((c.roles ?? 2) * 50 + 180, 300),
1582
- height: Math.max((c.tasks ?? 1) * 28 + 80, 200)
1583
- };
1584
- }
1585
- function minDimsMindmap(c) {
1586
- return {
1587
- width: Math.max((c.nodes ?? 3) * 30, 300),
1588
- height: Math.max((c.depth ?? 2) * 60, 200)
1589
- };
1590
- }
1591
- function minDimsTechRadar() {
1592
- return { width: 360, height: 400 };
1593
- }
1594
- function minDimsHeatmap(c) {
1595
- return {
1596
- width: Math.max((c.columns ?? 3) * 40, 300),
1597
- height: Math.max((c.rows ?? 3) * 30 + 60, 200)
1598
- };
1599
- }
1600
- function minDimsArc(c) {
1601
- return {
1602
- width: 300,
1603
- height: Math.max((c.nodes ?? 3) * 20 + 120, 200)
1604
- };
1605
- }
1606
- function measureEventLine(content) {
1607
- return { items: parseEventLine(content).events.length };
1608
- }
1609
- function measureBody(content) {
1610
- return { items: parseBody(content).parts.length };
1611
- }
1612
- function minDimsBody() {
1613
- return { width: 720, height: 900 };
1614
- }
1615
- function minDimsEventLine(c) {
1616
- return {
1617
- width: Math.max(640, 120 + (c.items ?? 3) * 100),
1618
- height: 420
1619
- };
1620
- }
1621
- function measureVersionControl(content) {
1622
- return { nodes: parseVersionControl(content).nodes.length };
1623
- }
1624
- function minDimsVersionControl(c) {
1625
- return {
1626
- width: Math.max(480, 160 + (c.nodes ?? 3) * 86),
1627
- height: 360
1628
- };
1629
- }
1630
- function minDimsOrg(c) {
1631
- return {
1632
- width: Math.max((c.nodes ?? 3) * 60, 300),
1633
- height: Math.max((c.depth ?? 2) * 80, 200)
1634
- };
1635
- }
1636
- function minDimsGantt(c) {
1637
- return {
1638
- width: 400,
1639
- height: Math.max((c.tasks ?? 3) * 24 + 80, 200)
1640
- };
1641
- }
1642
- function minDimsKanban(c) {
1643
- return {
1644
- width: Math.max((c.columns ?? 3) * 120, 360),
1645
- height: 300
1646
- };
1647
- }
1648
- function minDimsEntities(c) {
1649
- return {
1650
- width: Math.max((c.nodes ?? 2) * 140, 300),
1651
- height: Math.max((c.nodes ?? 2) * 80, 200)
1652
- };
1653
- }
1654
- function minDimsGraph(c) {
1655
- return {
1656
- width: Math.max((c.nodes ?? 3) * 60, 300),
1657
- height: Math.max((c.nodes ?? 3) * 50, 200)
1658
- };
1659
- }
1660
- function minDimsPert(c) {
1661
- return {
1662
- width: Math.max((c.tasks ?? 3) * 80, 340),
1663
- height: Math.max((c.tasks ?? 3) * 40 + 80, 200)
1664
- };
1665
- }
1666
- function minDimsInfra(c) {
1667
- return {
1668
- width: Math.max((c.nodes ?? 3) * 80, 300),
1669
- height: Math.max((c.nodes ?? 3) * 60, 200)
1670
- };
1671
- }
1672
- function minDimsSwimlane(c) {
1673
- return {
1674
- width: Math.max((c.nodes ?? 4) * 90, 480),
1675
- height: Math.max((c.lanes ?? 3) * 100 + 60, 240)
1676
- };
1677
- }
1678
- function minDimsFamily(c) {
1679
- return {
1680
- width: Math.max((c.nodes ?? 4) * 90, 420),
1681
- height: Math.max((c.nodes ?? 4) * 40 + 80, 240)
1682
- };
1683
- }
1684
1469
  var REGISTRY = {
1685
1470
  // ── Structured diagrams ───────────────────────────────────
1686
- sequence: {
1687
- category: "diagram",
1688
- parse: parseSequenceDgmo,
1689
- measure: measureSequence,
1690
- minDims: minDimsSequence
1691
- },
1692
- flowchart: {
1693
- category: "diagram",
1694
- parse: parseFlowchart,
1695
- measure: measureFlowchart,
1696
- minDims: minDimsGraph
1697
- },
1698
- class: {
1699
- category: "diagram",
1700
- parse: parseClassDiagram,
1701
- measure: measureClass,
1702
- minDims: minDimsEntities
1703
- },
1704
- er: {
1705
- category: "diagram",
1706
- parse: parseERDiagram,
1707
- measure: measureER,
1708
- minDims: minDimsEntities
1709
- },
1710
- state: {
1711
- category: "diagram",
1712
- parse: parseState,
1713
- measure: measureStateGraph,
1714
- minDims: minDimsGraph
1715
- },
1716
- org: {
1717
- category: "diagram",
1718
- parse: parseOrg,
1719
- measure: measureOrg,
1720
- minDims: minDimsOrg
1721
- },
1722
- kanban: {
1723
- category: "diagram",
1724
- parse: parseKanban,
1725
- measure: measureKanban,
1726
- minDims: minDimsKanban
1727
- },
1471
+ sequence: { category: "diagram", parse: parseSequenceDgmo },
1472
+ flowchart: { category: "diagram", parse: parseFlowchart },
1473
+ class: { category: "diagram", parse: parseClassDiagram },
1474
+ er: { category: "diagram", parse: parseERDiagram },
1475
+ state: { category: "diagram", parse: parseState },
1476
+ org: { category: "diagram", parse: parseOrg },
1477
+ kanban: { category: "diagram", parse: parseKanban },
1728
1478
  c4: { category: "diagram", parse: parseC4 },
1729
1479
  sitemap: { category: "diagram", parse: parseSitemap },
1730
- infra: {
1731
- category: "diagram",
1732
- parse: parseInfra,
1733
- measure: measureInfra,
1734
- minDims: minDimsInfra
1735
- },
1736
- gantt: {
1737
- category: "diagram",
1738
- parse: parseGantt,
1739
- measure: measureGantt,
1740
- minDims: minDimsGantt
1741
- },
1742
- pert: {
1743
- category: "diagram",
1744
- parse: parsePert,
1745
- measure: measurePert,
1746
- minDims: minDimsPert
1747
- },
1480
+ infra: { category: "diagram", parse: parseInfra },
1481
+ gantt: { category: "diagram", parse: parseGantt },
1482
+ pert: { category: "diagram", parse: parsePert },
1748
1483
  "boxes-and-lines": { category: "diagram", parse: parseBoxesAndLines },
1749
1484
  sketch: { category: "diagram", parse: parseSketch },
1750
- swimlane: {
1751
- category: "diagram",
1752
- parse: parseSwimlane,
1753
- measure: measureSwimlane,
1754
- minDims: minDimsSwimlane
1755
- },
1756
- family: {
1757
- category: "diagram",
1758
- parse: parseFamily,
1759
- measure: measureFamily,
1760
- minDims: minDimsFamily
1761
- },
1762
- "version-control": {
1763
- category: "diagram",
1764
- parse: parseVersionControl,
1765
- measure: measureVersionControl,
1766
- minDims: minDimsVersionControl
1767
- },
1768
- mindmap: {
1769
- category: "diagram",
1770
- parse: parseMindmap,
1771
- measure: measureMindmap,
1772
- minDims: minDimsMindmap
1773
- },
1485
+ swimlane: { category: "diagram", parse: parseSwimlane },
1486
+ family: { category: "diagram", parse: parseFamily },
1487
+ "version-control": { category: "diagram", parse: parseVersionControl },
1488
+ mindmap: { category: "diagram", parse: parseMindmap },
1774
1489
  wireframe: { category: "diagram", parse: parseWireframe },
1775
1490
  "journey-map": { category: "diagram", parse: parseJourneyMap },
1776
- raci: {
1777
- category: "diagram",
1778
- parse: parseRaci,
1779
- measure: measureRaci,
1780
- minDims: minDimsRaci
1781
- },
1491
+ raci: { category: "diagram", parse: parseRaci },
1782
1492
  // ── Standard ECharts charts (parseChart) ──────────────────
1783
1493
  bar: { category: "data-chart", parse: parseChart },
1784
1494
  line: { category: "data-chart", parse: parseChart },
@@ -1789,71 +1499,46 @@ var REGISTRY = {
1789
1499
  scatter: { category: "data-chart", parse: parseScatter },
1790
1500
  sankey: { category: "data-chart", parse: parseSankey },
1791
1501
  function: { category: "data-chart", parse: parseFunctionChart },
1792
- heatmap: {
1793
- category: "data-chart",
1794
- parse: parseHeatmap,
1795
- measure: measureHeatmap,
1796
- minDims: minDimsHeatmap
1797
- },
1502
+ heatmap: { category: "data-chart", parse: parseHeatmap },
1798
1503
  funnel: { category: "data-chart", parse: parseFunnel },
1799
1504
  // ── D3 visualizations — own per-viz parser door (Story 109.2) ──
1800
1505
  slope: { category: "visualization", parse: parseSlope },
1801
1506
  wordcloud: { category: "visualization", parse: parseWordcloud },
1802
- arc: {
1803
- category: "visualization",
1804
- parse: parseArc,
1805
- measure: measureArc,
1806
- minDims: minDimsArc
1807
- },
1507
+ arc: { category: "visualization", parse: parseArc },
1808
1508
  timeline: { category: "visualization", parse: parseTimeline },
1809
- "event-line": {
1810
- category: "visualization",
1811
- parse: parseEventLine,
1812
- measure: measureEventLine,
1813
- minDims: minDimsEventLine
1814
- },
1509
+ "event-line": { category: "visualization", parse: parseEventLine },
1815
1510
  venn: { category: "visualization", parse: parseVenn },
1816
1511
  quadrant: { category: "visualization", parse: parseQuadrant },
1817
- body: {
1818
- category: "diagram",
1819
- parse: parseBody,
1820
- measure: measureBody,
1821
- minDims: minDimsBody
1822
- },
1512
+ body: { category: "diagram", parse: parseBody },
1823
1513
  // ── Visualizations with their own parsers ─────────────────
1824
- "tech-radar": {
1825
- category: "visualization",
1826
- parse: parseTechRadar,
1827
- measure: measureTechRadar,
1828
- minDims: minDimsTechRadar
1829
- },
1514
+ "tech-radar": { category: "visualization", parse: parseTechRadar },
1830
1515
  cycle: { category: "visualization", parse: parseCycle },
1831
1516
  pyramid: { category: "visualization", parse: parsePyramid },
1832
1517
  ring: { category: "visualization", parse: parseRing },
1833
- // Treemap: squarified hierarchy. No measure/minDims — a treemap fills whatever
1834
- // rectangle it's given and has no intrinsic aspect/size (F11).
1518
+ // Treemap: squarified hierarchy — fills whatever rectangle it's given and has
1519
+ // no intrinsic aspect/size (F11).
1835
1520
  treemap: { category: "visualization", parse: parseTreemap },
1836
- // Block diagram: deterministic grid (no measure/minDims — it sizes to content
1837
- // and is scaled to fit whatever rectangle it's given).
1521
+ // Block diagram: deterministic grid — sizes to content and is scaled to fit
1522
+ // whatever rectangle it's given.
1838
1523
  block: { category: "visualization", parse: parseBlock },
1839
1524
  // Goal: a single now/target value in one of three faces (bar/thermometer/
1840
- // gauge). No measure/minDims — it centers in whatever rectangle it's given.
1525
+ // gauge) — centers in whatever rectangle it's given.
1841
1526
  goal: { category: "visualization", parse: parseGoal },
1842
1527
  // Countdown: the only dynamic chart — a single "N days until X" that ticks
1843
- // live. No measure/minDims; it centers in whatever rectangle it's given.
1528
+ // live, centered in whatever rectangle it's given.
1844
1529
  countdown: { category: "visualization", parse: parseCountdown },
1845
1530
  // Clock: live world-clock board — one row per place/zone, ticking every
1846
- // second. No measure/minDims; it sizes to its rows and scales to fit.
1531
+ // second; sizes to its rows and scales to fit.
1847
1532
  clock: { category: "visualization", parse: parseClock },
1848
1533
  // Bracket: single-elim tournament tree. A diagram (structural, node-and-edge);
1849
- // no measure/minDims — it sizes to content and scales to fit its rectangle.
1534
+ // sizes to content and scales to fit its rectangle.
1850
1535
  bracket: { category: "diagram", parse: parseBracket },
1851
1536
  // ── Geographic map (own parser → resolver → layout → renderer) ──
1852
1537
  map: { category: "visualization", parse: parseMap },
1853
1538
  // Live link: a pointer to a diagram published at Diagrammo Cloud, rendered
1854
1539
  // as a reference card. `diagram` like every other card-shaped type, so the
1855
- // export-handler cross-check covers it rather than being relaxed for it. No
1856
- // measure/minDims — the card sizes to its own text and scales to fit.
1540
+ // export-handler cross-check covers it rather than being relaxed for it. The
1541
+ // card sizes to its own text and scales to fit.
1857
1542
  "live-link": { category: "diagram", parse: parseLiveLink }
1858
1543
  };
1859
1544
  var CHART_TYPE_REGISTRY = Object.entries(REGISTRY).map(([id, d]) => ({ id, ...d }));
@@ -2031,4 +1716,4 @@ export {
2031
1716
  knownChartTypeIds,
2032
1717
  parseDgmo
2033
1718
  };
2034
- //# sourceMappingURL=chunk-PLSTP7P4.js.map
1719
+ //# sourceMappingURL=chunk-HZQCKXPB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ScaleContext
3
- } from "./chunk-YYVTBZZC.js";
3
+ } from "./chunk-24YPR5EH.js";
4
4
  import {
5
5
  measureText,
6
6
  truncateText
@@ -556,4 +556,4 @@ export {
556
556
  computeNodeText,
557
557
  layoutMindmap
558
558
  };
559
- //# sourceMappingURL=chunk-6EDBUKC7.js.map
559
+ //# sourceMappingURL=chunk-IXVK7XCN.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MONO_FAMILY
3
- } from "./chunk-HTGYAMOK.js";
3
+ } from "./chunk-6OAKQTXQ.js";
4
4
  import {
5
5
  FONT_FAMILY
6
6
  } from "./chunk-UTCPNJND.js";
@@ -62,4 +62,4 @@ function escapeXml(s) {
62
62
  export {
63
63
  renderLiveLinkCard
64
64
  };
65
- //# sourceMappingURL=chunk-7REARI5N.js.map
65
+ //# sourceMappingURL=chunk-L3XB446I.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computeNodeText,
3
3
  layoutMindmap
4
- } from "./chunk-6EDBUKC7.js";
4
+ } from "./chunk-IXVK7XCN.js";
5
5
  import {
6
6
  extractExportSvg,
7
7
  runInExportContainer
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-FJ57274M.js";
17
17
  import {
18
18
  ScaleContext
19
- } from "./chunk-YYVTBZZC.js";
19
+ } from "./chunk-24YPR5EH.js";
20
20
  import {
21
21
  layoutInlineHeader
22
22
  } from "./chunk-6CLC26GU.js";
@@ -426,4 +426,4 @@ export {
426
426
  renderMindmap,
427
427
  renderMindmapForExport
428
428
  };
429
- //# sourceMappingURL=chunk-UIBPFSIT.js.map
429
+ //# sourceMappingURL=chunk-MUVASOBD.js.map
@@ -595,7 +595,16 @@ function layoutSitemap(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, e
595
595
  const legendShift = LEGEND_HEIGHT + LEGEND_GROUP_GAP;
596
596
  const totalGroupsWidth = visibleGroups.reduce((s, g2) => s + effectiveW(g2), 0) + (visibleGroups.length - 1) * LEGEND_GROUP_GAP;
597
597
  const neededWidth = totalGroupsWidth + MARGIN * 2;
598
- if (neededWidth > totalWidth) totalWidth = neededWidth;
598
+ if (neededWidth > totalWidth) {
599
+ const shift = (neededWidth - totalWidth) / 2;
600
+ totalWidth = neededWidth;
601
+ for (const n of layoutNodes) n.x += shift;
602
+ for (const c of layoutContainers) c.x += shift;
603
+ for (const e of layoutEdges) {
604
+ for (const p of e.points)
605
+ p.x += shift;
606
+ }
607
+ }
599
608
  let cx = (totalWidth - totalGroupsWidth) / 2;
600
609
  const legendY = totalHeight + LEGEND_GROUP_GAP;
601
610
  for (const g2 of visibleGroups) {
@@ -618,4 +627,4 @@ function layoutSitemap(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, e
618
627
  export {
619
628
  layoutSitemap
620
629
  };
621
- //# sourceMappingURL=chunk-CR5WIA6I.js.map
630
+ //# sourceMappingURL=chunk-N34OTOGH.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-WGC42WJU.js";
7
7
  import {
8
8
  ScaleContext
9
- } from "./chunk-YYVTBZZC.js";
9
+ } from "./chunk-24YPR5EH.js";
10
10
  import {
11
11
  layoutInlineHeader
12
12
  } from "./chunk-6CLC26GU.js";
@@ -2065,4 +2065,4 @@ export {
2065
2065
  renderSequenceDiagram,
2066
2066
  buildNoteMessageMap
2067
2067
  };
2068
- //# sourceMappingURL=chunk-TGGKBY22.js.map
2068
+ //# sourceMappingURL=chunk-N5247W2W.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-YRYKTYMQ.js";
5
5
  import {
6
6
  ScaleContext
7
- } from "./chunk-YYVTBZZC.js";
7
+ } from "./chunk-24YPR5EH.js";
8
8
  import {
9
9
  INLINE_HEADER_PAD,
10
10
  layoutInlineHeader
@@ -2152,4 +2152,4 @@ export {
2152
2152
  renderGantt,
2153
2153
  buildTagLaneRowList
2154
2154
  };
2155
- //# sourceMappingURL=chunk-RNSGPTOZ.js.map
2155
+ //# sourceMappingURL=chunk-O4OVVK6J.js.map
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-FJ57274M.js";
23
23
  import {
24
24
  ScaleContext
25
- } from "./chunk-YYVTBZZC.js";
25
+ } from "./chunk-24YPR5EH.js";
26
26
  import {
27
27
  serializeSvg
28
28
  } from "./chunk-RU2HHHYA.js";
@@ -586,4 +586,4 @@ export {
586
586
  renderFlowchart,
587
587
  renderFlowchartForExport
588
588
  };
589
- //# sourceMappingURL=chunk-5GTYY2XV.js.map
589
+ //# sourceMappingURL=chunk-P6RPHRX7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ScaleContext
3
- } from "./chunk-YYVTBZZC.js";
3
+ } from "./chunk-24YPR5EH.js";
4
4
  import {
5
5
  TITLE_FONT_SIZE,
6
6
  TITLE_FONT_WEIGHT
@@ -554,4 +554,4 @@ function renderModal(parent, node, ctx) {
554
554
  export {
555
555
  renderWireframe
556
556
  };
557
- //# sourceMappingURL=chunk-IFJIYUI6.js.map
557
+ //# sourceMappingURL=chunk-PKTRDOBI.js.map
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-FJ57274M.js";
15
15
  import {
16
16
  ScaleContext
17
- } from "./chunk-YYVTBZZC.js";
17
+ } from "./chunk-24YPR5EH.js";
18
18
  import {
19
19
  layoutInlineHeader
20
20
  } from "./chunk-6CLC26GU.js";
@@ -603,4 +603,4 @@ export {
603
603
  renderERDiagram,
604
604
  renderERDiagramForExport
605
605
  };
606
- //# sourceMappingURL=chunk-FAJS2N4O.js.map
606
+ //# sourceMappingURL=chunk-QITH5XOX.js.map
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-FJ57274M.js";
20
20
  import {
21
21
  ScaleContext
22
- } from "./chunk-YYVTBZZC.js";
22
+ } from "./chunk-24YPR5EH.js";
23
23
  import {
24
24
  layoutInlineHeader
25
25
  } from "./chunk-6CLC26GU.js";
@@ -838,4 +838,4 @@ export {
838
838
  renderBoxesAndLines,
839
839
  renderBoxesAndLinesForExport
840
840
  };
841
- //# sourceMappingURL=chunk-YCOGUPHL.js.map
841
+ //# sourceMappingURL=chunk-U4NFAWQW.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-WGC42WJU.js";
7
7
  import {
8
8
  ScaleContext
9
- } from "./chunk-YYVTBZZC.js";
9
+ } from "./chunk-24YPR5EH.js";
10
10
  import {
11
11
  TITLE_FONT_SIZE,
12
12
  TITLE_FONT_WEIGHT,
@@ -296,4 +296,4 @@ export {
296
296
  renderRing,
297
297
  renderRingForExport
298
298
  };
299
- //# sourceMappingURL=chunk-X2NX2SK6.js.map
299
+ //# sourceMappingURL=chunk-UCGEBFUC.js.map
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-FJ57274M.js";
17
17
  import {
18
18
  ScaleContext
19
- } from "./chunk-YYVTBZZC.js";
19
+ } from "./chunk-24YPR5EH.js";
20
20
  import {
21
21
  layoutInlineHeader
22
22
  } from "./chunk-6CLC26GU.js";
@@ -1613,4 +1613,4 @@ export {
1613
1613
  renderInfra,
1614
1614
  parseAndLayoutInfra
1615
1615
  };
1616
- //# sourceMappingURL=chunk-XQW4KFJ4.js.map
1616
+ //# sourceMappingURL=chunk-UF3EALKC.js.map