mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-31 02:18:57 -05:00
fix: fixes issue with calculating fit-to-screen dimensions
This commit is contained in:
@@ -32,7 +32,11 @@ export const useDiagramUtils = () => {
|
||||
|
||||
const connectorTiles = scene.connectors.reduce<Coords[]>(
|
||||
(acc, connector) => {
|
||||
return [...acc, ...connector.path.tiles];
|
||||
return [
|
||||
...acc,
|
||||
connector.path.rectangle.from,
|
||||
connector.path.rectangle.to
|
||||
];
|
||||
},
|
||||
[]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user