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({
57
57
58
58
const targetNode = $computed ( ( ) => findNode ( edge . target ) )
59
59
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
+
60
63
const { handlePointerDown } = useHandle ( {
61
64
nodeId,
62
65
handleId,
@@ -101,9 +104,6 @@ const EdgeWrapper = defineComponent({
101
104
targetPosition ,
102
105
)
103
106
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
-
107
107
return h (
108
108
'g' ,
109
109
{
You can’t perform that action at this time.
0 commit comments