mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-20 05:12:54 +08:00
code cleanup
This commit is contained in:
parent
db6f59c195
commit
dcb0b75ebe
@ -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 }>`
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user