chore(core): cleanup export paths

This commit is contained in:
braks
2023-07-10 19:20:26 +02:00
committed by Braks
parent 38bb4e1e12
commit 903583a399
4 changed files with 8 additions and 8 deletions
@@ -1,6 +1,6 @@
import type { FunctionalComponent } from 'vue'
import { h } from 'vue'
import BaseEdge from './BaseEdge'
import BaseEdge from './BaseEdge.vue'
import { getBezierPath } from './utils'
import type { BezierEdgeProps } from '~/types'
import { Position } from '~/types'
@@ -15,7 +15,7 @@ const BezierEdge: FunctionalComponent<BezierEdgeProps> = function (
...props,
})
return h(BaseEdge, {
return h(BaseEdge as any, {
path,
labelX,
labelY,
@@ -1,6 +1,6 @@
import type { FunctionalComponent } from 'vue'
import { h } from 'vue'
import BaseEdge from './BaseEdge'
import BaseEdge from './BaseEdge.vue'
import { getSimpleBezierPath } from './utils'
import type { SimpleBezierEdgeProps } from '~/types'
import { Position } from '~/types'
@@ -15,7 +15,7 @@ const SimpleBezierEdge: FunctionalComponent<SimpleBezierEdgeProps> = function (
...props,
})
return h(BaseEdge, {
return h(BaseEdge as any, {
path,
labelX,
labelY,
@@ -1,6 +1,6 @@
import type { FunctionalComponent } from 'vue'
import { h } from 'vue'
import BaseEdge from './BaseEdge'
import BaseEdge from './BaseEdge.vue'
import { getSmoothStepPath } from './utils'
import type { SmoothStepEdgeProps } from '~/types'
import { Position } from '~/types'
@@ -15,7 +15,7 @@ const SmoothStepEdge: FunctionalComponent<SmoothStepEdgeProps> = function (
...props,
})
return h(BaseEdge, {
return h(BaseEdge as any, {
path,
labelX,
labelY,
@@ -1,13 +1,13 @@
import type { FunctionalComponent } from 'vue'
import { h } from 'vue'
import BaseEdge from './BaseEdge'
import BaseEdge from './BaseEdge.vue'
import { getStraightPath } from './utils'
import type { StraightEdgeProps } from '~/types'
const StraightEdge: FunctionalComponent<StraightEdgeProps> = function (props, { attrs }) {
const [path, labelX, labelY] = getStraightPath(props)
return h(BaseEdge, {
return h(BaseEdge as any, {
path,
labelX,
labelY,