Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

code cleanup

Aykut Saraçdcb0b75ebe7b
diff --git a/src/containers/LiveEditor/CustomNode.tsx b/src/containers/LiveEditor/CustomNode.tsx
index 0502c035..42b10ce3 100644
--- a/src/containers/LiveEditor/CustomNode.tsx
+++ b/src/containers/LiveEditor/CustomNode.tsx
@@ -11,11 +11,7 @@ const StyledTextWrapper = styled.div`
width: 100%;
height: 100%;
overflow: hidden;
-
- &:hover {
- cursor: pointer;
- stroke: white !important;
- }
+ cursor: pointer;
`;
const StyledText = styled.pre<{ width: number; height: number }>`
diff --git a/src/containers/LiveEditor/index.tsx b/src/containers/LiveEditor/index.tsx
index 15829031..5b9ab022 100644
--- a/src/containers/LiveEditor/index.tsx
+++ b/src/containers/LiveEditor/index.tsx
@@ -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>