Minor improvements
This commit is contained in:
parent
852354b739
commit
e97814586e
@ -76,7 +76,7 @@ export function ComplexFamilyTree(p: {
|
|||||||
const exportPDF = async () => {
|
const exportPDF = async () => {
|
||||||
const doc = new jsPDF({
|
const doc = new jsPDF({
|
||||||
orientation: "l",
|
orientation: "l",
|
||||||
format: [900, 1200],
|
format: [351, 351],
|
||||||
});
|
});
|
||||||
|
|
||||||
// Clone the SVG to manipulate it
|
// Clone the SVG to manipulate it
|
||||||
@ -105,11 +105,13 @@ export function ComplexFamilyTree(p: {
|
|||||||
`class="text-overflow-mask" fill="transparent"`
|
`class="text-overflow-mask" fill="transparent"`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
dstSVG = dstSVG.replaceAll(`>UNKNOWN<`, `fill="#000">INCONNU<`);
|
||||||
|
|
||||||
target.innerHTML = dstSVG;
|
target.innerHTML = dstSVG;
|
||||||
|
|
||||||
await doc.svg(target, {
|
await doc.svg(target, {
|
||||||
height: 3508,
|
height: 351,
|
||||||
width: 2480,
|
width: 351,
|
||||||
});
|
});
|
||||||
|
|
||||||
container.remove();
|
container.remove();
|
||||||
|
@ -105,7 +105,9 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
width: 3508px;
|
/*width: 3508px;
|
||||||
height: 2480px;
|
height: 2480px;*/
|
||||||
|
width: 351px;
|
||||||
|
height: 248px;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user