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.
- package/dist/ai/ai-sdk.cjs +25 -25
- package/dist/ai/ai-sdk.d.cts +1 -1
- package/dist/ai/ai-sdk.d.ts +1 -1
- package/dist/ai/ai-sdk.js +20 -20
- package/dist/ai/index.cjs +28 -28
- package/dist/ai/index.d.cts +1 -1
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +20 -20
- package/dist/browser.cjs +22 -22
- package/dist/browser.js +20 -20
- package/dist/{chunk-LFZZ4NCP.cjs → chunk-3WNW5Y7P.cjs} +48 -8
- package/dist/chunk-3WNW5Y7P.cjs.map +1 -0
- package/dist/{chunk-MKKFIPKU.cjs → chunk-55UEHL57.cjs} +46 -46
- package/dist/{chunk-MKKFIPKU.cjs.map → chunk-55UEHL57.cjs.map} +1 -1
- package/dist/{chunk-BJ65PKDU.js → chunk-5U2W3HQA.js} +3 -3
- package/dist/{chunk-BJ65PKDU.js.map → chunk-5U2W3HQA.js.map} +1 -1
- package/dist/{chunk-75BMFCP5.cjs → chunk-5UCXMYE7.cjs} +44 -44
- package/dist/{chunk-75BMFCP5.cjs.map → chunk-5UCXMYE7.cjs.map} +1 -1
- package/dist/{chunk-F6OROIHS.js → chunk-66XQBGX7.js} +3 -3
- package/dist/{chunk-F6OROIHS.js.map → chunk-66XQBGX7.js.map} +1 -1
- package/dist/{chunk-HIQPEAL7.js → chunk-6TIN33CA.js} +3 -3
- package/dist/{chunk-HIQPEAL7.js.map → chunk-6TIN33CA.js.map} +1 -1
- package/dist/{chunk-RNGYXGHS.js → chunk-6YUP3QMA.js} +19 -19
- package/dist/{chunk-RNGYXGHS.js.map → chunk-6YUP3QMA.js.map} +1 -1
- package/dist/{chunk-C3IVD7DI.cjs → chunk-7EWFVNYD.cjs} +25 -25
- package/dist/{chunk-C3IVD7DI.cjs.map → chunk-7EWFVNYD.cjs.map} +1 -1
- package/dist/{chunk-56LXBM45.js → chunk-AC3XH3LB.js} +4 -4
- package/dist/{chunk-56LXBM45.js.map → chunk-AC3XH3LB.js.map} +1 -1
- package/dist/{chunk-YTEEZV6J.cjs → chunk-APV4AWQ5.cjs} +422 -422
- package/dist/{chunk-YTEEZV6J.cjs.map → chunk-APV4AWQ5.cjs.map} +1 -1
- package/dist/{chunk-UK7JF5QB.cjs → chunk-AVIKQZSX.cjs} +37 -37
- package/dist/{chunk-UK7JF5QB.cjs.map → chunk-AVIKQZSX.cjs.map} +1 -1
- package/dist/{chunk-OK5RYX55.cjs → chunk-CWZKP3CJ.cjs} +26 -26
- package/dist/{chunk-OK5RYX55.cjs.map → chunk-CWZKP3CJ.cjs.map} +1 -1
- package/dist/{chunk-2J2QWNGI.js → chunk-FIVUMDLF.js} +26 -7
- package/dist/chunk-FIVUMDLF.js.map +1 -0
- package/dist/{chunk-ZTSO3S4P.js → chunk-FO7BLCEW.js} +3 -3
- package/dist/{chunk-ZTSO3S4P.js.map → chunk-FO7BLCEW.js.map} +1 -1
- package/dist/{chunk-6BKUD5EJ.js → chunk-GLFBHQSQ.js} +4 -4
- package/dist/{chunk-6BKUD5EJ.js.map → chunk-GLFBHQSQ.js.map} +1 -1
- package/dist/{chunk-ZNLEUL7T.js → chunk-GVCPFBAV.js} +4 -4
- package/dist/chunk-GVCPFBAV.js.map +1 -0
- package/dist/{chunk-KUXOHLGC.cjs → chunk-HOI6QKC6.cjs} +52 -52
- package/dist/{chunk-KUXOHLGC.cjs.map → chunk-HOI6QKC6.cjs.map} +1 -1
- package/dist/{chunk-L2KUGWFR.cjs → chunk-IAEABLIV.cjs} +46 -46
- package/dist/{chunk-L2KUGWFR.cjs.map → chunk-IAEABLIV.cjs.map} +1 -1
- package/dist/{chunk-M5ZC3LFJ.js → chunk-IQRRZPVZ.js} +3 -3
- package/dist/{chunk-M5ZC3LFJ.js.map → chunk-IQRRZPVZ.js.map} +1 -1
- package/dist/{chunk-H4CJTKEH.js → chunk-MNOO7STY.js} +5 -5
- package/dist/{chunk-H4CJTKEH.js.map → chunk-MNOO7STY.js.map} +1 -1
- package/dist/{chunk-XI6JOG76.cjs → chunk-N56YC75X.cjs} +45 -45
- package/dist/{chunk-XI6JOG76.cjs.map → chunk-N56YC75X.cjs.map} +1 -1
- package/dist/{chunk-X4F6VVEJ.js → chunk-PAG3BNIV.js} +3 -3
- package/dist/{chunk-X4F6VVEJ.js.map → chunk-PAG3BNIV.js.map} +1 -1
- package/dist/{chunk-W7GIQTJV.cjs → chunk-PG6TDGKI.cjs} +21 -21
- package/dist/{chunk-W7GIQTJV.cjs.map → chunk-PG6TDGKI.cjs.map} +1 -1
- package/dist/{chunk-7MVDN5UC.cjs → chunk-Q5OFA4I2.cjs} +35 -35
- package/dist/{chunk-7MVDN5UC.cjs.map → chunk-Q5OFA4I2.cjs.map} +1 -1
- package/dist/{chunk-BUN3CRMP.cjs → chunk-QOLBWCF5.cjs} +65 -65
- package/dist/{chunk-BUN3CRMP.cjs.map → chunk-QOLBWCF5.cjs.map} +1 -1
- package/dist/{chunk-2UJAVPA4.cjs → chunk-QXL7AY2H.cjs} +26 -26
- package/dist/{chunk-2UJAVPA4.cjs.map → chunk-QXL7AY2H.cjs.map} +1 -1
- package/dist/{chunk-WHJXRLFD.js → chunk-SYYBKDL7.js} +48 -8
- package/dist/chunk-SYYBKDL7.js.map +1 -0
- package/dist/{chunk-SE23X5OE.js → chunk-TQU44E46.js} +4 -4
- package/dist/{chunk-SE23X5OE.js.map → chunk-TQU44E46.js.map} +1 -1
- package/dist/{chunk-SFSZUOFT.js → chunk-U3KRKXF7.js} +3 -3
- package/dist/{chunk-SFSZUOFT.js.map → chunk-U3KRKXF7.js.map} +1 -1
- package/dist/{chunk-EYHD7LV3.cjs → chunk-UDGU73RL.cjs} +129 -129
- package/dist/{chunk-EYHD7LV3.cjs.map → chunk-UDGU73RL.cjs.map} +1 -1
- package/dist/{chunk-M3R6RCXY.js → chunk-UDJ2KN2A.js} +3 -3
- package/dist/{chunk-M3R6RCXY.js.map → chunk-UDJ2KN2A.js.map} +1 -1
- package/dist/{chunk-BJWMPPEA.js → chunk-UT4TIDAA.js} +3 -3
- package/dist/{chunk-BJWMPPEA.js.map → chunk-UT4TIDAA.js.map} +1 -1
- package/dist/{chunk-RODV6PC4.cjs → chunk-UWRTV6IV.cjs} +7 -7
- package/dist/{chunk-RODV6PC4.cjs.map → chunk-UWRTV6IV.cjs.map} +1 -1
- package/dist/{chunk-IT2TVXC7.js → chunk-WTF6JXHN.js} +4 -4
- package/dist/{chunk-IT2TVXC7.js.map → chunk-WTF6JXHN.js.map} +1 -1
- package/dist/{chunk-7BEJHG43.js → chunk-X5QJO4ZD.js} +3 -3
- package/dist/{chunk-7BEJHG43.js.map → chunk-X5QJO4ZD.js.map} +1 -1
- package/dist/{chunk-NFT6VW73.js → chunk-XV2DTN6G.js} +3 -3
- package/dist/{chunk-NFT6VW73.js.map → chunk-XV2DTN6G.js.map} +1 -1
- package/dist/{chunk-XUEROLSB.cjs → chunk-YUPG2M3I.cjs} +16 -16
- package/dist/chunk-YUPG2M3I.cjs.map +1 -0
- package/dist/{chunk-K5QG53GT.cjs → chunk-ZCW7YH3C.cjs} +26 -26
- package/dist/{chunk-K5QG53GT.cjs.map → chunk-ZCW7YH3C.cjs.map} +1 -1
- package/dist/{chunk-GYTWJ6VB.cjs → chunk-ZFNZ2FYI.cjs} +67 -48
- package/dist/chunk-ZFNZ2FYI.cjs.map +1 -0
- package/dist/{chunk-3YXXZ4LT.cjs → chunk-ZZJDGGC3.cjs} +33 -33
- package/dist/{chunk-3YXXZ4LT.cjs.map → chunk-ZZJDGGC3.cjs.map} +1 -1
- package/dist/diagrams/blockdiagram/index.cjs +6 -6
- package/dist/diagrams/blockdiagram/index.d.cts +1 -1
- package/dist/diagrams/blockdiagram/index.d.ts +1 -1
- package/dist/diagrams/blockdiagram/index.js +2 -2
- package/dist/diagrams/circuit/index.cjs +8 -8
- package/dist/diagrams/circuit/index.d.cts +1 -1
- package/dist/diagrams/circuit/index.d.ts +1 -1
- package/dist/diagrams/circuit/index.js +2 -2
- package/dist/diagrams/ecomap/index.cjs +8 -8
- package/dist/diagrams/ecomap/index.d.cts +1 -1
- package/dist/diagrams/ecomap/index.d.ts +1 -1
- package/dist/diagrams/ecomap/index.js +3 -3
- package/dist/diagrams/entity/index.cjs +6 -6
- package/dist/diagrams/entity/index.d.cts +1 -1
- package/dist/diagrams/entity/index.d.ts +1 -1
- package/dist/diagrams/entity/index.js +2 -2
- package/dist/diagrams/fishbone/index.cjs +8 -8
- package/dist/diagrams/fishbone/index.d.cts +1 -1
- package/dist/diagrams/fishbone/index.d.ts +1 -1
- package/dist/diagrams/fishbone/index.js +2 -2
- package/dist/diagrams/flowchart/index.cjs +8 -8
- package/dist/diagrams/flowchart/index.d.cts +2 -2
- package/dist/diagrams/flowchart/index.d.ts +2 -2
- package/dist/diagrams/flowchart/index.js +2 -2
- package/dist/diagrams/genogram/index.cjs +10 -10
- package/dist/diagrams/genogram/index.d.cts +1 -1
- package/dist/diagrams/genogram/index.d.ts +1 -1
- package/dist/diagrams/genogram/index.js +3 -3
- package/dist/diagrams/ladder/index.cjs +6 -6
- package/dist/diagrams/ladder/index.d.cts +1 -1
- package/dist/diagrams/ladder/index.d.ts +1 -1
- package/dist/diagrams/ladder/index.js +2 -2
- package/dist/diagrams/logic/index.cjs +6 -6
- package/dist/diagrams/logic/index.d.cts +1 -1
- package/dist/diagrams/logic/index.d.ts +1 -1
- package/dist/diagrams/logic/index.js +2 -2
- package/dist/diagrams/orgchart/index.cjs +7 -7
- package/dist/diagrams/orgchart/index.d.cts +1 -1
- package/dist/diagrams/orgchart/index.d.ts +1 -1
- package/dist/diagrams/orgchart/index.js +2 -2
- package/dist/diagrams/pedigree/index.cjs +8 -8
- package/dist/diagrams/pedigree/index.d.cts +1 -1
- package/dist/diagrams/pedigree/index.d.ts +1 -1
- package/dist/diagrams/pedigree/index.js +3 -3
- package/dist/diagrams/phylo/index.cjs +7 -7
- package/dist/diagrams/phylo/index.d.cts +1 -1
- package/dist/diagrams/phylo/index.d.ts +1 -1
- package/dist/diagrams/phylo/index.js +2 -2
- package/dist/diagrams/sld/index.cjs +6 -6
- package/dist/diagrams/sld/index.d.cts +1 -1
- package/dist/diagrams/sld/index.d.ts +1 -1
- package/dist/diagrams/sld/index.js +2 -2
- package/dist/diagrams/sociogram/index.cjs +7 -7
- package/dist/diagrams/sociogram/index.d.cts +1 -1
- package/dist/diagrams/sociogram/index.d.ts +1 -1
- package/dist/diagrams/sociogram/index.js +3 -3
- package/dist/diagrams/timing/index.cjs +5 -5
- package/dist/diagrams/timing/index.d.cts +1 -1
- package/dist/diagrams/timing/index.d.ts +1 -1
- package/dist/diagrams/timing/index.js +2 -2
- package/dist/diagrams/venn/index.cjs +9 -9
- package/dist/diagrams/venn/index.d.cts +1 -1
- package/dist/diagrams/venn/index.d.ts +1 -1
- package/dist/diagrams/venn/index.js +2 -2
- package/dist/{index-dWDwG6BW.d.ts → index-D3u6vcA4.d.ts} +1 -1
- package/dist/{index-BrLxEzSQ.d.cts → index-bdfj6FpQ.d.cts} +1 -1
- package/dist/index.cjs +41 -41
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +19 -19
- package/dist/react.cjs +20 -20
- package/dist/react.js +19 -19
- package/dist/{types-BtiUg7Gx.d.cts → types-DnU2UlWz.d.cts} +2 -0
- package/dist/{types-BtiUg7Gx.d.ts → types-DnU2UlWz.d.ts} +2 -0
- package/package.json +1 -1
- package/dist/chunk-2J2QWNGI.js.map +0 -1
- package/dist/chunk-GYTWJ6VB.cjs.map +0 -1
- package/dist/chunk-LFZZ4NCP.cjs.map +0 -1
- package/dist/chunk-WHJXRLFD.js.map +0 -1
- package/dist/chunk-XUEROLSB.cjs.map +0 -1
- package/dist/chunk-ZNLEUL7T.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5UCXMYE7_cjs = require('./chunk-5UCXMYE7.cjs');
|
|
4
4
|
var chunkD7EHZFK4_cjs = require('./chunk-D7EHZFK4.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunk3WNW5Y7P_cjs = require('./chunk-3WNW5Y7P.cjs');
|
|
6
6
|
|
|
7
7
|
// src/diagrams/pedigree/parser.ts
|
|
8
8
|
var PedigreeParseError = class extends Error {
|
|
@@ -53,7 +53,7 @@ function parsePedigree(text2) {
|
|
|
53
53
|
i++;
|
|
54
54
|
continue;
|
|
55
55
|
}
|
|
56
|
-
if (
|
|
56
|
+
if (chunk5UCXMYE7_cjs.parseLegendDirective(trimmed, legendOverrides)) {
|
|
57
57
|
hasLegendOverrides = true;
|
|
58
58
|
i++;
|
|
59
59
|
continue;
|
|
@@ -829,8 +829,8 @@ function renderPedigree(layout, config, ast) {
|
|
|
829
829
|
const genCount = genGroups.size;
|
|
830
830
|
const diagramTitle = ast?.metadata?.title ?? "Pedigree";
|
|
831
831
|
const layers = [
|
|
832
|
-
|
|
833
|
-
|
|
832
|
+
chunk3WNW5Y7P_cjs.title(diagramTitle),
|
|
833
|
+
chunk3WNW5Y7P_cjs.desc(`Pedigree chart with ${nodeCount} individuals across ${genCount} generations`),
|
|
834
834
|
defsStr,
|
|
835
835
|
styleStr
|
|
836
836
|
];
|
|
@@ -840,9 +840,9 @@ function renderPedigree(layout, config, ast) {
|
|
|
840
840
|
let legendSvg = "";
|
|
841
841
|
if (ast) {
|
|
842
842
|
const autoSpec = buildPedigreeLegend(ast, t);
|
|
843
|
-
const finalSpec =
|
|
843
|
+
const finalSpec = chunk5UCXMYE7_cjs.applyLegendOverrides(autoSpec, ast.legendOverrides);
|
|
844
844
|
if (finalSpec.mode === "on" && finalSpec.items.length > 0) {
|
|
845
|
-
const { svg, bbox: lb } =
|
|
845
|
+
const { svg, bbox: lb } = chunk5UCXMYE7_cjs.renderLegend(
|
|
846
846
|
finalSpec,
|
|
847
847
|
{
|
|
848
848
|
canvasWidth: layout.width,
|
|
@@ -863,13 +863,13 @@ function renderPedigree(layout, config, ast) {
|
|
|
863
863
|
}
|
|
864
864
|
const chartXOffset = Math.max(0, (finalWidth - layout.width) / 2);
|
|
865
865
|
layers.push(
|
|
866
|
-
|
|
866
|
+
chunk3WNW5Y7P_cjs.group(
|
|
867
867
|
{ transform: chartXOffset > 0 ? `translate(${chartXOffset}, 0)` : void 0 },
|
|
868
868
|
chartContent
|
|
869
869
|
)
|
|
870
870
|
);
|
|
871
871
|
if (legendSvg) layers.push(legendSvg);
|
|
872
|
-
return
|
|
872
|
+
return chunk3WNW5Y7P_cjs.svgRoot(
|
|
873
873
|
{
|
|
874
874
|
viewBox: `0 0 ${finalWidth} ${finalHeight}`,
|
|
875
875
|
class: "schematex-diagram schematex-pedigree",
|
|
@@ -888,16 +888,16 @@ function buildDefs(nodes, t) {
|
|
|
888
888
|
}
|
|
889
889
|
if (needs.has("carrier")) {
|
|
890
890
|
children.push(
|
|
891
|
-
|
|
892
|
-
|
|
891
|
+
chunk3WNW5Y7P_cjs.el("clipPath", { id: "schematex-pedigree-clip-carrier-rect" }, [
|
|
892
|
+
chunk3WNW5Y7P_cjs.rect({ x: "0", y: "0", width: "50%", height: "100%" })
|
|
893
893
|
]),
|
|
894
|
-
|
|
895
|
-
|
|
894
|
+
chunk3WNW5Y7P_cjs.el("clipPath", { id: "schematex-pedigree-clip-carrier-circle" }, [
|
|
895
|
+
chunk3WNW5Y7P_cjs.rect({ x: "-50", y: "-50", width: "50", height: "100" })
|
|
896
896
|
])
|
|
897
897
|
);
|
|
898
898
|
}
|
|
899
899
|
children.push(
|
|
900
|
-
|
|
900
|
+
chunk3WNW5Y7P_cjs.el("marker", {
|
|
901
901
|
id: "schematex-pedigree-proband-arrow",
|
|
902
902
|
viewBox: "0 0 10 10",
|
|
903
903
|
refX: "0",
|
|
@@ -906,10 +906,10 @@ function buildDefs(nodes, t) {
|
|
|
906
906
|
markerHeight: "8",
|
|
907
907
|
orient: "auto-start-reverse"
|
|
908
908
|
}, [
|
|
909
|
-
|
|
909
|
+
chunk3WNW5Y7P_cjs.path({ d: "M 0 0 L 10 5 L 0 10 z", fill: t.stroke })
|
|
910
910
|
])
|
|
911
911
|
);
|
|
912
|
-
return
|
|
912
|
+
return chunk3WNW5Y7P_cjs.defs(children);
|
|
913
913
|
}
|
|
914
914
|
function buildStyles(config, t) {
|
|
915
915
|
const css = `
|
|
@@ -933,7 +933,7 @@ function buildStyles(config, t) {
|
|
|
933
933
|
.schematex-pedigree-legend { font-family: ${config.fontFamily}; font-size: 11px; fill: ${t.text}; }
|
|
934
934
|
.schematex-pedigree-legend-box { fill: ${t.fill}; stroke: ${t.neutral}; stroke-width: 1; }
|
|
935
935
|
`;
|
|
936
|
-
return
|
|
936
|
+
return chunk3WNW5Y7P_cjs.el("style", {}, css);
|
|
937
937
|
}
|
|
938
938
|
function renderEdges(edges) {
|
|
939
939
|
const children = [];
|
|
@@ -941,13 +941,13 @@ function renderEdges(edges) {
|
|
|
941
941
|
const relType = edge.relationship.type;
|
|
942
942
|
const cssClass = `schematex-pedigree-edge schematex-pedigree-edge-${relType}`;
|
|
943
943
|
const elements = [
|
|
944
|
-
|
|
944
|
+
chunk3WNW5Y7P_cjs.el("path", { d: edge.path, class: "schematex-pedigree-edge-path" })
|
|
945
945
|
];
|
|
946
946
|
if (relType === "separated") {
|
|
947
947
|
const mid = pathMidpoint(edge.path);
|
|
948
948
|
if (mid) {
|
|
949
949
|
elements.push(
|
|
950
|
-
|
|
950
|
+
chunk3WNW5Y7P_cjs.line({
|
|
951
951
|
x1: mid.x - 4,
|
|
952
952
|
y1: mid.y - 6,
|
|
953
953
|
x2: mid.x + 4,
|
|
@@ -958,10 +958,10 @@ function renderEdges(edges) {
|
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
children.push(
|
|
961
|
-
|
|
961
|
+
chunk3WNW5Y7P_cjs.group({ class: cssClass, "data-from": edge.from, "data-to": edge.to }, elements)
|
|
962
962
|
);
|
|
963
963
|
}
|
|
964
|
-
return
|
|
964
|
+
return chunk3WNW5Y7P_cjs.group({ class: "schematex-pedigree-edges" }, children);
|
|
965
965
|
}
|
|
966
966
|
function pathMidpoint(pathData) {
|
|
967
967
|
const coords = pathData.match(/[\d.-]+/g);
|
|
@@ -992,7 +992,7 @@ function renderNodes(genGroups) {
|
|
|
992
992
|
nodeElements.push(renderPedigreeSymbol(node.individual, cx, cy, node.width));
|
|
993
993
|
}
|
|
994
994
|
layers.push(
|
|
995
|
-
|
|
995
|
+
chunk3WNW5Y7P_cjs.group(
|
|
996
996
|
{ class: `schematex-pedigree-generation schematex-pedigree-generation-${genIdx}`, "data-generation": genIdx },
|
|
997
997
|
nodeElements
|
|
998
998
|
)
|
|
@@ -1006,20 +1006,20 @@ function renderPedigreeSymbol(ind, x, y, size) {
|
|
|
1006
1006
|
if (ind.status === "deceased") classes.push("schematex-pedigree-deceased");
|
|
1007
1007
|
if (ind.geneticStatus) classes.push(`schematex-pedigree-${ind.geneticStatus}`);
|
|
1008
1008
|
const titleText = formatTitle(ind);
|
|
1009
|
-
const children = [
|
|
1009
|
+
const children = [chunk3WNW5Y7P_cjs.title(titleText)];
|
|
1010
1010
|
const pregLoss = ind.status === "sab" || ind.status === "tab" || ind.status === "ectopic";
|
|
1011
1011
|
if (pregLoss) {
|
|
1012
1012
|
classes.push(`schematex-pedigree-${ind.status}`);
|
|
1013
1013
|
const t = half * 0.6;
|
|
1014
1014
|
children.push(
|
|
1015
|
-
|
|
1015
|
+
chunk3WNW5Y7P_cjs.polygon({
|
|
1016
1016
|
points: `${-t},${-t} ${t},${-t} 0,${t}`,
|
|
1017
1017
|
class: `schematex-pedigree-loss-shape schematex-pedigree-${ind.status}-shape`
|
|
1018
1018
|
})
|
|
1019
1019
|
);
|
|
1020
1020
|
if (ind.status === "tab") {
|
|
1021
1021
|
children.push(
|
|
1022
|
-
|
|
1022
|
+
chunk3WNW5Y7P_cjs.line({
|
|
1023
1023
|
x1: -t * 1.1,
|
|
1024
1024
|
y1: t * 1.1,
|
|
1025
1025
|
x2: t * 1.1,
|
|
@@ -1030,13 +1030,13 @@ function renderPedigreeSymbol(ind, x, y, size) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
if (ind.status === "ectopic") {
|
|
1032
1032
|
children.push(
|
|
1033
|
-
|
|
1033
|
+
chunk3WNW5Y7P_cjs.text(
|
|
1034
1034
|
{ x: 0, y: t + 14, class: "schematex-pedigree-status-label", "text-anchor": "middle" },
|
|
1035
1035
|
"ECT"
|
|
1036
1036
|
)
|
|
1037
1037
|
);
|
|
1038
1038
|
}
|
|
1039
|
-
return
|
|
1039
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
1040
1040
|
{
|
|
1041
1041
|
class: classes.join(" "),
|
|
1042
1042
|
"data-individual-id": ind.id,
|
|
@@ -1049,7 +1049,7 @@ function renderPedigreeSymbol(ind, x, y, size) {
|
|
|
1049
1049
|
if (ind.status === "stillborn") {
|
|
1050
1050
|
classes.push("schematex-pedigree-stillborn");
|
|
1051
1051
|
children.push(
|
|
1052
|
-
|
|
1052
|
+
chunk3WNW5Y7P_cjs.text(
|
|
1053
1053
|
{ x: 0, y: half + 14, class: "schematex-pedigree-status-label", "text-anchor": "middle" },
|
|
1054
1054
|
"SB"
|
|
1055
1055
|
)
|
|
@@ -1065,26 +1065,26 @@ function renderPedigreeSymbol(ind, x, y, size) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
if (gs === "presymptomatic") {
|
|
1067
1067
|
children.push(
|
|
1068
|
-
|
|
1068
|
+
chunk3WNW5Y7P_cjs.line({ x1: 0, y1: -half, x2: 0, y2: half, class: "schematex-pedigree-presymptomatic-mark" })
|
|
1069
1069
|
);
|
|
1070
1070
|
}
|
|
1071
1071
|
if (ind.status === "deceased") {
|
|
1072
1072
|
const ext = ind.sex === "female" ? half * 0.707 : half;
|
|
1073
1073
|
children.push(
|
|
1074
|
-
|
|
1074
|
+
chunk3WNW5Y7P_cjs.line({ x1: ext, y1: -ext, x2: -ext, y2: ext, class: "schematex-pedigree-deceased-mark" })
|
|
1075
1075
|
);
|
|
1076
1076
|
}
|
|
1077
1077
|
if (ind.markers?.includes("proband")) {
|
|
1078
1078
|
const arrowLen = 20;
|
|
1079
1079
|
children.push(
|
|
1080
|
-
|
|
1080
|
+
chunk3WNW5Y7P_cjs.line({
|
|
1081
1081
|
x1: -half - arrowLen,
|
|
1082
1082
|
y1: half + arrowLen,
|
|
1083
1083
|
x2: -half - 2,
|
|
1084
1084
|
y2: half + 2,
|
|
1085
1085
|
class: "schematex-pedigree-proband-arrow-line"
|
|
1086
1086
|
}),
|
|
1087
|
-
|
|
1087
|
+
chunk3WNW5Y7P_cjs.text(
|
|
1088
1088
|
{ x: -half - arrowLen - 4, y: half + arrowLen + 4, class: "schematex-pedigree-proband-label", "text-anchor": "end" },
|
|
1089
1089
|
"P"
|
|
1090
1090
|
)
|
|
@@ -1093,14 +1093,14 @@ function renderPedigreeSymbol(ind, x, y, size) {
|
|
|
1093
1093
|
if (ind.markers?.includes("consultand")) {
|
|
1094
1094
|
const arrowLen = 20;
|
|
1095
1095
|
children.push(
|
|
1096
|
-
|
|
1096
|
+
chunk3WNW5Y7P_cjs.line({
|
|
1097
1097
|
x1: -half - arrowLen,
|
|
1098
1098
|
y1: half + arrowLen,
|
|
1099
1099
|
x2: -half - 2,
|
|
1100
1100
|
y2: half + 2,
|
|
1101
1101
|
class: "schematex-pedigree-proband-arrow-line"
|
|
1102
1102
|
}),
|
|
1103
|
-
|
|
1103
|
+
chunk3WNW5Y7P_cjs.text(
|
|
1104
1104
|
{ x: -half - arrowLen - 4, y: half + arrowLen + 4, class: "schematex-pedigree-proband-label", "text-anchor": "end" },
|
|
1105
1105
|
"C"
|
|
1106
1106
|
)
|
|
@@ -1108,13 +1108,13 @@ function renderPedigreeSymbol(ind, x, y, size) {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
if (ind.markers?.includes("evaluated")) {
|
|
1110
1110
|
children.push(
|
|
1111
|
-
|
|
1111
|
+
chunk3WNW5Y7P_cjs.text(
|
|
1112
1112
|
{ x: 0, y: -half - 4, class: "schematex-pedigree-proband-label", "text-anchor": "middle" },
|
|
1113
1113
|
"E"
|
|
1114
1114
|
)
|
|
1115
1115
|
);
|
|
1116
1116
|
}
|
|
1117
|
-
return
|
|
1117
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
1118
1118
|
{
|
|
1119
1119
|
class: classes.join(" "),
|
|
1120
1120
|
"data-individual-id": ind.id,
|
|
@@ -1126,22 +1126,22 @@ function renderPedigreeSymbol(ind, x, y, size) {
|
|
|
1126
1126
|
function baseShape(sex, half) {
|
|
1127
1127
|
switch (sex) {
|
|
1128
1128
|
case "male":
|
|
1129
|
-
return
|
|
1129
|
+
return chunk3WNW5Y7P_cjs.rect({ x: -half, y: -half, width: half * 2, height: half * 2, class: "schematex-pedigree-shape" });
|
|
1130
1130
|
case "female":
|
|
1131
|
-
return
|
|
1131
|
+
return chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r: half, class: "schematex-pedigree-shape" });
|
|
1132
1132
|
default:
|
|
1133
|
-
return
|
|
1133
|
+
return chunk3WNW5Y7P_cjs.polygon({ points: `0,${-half} ${half},0 0,${half} ${-half},0`, class: "schematex-pedigree-shape" });
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
1136
|
function affectedFill(sex, half) {
|
|
1137
1137
|
const attrs = { class: "schematex-pedigree-affected-fill" };
|
|
1138
1138
|
switch (sex) {
|
|
1139
1139
|
case "male":
|
|
1140
|
-
return
|
|
1140
|
+
return chunk3WNW5Y7P_cjs.rect({ x: -half, y: -half, width: half * 2, height: half * 2, ...attrs });
|
|
1141
1141
|
case "female":
|
|
1142
|
-
return
|
|
1142
|
+
return chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r: half, ...attrs });
|
|
1143
1143
|
default:
|
|
1144
|
-
return
|
|
1144
|
+
return chunk3WNW5Y7P_cjs.polygon({ points: `0,${-half} ${half},0 0,${half} ${-half},0`, ...attrs });
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
1147
|
function carrierFill(sex, half) {
|
|
@@ -1152,15 +1152,15 @@ function carrierFill(sex, half) {
|
|
|
1152
1152
|
};
|
|
1153
1153
|
switch (sex) {
|
|
1154
1154
|
case "male":
|
|
1155
|
-
return
|
|
1155
|
+
return chunk3WNW5Y7P_cjs.rect({ x: -half, y: -half, width: half * 2, height: half * 2, ...attrs });
|
|
1156
1156
|
case "female":
|
|
1157
|
-
return
|
|
1157
|
+
return chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r: half, ...attrs });
|
|
1158
1158
|
default:
|
|
1159
|
-
return
|
|
1159
|
+
return chunk3WNW5Y7P_cjs.polygon({ points: `0,${-half} ${half},0 0,${half} ${-half},0`, ...attrs });
|
|
1160
1160
|
}
|
|
1161
1161
|
}
|
|
1162
1162
|
function carrierDot(half) {
|
|
1163
|
-
return
|
|
1163
|
+
return chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r: half * 0.15, class: "schematex-pedigree-carrier-x-dot" });
|
|
1164
1164
|
}
|
|
1165
1165
|
function formatTitle(ind) {
|
|
1166
1166
|
const name = ind.label.charAt(0).toUpperCase() + ind.label.slice(1);
|
|
@@ -1188,13 +1188,13 @@ function renderLabels(nodes, genGroups, config) {
|
|
|
1188
1188
|
const pedigreeId = genNumbering.get(ind.id) ?? ind.id;
|
|
1189
1189
|
const displayLabel = ind.label !== ind.id ? ind.label : pedigreeId;
|
|
1190
1190
|
labels.push(
|
|
1191
|
-
|
|
1191
|
+
chunk3WNW5Y7P_cjs.text(
|
|
1192
1192
|
{ x: cx, y: labelY, class: "schematex-pedigree-label", "data-individual-id": ind.id },
|
|
1193
1193
|
displayLabel
|
|
1194
1194
|
)
|
|
1195
1195
|
);
|
|
1196
1196
|
}
|
|
1197
|
-
return
|
|
1197
|
+
return chunk3WNW5Y7P_cjs.group({ class: "schematex-pedigree-labels" }, labels);
|
|
1198
1198
|
}
|
|
1199
1199
|
function renderGenerationLabels(genGroups, _config) {
|
|
1200
1200
|
const labels = [];
|
|
@@ -1205,13 +1205,13 @@ function renderGenerationLabels(genGroups, _config) {
|
|
|
1205
1205
|
const midY = nodes[0].y + nodes[0].height / 2;
|
|
1206
1206
|
const roman = toRoman(genIdx + 1);
|
|
1207
1207
|
labels.push(
|
|
1208
|
-
|
|
1208
|
+
chunk3WNW5Y7P_cjs.text(
|
|
1209
1209
|
{ x: 25, y: midY + 5, class: "schematex-pedigree-gen-label" },
|
|
1210
1210
|
roman
|
|
1211
1211
|
)
|
|
1212
1212
|
);
|
|
1213
1213
|
}
|
|
1214
|
-
return
|
|
1214
|
+
return chunk3WNW5Y7P_cjs.group({ class: "schematex-pedigree-generation-labels" }, labels);
|
|
1215
1215
|
}
|
|
1216
1216
|
function toRoman(n) {
|
|
1217
1217
|
const vals = [1e3, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1];
|
|
@@ -1258,5 +1258,5 @@ exports.layoutPedigree = layoutPedigree;
|
|
|
1258
1258
|
exports.parsePedigree = parsePedigree;
|
|
1259
1259
|
exports.pedigree = pedigree;
|
|
1260
1260
|
exports.renderPedigree = renderPedigree;
|
|
1261
|
-
//# sourceMappingURL=chunk-
|
|
1262
|
-
//# sourceMappingURL=chunk-
|
|
1261
|
+
//# sourceMappingURL=chunk-HOI6QKC6.cjs.map
|
|
1262
|
+
//# sourceMappingURL=chunk-HOI6QKC6.cjs.map
|