refactor: replace additional-components package occurrences

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-13 15:29:00 +01:00
committed by Braks
parent e1c904f97f
commit 000dd5c9ba
54 changed files with 218 additions and 108 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
<script setup>
import { Background, Controls, MiniMap, Panel, PanelPosition } from '@vue-flow/additional-components'
import { VueFlow, isNode, useVueFlow } from '@vue-flow/core'
import { Panel, PanelPosition, VueFlow, isNode, useVueFlow } from '@vue-flow/core'
import { Background } from '@vue-flow/background'
import { Controls } from '@vue-flow/controls'
import { MiniMap } from '@vue-flow/minimap'
import { ref } from 'vue'
import { initialElements } from './initial-elements.js'
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { MiniMap } from '@vue-flow/additional-components'
import { MiniMap } from '@vue-flow/minimap'
import { Position, VueFlow, useVueFlow } from '@vue-flow/core'
import { h, onMounted, ref } from 'vue'
import ColorSelectorNode from './CustomNode.vue'
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { Background } from '@vue-flow/additional-components'
import { Background } from '@vue-flow/background'
import { MarkerType, VueFlow } from '@vue-flow/core'
import { h, ref } from 'vue'
import CustomEdge from './CustomEdge.vue'
+3 -2
View File
@@ -1,6 +1,7 @@
<script setup>
import { Background, BackgroundVariant, MiniMap, Panel, PanelPosition } from '@vue-flow/additional-components'
import { VueFlow, useVueFlow } from '@vue-flow/core'
import { Panel, PanelPosition, VueFlow, useVueFlow } from '@vue-flow/core'
import { Background, BackgroundVariant } from '@vue-flow/background'
import { MiniMap } from '@vue-flow/minimap'
const { nodes, addNodes, edges, addEdges, onConnect, onPaneReady, onNodeDragStop, dimensions } = useVueFlow()
+2 -2
View File
@@ -1,6 +1,6 @@
<script setup>
import { Background, Panel, PanelPosition } from '@vue-flow/additional-components'
import { VueFlow, useVueFlow } from '@vue-flow/core'
import { Background } from '@vue-flow/background'
import { Panel, PanelPosition, VueFlow, useVueFlow } from '@vue-flow/core'
import { ref, watch } from 'vue'
const isHidden = ref(false)
+3 -1
View File
@@ -1,6 +1,8 @@
<script setup>
import { Background, Controls, MiniMap } from '@vue-flow/additional-components'
import { VueFlow, useVueFlow } from '@vue-flow/core'
import { Background } from '@vue-flow/background'
import { Controls } from '@vue-flow/controls'
import { MiniMap } from '@vue-flow/minimap'
import { ref } from 'vue'
import { initialElements } from './initial-elements.js'
+2 -2
View File
@@ -1,6 +1,6 @@
<script setup>
import { Background, Panel, PanelPosition } from '@vue-flow/additional-components'
import { VueFlow, isNode } from '@vue-flow/core'
import { Background } from '@vue-flow/background'
import { Panel, PanelPosition, VueFlow, isNode } from '@vue-flow/core'
import { ref } from 'vue'
const elements = ref([
+3 -1
View File
@@ -1,6 +1,8 @@
<script setup>
import { Background, Controls, MiniMap } from '@vue-flow/additional-components'
import { VueFlow, useVueFlow } from '@vue-flow/core'
import { Background } from '@vue-flow/background'
import { Controls } from '@vue-flow/controls'
import { MiniMap } from '@vue-flow/minimap'
import { onMounted } from 'vue'
const { onConnect, nodes, edges, addEdges, addNodes } = useVueFlow({
@@ -1,6 +1,5 @@
<script setup>
import { Panel, PanelPosition } from '@vue-flow/additional-components'
import { useVueFlow } from '@vue-flow/core'
import { Panel, PanelPosition, useVueFlow } from '@vue-flow/core'
const flowKey = 'example-flow'
+3 -2
View File
@@ -1,6 +1,7 @@
<script setup>
import { Background, MiniMap, Panel, PanelPosition } from '@vue-flow/additional-components'
import { VueFlow, isNode, useVueFlow } from '@vue-flow/core'
import { Panel, PanelPosition, VueFlow, isNode, useVueFlow } from '@vue-flow/core'
import { Background } from '@vue-flow/background'
import { MiniMap } from '@vue-flow/minimap'
import { nextTick, ref } from 'vue'
import { getElements } from './utils.js'
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { Background } from '@vue-flow/additional-components'
import { Background } from '@vue-flow/background'
import { VueFlow, useVueFlow } from '@vue-flow/core'
import { ref } from 'vue'