schematex 0.3.2 → 0.3.3

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 (171) hide show
  1. package/dist/ai/ai-sdk.cjs +25 -25
  2. package/dist/ai/ai-sdk.d.cts +1 -1
  3. package/dist/ai/ai-sdk.d.ts +1 -1
  4. package/dist/ai/ai-sdk.js +20 -20
  5. package/dist/ai/index.cjs +28 -28
  6. package/dist/ai/index.d.cts +1 -1
  7. package/dist/ai/index.d.ts +1 -1
  8. package/dist/ai/index.js +20 -20
  9. package/dist/browser.cjs +22 -22
  10. package/dist/browser.js +20 -20
  11. package/dist/{chunk-LFZZ4NCP.cjs → chunk-3WNW5Y7P.cjs} +48 -8
  12. package/dist/chunk-3WNW5Y7P.cjs.map +1 -0
  13. package/dist/{chunk-MKKFIPKU.cjs → chunk-55UEHL57.cjs} +46 -46
  14. package/dist/{chunk-MKKFIPKU.cjs.map → chunk-55UEHL57.cjs.map} +1 -1
  15. package/dist/{chunk-BJ65PKDU.js → chunk-5U2W3HQA.js} +3 -3
  16. package/dist/{chunk-BJ65PKDU.js.map → chunk-5U2W3HQA.js.map} +1 -1
  17. package/dist/{chunk-75BMFCP5.cjs → chunk-5UCXMYE7.cjs} +44 -44
  18. package/dist/{chunk-75BMFCP5.cjs.map → chunk-5UCXMYE7.cjs.map} +1 -1
  19. package/dist/{chunk-F6OROIHS.js → chunk-66XQBGX7.js} +3 -3
  20. package/dist/{chunk-F6OROIHS.js.map → chunk-66XQBGX7.js.map} +1 -1
  21. package/dist/{chunk-HIQPEAL7.js → chunk-6TIN33CA.js} +3 -3
  22. package/dist/{chunk-HIQPEAL7.js.map → chunk-6TIN33CA.js.map} +1 -1
  23. package/dist/{chunk-RNGYXGHS.js → chunk-6YUP3QMA.js} +19 -19
  24. package/dist/{chunk-RNGYXGHS.js.map → chunk-6YUP3QMA.js.map} +1 -1
  25. package/dist/{chunk-C3IVD7DI.cjs → chunk-7EWFVNYD.cjs} +25 -25
  26. package/dist/{chunk-C3IVD7DI.cjs.map → chunk-7EWFVNYD.cjs.map} +1 -1
  27. package/dist/{chunk-56LXBM45.js → chunk-AC3XH3LB.js} +4 -4
  28. package/dist/{chunk-56LXBM45.js.map → chunk-AC3XH3LB.js.map} +1 -1
  29. package/dist/{chunk-YTEEZV6J.cjs → chunk-APV4AWQ5.cjs} +422 -422
  30. package/dist/{chunk-YTEEZV6J.cjs.map → chunk-APV4AWQ5.cjs.map} +1 -1
  31. package/dist/{chunk-UK7JF5QB.cjs → chunk-AVIKQZSX.cjs} +37 -37
  32. package/dist/{chunk-UK7JF5QB.cjs.map → chunk-AVIKQZSX.cjs.map} +1 -1
  33. package/dist/{chunk-OK5RYX55.cjs → chunk-CWZKP3CJ.cjs} +26 -26
  34. package/dist/{chunk-OK5RYX55.cjs.map → chunk-CWZKP3CJ.cjs.map} +1 -1
  35. package/dist/{chunk-2J2QWNGI.js → chunk-FIVUMDLF.js} +26 -7
  36. package/dist/chunk-FIVUMDLF.js.map +1 -0
  37. package/dist/{chunk-ZTSO3S4P.js → chunk-FO7BLCEW.js} +3 -3
  38. package/dist/{chunk-ZTSO3S4P.js.map → chunk-FO7BLCEW.js.map} +1 -1
  39. package/dist/{chunk-6BKUD5EJ.js → chunk-GLFBHQSQ.js} +4 -4
  40. package/dist/{chunk-6BKUD5EJ.js.map → chunk-GLFBHQSQ.js.map} +1 -1
  41. package/dist/{chunk-ZNLEUL7T.js → chunk-GVCPFBAV.js} +4 -4
  42. package/dist/chunk-GVCPFBAV.js.map +1 -0
  43. package/dist/{chunk-KUXOHLGC.cjs → chunk-HOI6QKC6.cjs} +52 -52
  44. package/dist/{chunk-KUXOHLGC.cjs.map → chunk-HOI6QKC6.cjs.map} +1 -1
  45. package/dist/{chunk-L2KUGWFR.cjs → chunk-IAEABLIV.cjs} +46 -46
  46. package/dist/{chunk-L2KUGWFR.cjs.map → chunk-IAEABLIV.cjs.map} +1 -1
  47. package/dist/{chunk-M5ZC3LFJ.js → chunk-IQRRZPVZ.js} +3 -3
  48. package/dist/{chunk-M5ZC3LFJ.js.map → chunk-IQRRZPVZ.js.map} +1 -1
  49. package/dist/{chunk-H4CJTKEH.js → chunk-MNOO7STY.js} +5 -5
  50. package/dist/{chunk-H4CJTKEH.js.map → chunk-MNOO7STY.js.map} +1 -1
  51. package/dist/{chunk-XI6JOG76.cjs → chunk-N56YC75X.cjs} +45 -45
  52. package/dist/{chunk-XI6JOG76.cjs.map → chunk-N56YC75X.cjs.map} +1 -1
  53. package/dist/{chunk-X4F6VVEJ.js → chunk-PAG3BNIV.js} +3 -3
  54. package/dist/{chunk-X4F6VVEJ.js.map → chunk-PAG3BNIV.js.map} +1 -1
  55. package/dist/{chunk-W7GIQTJV.cjs → chunk-PG6TDGKI.cjs} +21 -21
  56. package/dist/{chunk-W7GIQTJV.cjs.map → chunk-PG6TDGKI.cjs.map} +1 -1
  57. package/dist/{chunk-7MVDN5UC.cjs → chunk-Q5OFA4I2.cjs} +35 -35
  58. package/dist/{chunk-7MVDN5UC.cjs.map → chunk-Q5OFA4I2.cjs.map} +1 -1
  59. package/dist/{chunk-BUN3CRMP.cjs → chunk-QOLBWCF5.cjs} +65 -65
  60. package/dist/{chunk-BUN3CRMP.cjs.map → chunk-QOLBWCF5.cjs.map} +1 -1
  61. package/dist/{chunk-2UJAVPA4.cjs → chunk-QXL7AY2H.cjs} +26 -26
  62. package/dist/{chunk-2UJAVPA4.cjs.map → chunk-QXL7AY2H.cjs.map} +1 -1
  63. package/dist/{chunk-WHJXRLFD.js → chunk-SYYBKDL7.js} +48 -8
  64. package/dist/chunk-SYYBKDL7.js.map +1 -0
  65. package/dist/{chunk-SE23X5OE.js → chunk-TQU44E46.js} +4 -4
  66. package/dist/{chunk-SE23X5OE.js.map → chunk-TQU44E46.js.map} +1 -1
  67. package/dist/{chunk-SFSZUOFT.js → chunk-U3KRKXF7.js} +3 -3
  68. package/dist/{chunk-SFSZUOFT.js.map → chunk-U3KRKXF7.js.map} +1 -1
  69. package/dist/{chunk-EYHD7LV3.cjs → chunk-UDGU73RL.cjs} +129 -129
  70. package/dist/{chunk-EYHD7LV3.cjs.map → chunk-UDGU73RL.cjs.map} +1 -1
  71. package/dist/{chunk-M3R6RCXY.js → chunk-UDJ2KN2A.js} +3 -3
  72. package/dist/{chunk-M3R6RCXY.js.map → chunk-UDJ2KN2A.js.map} +1 -1
  73. package/dist/{chunk-BJWMPPEA.js → chunk-UT4TIDAA.js} +3 -3
  74. package/dist/{chunk-BJWMPPEA.js.map → chunk-UT4TIDAA.js.map} +1 -1
  75. package/dist/{chunk-RODV6PC4.cjs → chunk-UWRTV6IV.cjs} +7 -7
  76. package/dist/{chunk-RODV6PC4.cjs.map → chunk-UWRTV6IV.cjs.map} +1 -1
  77. package/dist/{chunk-IT2TVXC7.js → chunk-WTF6JXHN.js} +4 -4
  78. package/dist/{chunk-IT2TVXC7.js.map → chunk-WTF6JXHN.js.map} +1 -1
  79. package/dist/{chunk-7BEJHG43.js → chunk-X5QJO4ZD.js} +3 -3
  80. package/dist/{chunk-7BEJHG43.js.map → chunk-X5QJO4ZD.js.map} +1 -1
  81. package/dist/{chunk-NFT6VW73.js → chunk-XV2DTN6G.js} +3 -3
  82. package/dist/{chunk-NFT6VW73.js.map → chunk-XV2DTN6G.js.map} +1 -1
  83. package/dist/{chunk-XUEROLSB.cjs → chunk-YUPG2M3I.cjs} +16 -16
  84. package/dist/chunk-YUPG2M3I.cjs.map +1 -0
  85. package/dist/{chunk-K5QG53GT.cjs → chunk-ZCW7YH3C.cjs} +26 -26
  86. package/dist/{chunk-K5QG53GT.cjs.map → chunk-ZCW7YH3C.cjs.map} +1 -1
  87. package/dist/{chunk-GYTWJ6VB.cjs → chunk-ZFNZ2FYI.cjs} +67 -48
  88. package/dist/chunk-ZFNZ2FYI.cjs.map +1 -0
  89. package/dist/{chunk-3YXXZ4LT.cjs → chunk-ZZJDGGC3.cjs} +33 -33
  90. package/dist/{chunk-3YXXZ4LT.cjs.map → chunk-ZZJDGGC3.cjs.map} +1 -1
  91. package/dist/diagrams/blockdiagram/index.cjs +6 -6
  92. package/dist/diagrams/blockdiagram/index.d.cts +1 -1
  93. package/dist/diagrams/blockdiagram/index.d.ts +1 -1
  94. package/dist/diagrams/blockdiagram/index.js +2 -2
  95. package/dist/diagrams/circuit/index.cjs +8 -8
  96. package/dist/diagrams/circuit/index.d.cts +1 -1
  97. package/dist/diagrams/circuit/index.d.ts +1 -1
  98. package/dist/diagrams/circuit/index.js +2 -2
  99. package/dist/diagrams/ecomap/index.cjs +8 -8
  100. package/dist/diagrams/ecomap/index.d.cts +1 -1
  101. package/dist/diagrams/ecomap/index.d.ts +1 -1
  102. package/dist/diagrams/ecomap/index.js +3 -3
  103. package/dist/diagrams/entity/index.cjs +6 -6
  104. package/dist/diagrams/entity/index.d.cts +1 -1
  105. package/dist/diagrams/entity/index.d.ts +1 -1
  106. package/dist/diagrams/entity/index.js +2 -2
  107. package/dist/diagrams/fishbone/index.cjs +8 -8
  108. package/dist/diagrams/fishbone/index.d.cts +1 -1
  109. package/dist/diagrams/fishbone/index.d.ts +1 -1
  110. package/dist/diagrams/fishbone/index.js +2 -2
  111. package/dist/diagrams/flowchart/index.cjs +8 -8
  112. package/dist/diagrams/flowchart/index.d.cts +2 -2
  113. package/dist/diagrams/flowchart/index.d.ts +2 -2
  114. package/dist/diagrams/flowchart/index.js +2 -2
  115. package/dist/diagrams/genogram/index.cjs +10 -10
  116. package/dist/diagrams/genogram/index.d.cts +1 -1
  117. package/dist/diagrams/genogram/index.d.ts +1 -1
  118. package/dist/diagrams/genogram/index.js +3 -3
  119. package/dist/diagrams/ladder/index.cjs +6 -6
  120. package/dist/diagrams/ladder/index.d.cts +1 -1
  121. package/dist/diagrams/ladder/index.d.ts +1 -1
  122. package/dist/diagrams/ladder/index.js +2 -2
  123. package/dist/diagrams/logic/index.cjs +6 -6
  124. package/dist/diagrams/logic/index.d.cts +1 -1
  125. package/dist/diagrams/logic/index.d.ts +1 -1
  126. package/dist/diagrams/logic/index.js +2 -2
  127. package/dist/diagrams/orgchart/index.cjs +7 -7
  128. package/dist/diagrams/orgchart/index.d.cts +1 -1
  129. package/dist/diagrams/orgchart/index.d.ts +1 -1
  130. package/dist/diagrams/orgchart/index.js +2 -2
  131. package/dist/diagrams/pedigree/index.cjs +8 -8
  132. package/dist/diagrams/pedigree/index.d.cts +1 -1
  133. package/dist/diagrams/pedigree/index.d.ts +1 -1
  134. package/dist/diagrams/pedigree/index.js +3 -3
  135. package/dist/diagrams/phylo/index.cjs +7 -7
  136. package/dist/diagrams/phylo/index.d.cts +1 -1
  137. package/dist/diagrams/phylo/index.d.ts +1 -1
  138. package/dist/diagrams/phylo/index.js +2 -2
  139. package/dist/diagrams/sld/index.cjs +6 -6
  140. package/dist/diagrams/sld/index.d.cts +1 -1
  141. package/dist/diagrams/sld/index.d.ts +1 -1
  142. package/dist/diagrams/sld/index.js +2 -2
  143. package/dist/diagrams/sociogram/index.cjs +7 -7
  144. package/dist/diagrams/sociogram/index.d.cts +1 -1
  145. package/dist/diagrams/sociogram/index.d.ts +1 -1
  146. package/dist/diagrams/sociogram/index.js +3 -3
  147. package/dist/diagrams/timing/index.cjs +5 -5
  148. package/dist/diagrams/timing/index.d.cts +1 -1
  149. package/dist/diagrams/timing/index.d.ts +1 -1
  150. package/dist/diagrams/timing/index.js +2 -2
  151. package/dist/diagrams/venn/index.cjs +9 -9
  152. package/dist/diagrams/venn/index.d.cts +1 -1
  153. package/dist/diagrams/venn/index.d.ts +1 -1
  154. package/dist/diagrams/venn/index.js +2 -2
  155. package/dist/{index-dWDwG6BW.d.ts → index-D3u6vcA4.d.ts} +1 -1
  156. package/dist/{index-BrLxEzSQ.d.cts → index-bdfj6FpQ.d.cts} +1 -1
  157. package/dist/index.cjs +41 -41
  158. package/dist/index.d.cts +2 -2
  159. package/dist/index.d.ts +2 -2
  160. package/dist/index.js +19 -19
  161. package/dist/react.cjs +20 -20
  162. package/dist/react.js +19 -19
  163. package/dist/{types-BtiUg7Gx.d.cts → types-DnU2UlWz.d.cts} +2 -0
  164. package/dist/{types-BtiUg7Gx.d.ts → types-DnU2UlWz.d.ts} +2 -0
  165. package/package.json +1 -1
  166. package/dist/chunk-2J2QWNGI.js.map +0 -1
  167. package/dist/chunk-GYTWJ6VB.cjs.map +0 -1
  168. package/dist/chunk-LFZZ4NCP.cjs.map +0 -1
  169. package/dist/chunk-WHJXRLFD.js.map +0 -1
  170. package/dist/chunk-XUEROLSB.cjs.map +0 -1
  171. package/dist/chunk-ZNLEUL7T.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunk75BMFCP5_cjs = require('./chunk-75BMFCP5.cjs');
