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%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
cursor: pointer;
&:hover {
cursor: pointer;
stroke: white !important;
}
`; `;
const StyledText = styled.pre<{ width: number; height: number }>` const StyledText = styled.pre<{ width: number; height: number }>`

View File

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