chore(deps-dev): update deps

This commit is contained in:
braks
2022-10-07 13:10:46 +02:00
committed by Braks
parent 7a657f141a
commit 78c8bc7a34
4 changed files with 416 additions and 469 deletions

View File

@@ -13,14 +13,14 @@
"typedocs": "turbo run typedoc"
},
"devDependencies": {
"@antfu/eslint-config": "^0.25.2",
"@antfu/eslint-config": "^0.27.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-chai-friendly": "^0.7.2",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1",
"shx": "^0.3.4",
"turbo": "^1.4.3",
"typescript": "^4.7.4"
"turbo": "^1.5.5",
"typescript": "^4.8.4"
}
}

View File

@@ -38,7 +38,7 @@
"vue": "^3.2.25"
},
"dependencies": {
"@vueuse/core": "^9.1.0",
"@vueuse/core": "^9.3.0",
"d3-drag": "^3.0.0",
"d3-selection": "^3.0.0",
"d3-zoom": "^3.0.0"
@@ -57,9 +57,9 @@
"typescript-transform-paths": "^3.3.1",
"unplugin-auto-import": "^0.11.2",
"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",
"vue-tsc": "^0.38.9"
"vue-tsc": "^0.40.13"
},
"publishConfig": {
"access": "public",

View File

@@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { EdgeTextProps } from '../../types/components'
import type { Rect } from '../../types'
import type { Rect as RectType } from '../../types'
const {
x,
@@ -13,12 +13,12 @@ const {
labelBgBorderRadius = 2,
} = 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(() => {
box = edgeRef.value.getBBox()
box = edgeRef.value!.getBBox()
})
const transform = computed(() => `translate(${x - box.width / 2} ${y - box.height / 2})`)

865
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff