code cleanup

This commit is contained in:
Aykut Saraç 2022-02-17 17:24:28 +03:00
parent db6f59c195
commit dcb0b75ebe
2 changed files with 5 additions and 9 deletions

View File

@ -11,11 +11,7 @@ const StyledTextWrapper = styled.div`
width: 100%;
height: 100%;
overflow: hidden;
&:hover {
cursor: pointer;
stroke: white !important;
}
`;
const StyledText = styled.pre<{ width: number; height: number }>`

View File

@ -111,18 +111,18 @@ export const LiveEditor: React.FC<{
<Canvas
ref={canvasRef}
nodes={nodes}
node={CustomNode}
edges={edges}
layoutOptions={{
"elk.direction": config.layout,
}}
maxWidth={20000}
maxHeight={20000}
center={false}
zoomable={false}
layoutOptions={{
"elk.direction": config.layout,
}}
fit
readonly
animated
node={CustomNode}
/>
</TransformComponent>
</TransformWrapper>