@@ -15,7 +15,6 @@ import * as Constants from './constants';
1515import {
1616 registrationName as cursorRegistrationName ,
1717 registrationType as cursorRegistrationType ,
18- FlyoutCursor ,
1918} from './flyout_cursor' ;
2019
2120/**
@@ -151,7 +150,7 @@ export class Navigation {
151150 if ( FlyoutCursorClass ) {
152151 flyoutWorkspace
153152 . getMarkerManager ( )
154- . setCursor ( new Blockly . LineCursor ( flyout . getWorkspace ( ) ) ) ;
153+ . setCursor ( new FlyoutCursorClass ( flyout ) ) ;
155154 }
156155 }
157156
@@ -258,7 +257,7 @@ export class Navigation {
258257 }
259258
260259 private isFlyoutItemDisposed (
261- node : Blockly . INavigable < any > ,
260+ node : Blockly . IFocusableNode ,
262261 sourceBlock : Blockly . BlockSvg | null ,
263262 ) {
264263 if ( sourceBlock ?. disposed ) {
@@ -368,9 +367,7 @@ export class Navigation {
368367 : flyoutContents [ flyoutContents . length - 1 ] ;
369368 if ( ! defaultFlyoutItem ) return false ;
370369 const defaultFlyoutItemElement = defaultFlyoutItem . getElement ( ) ;
371- flyoutCursor . setCurNode (
372- defaultFlyoutItemElement as unknown as Blockly . INavigable < any > ,
373- ) ;
370+ flyoutCursor . setCurNode ( defaultFlyoutItemElement ) ;
374371 return true ;
375372 }
376373
@@ -420,11 +417,11 @@ export class Navigation {
420417 * @param workspace The main workspace the flyout is on.
421418 * @returns The flyout's cursor or null if no flyout exists.
422419 */
423- getFlyoutCursor ( workspace : Blockly . WorkspaceSvg ) : FlyoutCursor | null {
420+ getFlyoutCursor ( workspace : Blockly . WorkspaceSvg ) : Blockly . LineCursor | null {
424421 const flyout = workspace . getFlyout ( ) ;
425422 const cursor = flyout ? flyout . getWorkspace ( ) . getCursor ( ) : null ;
426423
427- return cursor as FlyoutCursor ;
424+ return cursor ;
428425 }
429426
430427 /**
@@ -437,7 +434,7 @@ export class Navigation {
437434 * wrong.
438435 */
439436 findInsertStartPoint (
440- stationaryNode : Blockly . INavigable < any > ,
437+ stationaryNode : Blockly . IFocusableNode ,
441438 movingBlock : Blockly . BlockSvg ,
442439 ) : Blockly . RenderedConnection | null {
443440 const movingHasOutput = ! ! movingBlock . outputConnection ;
@@ -517,7 +514,7 @@ export class Navigation {
517514 * @returns True if the connection was successful, false otherwise.
518515 */
519516 tryToConnectBlock (
520- stationaryNode : Blockly . INavigable < any > ,
517+ stationaryNode : Blockly . IFocusableNode ,
521518 movingBlock : Blockly . BlockSvg ,
522519 ) : boolean {
523520 const destConnection = this . findInsertStartPoint (
0 commit comments