chore(deps-dev): update deps
This commit is contained in:
@@ -13,14 +13,14 @@
|
|||||||
"typedocs": "turbo run typedoc"
|
"typedocs": "turbo run typedoc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^0.25.2",
|
"@antfu/eslint-config": "^0.27.0",
|
||||||
"eslint": "^8.22.0",
|
"eslint": "^8.22.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-chai-friendly": "^0.7.2",
|
"eslint-plugin-chai-friendly": "^0.7.2",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
"turbo": "^1.4.3",
|
"turbo": "^1.5.5",
|
||||||
"typescript": "^4.7.4"
|
"typescript": "^4.8.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
"vue": "^3.2.25"
|
"vue": "^3.2.25"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vueuse/core": "^9.1.0",
|
"@vueuse/core": "^9.3.0",
|
||||||
"d3-drag": "^3.0.0",
|
"d3-drag": "^3.0.0",
|
||||||
"d3-selection": "^3.0.0",
|
"d3-selection": "^3.0.0",
|
||||||
"d3-zoom": "^3.0.0"
|
"d3-zoom": "^3.0.0"
|
||||||
@@ -57,9 +57,9 @@
|
|||||||
"typescript-transform-paths": "^3.3.1",
|
"typescript-transform-paths": "^3.3.1",
|
||||||
"unplugin-auto-import": "^0.11.2",
|
"unplugin-auto-import": "^0.11.2",
|
||||||
"vite": "^2.9.15",
|
"vite": "^2.9.15",
|
||||||
"vite-plugin-vue-type-imports": "^0.2.0",
|
"vite-plugin-vue-type-imports": "0.2.0",
|
||||||
"vite-svg-loader": "^3.4.0",
|
"vite-svg-loader": "^3.4.0",
|
||||||
"vue-tsc": "^0.38.9"
|
"vue-tsc": "^0.40.13"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { EdgeTextProps } from '../../types/components'
|
import type { EdgeTextProps } from '../../types/components'
|
||||||
import type { Rect } from '../../types'
|
import type { Rect as RectType } from '../../types'
|
||||||
|
|
||||||
const {
|
const {
|
||||||
x,
|
x,
|
||||||
@@ -13,12 +13,12 @@ const {
|
|||||||
labelBgBorderRadius = 2,
|
labelBgBorderRadius = 2,
|
||||||
} = defineProps<EdgeTextProps>()
|
} = defineProps<EdgeTextProps>()
|
||||||
|
|
||||||
const edgeRef = templateRef<SVGTextElement>('el', null)
|
const edgeRef = ref<SVGTextElement>()
|
||||||
|
|
||||||
let box = $ref<Rect>({ x: 0, y: 0, width: 0, height: 0 })
|
let box = $ref<RectType>({ x: 0, y: 0, width: 0, height: 0 })
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
box = edgeRef.value.getBBox()
|
box = edgeRef.value!.getBBox()
|
||||||
})
|
})
|
||||||
|
|
||||||
const transform = computed(() => `translate(${x - box.width / 2} ${y - box.height / 2})`)
|
const transform = computed(() => `translate(${x - box.width / 2} ${y - box.height / 2})`)
|
||||||
|
|||||||
865
pnpm-lock.yaml
generated
865
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user