@diagrammo/dgmo 0.75.0 → 0.77.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 (120) hide show
  1. package/dist/advanced.d.ts +181 -12
  2. package/dist/advanced.js +267 -60
  3. package/dist/block.css +20 -3
  4. package/dist/block.d.ts +12 -4
  5. package/dist/block.js +35 -18
  6. package/dist/{chart-meta-lP8Rl19E.d.ts → chart-meta-Cf_jkApJ.d.ts} +2 -2
  7. package/dist/chart-meta.d.ts +3 -3
  8. package/dist/chart-meta.js +6 -6
  9. package/dist/{charts-d3-SQEVMIAM.js → charts-d3-HMEMHSSW.js} +5 -5
  10. package/dist/{chunk-E3BJVEMZ.js → chunk-2MTM4E6M.js} +2 -2
  11. package/dist/{chunk-UBW53CNS.js → chunk-3E4YB6TY.js} +2 -2
  12. package/dist/{chunk-IFC3JXCT.js → chunk-3O7ZYVJV.js} +2 -2
  13. package/dist/{chunk-Q6BAFS7I.js → chunk-43AJKH2U.js} +3 -3
  14. package/dist/{chunk-2NRIGEHZ.js → chunk-46KVXDUJ.js} +10 -3
  15. package/dist/chunk-53SEVJQM.js +9 -0
  16. package/dist/{chunk-UTTRJ6KN.js → chunk-5ZD4DDG7.js} +4 -4
  17. package/dist/{chunk-AFR6GWXD.js → chunk-6BVAW7KI.js} +4 -4
  18. package/dist/{chunk-CLQJAGWL.js → chunk-6IN4F4RH.js} +4 -4
  19. package/dist/{chunk-76IBFEYW.js → chunk-6ZZKEYBS.js} +4 -4
  20. package/dist/{chunk-QUYYL3LP.js → chunk-7CXW6EGX.js} +5 -5
  21. package/dist/chunk-7IATMZSA.js +72 -0
  22. package/dist/{chunk-HOIAQ3P2.js → chunk-B52RL5VV.js} +2 -2
  23. package/dist/{chunk-IGQW7TKM.js → chunk-BH3BQICT.js} +5 -5
  24. package/dist/{chunk-3LJNQ6LR.js → chunk-CF3I5SOG.js} +5 -5
  25. package/dist/{chunk-ZMKCG3FT.js → chunk-CHOK7NCJ.js} +6 -6
  26. package/dist/{chunk-U74EGVOA.js → chunk-CIWFL2LM.js} +4 -4
  27. package/dist/{chunk-OUJG73YJ.js → chunk-CYMYZYLI.js} +5 -5
  28. package/dist/{chunk-BCB24FG7.js → chunk-D3B6YEZK.js} +3 -3
  29. package/dist/{chunk-XHROEQ23.js → chunk-DSXWJAOA.js} +4 -4
  30. package/dist/{chunk-RT7ACF77.js → chunk-EGY3TS62.js} +6 -6
  31. package/dist/{chunk-CQKD6GOC.js → chunk-EUVUOPRC.js} +4 -4
  32. package/dist/{chunk-TDHD3HNO.js → chunk-F4X5NVKY.js} +37 -16
  33. package/dist/{chunk-7G4XMHDB.js → chunk-FF7LRT5L.js} +4 -4
  34. package/dist/{chunk-6DYZ2JM6.js → chunk-FR5EVD2X.js} +206 -32
  35. package/dist/{chunk-R5JPMW2F.js → chunk-FTTB64OJ.js} +5 -5
  36. package/dist/{chunk-U7AO6FRL.js → chunk-H7BYMIVK.js} +312 -118
  37. package/dist/{chunk-M3IVOGZE.js → chunk-HDLRRY3N.js} +61 -55
  38. package/dist/{chunk-F4CPZRG2.js → chunk-J76YDS4V.js} +2 -2
  39. package/dist/{chunk-SUA56ZSB.js → chunk-LTTZX6RD.js} +6 -2
  40. package/dist/{chunk-7EZ5AKBK.js → chunk-LYJ53DBK.js} +8 -6
  41. package/dist/{chunk-JQ575OAK.js → chunk-MZEGUDTA.js} +2 -2
  42. package/dist/{chunk-IHUOYDLN.js → chunk-N5NQIZ56.js} +5 -5
  43. package/dist/{chunk-GE5RO4BS.js → chunk-N6MZSBOL.js} +5 -1
  44. package/dist/{chunk-DU3OIBQE.js → chunk-NWNSXHA5.js} +6 -2
  45. package/dist/{chunk-32MOGTKT.js → chunk-OO2L2LWV.js} +4 -4
  46. package/dist/{chunk-XCAEHWQB.js → chunk-OZOHREFQ.js} +3 -3
  47. package/dist/{chunk-DSH7NJ2G.js → chunk-QBM5BURJ.js} +4 -4
  48. package/dist/{chunk-YVDBBWEP.js → chunk-QXMHBIQG.js} +4 -4
  49. package/dist/{chunk-UWYZIGCB.js → chunk-RGW26UAR.js} +2 -2
  50. package/dist/{chunk-QI4Q5ZZH.js → chunk-RV5A3EGI.js} +4 -4
  51. package/dist/{chunk-HGFKDSKZ.js → chunk-SI3PYDL4.js} +4 -4
  52. package/dist/{chunk-CAPR5DET.js → chunk-SSEAULA5.js} +2 -2
  53. package/dist/{chunk-AYM472K3.js → chunk-SWUQJ5VR.js} +3 -3
  54. package/dist/{chunk-HFCKU73Y.js → chunk-TI4YUUW6.js} +3 -3
  55. package/dist/{chunk-LYLRNAX2.js → chunk-TKIPK5P6.js} +3 -3
  56. package/dist/{chunk-QT5UMFPE.js → chunk-U4DS2ODO.js} +3 -3
  57. package/dist/{chunk-XFLLYY3V.js → chunk-UBDVAHGK.js} +36 -52
  58. package/dist/{chunk-JL7BDLC6.js → chunk-UH5YTZN7.js} +4 -4
  59. package/dist/{chunk-GEURKGZS.js → chunk-V4NHFY22.js} +4 -4
  60. package/dist/{chunk-4SXHMFFP.js → chunk-VRPV6QXR.js} +23 -12
  61. package/dist/{chunk-BFTRW24X.js → chunk-WHWUVDYK.js} +65 -24
  62. package/dist/{chunk-U5B3TUEW.js → chunk-XCFIAGT7.js} +2 -2
  63. package/dist/{chunk-COCMMQXW.js → chunk-XFXJXLK7.js} +2 -2
  64. package/dist/{chunk-YDA46XHI.js → chunk-XPBJVSRY.js} +2 -2
  65. package/dist/{chunk-VV6HZQ5K.js → chunk-YM5RMLFO.js} +2 -2
  66. package/dist/{d3--y67plmW.d.ts → d3-BiaJtaSw.d.ts} +1 -1
  67. package/dist/{dgmo-router-KYNLRE7S.js → dgmo-router-A3LIHT6H.js} +7 -7
  68. package/dist/{dgmo-router-CY5j16Pl.d.ts → dgmo-router-BwXHZ_P3.d.ts} +1 -1
  69. package/dist/{dimensions-NLQ64ED5.js → dimensions-OFF4GRFL.js} +4 -4
  70. package/dist/{flowchart-parser-LY5GGQL2.js → flowchart-parser-NVBP3C5D.js} +2 -2
  71. package/dist/{flowchart-renderer-RIJ5FZKO.js → flowchart-renderer-BBJUPORB.js} +6 -6
  72. package/dist/index.d.ts +7 -7
  73. package/dist/index.js +14 -14
  74. package/dist/{layout-UJ62RQQ3.js → layout-2OJ25STS.js} +2 -2
  75. package/dist/{layout-DAYQ46PS.js → layout-Y2V3LYV7.js} +3 -3
  76. package/dist/{parser-LUOINP6H.js → parser-QYAIFXLP.js} +3 -3
  77. package/dist/{parser-L7RXUKYN.js → parser-WVE6SKB7.js} +2 -2
  78. package/dist/{parser-JYIZEKAS.js → parser-ZYAFHXKQ.js} +2 -2
  79. package/dist/{renderer-FUJNSC5X.js → renderer-2ANDPQWC.js} +3 -3
  80. package/dist/{renderer-UYZSP7MF.js → renderer-2LDT4TUX.js} +5 -5
  81. package/dist/{renderer-4EWGZLJ6.js → renderer-2NYQDW37.js} +3 -3
  82. package/dist/{renderer-LBNVKVO3.js → renderer-2RIIIO34.js} +5 -5
  83. package/dist/{renderer-PKRKLOYR.js → renderer-3HFU3DTO.js} +5 -5
  84. package/dist/{renderer-UUP6OX6F.js → renderer-4BF6ILP6.js} +5 -5
  85. package/dist/{renderer-MUW4G2N6.js → renderer-5E2AH5TO.js} +7 -7
  86. package/dist/{renderer-DKW273R7.js → renderer-62SLWRYF.js} +6 -5
  87. package/dist/{renderer-WDSBFDQ2.js → renderer-ANJUDBOS.js} +6 -6
  88. package/dist/{renderer-OTHBTGBN.js → renderer-CVWQD442.js} +3 -3
  89. package/dist/{renderer-GJDVPXI3.js → renderer-D6GJ6EVK.js} +6 -6
  90. package/dist/{renderer-KMOGGMM7.js → renderer-DNFV2IQI.js} +5 -5
  91. package/dist/{renderer-UYYBJ7OB.js → renderer-EDVCGIQO.js} +10 -10
  92. package/dist/{renderer-73QHYZ2Q.js → renderer-EFQSMHID.js} +6 -6
  93. package/dist/{renderer-EP4GRCDX.js → renderer-FTX67CYZ.js} +3 -3
  94. package/dist/{renderer-GF6S5ZX6.js → renderer-G2DPKJAN.js} +5 -5
  95. package/dist/{renderer-QAMOXOZ2.js → renderer-GHBF5PRH.js} +3 -3
  96. package/dist/{renderer-5W3HWIUL.js → renderer-GZLRX764.js} +5 -5
  97. package/dist/{renderer-CO5O5VR5.js → renderer-H2HYLFN3.js} +3 -3
  98. package/dist/{renderer-JMJ7Q5OC.js → renderer-IR5655M7.js} +5 -5
  99. package/dist/{renderer-4PNVGHVA.js → renderer-L237AOOZ.js} +3 -3
  100. package/dist/{renderer-A2YWSBPY.js → renderer-LSJWYGOL.js} +7 -7
  101. package/dist/{renderer-PR3KLNST.js → renderer-LWXDMZOV.js} +5 -5
  102. package/dist/{renderer-3FB56573.js → renderer-MYSVPERC.js} +5 -5
  103. package/dist/{renderer-FGGDZZFQ.js → renderer-OL5QSZPC.js} +6 -6
  104. package/dist/{renderer-XBL6CLN2.js → renderer-P26HH3NA.js} +5 -5
  105. package/dist/{renderer-D7N7PPB7.js → renderer-R5HIRN2M.js} +3 -3
  106. package/dist/{renderer-BUEFD2IF.js → renderer-RNFECJ5D.js} +5 -5
  107. package/dist/{renderer-F24V3RD3.js → renderer-RPZVNCTF.js} +5 -5
  108. package/dist/{renderer-PIEPRK6M.js → renderer-SDNWZDUY.js} +5 -5
  109. package/dist/{renderer-RUHC6D3B.js → renderer-UKHH4UWV.js} +5 -5
  110. package/dist/{renderer-CGOPX4HW.js → renderer-VF7X66SL.js} +5 -5
  111. package/dist/{renderer-ZAJ5353N.js → renderer-Y3Y7PEUS.js} +3 -3
  112. package/dist/{renderer-radial-MZP3SVTZ.js → renderer-radial-QNGCGKZP.js} +5 -5
  113. package/dist/{state-renderer-454ADT7E.js → state-renderer-ELWDRXD6.js} +7 -7
  114. package/dist/{tag-groups-DrHT2tEc.d.ts → tag-groups-BAtkq0b_.d.ts} +39 -1
  115. package/dist/{themes-GWhsabnx.d.ts → themes-DpsyRSO7.d.ts} +2 -2
  116. package/docs/language-reference.md +3 -3
  117. package/gallery/fixtures/sketch.dgmo +1 -1
  118. package/package.json +5 -4
  119. package/dist/chunk-PDKUANDZ.js +0 -35
  120. package/dist/chunk-UTCPNJND.js +0 -7
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  compactNumber,
18
18
  computeLegendLayout
19
- } from "./chunk-4SXHMFFP.js";
19
+ } from "./chunk-VRPV6QXR.js";
20
20
  import {
21
21
  measureLegendText
22
22
  } from "./chunk-YT5ICQ4R.js";
@@ -624,17 +624,33 @@ function legLabelPoint(a, b, curved, offset, away) {
624
624
  function buildConnectorLegs(args) {
625
625
  const { resolved, poiScreen, palette, width, height, fillAt, labelOnFill } = args;
626
626
  const legs = [];
627
+ const legDefaultGroups = resolved.tagGroups.filter((g) => {
628
+ if (!g.defaultValue) return false;
629
+ const k = tagAttrKey(g.name);
630
+ return resolved.edges.some((e) => e.tags[k]) || resolved.routes.some((rt) => rt.legs.some((l) => l.tags[k]));
631
+ });
632
+ const entryColor = (group, val) => val ? group.entries.find((e) => e.value.toLowerCase() === val.toLowerCase())?.color : void 0;
627
633
  const lineColor = (tags) => {
628
634
  for (const group of resolved.tagGroups) {
629
- const val = tags[tagAttrKey(group.name)];
630
- if (!val) continue;
631
- const entry = group.entries.find(
632
- (e) => e.value.toLowerCase() === val.toLowerCase()
633
- );
634
- if (entry?.color) return entry.color;
635
+ const hex = entryColor(group, tags[tagAttrKey(group.name)]);
636
+ if (hex) return hex;
637
+ }
638
+ for (const group of legDefaultGroups) {
639
+ if (tags[tagAttrKey(group.name)]) continue;
640
+ const hex = entryColor(group, group.defaultValue);
641
+ if (hex) return hex;
635
642
  }
636
643
  return null;
637
644
  };
645
+ const effectiveTags = (tags) => {
646
+ let out = null;
647
+ for (const group of legDefaultGroups) {
648
+ const key = tagAttrKey(group.name);
649
+ if (tags[key]) continue;
650
+ (out ??= { ...tags })[key] = group.defaultValue;
651
+ }
652
+ return out ?? tags;
653
+ };
638
654
  const placedLegSamples = [];
639
655
  const sampleLeg = (a, b, curved, bow) => {
640
656
  const pts = [];
@@ -754,6 +770,7 @@ function buildConnectorLegs(args) {
754
770
  });
755
771
  const routeLabelStyle = leg.label !== void 0 ? labelOnFill(fillAt(bow.labelX, bow.labelY)) : void 0;
756
772
  const routeVal = Number(leg.value);
773
+ const legTags = effectiveTags(leg.tags);
757
774
  legs.push({
758
775
  d: legPath(a, b, bow.curved, bow.offset, bow.center),
759
776
  width: routeWidthFor(routeVal),
@@ -762,7 +779,7 @@ function buildConnectorLegs(args) {
762
779
  fromId: leg.fromId,
763
780
  toId: leg.toId,
764
781
  ...Number.isFinite(routeVal) && routeVal > 0 && { value: routeVal },
765
- ...Object.keys(leg.tags).length > 0 && { tags: leg.tags },
782
+ ...Object.keys(legTags).length > 0 && { tags: legTags },
766
783
  lineNumber: leg.lineNumber,
767
784
  ...leg.label !== void 0 && {
768
785
  label: leg.label,
@@ -815,6 +832,7 @@ function buildConnectorLegs(args) {
815
832
  });
816
833
  const edgeLabelStyle = e.label !== void 0 ? labelOnFill(fillAt(bow.labelX, bow.labelY)) : void 0;
817
834
  const edgeVal = Number(e.meta["width"]);
835
+ const edgeTags = effectiveTags(e.tags);
818
836
  legs.push({
819
837
  d: legPath(a, b, bow.curved, bow.offset),
820
838
  width: widthFor(e),
@@ -823,7 +841,7 @@ function buildConnectorLegs(args) {
823
841
  fromId: e.fromId,
824
842
  toId: e.toId,
825
843
  ...Number.isFinite(edgeVal) && edgeVal > 0 && { value: edgeVal },
826
- ...Object.keys(e.tags).length > 0 && { tags: e.tags },
844
+ ...Object.keys(edgeTags).length > 0 && { tags: edgeTags },
827
845
  lineNumber: e.lineNumber,
828
846
  ...e.label !== void 0 && {
829
847
  label: e.label,
@@ -1897,7 +1915,7 @@ function layoutMap(resolvedIn, data, size, opts) {
1897
1915
  };
1898
1916
  const fillGroupNames = /* @__PURE__ */ new Set();
1899
1917
  for (const g of resolved.tagGroups) {
1900
- const k = g.name.toLowerCase();
1918
+ const k = tagAttrKey(g.name);
1901
1919
  if (resolved.regions.some((r) => r.tags[k]) || resolved.pois.some((p) => p.tags[k]))
1902
1920
  fillGroupNames.add(g.name);
1903
1921
  }
@@ -1983,6 +2001,24 @@ function layoutMap(resolvedIn, data, size, opts) {
1983
2001
  const pct = RAMP_FLOOR + Math.max(0, Math.min(1, t)) * (100 - RAMP_FLOOR);
1984
2002
  return mix(rampHue, rampBase, pct);
1985
2003
  };
2004
+ const defaultGroupsFor = (used) => resolved.tagGroups.filter(
2005
+ (g) => g.defaultValue && used(tagAttrKey(g.name))
2006
+ );
2007
+ const poiDefaultGroups = defaultGroupsFor(
2008
+ (k) => resolved.pois.some((p) => p.tags[k])
2009
+ );
2010
+ const regionDefaultGroups = defaultGroupsFor(
2011
+ (k) => resolved.regions.some((r) => r.tags[k])
2012
+ );
2013
+ const effectiveTags = (tags, groups2) => {
2014
+ let out = null;
2015
+ for (const group of groups2) {
2016
+ const key = tagAttrKey(group.name);
2017
+ if (tags[key]) continue;
2018
+ (out ??= { ...tags })[key] = group.defaultValue;
2019
+ }
2020
+ return out ?? tags;
2021
+ };
1986
2022
  const tagFill = (tags, groupName) => {
1987
2023
  if (!groupName) return null;
1988
2024
  const group = resolved.tagGroups.find(
@@ -2366,8 +2402,10 @@ function layoutMap(resolvedIn, data, size, opts) {
2366
2402
  let label;
2367
2403
  let lineNumber = -1;
2368
2404
  let layer = "base";
2405
+ let tags = {};
2369
2406
  if (isThisLayer) {
2370
2407
  fill = regionFill(r);
2408
+ tags = effectiveTags(r.tags, regionDefaultGroups);
2371
2409
  lineNumber = r.lineNumber;
2372
2410
  layer = layerKind;
2373
2411
  label = r.name;
@@ -2384,7 +2422,7 @@ function layoutMap(resolvedIn, data, size, opts) {
2384
2422
  ...label !== void 0 && { label },
2385
2423
  ...hasCentroid && { labelX: geo.cx, labelY: geo.cy },
2386
2424
  ...isThisLayer && r.value !== void 0 && { value: r.value },
2387
- ...isThisLayer && Object.keys(r.tags).length > 0 && { tags: r.tags }
2425
+ ...Object.keys(tags).length > 0 && { tags }
2388
2426
  });
2389
2427
  }
2390
2428
  };
@@ -2522,19 +2560,21 @@ function layoutMap(resolvedIn, data, size, opts) {
2522
2560
  const directHex = p.color ? resolveColor(p.color, palette) : null;
2523
2561
  if (directHex)
2524
2562
  return { fill: directHex, stroke: mix(directHex, palette.text, 18) };
2563
+ const paint = (hex) => ({
2564
+ fill: hex,
2565
+ stroke: mix(hex, palette.text, 18)
2566
+ });
2567
+ const entryColor = (group, val) => val ? group.entries.find((e) => e.value.toLowerCase() === val.toLowerCase())?.color : void 0;
2525
2568
  for (const group of resolved.tagGroups) {
2526
- const val = p.tags[tagAttrKey(group.name)];
2527
- if (!val) continue;
2528
- const entry = group.entries.find(
2529
- (e) => e.value.toLowerCase() === val.toLowerCase()
2530
- );
2531
- const hex = entry?.color;
2532
- if (hex) return { fill: hex, stroke: mix(hex, palette.text, 18) };
2569
+ const hex = entryColor(group, p.tags[tagAttrKey(group.name)]);
2570
+ if (hex) return paint(hex);
2533
2571
  }
2534
- return {
2535
- fill: palette.colors.orange,
2536
- stroke: mix(palette.colors.orange, palette.text, 18)
2537
- };
2572
+ for (const group of poiDefaultGroups) {
2573
+ if (p.tags[tagAttrKey(group.name)]) continue;
2574
+ const hex = entryColor(group, group.defaultValue);
2575
+ if (hex) return paint(hex);
2576
+ }
2577
+ return paint(palette.colors.orange);
2538
2578
  };
2539
2579
  const routeNumberById = /* @__PURE__ */ new Map();
2540
2580
  const originIds = /* @__PURE__ */ new Set();
@@ -2556,6 +2596,7 @@ function layoutMap(resolvedIn, data, size, opts) {
2556
2596
  }
2557
2597
  const placePoi = (e, cx, cy, clusterId) => {
2558
2598
  const { fill, stroke } = poiFill(e.p);
2599
+ const poiTags = effectiveTags(e.p.tags, poiDefaultGroups);
2559
2600
  const r = radiusFor(e.p);
2560
2601
  poiScreen.set(e.p.id, { cx, cy, r });
2561
2602
  const num = routeNumberById.get(e.p.id);
@@ -2571,7 +2612,7 @@ function layoutMap(resolvedIn, data, size, opts) {
2571
2612
  implicit: !!e.p.implicit,
2572
2613
  isOrigin: originIds.has(e.p.id),
2573
2614
  ...num !== void 0 && { routeNumber: num },
2574
- ...Object.keys(e.p.tags).length > 0 && { tags: e.p.tags },
2615
+ ...Object.keys(poiTags).length > 0 && { tags: poiTags },
2575
2616
  ...clusterId !== void 0 && { clusterId }
2576
2617
  });
2577
2618
  };
@@ -3365,4 +3406,4 @@ export {
3365
3406
  albersSkewFallback,
3366
3407
  layoutMap
3367
3408
  };
3368
- //# sourceMappingURL=chunk-BFTRW24X.js.map
3409
+ //# sourceMappingURL=chunk-WHWUVDYK.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-DEW62ON3.js";
10
10
  import {
11
11
  FONT_FAMILY
12
- } from "./chunk-UTCPNJND.js";
12
+ } from "./chunk-53SEVJQM.js";
13
13
  import {
14
14
  measureText
15
15
  } from "./chunk-MTGGOCND.js";
@@ -374,4 +374,4 @@ export {
374
374
  renderGoal,
375
375
  renderGoalForExport
376
376
  };
377
- //# sourceMappingURL=chunk-U5B3TUEW.js.map
377
+ //# sourceMappingURL=chunk-XCFIAGT7.js.map
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-DEW62ON3.js";
12
12
  import {
13
13
  FONT_FAMILY
14
- } from "./chunk-UTCPNJND.js";
14
+ } from "./chunk-53SEVJQM.js";
15
15
  import {
16
16
  measureText,
17
17
  truncateText,
@@ -859,4 +859,4 @@ export {
859
859
  renderRaci,
860
860
  renderRaciForExport
861
861
  };
862
- //# sourceMappingURL=chunk-COCMMQXW.js.map
862
+ //# sourceMappingURL=chunk-XFXJXLK7.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-MS5574I7.js";
4
4
  import {
5
5
  FONT_FAMILY
6
- } from "./chunk-UTCPNJND.js";
6
+ } from "./chunk-53SEVJQM.js";
7
7
  import {
8
8
  fixedParts,
9
9
  fixedTimeCells,
@@ -558,4 +558,4 @@ export {
558
558
  renderClock,
559
559
  renderClockForExport
560
560
  };
561
- //# sourceMappingURL=chunk-YDA46XHI.js.map
561
+ //# sourceMappingURL=chunk-XPBJVSRY.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RU2HHHYA.js";
4
4
  import {
5
5
  FONT_FAMILY
6
- } from "./chunk-UTCPNJND.js";
6
+ } from "./chunk-53SEVJQM.js";
7
7
 
8
8
  // src/utils/export-container.ts
9
9
  function runInExportContainer(width, height, fn) {
@@ -37,4 +37,4 @@ export {
37
37
  runInExportContainer,
38
38
  extractExportSvg
39
39
  };
40
- //# sourceMappingURL=chunk-VV6HZQ5K.js.map
40
+ //# sourceMappingURL=chunk-YM5RMLFO.js.map
@@ -1,4 +1,4 @@
1
- import { T as TagGroup, D as DgmoError, a as PaletteColors, C as CompactViewState } from './tag-groups-DrHT2tEc.js';
1
+ import { T as TagGroup, D as DgmoError, a as PaletteColors, C as CompactViewState } from './tag-groups-BAtkq0b_.js';
2
2
 
3
3
  /** A POI / route-stop position: gazetteer name (+ optional ISO scope) or coords. */
4
4
  type PoiPos = {
@@ -9,7 +9,7 @@ import {
9
9
  looksLikeGantt,
10
10
  parseDgmo,
11
11
  parseDgmoChartType
12
- } from "./chunk-R5JPMW2F.js";
12
+ } from "./chunk-FTTB64OJ.js";
13
13
  import "./chunk-SH4PPRU7.js";
14
14
  import "./chunk-A2RUBBVT.js";
15
15
  import "./chunk-5PFNUDXR.js";
@@ -30,8 +30,8 @@ import "./chunk-Z7KVOVE4.js";
30
30
  import "./chunk-WFA6IULY.js";
31
31
  import "./chunk-BWJLLNUX.js";
32
32
  import "./chunk-KRTLS3G6.js";
33
- import "./chunk-TDHD3HNO.js";
34
- import "./chunk-RT7ACF77.js";
33
+ import "./chunk-F4X5NVKY.js";
34
+ import "./chunk-EGY3TS62.js";
35
35
  import "./chunk-W7UBPARG.js";
36
36
  import "./chunk-S5P5Z5Y5.js";
37
37
  import "./chunk-QQJUTGQH.js";
@@ -45,17 +45,17 @@ import "./chunk-UCZBRGJN.js";
45
45
  import "./chunk-7BMX2M3F.js";
46
46
  import "./chunk-3SP6G4LN.js";
47
47
  import "./chunk-ZM27UI5O.js";
48
- import "./chunk-2NRIGEHZ.js";
48
+ import "./chunk-46KVXDUJ.js";
49
49
  import "./chunk-TPN7RJOM.js";
50
50
  import "./chunk-EQW6HOP4.js";
51
51
  import "./chunk-DAOFNU6J.js";
52
52
  import "./chunk-7NSNE52V.js";
53
53
  import "./chunk-C3Z4DX3V.js";
54
- import "./chunk-DU3OIBQE.js";
54
+ import "./chunk-NWNSXHA5.js";
55
55
  import "./chunk-7TF3QOOD.js";
56
56
  import "./chunk-M5JT2AU7.js";
57
57
  import "./chunk-NXMESY4J.js";
58
- import "./chunk-SUA56ZSB.js";
58
+ import "./chunk-LTTZX6RD.js";
59
59
  import "./chunk-ICVIJLBA.js";
60
60
  import "./chunk-76NHL5UG.js";
61
61
  import "./chunk-E6PNTYRK.js";
@@ -86,4 +86,4 @@ export {
86
86
  parseDgmo,
87
87
  parseDgmoChartType
88
88
  };
89
- //# sourceMappingURL=dgmo-router-KYNLRE7S.js.map
89
+ //# sourceMappingURL=dgmo-router-A3LIHT6H.js.map
@@ -1,4 +1,4 @@
1
- import { P as PaletteConfig, D as DgmoError } from './tag-groups-DrHT2tEc.js';
1
+ import { P as PaletteConfig, D as DgmoError } from './tag-groups-BAtkq0b_.js';
2
2
 
3
3
  /** Validate that a hex string is well-formed (#RGB or #RRGGBB). */
4
4
  declare function isValidHex(value: string): boolean;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  mapContentAspect,
3
3
  mapExportDimensions
4
- } from "./chunk-F4CPZRG2.js";
5
- import "./chunk-BFTRW24X.js";
4
+ } from "./chunk-J76YDS4V.js";
5
+ import "./chunk-WHWUVDYK.js";
6
6
  import "./chunk-4QV26TEG.js";
7
7
  import "./chunk-L65WI4HO.js";
8
8
  import "./chunk-DEW62ON3.js";
9
- import "./chunk-4SXHMFFP.js";
9
+ import "./chunk-VRPV6QXR.js";
10
10
  import "./chunk-YT5ICQ4R.js";
11
11
  import "./chunk-MTGGOCND.js";
12
12
  import "./chunk-76LHNLGX.js";
@@ -19,4 +19,4 @@ export {
19
19
  mapContentAspect,
20
20
  mapExportDimensions
21
21
  };
22
- //# sourceMappingURL=dimensions-NLQ64ED5.js.map
22
+ //# sourceMappingURL=dimensions-OFF4GRFL.js.map
@@ -2,7 +2,7 @@ import {
2
2
  extractSymbols,
3
3
  looksLikeFlowchart,
4
4
  parseFlowchart
5
- } from "./chunk-DU3OIBQE.js";
5
+ } from "./chunk-NWNSXHA5.js";
6
6
  import "./chunk-7TF3QOOD.js";
7
7
  import "./chunk-NXMESY4J.js";
8
8
  import "./chunk-76NHL5UG.js";
@@ -18,4 +18,4 @@ export {
18
18
  looksLikeFlowchart,
19
19
  parseFlowchart
20
20
  };
21
- //# sourceMappingURL=flowchart-parser-LY5GGQL2.js.map
21
+ //# sourceMappingURL=flowchart-parser-NVBP3C5D.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  renderFlowchart,
3
3
  renderFlowchartForExport
4
- } from "./chunk-QUYYL3LP.js";
5
- import "./chunk-PDKUANDZ.js";
6
- import "./chunk-GE5RO4BS.js";
4
+ } from "./chunk-7CXW6EGX.js";
5
+ import "./chunk-7IATMZSA.js";
6
+ import "./chunk-N6MZSBOL.js";
7
7
  import "./chunk-LP7EC4MI.js";
8
8
  import "./chunk-Q74GP3GK.js";
9
9
  import "./chunk-6EK55ART.js";
@@ -15,9 +15,9 @@ import "./chunk-FJ57274M.js";
15
15
  import "./chunk-24YPR5EH.js";
16
16
  import "./chunk-RU2HHHYA.js";
17
17
  import "./chunk-DEW62ON3.js";
18
- import "./chunk-UTCPNJND.js";
18
+ import "./chunk-53SEVJQM.js";
19
19
  import "./chunk-MTGGOCND.js";
20
- import "./chunk-DU3OIBQE.js";
20
+ import "./chunk-NWNSXHA5.js";
21
21
  import "./chunk-7TF3QOOD.js";
22
22
  import "./chunk-NXMESY4J.js";
23
23
  import "./chunk-76NHL5UG.js";
@@ -33,4 +33,4 @@ export {
33
33
  renderFlowchart,
34
34
  renderFlowchartForExport
35
35
  };
36
- //# sourceMappingURL=flowchart-renderer-RIJ5FZKO.js.map
36
+ //# sourceMappingURL=flowchart-renderer-BBJUPORB.js.map
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { b as DiagnosticSpec, P as PaletteConfig, C as CompactViewState, D as DgmoError } from './tag-groups-DrHT2tEc.js';
2
- export { c as DgmoSeverity, d as DiagnosticParams, E as EmitOptions, a as PaletteColors, e as emit, f as formatDgmoError } from './tag-groups-DrHT2tEc.js';
3
- export { C as ChartTypeId, a as ChartTypeMeta, c as chartTypes, g as getPalette, r as resolvePaletteOrFallback, p as validate } from './dgmo-router-CY5j16Pl.js';
4
- import { T as Theme } from './themes-GWhsabnx.js';
5
- export { M as MapCompletionOptions, a as MapLocationMatch, b as MapPlaceCompletion, c as MapRegionCompletion, d as completeMapPlaces, e as completeMapRegions, p as palettes, s as searchMapLocations, t as themes } from './themes-GWhsabnx.js';
6
- import { M as MapDataSource } from './d3--y67plmW.js';
7
- export { G as Gazetteer, a as GazetteerEntry, b as MapData, R as RegionName, c as RegionNames } from './d3--y67plmW.js';
1
+ import { b as DiagnosticSpec, P as PaletteConfig, C as CompactViewState, D as DgmoError } from './tag-groups-BAtkq0b_.js';
2
+ export { c as DgmoSeverity, d as DiagnosticParams, E as EmitOptions, a as PaletteColors, e as emit, f as formatDgmoError } from './tag-groups-BAtkq0b_.js';
3
+ export { C as ChartTypeId, a as ChartTypeMeta, c as chartTypes, g as getPalette, r as resolvePaletteOrFallback, p as validate } from './dgmo-router-BwXHZ_P3.js';
4
+ import { T as Theme } from './themes-DpsyRSO7.js';
5
+ export { M as MapCompletionOptions, a as MapLocationMatch, b as MapPlaceCompletion, c as MapRegionCompletion, d as completeMapPlaces, e as completeMapRegions, p as palettes, s as searchMapLocations, t as themes } from './themes-DpsyRSO7.js';
6
+ import { M as MapDataSource } from './d3-BiaJtaSw.js';
7
+ export { G as Gazetteer, a as GazetteerEntry, b as MapData, R as RegionName, c as RegionNames } from './d3-BiaJtaSw.js';
8
8
 
9
9
  /**
10
10
  * Make an SVG produced by `@diagrammo/dgmo`'s static `render()` suitable for
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-M3IVOGZE.js";
14
+ } from "./chunk-HDLRRY3N.js";
15
15
  import {
16
16
  renderErrorCard
17
- } from "./chunk-XCAEHWQB.js";
17
+ } from "./chunk-OZOHREFQ.js";
18
18
  import {
19
19
  MAP_DIAGNOSTICS
20
20
  } from "./chunk-EOYPX6SF.js";
@@ -22,18 +22,18 @@ import {
22
22
  D3_DATA_CHART_TYPES,
23
23
  renderDataChartD3,
24
24
  supportsD3DataChart
25
- } from "./chunk-JL7BDLC6.js";
25
+ } from "./chunk-UH5YTZN7.js";
26
26
  import "./chunk-L65WI4HO.js";
27
- import "./chunk-YVDBBWEP.js";
27
+ import "./chunk-QXMHBIQG.js";
28
28
  import "./chunk-YRYKTYMQ.js";
29
29
  import "./chunk-24YPR5EH.js";
30
- import "./chunk-UBW53CNS.js";
30
+ import "./chunk-3E4YB6TY.js";
31
31
  import "./chunk-MG3DE3VO.js";
32
32
  import "./chunk-RU2HHHYA.js";
33
33
  import "./chunk-DEW62ON3.js";
34
- import "./chunk-QT5UMFPE.js";
35
- import "./chunk-4SXHMFFP.js";
36
- import "./chunk-UTCPNJND.js";
34
+ import "./chunk-U4DS2ODO.js";
35
+ import "./chunk-VRPV6QXR.js";
36
+ import "./chunk-53SEVJQM.js";
37
37
  import "./chunk-YT5ICQ4R.js";
38
38
  import "./chunk-MTGGOCND.js";
39
39
  import {
@@ -42,7 +42,7 @@ import {
42
42
  } from "./chunk-U7VO6JAA.js";
43
43
  import {
44
44
  parseDgmo
45
- } from "./chunk-R5JPMW2F.js";
45
+ } from "./chunk-FTTB64OJ.js";
46
46
  import "./chunk-SH4PPRU7.js";
47
47
  import "./chunk-A2RUBBVT.js";
48
48
  import "./chunk-5PFNUDXR.js";
@@ -67,10 +67,10 @@ import "./chunk-Z7KVOVE4.js";
67
67
  import "./chunk-WFA6IULY.js";
68
68
  import "./chunk-BWJLLNUX.js";
69
69
  import "./chunk-KRTLS3G6.js";
70
- import "./chunk-TDHD3HNO.js";
70
+ import "./chunk-F4X5NVKY.js";
71
71
  import {
72
72
  SKETCH_DIAGNOSTICS
73
- } from "./chunk-RT7ACF77.js";
73
+ } from "./chunk-EGY3TS62.js";
74
74
  import {
75
75
  SWIMLANE_DIAGNOSTICS
76
76
  } from "./chunk-W7UBPARG.js";
@@ -94,19 +94,19 @@ import {
94
94
  } from "./chunk-7BMX2M3F.js";
95
95
  import "./chunk-3SP6G4LN.js";
96
96
  import "./chunk-ZM27UI5O.js";
97
- import "./chunk-2NRIGEHZ.js";
97
+ import "./chunk-46KVXDUJ.js";
98
98
  import "./chunk-TPN7RJOM.js";
99
99
  import "./chunk-EQW6HOP4.js";
100
100
  import "./chunk-DAOFNU6J.js";
101
101
  import "./chunk-7NSNE52V.js";
102
102
  import "./chunk-C3Z4DX3V.js";
103
- import "./chunk-DU3OIBQE.js";
103
+ import "./chunk-NWNSXHA5.js";
104
104
  import {
105
105
  GRAPH_DIAGNOSTICS
106
106
  } from "./chunk-7TF3QOOD.js";
107
107
  import "./chunk-M5JT2AU7.js";
108
108
  import "./chunk-NXMESY4J.js";
109
- import "./chunk-SUA56ZSB.js";
109
+ import "./chunk-LTTZX6RD.js";
110
110
  import "./chunk-ICVIJLBA.js";
111
111
  import "./chunk-76NHL5UG.js";
112
112
  import "./chunk-E6PNTYRK.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  layoutGraph
3
- } from "./chunk-GE5RO4BS.js";
3
+ } from "./chunk-N6MZSBOL.js";
4
4
  import "./chunk-6EK55ART.js";
5
5
  import "./chunk-MU3CJPJF.js";
6
6
  import "./chunk-5DH3KYFH.js";
@@ -18,4 +18,4 @@ import "./chunk-5WRI5ZAA.js";
18
18
  export {
19
19
  layoutGraph
20
20
  };
21
- //# sourceMappingURL=layout-UJ62RQQ3.js.map
21
+ //# sourceMappingURL=layout-2OJ25STS.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  SKETCH_AUTO_LAYOUT_DEFAULTS,
3
3
  layoutSketch
4
- } from "./chunk-6DYZ2JM6.js";
5
- import "./chunk-RT7ACF77.js";
4
+ } from "./chunk-FR5EVD2X.js";
5
+ import "./chunk-EGY3TS62.js";
6
6
  import "./chunk-5SI6T5A5.js";
7
7
  import "./chunk-5WRI5ZAA.js";
8
8
  export {
9
9
  SKETCH_AUTO_LAYOUT_DEFAULTS,
10
10
  layoutSketch
11
11
  };
12
- //# sourceMappingURL=layout-DAYQ46PS.js.map
12
+ //# sourceMappingURL=layout-Y2V3LYV7.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  parseSketch
3
- } from "./chunk-TDHD3HNO.js";
4
- import "./chunk-RT7ACF77.js";
3
+ } from "./chunk-F4X5NVKY.js";
4
+ import "./chunk-EGY3TS62.js";
5
5
  import "./chunk-IHOFUR74.js";
6
6
  import "./chunk-NOTA6TEI.js";
7
7
  import "./chunk-76LHNLGX.js";
@@ -12,4 +12,4 @@ import "./chunk-5WRI5ZAA.js";
12
12
  export {
13
13
  parseSketch
14
14
  };
15
- //# sourceMappingURL=parser-LUOINP6H.js.map
15
+ //# sourceMappingURL=parser-QYAIFXLP.js.map
@@ -2,7 +2,7 @@ import {
2
2
  INFRA_TOP_LEVEL_OPTIONS,
3
3
  extractSymbols,
4
4
  parseInfra
5
- } from "./chunk-2NRIGEHZ.js";
5
+ } from "./chunk-46KVXDUJ.js";
6
6
  import "./chunk-7TF3QOOD.js";
7
7
  import "./chunk-IHOFUR74.js";
8
8
  import "./chunk-IYULMRBE.js";
@@ -17,4 +17,4 @@ export {
17
17
  extractSymbols,
18
18
  parseInfra
19
19
  };
20
- //# sourceMappingURL=parser-L7RXUKYN.js.map
20
+ //# sourceMappingURL=parser-WVE6SKB7.js.map
@@ -2,7 +2,7 @@ import {
2
2
  extractSymbols,
3
3
  looksLikeClassDiagram,
4
4
  parseClassDiagram
5
- } from "./chunk-SUA56ZSB.js";
5
+ } from "./chunk-LTTZX6RD.js";
6
6
  import "./chunk-76NHL5UG.js";
7
7
  import "./chunk-E6PNTYRK.js";
8
8
  import "./chunk-IHOFUR74.js";
@@ -16,4 +16,4 @@ export {
16
16
  looksLikeClassDiagram,
17
17
  parseClassDiagram
18
18
  };
19
- //# sourceMappingURL=parser-JYIZEKAS.js.map
19
+ //# sourceMappingURL=parser-ZYAFHXKQ.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  renderWireframe
3
- } from "./chunk-JQ575OAK.js";
3
+ } from "./chunk-MZEGUDTA.js";
4
4
  import "./chunk-24YPR5EH.js";
5
5
  import "./chunk-DEW62ON3.js";
6
- import "./chunk-UTCPNJND.js";
6
+ import "./chunk-53SEVJQM.js";
7
7
  import "./chunk-MTGGOCND.js";
8
8
  import "./chunk-M5OOAP65.js";
9
9
  import "./chunk-GLREDNBA.js";
@@ -13,4 +13,4 @@ import "./chunk-5WRI5ZAA.js";
13
13
  export {
14
14
  renderWireframe
15
15
  };
16
- //# sourceMappingURL=renderer-FUJNSC5X.js.map
16
+ //# sourceMappingURL=renderer-2ANDPQWC.js.map
@@ -2,12 +2,12 @@ import {
2
2
  authoredCollapsedIds,
3
3
  renderBlock,
4
4
  renderBlockForExport
5
- } from "./chunk-UTTRJ6KN.js";
5
+ } from "./chunk-5ZD4DDG7.js";
6
6
  import "./chunk-MG3DE3VO.js";
7
7
  import "./chunk-DEW62ON3.js";
8
- import "./chunk-QT5UMFPE.js";
9
- import "./chunk-4SXHMFFP.js";
10
- import "./chunk-UTCPNJND.js";
8
+ import "./chunk-U4DS2ODO.js";
9
+ import "./chunk-VRPV6QXR.js";
10
+ import "./chunk-53SEVJQM.js";
11
11
  import "./chunk-YT5ICQ4R.js";
12
12
  import "./chunk-MTGGOCND.js";
13
13
  import "./chunk-XSVWUOUZ.js";
@@ -22,4 +22,4 @@ export {
22
22
  renderBlock,
23
23
  renderBlockForExport
24
24
  };
25
- //# sourceMappingURL=renderer-UYZSP7MF.js.map
25
+ //# sourceMappingURL=renderer-2LDT4TUX.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  renderPyramid,
3
3
  renderPyramidForExport
4
- } from "./chunk-UWYZIGCB.js";
4
+ } from "./chunk-RGW26UAR.js";
5
5
  import "./chunk-NCT22MOD.js";
6
6
  import "./chunk-WGC42WJU.js";
7
7
  import "./chunk-24YPR5EH.js";
8
8
  import "./chunk-DEW62ON3.js";
9
- import "./chunk-UTCPNJND.js";
9
+ import "./chunk-53SEVJQM.js";
10
10
  import "./chunk-MTGGOCND.js";
11
11
  import "./chunk-M5OOAP65.js";
12
12
  import "./chunk-GLREDNBA.js";
@@ -17,4 +17,4 @@ export {
17
17
  renderPyramid,
18
18
  renderPyramidForExport
19
19
  };
20
- //# sourceMappingURL=renderer-4EWGZLJ6.js.map
20
+ //# sourceMappingURL=renderer-2NYQDW37.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  renderERDiagram,
3
3
  renderERDiagramForExport
4
- } from "./chunk-QI4Q5ZZH.js";
4
+ } from "./chunk-RV5A3EGI.js";
5
5
  import "./chunk-5VMUVJO4.js";
6
6
  import "./chunk-Q74GP3GK.js";
7
7
  import "./chunk-OWVDD5EC.js";
@@ -15,9 +15,9 @@ import "./chunk-24YPR5EH.js";
15
15
  import "./chunk-MG3DE3VO.js";
16
16
  import "./chunk-RU2HHHYA.js";
17
17
  import "./chunk-DEW62ON3.js";
18
- import "./chunk-QT5UMFPE.js";
19
- import "./chunk-4SXHMFFP.js";
20
- import "./chunk-UTCPNJND.js";
18
+ import "./chunk-U4DS2ODO.js";
19
+ import "./chunk-VRPV6QXR.js";
20
+ import "./chunk-53SEVJQM.js";
21
21
  import "./chunk-YT5ICQ4R.js";
22
22
  import "./chunk-MTGGOCND.js";
23
23
  import "./chunk-ICVIJLBA.js";
@@ -36,4 +36,4 @@ export {
36
36
  renderERDiagram,
37
37
  renderERDiagramForExport
38
38
  };
39
- //# sourceMappingURL=renderer-LBNVKVO3.js.map
39
+ //# sourceMappingURL=renderer-2RIIIO34.js.map