refactor(react): use size instead of dimensions, cleanup defaul node handling

This commit is contained in:
moklick
2023-10-10 13:24:02 +02:00
parent 93a180b19d
commit ed5606d870
7 changed files with 740 additions and 42 deletions
@@ -26,7 +26,7 @@ function Wrapper({
}
return (
<ReactFlowProvider nodes={nodes} edges={edges} width={width} height={height}>
<ReactFlowProvider initialNodes={nodes} initialEdges={edges} initialWidth={width} initialHeight={height}>
{children}
</ReactFlowProvider>
);
@@ -1,3 +1,5 @@
'use client';
import { forwardRef, type CSSProperties } from 'react';
import cc from 'classcat';
import {