fix(nodes): improper style encapsulation

* import path in hooks.ts

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent a983858acf
commit 6dcf5d8434
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -150,7 +150,10 @@ export default {
opacity:
store.dimensions.width !== 0 &&
store.dimensions.height !== 0 &&
(node.dimensions.width !== 0 && node.dimensions.height !== 0 ? 1 : 0),
node.dimensions.width !== 0 &&
node.dimensions.height !== 0
? 1
: 0,
...node.style,
}"
:data-id="node.id"
+2 -1
View File
@@ -1,9 +1,10 @@
import { EventHook } from '@vueuse/core'
import { MouseTouchEvent } from '@braks/revue-draggable'
import { FlowTransform, FlowInstance, FlowElements } from './flow'
import { FlowInstance, FlowElements } from './flow'
import { GraphEdge } from './edge'
import { GraphNode } from './node'
import { Connection, OnConnectStartParams } from './connection'
import { FlowTransform } from './zoom'
export type FlowHook<T = any> = EventHook<T>