@principal-ai/principal-view-react 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -731,7 +731,7 @@ const GraphRendererInner = ({ configuration, nodes: propNodes, edges: propEdges,
|
|
|
731
731
|
// ============================================
|
|
732
732
|
// RENDER
|
|
733
733
|
// ============================================
|
|
734
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(react_2.ReactFlow, { nodes: xyflowNodes, edges: xyflowEdges, nodeTypes: nodeTypes, edgeTypes: edgeTypes, minZoom: 0.1, maxZoom: 4, defaultEdgeOptions: { type: 'custom' }, onEdgeClick: onEdgeClick, onNodeClick: onNodeClick, proOptions: { hideAttribution: true }, nodesDraggable: editable, elementsSelectable: true, nodesConnectable: editable, edgesReconnectable: editable, reconnectRadius: 25, elevateEdgesOnSelect: true, onNodesChange: handleNodesChange, onConnect: handleConnect, onReconnectStart: handleReconnectStart, onReconnect: handleReconnect, onReconnectEnd: handleReconnectEnd, onPaneClick: onPaneClick, onSelectionChange: handleSelectionChange, panOnDrag: true, selectionOnDrag: false, selectionKeyCode: editable ? 'Shift' : null, multiSelectionKeyCode: "Shift", children: [showBackground && ((0, jsx_runtime_1.jsx)(react_2.Background, { color: backgroundVariant === 'dots' ? theme.colors.border : theme.colors.textMuted, gap: backgroundVariant === 'dots' ? 16 :
|
|
734
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(react_2.ReactFlow, { nodes: xyflowNodes, edges: xyflowEdges, nodeTypes: nodeTypes, edgeTypes: edgeTypes, minZoom: 0.1, maxZoom: 4, defaultEdgeOptions: { type: 'custom' }, onEdgeClick: onEdgeClick, onNodeClick: onNodeClick, proOptions: { hideAttribution: true }, nodesDraggable: editable, elementsSelectable: true, nodesConnectable: editable, edgesReconnectable: editable, reconnectRadius: 25, elevateEdgesOnSelect: true, onNodesChange: handleNodesChange, onConnect: handleConnect, onReconnectStart: handleReconnectStart, onReconnect: handleReconnect, onReconnectEnd: handleReconnectEnd, onPaneClick: onPaneClick, onSelectionChange: handleSelectionChange, panOnDrag: true, selectionOnDrag: false, selectionKeyCode: editable ? 'Shift' : null, multiSelectionKeyCode: "Shift", children: [showBackground && ((0, jsx_runtime_1.jsx)(react_2.Background, { color: backgroundVariant === 'dots' ? theme.colors.border : theme.colors.textMuted, gap: backgroundVariant === 'dots' ? 16 : 50, size: backgroundVariant === 'dots' ? 1 : 0.5, variant: backgroundVariant === 'dots'
|
|
735
735
|
? react_2.BackgroundVariant.Dots
|
|
736
736
|
: backgroundVariant === 'lines'
|
|
737
737
|
? react_2.BackgroundVariant.Lines
|
package/package.json
CHANGED
|
@@ -1184,7 +1184,7 @@ const GraphRendererInner: React.FC<GraphRendererInnerProps> = ({
|
|
|
1184
1184
|
{showBackground && (
|
|
1185
1185
|
<Background
|
|
1186
1186
|
color={backgroundVariant === 'dots' ? theme.colors.border : theme.colors.textMuted}
|
|
1187
|
-
gap={backgroundVariant === 'dots' ? 16 :
|
|
1187
|
+
gap={backgroundVariant === 'dots' ? 16 : 50}
|
|
1188
1188
|
size={backgroundVariant === 'dots' ? 1 : 0.5}
|
|
1189
1189
|
variant={
|
|
1190
1190
|
backgroundVariant === 'dots'
|