Obsidian theme developed

This commit is contained in:
KarimTamani
2025-05-30 19:50:54 +01:00
parent a6a09b7199
commit fdb168bfdd
40 changed files with 595 additions and 208 deletions
+8 -2
View File
@@ -16,7 +16,10 @@ const adjustTablesPositions = async (
): Promise<TableType[]> => {
// Extract tables (same as before)
const tables: TableType[] = nodes.map((node: Node) => node.data.table) as TableType[];
const tables: TableType[] = nodes.map((node: Node) => (
{ ...node.data.table as TableType }
)) as TableType[];
// Build the ELK graph structure
const graph = {
@@ -37,7 +40,7 @@ const adjustTablesPositions = async (
targets: [rel.targetTableId],
})),
};
console.log (graph.children ) ;
// Run ELK layout (async)
const layoutedGraph = await elk.layout(graph);
@@ -56,6 +59,9 @@ const adjustTablesPositions = async (
const isTablesOverlapping = (tableA: TableType, tableB: TableType) => {
const tableAWidth: number = 224;
const tableAHeight: number = tableA.fields.length * 32 + 36;