@@ -504,7 +504,10 @@ export class FlowEditor extends HTMLElement {
504504 if ( this . selectedNodes . has ( other ) ) continue ;
505505 const otherPos = other . position ;
506506 if (
507- Math . max ( Math . abs ( newX - otherPos . x ) , Math . abs ( newY - otherPos . y ) ) < other . size
507+ Math . max (
508+ Math . abs ( newX - otherPos . x ) ,
509+ Math . abs ( newY - otherPos . y ) ,
510+ ) < other . size
508511 ) {
509512 collision = true ;
510513 break ;
@@ -530,7 +533,11 @@ export class FlowEditor extends HTMLElement {
530533 this . longPressTimer = null ;
531534 }
532535 this . updateWireDrag ( e ) ;
533- } else if ( ! this . isPanning && ! this . isDraggingNode && ! this . isDraggingWire ) {
536+ } else if (
537+ ! this . isPanning &&
538+ ! this . isDraggingNode &&
539+ ! this . isDraggingWire
540+ ) {
534541 // Hover state
535542 const interest = this . getInterestArea ( e . clientX , e . clientY ) ;
536543 if ( interest . type !== FlowEditor . INTEREST_AREA_TYPES . NONE ) {
@@ -801,7 +808,11 @@ export class FlowEditor extends HTMLElement {
801808 text : "Add Node" ,
802809 onClick : ( ) => {
803810 const graphPos = this . viewportToGraph ( x , y ) ;
804- this . addNode ( `Node_${ Date . now ( ) . toString ( ) . slice ( - 4 ) } ` , graphPos . x , graphPos . y ) ;
811+ this . addNode (
812+ `Node_${ Date . now ( ) . toString ( ) . slice ( - 4 ) } ` ,
813+ graphPos . x ,
814+ graphPos . y ,
815+ ) ;
805816 } ,
806817 icon : "plus" ,
807818 } ) ;
@@ -958,7 +969,7 @@ export class FlowEditor extends HTMLElement {
958969 this . emitSelectionChanged ( ) ;
959970 }
960971
961- handleEdgeSelection ( e , edgeElement , isMultiple ) {
972+ handleEdgeSelection ( _e , edgeElement , isMultiple ) {
962973 const edge = this . edges . find (
963974 ( edge ) => edge . hitPath === edgeElement || edge . visualPath === edgeElement ,
964975 ) ;
@@ -989,7 +1000,7 @@ export class FlowEditor extends HTMLElement {
9891000 this . emitSelectionChanged ( ) ;
9901001 }
9911002
992- startNodeDrag ( e , node ) {
1003+ startNodeDrag ( _e , _node ) {
9931004 // This method is now deprecated in favor of handleNodeSelection
9941005 }
9951006
@@ -1169,7 +1180,7 @@ export class FlowEditor extends HTMLElement {
11691180 // No overlap if max(|dx|, |dy|) >= max(node.size, size)
11701181 if (
11711182 Math . max ( Math . abs ( snapped . x - pos . x ) , Math . abs ( snapped . y - pos . y ) ) <
1172- Math . max ( node . size , size )
1183+ Math . max ( node . size , size )
11731184 ) {
11741185 return false ;
11751186 }
@@ -1403,7 +1414,7 @@ export class FlowEditor extends HTMLElement {
14031414 }
14041415
14051416 getInterestArea ( clientX , clientY ) {
1406- const rect = this . viewport . getBoundingClientRect ( ) ;
1417+ const _rect = this . viewport . getBoundingClientRect ( ) ;
14071418
14081419 // 2. Check Dynamic Areas
14091420 // We check these in order of priority.
0 commit comments