Skip to content

Commit f1bd5b5

Browse files
committed
chore(docs,examples): replace dagre with dagrejs/dagre
1 parent 8d3887f commit f1bd5b5

File tree

6 files changed

+8930
-7378
lines changed

6 files changed

+8930
-7378
lines changed

docs/examples/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ export const exampleImports = {
134134
'useLayout.js': useLayout,
135135
'Icon.vue': LayoutIcon,
136136
'additionalImports': {
137-
'@vueuse/core': 'https://cdn.jsdelivr.net/npm/@vueuse/core@10.7.0/index.mjs',
138-
'@vueuse/shared': 'https://cdn.jsdelivr.net/npm/@vueuse/shared@10.7.0/index.mjs',
139-
'vue-demi': 'https://cdn.jsdelivr.net/npm/vue-demi@0.13.11/lib/index.mjs',
140-
'dagre': 'https://cdn.skypack.dev/pin/dagre@v0.8.5-NOlknF82nBdUHQKLJWRC/mode=imports,min/optimized/dagre.js',
137+
'@vueuse/core': 'https://cdn.jsdelivr.net/npm/@vueuse/core@latest/index.mjs',
138+
'@vueuse/shared': 'https://cdn.jsdelivr.net/npm/@vueuse/shared@latest/index.mjs',
139+
'vue-demi': 'https://cdn.jsdelivr.net/npm/vue-demi@latest/lib/index.mjs',
140+
'@dagrejs/dagre': 'https://cdn.jsdelivr.net/npm/@dagrejs/dagre@1.1.2/dist/dagre.min.js',
141141
},
142142
},
143143
}

docs/examples/layout/useLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import dagre from 'dagre'
1+
import dagre from '@dagrejs/dagre'
22
import { Position, useVueFlow } from '@vue-flow/core'
33
import { ref } from 'vue'
44

examples/vite/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"lint": "eslint --ext .js,.ts,.vue ./ && vue-tsc --noEmit"
88
},
99
"dependencies": {
10+
"@dagrejs/dagre": "^1.1.2",
1011
"@vue-flow/background": "workspace:*",
1112
"@vue-flow/controls": "workspace:*",
1213
"@vue-flow/core": "workspace:*",
@@ -18,9 +19,7 @@
1819
"devDependencies": {
1920
"@tooling/eslint-config": "workspace:*",
2021
"@tooling/tsconfig": "workspace:*",
21-
"@types/dagre": "^0.7.50",
2222
"@vitejs/plugin-vue": "^4.4.0",
23-
"dagre": "^0.8.5",
2423
"unplugin-auto-import": "^0.16.6",
2524
"vite": "^4.4.11",
2625
"vite-svg-loader": "^4.0.0",

examples/vite/src/Layouting/LayoutingExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts" setup>
2-
import dagre from 'dagre'
2+
import dagre from '@dagrejs/dagre'
33
import { ConnectionMode, Panel, Position, VueFlow, useVueFlow } from '@vue-flow/core'
44
55
import { initialEdges, initialNodes } from './initial-elements'

examples/vite/src/Layouting/useRunProcess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type dagre from 'dagre'
1+
import type dagre from '@dagrejs/dagre'
22
import type { Node } from '@vue-flow/core'
33
import { useVueFlow } from '@vue-flow/core'
44
import type { MaybeRefOrGetter } from 'vue'

0 commit comments

Comments
 (0)