fix(edges): set source and target position on edge obj
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -104,6 +104,11 @@ const EdgeWrapper = defineComponent({
|
|||||||
targetPosition,
|
targetPosition,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
edge.sourceX = sourceX
|
||||||
|
edge.sourceY = sourceY
|
||||||
|
edge.targetX = targetX
|
||||||
|
edge.targetY = targetY
|
||||||
|
|
||||||
return h(
|
return h(
|
||||||
'g',
|
'g',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -499,6 +499,7 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
|
|||||||
return [nodeRect, node, isRectObj]
|
return [nodeRect, node, isRectObj]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// todo: rename to `findIntersectingNodes`
|
||||||
const getIntersectingNodes: Actions['getIntersectingNodes'] = (nodeOrRect, partially = true, nodes) => {
|
const getIntersectingNodes: Actions['getIntersectingNodes'] = (nodeOrRect, partially = true, nodes) => {
|
||||||
const [nodeRect, node, isRect] = getNodeRect(nodeOrRect)
|
const [nodeRect, node, isRect] = getNodeRect(nodeOrRect)
|
||||||
|
|
||||||
|
|||||||
@@ -66,11 +66,13 @@ export enum Position {
|
|||||||
Bottom = 'bottom',
|
Bottom = 'bottom',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// todo: Rename to `Point`
|
||||||
export interface XYPosition {
|
export interface XYPosition {
|
||||||
x: number
|
x: number
|
||||||
y: number
|
y: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// todo: Rename to `AbsolutePoint`
|
||||||
export type XYZPosition = XYPosition & { z: number }
|
export type XYZPosition = XYPosition & { z: number }
|
||||||
|
|
||||||
export interface Dimensions {
|
export interface Dimensions {
|
||||||
|
|||||||
Reference in New Issue
Block a user