Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json-schema-studio",
"version": "0.5.14-beta",
"version": "0.5.15-beta",
"type": "module",
"homepage": "studio.ioflux.org",
"repository": "https://github.com/ioflux-org/studio-json-schema",
Expand Down
2 changes: 1 addition & 1 deletion src/components/GraphView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import { CgClose } from "react-icons/cg";
import { extractKeywords } from "../utils/searchNodeHelpers";

const nodeTypes = { customNode: CustomNode };
const dagreGraph = new dagre.graphlib.Graph().setDefaultEdgeLabel(() => ({}));

const NODE_WIDTH = 172;
const NODE_HEIGHT = 36;
Expand Down Expand Up @@ -140,6 +139,7 @@ const GraphView = ({

const getLayoutedElements = useCallback(
(nodes: GraphNode[], edges: GraphEdge[], direction = "LR") => {
const dagreGraph = new dagre.graphlib.Graph().setDefaultEdgeLabel(() => ({}));
const isHorizontal = direction === "LR";
dagreGraph.setGraph({ rankdir: direction });

Expand Down
Loading