@ -55,7 +55,6 @@ export const SourceEndpoint = ({
|
|||||||
if (!groupsCoordinates) return <></>
|
if (!groupsCoordinates) return <></>
|
||||||
return (
|
return (
|
||||||
<Flex
|
<Flex
|
||||||
ref={ref}
|
|
||||||
data-testid="endpoint"
|
data-testid="endpoint"
|
||||||
boxSize="32px"
|
boxSize="32px"
|
||||||
rounded="full"
|
rounded="full"
|
||||||
@ -66,6 +65,7 @@ export const SourceEndpoint = ({
|
|||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex
|
||||||
|
ref={ref}
|
||||||
boxSize="20px"
|
boxSize="20px"
|
||||||
justify="center"
|
justify="center"
|
||||||
align="center"
|
align="center"
|
||||||
|
@ -25,7 +25,7 @@ export const TargetEndpoint = ({
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
ref={ref}
|
ref={ref}
|
||||||
boxSize="15px"
|
boxSize="20px"
|
||||||
rounded="full"
|
rounded="full"
|
||||||
bgColor="blue.500"
|
bgColor="blue.500"
|
||||||
cursor="pointer"
|
cursor="pointer"
|
||||||
|
@ -215,8 +215,8 @@ export const BlockNode = ({
|
|||||||
<BlockNodeContent block={block} indices={indices} />
|
<BlockNodeContent block={block} indices={indices} />
|
||||||
<TargetEndpoint
|
<TargetEndpoint
|
||||||
pos="absolute"
|
pos="absolute"
|
||||||
left="-32px"
|
left="-34px"
|
||||||
top="19px"
|
top="16px"
|
||||||
blockId={block.id}
|
blockId={block.id}
|
||||||
/>
|
/>
|
||||||
{isConnectable && hasDefaultConnector(block) && (
|
{isConnectable && hasDefaultConnector(block) && (
|
||||||
|
@ -343,7 +343,7 @@ export const getEndpointTopOffset = ({
|
|||||||
if (!endpointId) return
|
if (!endpointId) return
|
||||||
const endpointRef = endpoints[endpointId]?.ref
|
const endpointRef = endpoints[endpointId]?.ref
|
||||||
if (!endpointRef?.current) return
|
if (!endpointRef?.current) return
|
||||||
const endpointHeight = 34 * graphScale
|
const endpointHeight = 20 * graphScale
|
||||||
return (
|
return (
|
||||||
(endpointRef.current.getBoundingClientRect().y +
|
(endpointRef.current.getBoundingClientRect().y +
|
||||||
endpointHeight / 2 -
|
endpointHeight / 2 -
|
||||||
|
Reference in New Issue
Block a user