Browse Source

fix: arrow binding in logseq

Peng Xiao 3 years ago
parent
commit
a79a7c8899

+ 2 - 0
src/main/frontend/fs/nfs.cljs

@@ -240,4 +240,6 @@
 
   ;; TODO:
   (watch-dir! [_this _dir]
+    nil)
+  (unwatch-dir! [_this dir]
     nil))

+ 1 - 0
tldraw/packages/core/src/lib/TLHistory.ts

@@ -126,6 +126,7 @@ export class TLHistory<S extends TLShape = TLShape, K extends TLEventMap = TLEve
           if (shapesToAdd.length > 0) page.addShapes(...shapesToAdd)
           // Remove the page from the map
           pagesMap.delete(serializedPage.id)
+          page.updateBindings(serializedPage.bindings)
         } else {
           // Create the page
           const { id, name, shapes, bindings } = serializedPage

+ 1 - 1
tldraw/packages/core/src/lib/TLPage/TLPage.ts

@@ -278,7 +278,7 @@ export class TLPage<S extends TLShape = TLShape, E extends TLEventMap = TLEventM
     }
   }
 
-  updateArrowBindings = (lineShape: TLLineShape) => {
+  private updateArrowBindings = (lineShape: TLLineShape) => {
     const result = {
       start: deepCopy(lineShape.props.handles.start),
       end: deepCopy(lineShape.props.handles.end),