diff --git a/src/components/Edges/CustomEdge.tsx b/src/components/Edges/CustomEdge.tsx index 2946dcc..18e83c9 100644 --- a/src/components/Edges/CustomEdge.tsx +++ b/src/components/Edges/CustomEdge.tsx @@ -237,7 +237,6 @@ const CustomEdge = ({ strokeWidth, strokeDasharray, opacity: edgeOpacity, - transition: 'stroke-width 150ms ease-in-out', }} markerEnd={markerEnd} markerStart={markerStart} diff --git a/src/components/Nodes/Shapes/CircleShape.tsx b/src/components/Nodes/Shapes/CircleShape.tsx index 39360c4..515c827 100644 --- a/src/components/Nodes/Shapes/CircleShape.tsx +++ b/src/components/Nodes/Shapes/CircleShape.tsx @@ -21,20 +21,18 @@ const CircleShape = ({ color, borderColor, textColor, - selected = false, isHighlighted = false, children, className = '', }: CircleShapeProps) => { - const shadowStyle = selected - ? `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1), 0 0 0 3px ${color}40` - : isHighlighted - ? `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1), 0 0 0 3px ${color}80, 0 0 12px ${color}60` - : '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)'; + // Simplified shadow for performance - single shadow instead of multiple layers + const shadowStyle = isHighlighted + ? `0 0 0 2px ${color}80` // Simple outline for highlight + : '0 2px 4px rgb(0 0 0 / 0.1)'; // Single lightweight shadow return (
{ - const shadowStyle = selected - ? `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1), 0 0 0 3px ${color}40` - : isHighlighted - ? `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1), 0 0 0 3px ${color}80, 0 0 12px ${color}60` - : '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)'; + // Simplified shadow for performance - single shadow instead of multiple layers + const shadowStyle = isHighlighted + ? `0 0 0 2px ${color}80` // Simple outline for highlight + : '0 2px 4px rgb(0 0 0 / 0.1)'; // Single lightweight shadow return (
{ - const shadowStyle = selected - ? `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1), 0 0 0 3px ${color}40` - : isHighlighted - ? `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1), 0 0 0 3px ${color}80, 0 0 12px ${color}60` - : '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)'; + // Simplified shadow for performance - single shadow instead of multiple layers + const shadowStyle = isHighlighted + ? `0 0 0 2px ${color}80` // Simple outline for highlight + : '0 2px 4px rgb(0 0 0 / 0.1)'; // Single lightweight shadow return (
{ - // Build shadow style - const shadowStyle = selected - ? `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1), 0 0 0 3px ${color}40` - : isHighlighted - ? `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1), 0 0 0 3px ${color}80, 0 0 12px ${color}60` - : '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)'; + // Simplified shadow for performance - single shadow instead of multiple layers + const shadowStyle = isHighlighted + ? `0 0 0 2px ${color}80` // Simple outline for highlight + : '0 2px 4px rgb(0 0 0 / 0.1)'; // Single lightweight shadow return (
{ - const shadowStyle = selected - ? `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1), 0 0 0 3px ${color}40` - : isHighlighted - ? `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1), 0 0 0 3px ${color}80, 0 0 12px ${color}60` - : '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)'; + // Simplified shadow for performance - single shadow instead of multiple layers + const shadowStyle = isHighlighted + ? `0 0 0 2px ${color}80` // Simple outline for highlight + : '0 2px 4px rgb(0 0 0 / 0.1)'; // Single lightweight shadow return (