Преглед изворни кода

fix: Alt-duplication doesn't place the duplicate at the last moment where Alt is pressed

fix: Shift + Alt

fix: Test

chore: Revert to master

Signed-off-by: Mark Tolmacs <[email protected]>

fix: Arrow re-draw

Signed-off-by: Mark Tolmacs <[email protected]>
Mark Tolmacs пре 2 недеља
родитељ
комит
314cd356bc
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      packages/excalidraw/components/App.tsx

+ 9 - 0
packages/excalidraw/components/App.tsx

@@ -8865,6 +8865,15 @@ class App extends React.Component<AppProps, AppState> {
               }));
 
               this.scene.replaceAllElements(elementsWithIndices);
+              elementsWithIndices.forEach((element) => {
+                if (
+                  isBindableElement(element) &&
+                  element.boundElements?.some((other) => other.type === "arrow")
+                ) {
+                  updateBoundElements(element, this.scene);
+                }
+              });
+
               this.maybeCacheVisibleGaps(event, selectedElements, true);
               this.maybeCacheReferenceSnapPoints(event, selectedElements, true);
             });