fix(diagram): align multi-schema export positions with canvas

This commit is contained in:
zipg authored and GitHub committed 2026-09-20 00:50:14 +08:00
1 parent ead307dba0
commit f9b984da68
4 files changed
+135 -13

No files matched your search

@@ -1843,7 +1843,9 @@ function currentDiagramSvg(): string {
prepareTableDiagramExportGeometry();
const exportTables = canvasVisibleTables.value;
// Positions are keyed by the diagram table id (`getTableKey`), which is schema-qualified in
// multi-schema mode; hand that id to the exporter so cards are not all drawn at the origin.
const exportTables = canvasVisibleTables.value.map((table) => ({ ...table, diagramKey: getTableKey(table) }));
const exportRelationships = canvasVisibleRelationships.value;
const layers = exportSvgLayers();
const geometryInput = {