@@ -3215,6 +3215,10 @@ class App extends React.Component<AppProps, AppState> {
32153215 ) ,
32163216 ) ,
32173217 [ el . points [ 0 ] , el . points [ el . points . length - 1 ] ] ,
3218+ undefined ,
3219+ {
3220+ zoom : this . state . zoom ,
3221+ } ,
32183222 ) ,
32193223 } ;
32203224 }
@@ -4372,6 +4376,7 @@ class App extends React.Component<AppProps, AppState> {
43724376
43734377 updateBoundElements ( element , this . scene . getNonDeletedElementsMap ( ) , {
43744378 simultaneouslyUpdated : selectedElements ,
4379+ zoom : this . state . zoom ,
43754380 } ) ;
43764381 } ) ;
43774382
@@ -4381,6 +4386,7 @@ class App extends React.Component<AppProps, AppState> {
43814386 ( element ) => element . id !== elbowArrow ?. id || step !== 0 ,
43824387 ) ,
43834388 this . scene . getNonDeletedElementsMap ( ) ,
4389+ this . state . zoom ,
43844390 ) ,
43854391 } ) ;
43864392
@@ -4596,6 +4602,7 @@ class App extends React.Component<AppProps, AppState> {
45964602 this . scene ,
45974603 isBindingEnabled ( this . state ) ,
45984604 this . state . selectedLinearElement ?. selectedPointsIndices ?? [ ] ,
4605+ this . state . zoom ,
45994606 ) ;
46004607 this . setState ( { suggestedBindings : [ ] } ) ;
46014608 }
@@ -5854,6 +5861,7 @@ class App extends React.Component<AppProps, AppState> {
58545861 {
58555862 isDragging : true ,
58565863 informMutation : false ,
5864+ zoom : this . state . zoom ,
58575865 } ,
58585866 ) ;
58595867 } else {
@@ -7401,6 +7409,7 @@ class App extends React.Component<AppProps, AppState> {
74017409 pointerDownState . origin ,
74027410 this . scene . getNonDeletedElements ( ) ,
74037411 this . scene . getNonDeletedElementsMap ( ) ,
7412+ this . state . zoom ,
74047413 ) ;
74057414
74067415 this . setState ( {
@@ -7698,6 +7707,7 @@ class App extends React.Component<AppProps, AppState> {
76987707 pointerDownState . origin ,
76997708 this . scene . getNonDeletedElements ( ) ,
77007709 this . scene . getNonDeletedElementsMap ( ) ,
7710+ this . state . zoom ,
77017711 isElbowArrow ( element ) ,
77027712 ) ;
77037713
@@ -8276,6 +8286,7 @@ class App extends React.Component<AppProps, AppState> {
82768286 suggestedBindings : getSuggestedBindingsForArrows (
82778287 selectedElements ,
82788288 this . scene . getNonDeletedElementsMap ( ) ,
8289+ this . state . zoom ,
82798290 ) ,
82808291 } ) ;
82818292 }
@@ -8444,6 +8455,7 @@ class App extends React.Component<AppProps, AppState> {
84448455 {
84458456 isDragging : true ,
84468457 informMutation : false ,
8458+ zoom : this . state . zoom ,
84478459 } ,
84488460 ) ;
84498461 } else if ( points . length === 2 ) {
@@ -9408,6 +9420,7 @@ class App extends React.Component<AppProps, AppState> {
94089420 this . scene ,
94099421 isBindingEnabled ( this . state ) ,
94109422 this . state . selectedLinearElement ?. selectedPointsIndices ?? [ ] ,
9423+ this . state . zoom ,
94119424 ) ;
94129425 }
94139426
@@ -9900,6 +9913,7 @@ class App extends React.Component<AppProps, AppState> {
99009913 pointerCoords ,
99019914 this . scene . getNonDeletedElements ( ) ,
99029915 this . scene . getNonDeletedElementsMap ( ) ,
9916+ this . state . zoom ,
99039917 ) ;
99049918 this . setState ( {
99059919 suggestedBindings :
@@ -9928,6 +9942,7 @@ class App extends React.Component<AppProps, AppState> {
99289942 coords ,
99299943 this . scene . getNonDeletedElements ( ) ,
99309944 this . scene . getNonDeletedElementsMap ( ) ,
9945+ this . state . zoom ,
99319946 isArrowElement ( linearElement ) && isElbowArrow ( linearElement ) ,
99329947 ) ;
99339948 if (
@@ -10569,6 +10584,7 @@ class App extends React.Component<AppProps, AppState> {
1056910584 const suggestedBindings = getSuggestedBindingsForArrows (
1057010585 selectedElements ,
1057110586 this . scene . getNonDeletedElementsMap ( ) ,
10587+ this . state . zoom ,
1057210588 ) ;
1057310589
1057410590 const elementsToHighlight = new Set < ExcalidrawElement > ( ) ;
0 commit comments