update(nodes): remove transform from NodeRenderer
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -14,7 +14,6 @@ const getType = (type?: string) => {
|
|||||||
return nodeType
|
return nodeType
|
||||||
}
|
}
|
||||||
|
|
||||||
const transform = computed(() => `translate(${store.transform[0]}px,${store.transform[1]}px) scale(${store.transform[2]})`)
|
|
||||||
const snapGrid = (node: GraphNode) => node.snapGrid ?? (store.snapToGrid ? store.snapGrid : undefined)
|
const snapGrid = (node: GraphNode) => node.snapGrid ?? (store.snapToGrid ? store.snapGrid : undefined)
|
||||||
</script>
|
</script>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
@@ -23,7 +22,7 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="vue-flow__nodes" :style="{ transform }">
|
<div class="vue-flow__nodes vue-flow__container">
|
||||||
<NodeWrapper
|
<NodeWrapper
|
||||||
v-for="node of store.getNodes"
|
v-for="node of store.getNodes"
|
||||||
:key="node.id"
|
:key="node.id"
|
||||||
|
|||||||
Reference in New Issue
Block a user