fix(svelte): fitView
This commit is contained in:
@@ -95,7 +95,9 @@ export function useSvelteFlow(): {
|
|||||||
{ duration: options?.duration }
|
{ duration: options?.duration }
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
fitView,
|
fitView: (fitViewOptions?: FitViewOptions) => {
|
||||||
|
fitView(get(nodes), fitViewOptions);
|
||||||
|
},
|
||||||
project: (position: XYPosition) => {
|
project: (position: XYPosition) => {
|
||||||
const _snapGrid = get(snapGrid);
|
const _snapGrid = get(snapGrid);
|
||||||
return pointToRendererPoint(
|
return pointToRendererPoint(
|
||||||
|
|||||||
Reference in New Issue
Block a user