File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/core/src/components/Edges Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ const EdgeWrapper = defineComponent({
5757
5858 const targetNode = $computed ( ( ) => findNode ( edge . target ) )
5959
60+ const edgeClass = $computed ( ( ) => ( edge . class instanceof Function ? edge . class ( edge ) : edge . class ) )
61+ const edgeStyle = $computed ( ( ) => ( edge . style instanceof Function ? edge . style ( edge ) : edge . style ) )
62+
6063 const { handlePointerDown } = useHandle ( {
6164 nodeId,
6265 handleId,
@@ -101,9 +104,6 @@ const EdgeWrapper = defineComponent({
101104 targetPosition ,
102105 )
103106
104- const edgeClass = edge . class instanceof Function ? edge . class ( edge ) : edge . class
105- const edgeStyle = edge . style instanceof Function ? edge . style ( edge ) : edge . style
106-
107107 return h (
108108 'g' ,
109109 {
You can’t perform that action at this time.
0 commit comments