3
+ var chunk5UCXMYE7_cjs = require('./chunk-5UCXMYE7.cjs');
4
4
  var chunkD7EHZFK4_cjs = require('./chunk-D7EHZFK4.cjs');
5
- var chunkLFZZ4NCP_cjs = require('./chunk-LFZZ4NCP.cjs');
5
+ var chunk3WNW5Y7P_cjs = require('./chunk-3WNW5Y7P.cjs');
6
6
 
7
7
  // src/diagrams/genogram/parser.ts
8
8
  var ParseError = class extends Error {
@@ -128,7 +128,7 @@ function parseGenogram(text2) {
128
128
  state.currentLine++;
129
129
  continue;
130
130
  }
131
- if (chunk75BMFCP5_cjs.parseLegendDirective(trimmed, legendOverrides)) {
131
+ if (chunk5UCXMYE7_cjs.parseLegendDirective(trimmed, legendOverrides)) {
132
132
  state.currentLine++;
133
133
  continue;
134
134
  }
@@ -1396,7 +1396,7 @@ function renderIndividualSymbol(individual, x, y, size) {
1396
1396
  ];
1397
1397
  if (individual.status === "deceased") classes.push("schematex-genogram-deceased");
1398
1398
  const titleText = formatTitle(individual);
1399
- const children = [chunkLFZZ4NCP_cjs.title(titleText)];
1399
+ const children = [chunk3WNW5Y7P_cjs.title(titleText)];
1400
1400
  const isIndex = individual.markers?.includes("index-person");
1401
1401
  if (isIndex) {
1402
1402
  children.push(indexBorder(individual.sex, half));
@@ -1414,7 +1414,7 @@ function renderIndividualSymbol(individual, x, y, size) {
1414
1414
  const ageToShow = individual.age ?? calcAge(individual);
1415
1415
  if (ageToShow !== void 0) {
1416
1416
  children.push(
1417
- chunkLFZZ4NCP_cjs.text(
1417
+ chunk3WNW5Y7P_cjs.text(
1418
1418
  {
1419
1419
  x: 0,
1420
1420
  y: 5,
@@ -1430,7 +1430,7 @@ function renderIndividualSymbol(individual, x, y, size) {
1430
1430
  if (isUnknownSiblings) {
1431
1431
  classes.push("schematex-genogram-unknown-siblings");
1432
1432
  children.push(
1433
- chunkLFZZ4NCP_cjs.text(
1433
+ chunk3WNW5Y7P_cjs.text(
1434
1434
  {
1435
1435
  x: 0,
1436
1436
  y: 5,
@@ -1443,7 +1443,7 @@ function renderIndividualSymbol(individual, x, y, size) {
1443
1443
  )
1444
1444
  );
1445
1445
  }
1446
- return chunkLFZZ4NCP_cjs.group(
1446
+ return chunk3WNW5Y7P_cjs.group(
1447
1447
  {
1448
1448
  class: classes.join(" "),
1449
1449
  "data-individual-id": individual.id,
@@ -1463,14 +1463,14 @@ function getRequiredDefs(individuals, includeArrowMarker = false) {
1463
1463
  }
1464
1464
  const children = [];
1465
1465
  function quadClips(suffix, x, y, w, h) {
1466
- const r = chunkLFZZ4NCP_cjs.rect({ x, y, width: w, height: h });
1466
+ const r = chunk3WNW5Y7P_cjs.rect({ x, y, width: w, height: h });
1467
1467
  children.push(
1468
- chunkLFZZ4NCP_cjs.el(
1468
+ chunk3WNW5Y7P_cjs.el(
1469
1469
  "clipPath",
1470
1470
  { id: `schematex-genogram-clip-${suffix}-rect`, clipPathUnits: "objectBoundingBox" },
1471
1471
  [r]
1472
1472
  ),
1473
- chunkLFZZ4NCP_cjs.el(
1473
+ chunk3WNW5Y7P_cjs.el(
1474
1474
  "clipPath",
1475
1475
  { id: `schematex-genogram-clip-${suffix}-circle`, clipPathUnits: "objectBoundingBox" },
1476
1476
  [r]
@@ -1488,7 +1488,7 @@ function getRequiredDefs(individuals, includeArrowMarker = false) {
1488
1488
  if (neededFills.has("quad-br")) quadClips("quad-br", 0.5, 0.5, 0.5, 0.5);
1489
1489
  if (neededFills.has("striped")) {
1490
1490
  children.push(
1491
- chunkLFZZ4NCP_cjs.pattern(
1491
+ chunk3WNW5Y7P_cjs.pattern(
1492
1492
  {
1493
1493
  id: "schematex-genogram-pattern-striped",
1494
1494
  patternUnits: "userSpaceOnUse",
@@ -1496,7 +1496,7 @@ function getRequiredDefs(individuals, includeArrowMarker = false) {
1496
1496
  height: "4"
1497
1497
  },
1498
1498
  [
1499
- chunkLFZZ4NCP_cjs.path({
1499
+ chunk3WNW5Y7P_cjs.path({
1500
1500
  d: "M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2",
1501
1501
  stroke: "#333",
1502
1502
  "stroke-width": "1"
@@ -1507,7 +1507,7 @@ function getRequiredDefs(individuals, includeArrowMarker = false) {
1507
1507
  }
1508
1508
  if (neededFills.has("dotted")) {
1509
1509
  children.push(
1510
- chunkLFZZ4NCP_cjs.pattern(
1510
+ chunk3WNW5Y7P_cjs.pattern(
1511
1511
  {
1512
1512
  id: "schematex-genogram-pattern-dotted",
1513
1513
  patternUnits: "userSpaceOnUse",
@@ -1515,14 +1515,14 @@ function getRequiredDefs(individuals, includeArrowMarker = false) {
1515
1515
  height: "6"
1516
1516
  },
1517
1517
  [
1518
- chunkLFZZ4NCP_cjs.circle({ cx: "3", cy: "3", r: "1", fill: "#333" })
1518
+ chunk3WNW5Y7P_cjs.circle({ cx: "3", cy: "3", r: "1", fill: "#333" })
1519
1519
  ]
1520
1520
  )
1521
1521
  );
1522
1522
  }
1523
1523
  if (includeArrowMarker) {
1524
1524
  children.push(
1525
- chunkLFZZ4NCP_cjs.el("marker", {
1525
+ chunk3WNW5Y7P_cjs.el("marker", {
1526
1526
  id: "schematex-genogram-arrow",
1527
1527
  viewBox: "0 0 10 10",
1528
1528
  refX: "10",
@@ -1531,11 +1531,11 @@ function getRequiredDefs(individuals, includeArrowMarker = false) {
1531
1531
  markerHeight: "6",
1532
1532
  orient: "auto"
1533
1533
  }, [
1534
- chunkLFZZ4NCP_cjs.path({ d: "M 0 0 L 10 5 L 0 10 z", fill: "#333" })
1534
+ chunk3WNW5Y7P_cjs.path({ d: "M 0 0 L 10 5 L 0 10 z", fill: "#333" })
1535
1535
  ])
1536
1536
  );
1537
1537
  }
1538
- return chunkLFZZ4NCP_cjs.defs(children);
1538
+ return chunk3WNW5Y7P_cjs.defs(children);
1539
1539
  }
1540
1540
  function capitalize(s) {
1541
1541
  return s.charAt(0).toUpperCase() + s.slice(1);
@@ -1560,7 +1560,7 @@ function indexBorder(sex, half) {
1560
1560
  const outer = half + 4;
1561
1561
  switch (sex) {
1562
1562
  case "male":
1563
- return chunkLFZZ4NCP_cjs.rect({
1563
+ return chunk3WNW5Y7P_cjs.rect({
1564
1564
  x: -outer,
1565
1565
  y: -outer,
1566
1566
  width: outer * 2,
@@ -1568,7 +1568,7 @@ function indexBorder(sex, half) {
1568
1568
  class: "schematex-genogram-index-border"
1569
1569
  });
1570
1570
  case "female":
1571
- return chunkLFZZ4NCP_cjs.circle({
1571
+ return chunk3WNW5Y7P_cjs.circle({
1572
1572
  cx: 0,
1573
1573
  cy: 0,
1574
1574
  r: outer,
@@ -1578,7 +1578,7 @@ function indexBorder(sex, half) {
1578
1578
  case "other":
1579
1579
  case "nonbinary":
1580
1580
  case "intersex":
1581
- return chunkLFZZ4NCP_cjs.polygon({
1581
+ return chunk3WNW5Y7P_cjs.polygon({
1582
1582
  points: `0,${-outer} ${outer},0 0,${outer} ${-outer},0`,
1583
1583
  class: "schematex-genogram-index-border"
1584
1584
  });
@@ -1588,32 +1588,32 @@ function baseShape(sex, half, shape) {
1588
1588
  const cls = "schematex-genogram-shape";
1589
1589
  switch (shape) {
1590
1590
  case "square":
1591
- return chunkLFZZ4NCP_cjs.rect({ x: -half, y: -half, width: half * 2, height: half * 2, class: cls });
1591
+ return chunk3WNW5Y7P_cjs.rect({ x: -half, y: -half, width: half * 2, height: half * 2, class: cls });
1592
1592
  case "circle":
1593
- return chunkLFZZ4NCP_cjs.circle({ cx: 0, cy: 0, r: half, class: cls });
1593
+ return chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r: half, class: cls });
1594
1594
  case "diamond":
1595
- return chunkLFZZ4NCP_cjs.polygon({ points: `0,${-half} ${half},0 0,${half} ${-half},0`, class: cls });
1595
+ return chunk3WNW5Y7P_cjs.polygon({ points: `0,${-half} ${half},0 0,${half} ${-half},0`, class: cls });
1596
1596
  case "triangle":
1597
- return chunkLFZZ4NCP_cjs.polygon({ points: `0,${-half} ${half},${half} ${-half},${half}`, class: cls });
1597
+ return chunk3WNW5Y7P_cjs.polygon({ points: `0,${-half} ${half},${half} ${-half},${half}`, class: cls });
1598
1598
  case "triangle-down":
1599
- return chunkLFZZ4NCP_cjs.polygon({ points: `${-half},${-half} ${half},${-half} 0,${half}`, class: cls });
1599
+ return chunk3WNW5Y7P_cjs.polygon({ points: `${-half},${-half} ${half},${-half} 0,${half}`, class: cls });
1600
1600
  }
1601
1601
  switch (sex) {
1602
1602
  case "male":
1603
- return chunkLFZZ4NCP_cjs.rect({ x: -half, y: -half, width: half * 2, height: half * 2, class: cls });
1603
+ return chunk3WNW5Y7P_cjs.rect({ x: -half, y: -half, width: half * 2, height: half * 2, class: cls });
1604
1604
  case "female":
1605
- return chunkLFZZ4NCP_cjs.circle({ cx: 0, cy: 0, r: half, class: cls });
1605
+ return chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r: half, class: cls });
1606
1606
  case "unknown":
1607
1607
  case "other":
1608
1608
  case "nonbinary":
1609
1609
  case "intersex":
1610
- return chunkLFZZ4NCP_cjs.polygon({ points: `0,${-half} ${half},0 0,${half} ${-half},0`, class: cls });
1610
+ return chunk3WNW5Y7P_cjs.polygon({ points: `0,${-half} ${half},0 0,${half} ${-half},0`, class: cls });
1611
1611
  }
1612
1612
  }
1613
1613
  function deceasedOverlay(sex, half) {
1614
1614
  const extend = sex === "female" ? half * 0.707 : half;
1615
1615
  return [
1616
- chunkLFZZ4NCP_cjs.line({
1616
+ chunk3WNW5Y7P_cjs.line({
1617
1617
  x1: -extend,
1618
1618
  y1: -extend,
1619
1619
  x2: extend,
@@ -1622,7 +1622,7 @@ function deceasedOverlay(sex, half) {
1622
1622
  stroke: "#333",
1623
1623
  "stroke-width": "2"
1624
1624
  }),
1625
- chunkLFZZ4NCP_cjs.line({
1625
+ chunk3WNW5Y7P_cjs.line({
1626
1626
  x1: extend,
1627
1627
  y1: -extend,
1628
1628
  x2: -extend,
@@ -1650,15 +1650,15 @@ function conditionFillElement(sex, half, cond) {
1650
1650
  attrs.class = `schematex-genogram-condition-fill schematex-genogram-condition-${cond.label}`;
1651
1651
  switch (sex) {
1652
1652
  case "male":
1653
- return chunkLFZZ4NCP_cjs.rect({ x: -half, y: -half, width: half * 2, height: half * 2, ...attrs });
1653
+ return chunk3WNW5Y7P_cjs.rect({ x: -half, y: -half, width: half * 2, height: half * 2, ...attrs });
1654
1654
  case "female":
1655
- return chunkLFZZ4NCP_cjs.circle({ cx: 0, cy: 0, r: half, ...attrs });
1655
+ return chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r: half, ...attrs });
1656
1656
  case "unknown":
1657
1657
  case "other":
1658
1658
  case "nonbinary":
1659
1659
  case "intersex":
1660
1660
  default:
1661
- return chunkLFZZ4NCP_cjs.polygon({
1661
+ return chunk3WNW5Y7P_cjs.polygon({
1662
1662
  points: `0,${-half} ${half},0 0,${half} ${-half},0`,
1663
1663
  ...attrs
1664
1664
  });
@@ -2172,8 +2172,8 @@ function renderGenogram(layout, config, ast) {
2172
2172
  const titleHeight = chartTitle ? 40 : 0;
2173
2173
  const totalHeight = layout.height + titleHeight;
2174
2174
  const layers = [
2175
- chunkLFZZ4NCP_cjs.title(chartTitle ? `Genogram: ${chartTitle}` : "Genogram"),
2176
- chunkLFZZ4NCP_cjs.desc(
2175
+ chunk3WNW5Y7P_cjs.title(chartTitle ? `Genogram: ${chartTitle}` : "Genogram"),
2176
+ chunk3WNW5Y7P_cjs.desc(
2177
2177
  `Genogram diagram with ${nodeCount} individuals across ${genCount} generations`
2178
2178
  ),
2179
2179
  defsStr,
@@ -2182,7 +2182,7 @@ function renderGenogram(layout, config, ast) {
2182
2182
  const chartContent = [];
2183
2183
  if (chartTitle) {
2184
2184
  chartContent.push(
2185
- chunkLFZZ4NCP_cjs.text(
2185
+ chunk3WNW5Y7P_cjs.text(
2186
2186
  {
2187
2187
  x: layout.width / 2,
2188
2188
  y: 28,
@@ -2197,7 +2197,7 @@ function renderGenogram(layout, config, ast) {
2197
2197
  );
2198
2198
  }
2199
2199
  chartContent.push(
2200
- chunkLFZZ4NCP_cjs.group(
2200
+ chunk3WNW5Y7P_cjs.group(
2201
2201
  { transform: titleHeight > 0 ? `translate(0, ${titleHeight})` : void 0 },
2202
2202
  [edgeLayers, siblingOfLayer, emotionalLayer, ...nodeLayers, labelLayer, edgeLabelLayer]
2203
2203
  )
@@ -2208,9 +2208,9 @@ function renderGenogram(layout, config, ast) {
2208
2208
  if (ast) {
2209
2209
  const themeBase = chunkD7EHZFK4_cjs.resolveGenogramTheme(config.theme);
2210
2210
  const autoSpec = buildGenogramLegend(ast, themeBase);
2211
- const finalSpec = chunk75BMFCP5_cjs.applyLegendOverrides(autoSpec, ast.legendOverrides);
2211
+ const finalSpec = chunk5UCXMYE7_cjs.applyLegendOverrides(autoSpec, ast.legendOverrides);
2212
2212
  if (finalSpec.mode === "on" && finalSpec.items.length > 0) {
2213
- const { svg, bbox: lb } = chunk75BMFCP5_cjs.renderLegend(
2213
+ const { svg, bbox: lb } = chunk5UCXMYE7_cjs.renderLegend(
2214
2214
  finalSpec,
2215
2215
  {
2216
2216
  canvasWidth: layout.width,
@@ -2232,13 +2232,13 @@ function renderGenogram(layout, config, ast) {
2232
2232
  }
2233
2233
  const chartXOffset = Math.max(0, (finalWidth - layout.width) / 2);
2234
2234
  layers.push(
2235
- chunkLFZZ4NCP_cjs.group(
2235
+ chunk3WNW5Y7P_cjs.group(
2236
2236
  { transform: chartXOffset > 0 ? `translate(${chartXOffset}, 0)` : void 0 },
2237
2237
  chartContent
2238
2238
  )
2239
2239
  );
2240
2240
  if (legendSvg) layers.push(legendSvg);
2241
- return chunkLFZZ4NCP_cjs.svgRoot(
2241
+ return chunk3WNW5Y7P_cjs.svgRoot(
2242
2242
  {
2243
2243
  viewBox: `0 0 ${finalWidth} ${finalHeight}`,
2244
2244
  class: "schematex-diagram schematex-genogram",
@@ -2278,7 +2278,7 @@ function buildStyles(config) {
2278
2278
  .schematex-genogram-edge-label { font-family: ${config.fontFamily}; fill: ${t.text}; }
2279
2279
  .schematex-genogram-index-border { stroke: ${t.warn}; stroke-width: ${chunkD7EHZFK4_cjs.STROKE_WIDTH.thick}; fill: none; }
2280
2280
  `;
2281
- return chunkLFZZ4NCP_cjs.el("style", {}, css);
2281
+ return chunk3WNW5Y7P_cjs.el("style", {}, css);
2282
2282
  }
2283
2283
  var EMOTIONAL_REL_TYPES2 = /* @__PURE__ */ new Set([
2284
2284
  "harmony",
@@ -2339,7 +2339,7 @@ function getEmotionalStrokeWidth(type) {
2339
2339
  return 2;
2340
2340
  }
2341
2341
  function renderEmotionalEdges(edges) {
2342
- if (edges.length === 0) return chunkLFZZ4NCP_cjs.group({ class: "schematex-genogram-emotional-edges" }, []);
2342
+ if (edges.length === 0) return chunk3WNW5Y7P_cjs.group({ class: "schematex-genogram-emotional-edges" }, []);
2343
2343
  const children = [];
2344
2344
  for (const edge of edges) {
2345
2345
  const type = edge.relationship.type;
@@ -2348,7 +2348,7 @@ function renderEmotionalEdges(edges) {
2348
2348
  const strokeWidth = getEmotionalStrokeWidth(type);
2349
2349
  const directional = edge.relationship.directional;
2350
2350
  const elements = [
2351
- chunkLFZZ4NCP_cjs.el("path", {
2351
+ chunk3WNW5Y7P_cjs.el("path", {
2352
2352
  d: edge.path,
2353
2353
  fill: "none",
2354
2354
  stroke: color,
@@ -2361,7 +2361,7 @@ function renderEmotionalEdges(edges) {
2361
2361
  const mid = pathMidpoint(edge.path);
2362
2362
  if (mid) {
2363
2363
  elements.push(
2364
- chunkLFZZ4NCP_cjs.text(
2364
+ chunk3WNW5Y7P_cjs.text(
2365
2365
  {
2366
2366
  x: mid.x,
2367
2367
  y: mid.y - 6,
@@ -2376,7 +2376,7 @@ function renderEmotionalEdges(edges) {
2376
2376
  }
2377
2377
  }
2378
2378
  children.push(
2379
- chunkLFZZ4NCP_cjs.group(
2379
+ chunk3WNW5Y7P_cjs.group(
2380
2380
  {
2381
2381
  class: `schematex-genogram-emotional schematex-genogram-emotional-${type}`,
2382
2382
  "data-from": edge.from,
@@ -2387,7 +2387,7 @@ function renderEmotionalEdges(edges) {
2387
2387
  )
2388
2388
  );
2389
2389
  }
2390
- return chunkLFZZ4NCP_cjs.group({ class: "schematex-genogram-emotional-edges" }, children);
2390
+ return chunk3WNW5Y7P_cjs.group({ class: "schematex-genogram-emotional-edges" }, children);
2391
2391
  }
2392
2392
  function renderEdgeLabels(edges, config) {
2393
2393
  const labels = [];
@@ -2396,7 +2396,7 @@ function renderEdgeLabels(edges, config) {
2396
2396
  const mid = pathMidpoint(edge.path);
2397
2397
  if (!mid) continue;
2398
2398
  labels.push(
2399
- chunkLFZZ4NCP_cjs.text(
2399
+ chunk3WNW5Y7P_cjs.text(
2400
2400
  {
2401
2401
  x: mid.x,
2402
2402
  y: mid.y - 6,
@@ -2409,7 +2409,7 @@ function renderEdgeLabels(edges, config) {
2409
2409
  )
2410
2410
  );
2411
2411
  }
2412
- return chunkLFZZ4NCP_cjs.group({ class: "schematex-genogram-edge-labels" }, labels);
2412
+ return chunk3WNW5Y7P_cjs.group({ class: "schematex-genogram-edge-labels" }, labels);
2413
2413
  }
2414
2414
  function renderEdges(edges) {
2415
2415
  const children = [];
@@ -2418,13 +2418,13 @@ function renderEdges(edges) {
2418
2418
  const isSecondary = edge.relationship.secondary === true;
2419
2419
  const cssClass = isSecondary ? `schematex-genogram-edge schematex-genogram-edge-secondary schematex-genogram-edge-secondary-${relType}` : `schematex-genogram-edge schematex-genogram-edge-${relType}`;
2420
2420
  const elements = [
2421
- chunkLFZZ4NCP_cjs.el("path", { d: edge.path, class: "schematex-genogram-edge-path" })
2421
+ chunk3WNW5Y7P_cjs.el("path", { d: edge.path, class: "schematex-genogram-edge-path" })
2422
2422
  ];
2423
2423
  if (relType === "cohabiting-ended" && !isSecondary) {
2424
2424
  const mid = pathMidpoint(edge.path);
2425
2425
  if (mid) {
2426
2426
  elements.push(
2427
- chunkLFZZ4NCP_cjs.el("line", {
2427
+ chunk3WNW5Y7P_cjs.el("line", {
2428
2428
  x1: mid.x - 4,
2429
2429
  y1: mid.y - 6,
2430
2430
  x2: mid.x + 4,
@@ -2440,7 +2440,7 @@ function renderEdges(edges) {
2440
2440
  const mid = pathMidpoint(edge.path);
2441
2441
  if (mid) {
2442
2442
  elements.push(
2443
- chunkLFZZ4NCP_cjs.el("line", {
2443
+ chunk3WNW5Y7P_cjs.el("line", {
2444
2444
  x1: mid.x - 4,
2445
2445
  y1: mid.y - 6,
2446
2446
  x2: mid.x + 4,
@@ -2449,7 +2449,7 @@ function renderEdges(edges) {
2449
2449
  stroke: "#333",
2450
2450
  "stroke-width": "2"
2451
2451
  }),
2452
- chunkLFZZ4NCP_cjs.el("line", {
2452
+ chunk3WNW5Y7P_cjs.el("line", {
2453
2453
  x1: mid.x - 4 + 6,
2454
2454
  y1: mid.y - 6,
2455
2455
  x2: mid.x + 4 + 6,
@@ -2465,7 +2465,7 @@ function renderEdges(edges) {
2465
2465
  const mid = pathMidpoint(edge.path);
2466
2466
  if (mid) {
2467
2467
  elements.push(
2468
- chunkLFZZ4NCP_cjs.el("line", {
2468
+ chunk3WNW5Y7P_cjs.el("line", {
2469
2469
  x1: mid.x - 4,
2470
2470
  y1: mid.y - 6,
2471
2471
  x2: mid.x + 4,
@@ -2478,7 +2478,7 @@ function renderEdges(edges) {
2478
2478
  }
2479
2479
  }
2480
2480
  children.push(
2481
- chunkLFZZ4NCP_cjs.group(
2481
+ chunk3WNW5Y7P_cjs.group(
2482
2482
  {
2483
2483
  class: cssClass,
2484
2484
  "data-from": edge.from,
@@ -2488,7 +2488,7 @@ function renderEdges(edges) {
2488
2488
  )
2489
2489
  );
2490
2490
  }
2491
- return chunkLFZZ4NCP_cjs.group({ class: "schematex-genogram-edges" }, children);
2491
+ return chunk3WNW5Y7P_cjs.group({ class: "schematex-genogram-edges" }, children);
2492
2492
  }
2493
2493
  function pathMidpoint(pathData) {
2494
2494
  const coords = pathData.match(/[\d.-]+/g);
@@ -2523,7 +2523,7 @@ function renderNodes(genGroups) {
2523
2523
  );
2524
2524
  }
2525
2525
  layers.push(
2526
- chunkLFZZ4NCP_cjs.group(
2526
+ chunk3WNW5Y7P_cjs.group(
2527
2527
  {
2528
2528
  class: `schematex-genogram-generation schematex-genogram-generation-${genIdx}`,
2529
2529
  "data-generation": genIdx
@@ -2535,7 +2535,7 @@ function renderNodes(genGroups) {
2535
2535
  return layers;
2536
2536
  }
2537
2537
  function renderSiblingOfBrackets(layout, ast) {
2538
- if (!ast) return chunkLFZZ4NCP_cjs.group({ class: "schematex-genogram-sibling-of-edges" }, []);
2538
+ if (!ast) return chunk3WNW5Y7P_cjs.group({ class: "schematex-genogram-sibling-of-edges" }, []);
2539
2539
  const elements = [];
2540
2540
  const nodeById = new Map(layout.nodes.map((n) => [n.id, n]));
2541
2541
  for (const ind of ast.individuals) {
@@ -2551,17 +2551,17 @@ function renderSiblingOfBrackets(layout, ast) {
2551
2551
  const bracketY = Math.min(fromTopY, toTopY) - 12;
2552
2552
  const path2 = `M ${fromCx} ${fromTopY} L ${fromCx} ${bracketY} L ${toCx} ${bracketY} L ${toCx} ${toTopY}`;
2553
2553
  elements.push(
2554
- chunkLFZZ4NCP_cjs.group(
2554
+ chunk3WNW5Y7P_cjs.group(
2555
2555
  {
2556
2556
  class: "schematex-genogram-sibling-of",
2557
2557
  "data-from": ind.id,
2558
2558
  "data-to": ind.siblingOf
2559
2559
  },
2560
- [chunkLFZZ4NCP_cjs.el("path", { d: path2 })]
2560
+ [chunk3WNW5Y7P_cjs.el("path", { d: path2 })]
2561
2561
  )
2562
2562
  );
2563
2563
  }
2564
- return chunkLFZZ4NCP_cjs.group({ class: "schematex-genogram-sibling-of-edges" }, elements);
2564
+ return chunk3WNW5Y7P_cjs.group({ class: "schematex-genogram-sibling-of-edges" }, elements);
2565
2565
  }
2566
2566
  function renderLabels(nodes, config) {
2567
2567
  const labels = [];
@@ -2577,7 +2577,7 @@ function renderLabels(nodes, config) {
2577
2577
  labelText += ` (b. ${ind.birthYear})`;
2578
2578
  }
2579
2579
  labels.push(
2580
- chunkLFZZ4NCP_cjs.text(
2580
+ chunk3WNW5Y7P_cjs.text(
2581
2581
  {
2582
2582
  x: cx,
2583
2583
  y: labelY,
@@ -2588,7 +2588,7 @@ function renderLabels(nodes, config) {
2588
2588
  )
2589
2589
  );
2590
2590
  }
2591
- return chunkLFZZ4NCP_cjs.group({ class: "schematex-genogram-labels" }, labels);
2591
+ return chunk3WNW5Y7P_cjs.group({ class: "schematex-genogram-labels" }, labels);
2592
2592
  }
2593
2593
 
2594
2594
  // src/diagrams/genogram/index.ts
@@ -2625,5 +2625,5 @@ exports.layoutGenogram = layoutGenogram;
2625
2625
  exports.parseGenogram = parseGenogram;
2626
2626
  exports.renderGenogram = renderGenogram;
2627
2627
  exports.renderIndividualSymbol = renderIndividualSymbol;
2628
- //# sourceMappingURL=chunk-BUN3CRMP.cjs.map
2629
- //# sourceMappingURL=chunk-BUN3CRMP.cjs.map
2628
+ //# sourceMappingURL=chunk-QOLBWCF5.cjs.map
2629
+ //# sourceMappingURL=chunk-QOLBWCF5.cjs.map