feat(core): implement connection radius

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-01 22:57:05 +01:00
committed by Braks
parent 7abd0bfdf3
commit e74a20d923
9 changed files with 344 additions and 321 deletions
+11 -1
View File
@@ -29,7 +29,7 @@ declare global {
const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
const boxToRect: typeof import('./utils/graph')['boxToRect']
const calcNextPosition: typeof import('./utils/drag')['calcNextPosition']
const checkElementBelowIsValid: typeof import('./composables/useHandle')['checkElementBelowIsValid']
const checkElementBelowIsValid: typeof import('./composables/useHandleDepr')['checkElementBelowIsValid']
const clamp: typeof import('./utils/graph')['clamp']
const clampPosition: typeof import('./utils/graph')['clampPosition']
const computed: typeof import('vue')['computed']
@@ -66,6 +66,7 @@ declare global {
const getBezierEdgeCenter: typeof import('./components/Edges/utils/general')['getBezierEdgeCenter']
const getBezierPath: typeof import('./components/Edges/utils/bezier')['getBezierPath']
const getBoundsofRects: typeof import('./utils/graph')['getBoundsofRects']
const getClosestHandle: typeof import('./utils/handle')['getClosestHandle']
const getConnectedEdges: typeof import('./utils/graph')['getConnectedEdges']
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
const getCurrentScope: typeof import('vue')['getCurrentScope']
@@ -74,10 +75,14 @@ declare global {
const getEdgeId: typeof import('./utils/graph')['getEdgeId']
const getEdgePositions: typeof import('./utils/edge')['getEdgePositions']
const getEventHandlerParams: typeof import('./utils/drag')['getEventHandlerParams']
const getEventPosition: typeof import('./utils/handle')['getEventPosition']
const getExtent: typeof import('./utils/drag')['getExtent']
const getHandle: typeof import('./utils/edge')['getHandle']
const getHandleBounds: typeof import('./utils/node')['getHandleBounds']
const getHandleLookup: typeof import('./utils/handle')['getHandleLookup']
const getHandlePosition: typeof import('./utils/edge')['getHandlePosition']
const getHandleType: typeof import('./utils/handle')['getHandleType']
const getHandles: typeof import('./utils/handle')['getHandles']
const getHostForElement: typeof import('./utils/graph')['getHostForElement']
const getIncomers: typeof import('./utils/graph')['getIncomers']
const getMarkerId: typeof import('./utils/graph')['getMarkerId']
@@ -106,6 +111,7 @@ declare global {
const isGraphEdge: typeof import('./utils/graph')['isGraphEdge']
const isGraphNode: typeof import('./utils/graph')['isGraphNode']
const isInputDOMNode: typeof import('./composables/useKeyPress')['isInputDOMNode']
const isMouseEvent: typeof import('./utils/handle')['isMouseEvent']
const isNode: typeof import('./utils/graph')['isNode']
const isParentSelected: typeof import('./utils/graph')['isParentSelected']
const isProxy: typeof import('vue')['isProxy']
@@ -113,6 +119,7 @@ declare global {
const isReadonly: typeof import('vue')['isReadonly']
const isRect: typeof import('./utils/graph')['isRect']
const isRef: typeof import('vue')['isRef']
const isValidHandle: typeof import('./utils/handle')['isValidHandle']
const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable']
const markRaw: typeof import('vue')['markRaw']
const nextTick: typeof import('vue')['nextTick']
@@ -153,6 +160,8 @@ declare global {
const refDefault: typeof import('@vueuse/core')['refDefault']
const refThrottled: typeof import('@vueuse/core')['refThrottled']
const refWithControl: typeof import('@vueuse/core')['refWithControl']
const rendererPointToPoint: typeof import('./utils/graph')['rendererPointToPoint']
const resetRecentHandle: typeof import('./utils/handle')['resetRecentHandle']
const resolveComponent: typeof import('vue')['resolveComponent']
const resolveDirective: typeof import('vue')['resolveDirective']
const resolveRef: typeof import('@vueuse/core')['resolveRef']
@@ -249,6 +258,7 @@ declare global {
const useGetPointerPosition: typeof import('./composables/useGetPointerPosition')['useGetPointerPosition']
const useGetters: typeof import('./store/getters')['useGetters']
const useHandle: typeof import('./composables/useHandle')['default']
const useHandleDepr: typeof import('./composables/useHandleDepr')['default']
const useHooks: typeof import('./store/hooks')['useHooks']
const useIdle: typeof import('@vueuse/core')['useIdle']
const useImage: typeof import('@vueuse/core')['useImage']