WIP vite migration
This commit is contained in:
@ -13,6 +13,7 @@ import { downloadBlob } from "../../utils/files_utils";
|
||||
import { getTextWidth } from "../../utils/render_utils";
|
||||
import "./simpletree.css";
|
||||
import "./Roboto-normal";
|
||||
import "svg2pdf.js";
|
||||
|
||||
const FACE_WIDTH = 60;
|
||||
const FACE_HEIGHT = 70;
|
||||
@ -92,7 +93,8 @@ function buildSimpleTreeNode(
|
||||
): SimpleTreeNode {
|
||||
if (depth === 0) throw new Error("Too much recursion reached!");
|
||||
|
||||
const lastCouple = tree.couples?.[tree.couples?.length - 1 ?? 0];
|
||||
const lastCoupleId = tree.couples?.length ?? 1;
|
||||
const lastCouple = tree.couples?.[lastCoupleId - 1];
|
||||
|
||||
// Preprocess children
|
||||
let childrenToProcess = tree.down;
|
||||
|
Reference in New Issue
Block a user