@@ -288,7 +288,7 @@ function toFlowEdges(layout: MyELKNodeLayedOut): FlowEdge[] {
288
288
289
289
export function EClassNode ( { data } : NodeProps < FlowClass > ) {
290
290
return (
291
- < div className = "rounded-md border border-dotted border-stone-400 h-full w-full" style = { { backgroundColor : data . color ! || "white" } } >
291
+ < div className = "rounded-md border border-dotted border-black h-full w-full" style = { { backgroundColor : data . color ! || "white" } } >
292
292
{ /* <MyNodeToolbar type="class" id={data.id} selected={data.selected} /> */ }
293
293
< Handle type = "target" position = { Position . Top } className = "invisible" />
294
294
</ div >
@@ -304,7 +304,7 @@ export function ENode(
304
304
>
305
305
) {
306
306
return (
307
- < div className = "p-1 rounded-md border bg-white border-stone-400 h-full w-full" ref = { props ?. outerRef } >
307
+ < div className = "p-1 rounded-md border bg-white border-black h-full w-full" ref = { props ?. outerRef } >
308
308
{ /* {props?.outerRef ? <></> : <MyNodeToolbar type="class" id={props!.data!.id} selected={props!.data!.selected} /> } */ }
309
309
310
310
< div className = "font-mono text-xs truncate max-w-96 min-w-4 text-center" ref = { props ?. innerRef } >
@@ -335,10 +335,10 @@ export function ENode(
335
335
// );
336
336
// }
337
337
338
- export function CustomEdge ( { markerEnd , data } : EdgeProps < FlowEdge > ) {
338
+ export function CustomEdge ( { data , ... rest } : EdgeProps < FlowEdge > ) {
339
339
const { points } = data ! ;
340
340
const edgePath = points . map ( ( { x, y } , index ) => `${ index === 0 ? "M" : "L" } ${ x } ${ y } ` ) . join ( " " ) ;
341
- return < BaseEdge path = { edgePath } markerEnd = { markerEnd } /> ;
341
+ return < BaseEdge path = { edgePath } { ... rest } /> ;
342
342
}
343
343
344
344
const nodeTypes : NodeTypes = {
@@ -413,7 +413,7 @@ function LayoutFlow({ egraph, outerElem, innerElem }: { egraph: string; outerEle
413
413
nodesFocusable = { true }
414
414
// nodeDragThreshold={100}
415
415
onNodeClick = { onNodeClick }
416
- defaultEdgeOptions = { { markerEnd : { type : MarkerType . ArrowClosed } } }
416
+ defaultEdgeOptions = { { markerEnd : { type : MarkerType . ArrowClosed , color : "black" } , style : { stroke : "black" , strokeWidth : 0.5 } } }
417
417
>
418
418
{ selectedNode ? (
419
419
< Panel position = "top-center" >
0 commit comments