File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1534,8 +1534,8 @@ export class BlockSvg
15341534 let dx = originalOffsetToTarget . x ;
15351535 let dy = originalOffsetToTarget . y ;
15361536 // Then adjust its position according to the connection resize
1537- dx += originalOffsetInBlock . x - sourceConnection . getOffsetInBlock ( ) . x ;
1538- dy += originalOffsetInBlock . y - sourceConnection . getOffsetInBlock ( ) . y ;
1537+ dx += originalOffsetInBlock . x - sourceConnection . getOffsetInBlock ( ) . x ;
1538+ dy += originalOffsetInBlock . y - sourceConnection . getOffsetInBlock ( ) . y ;
15391539
15401540 this . moveBy ( dx , dy ) ;
15411541 }
Original file line number Diff line number Diff line change @@ -614,12 +614,19 @@ export class InsertionMarkerManager {
614614 // Connect() also renders the insertion marker.
615615 imConn . connect ( closest ) ;
616616
617- const originalOffsetToTarget = { x : closest . x - imConn . x , y : closest . y - imConn . y }
617+ const originalOffsetToTarget = {
618+ x : closest . x - imConn . x ,
619+ y : closest . y - imConn . y ,
620+ } ;
618621 const originalOffsetInBlock = imConn . getOffsetInBlock ( ) . clone ( ) ;
619622 const imConnConst = imConn ;
620623 renderManagement . finishQueuedRenders ( ) . then ( ( ) => {
621624 // Position so that the existing block doesn't move.
622- insertionMarker ?. positionNearConnection ( imConnConst , originalOffsetToTarget , originalOffsetInBlock ) ;
625+ insertionMarker ?. positionNearConnection (
626+ imConnConst ,
627+ originalOffsetToTarget ,
628+ originalOffsetInBlock ,
629+ ) ;
623630 insertionMarker ?. getSvgRoot ( ) . setAttribute ( 'visibility' , 'visible' ) ;
624631 } ) ;
625632
You can’t perform that action at this time.
0 commit comments