Hello, the go-debug.mjs:8 Uncaught Error: Rect.intersects:x must be a real number type, and not NaN or Infinity: NaN
error occurs when I perform the redo
operation after removal of some tree nodes. The error is caused by a custom link. The link’s actualBounds.x is NaN. For the custom link template I use new go.Link()
- the custom link is used for the TreeLayout.
Partial stack trace:
go-debug.mjs:8 Uncaught Error: Rect.intersects:x must be a real number type, and not NaN or Infinity: NaN
at Util.n (go-debug.mjs:8:1997)
at Util.r (go-debug.mjs:8:2408)
at Rect.intersects (go-debug.mjs:10:36233)
at Rect.intersectsRect (go-debug.mjs:10:36118)
at Layer.Km (go-debug.mjs:14:5388)
at Layer.Ji (go-debug.mjs:14:3819)
at Diagram.yR (go-debug.mjs:15:27233)
at Diagram.Ji (go-debug.mjs:15:26693)
at Diagram.Sr (go-debug.mjs:15:24422)
at Diagram.maybeUpdate (go-debug.mjs:15:22973)
n @ go-debug.mjs:8
r @ go-debug.mjs:8
intersects @ go-debug.mjs:10
intersectsRect @ go-debug.mjs:10
Km @ go-debug.mjs:14
Ji @ go-debug.mjs:14
yR @ go-debug.mjs:15
Ji @ go-debug.mjs:15
Sr @ go-debug.mjs:15
maybeUpdate @ go-debug.mjs:15
bR @ go-debug.mjs:15
doModelChanged @ go-debug.mjs:23
doModelChanged @ go-debug.mjs:23
Diagram.nP @ go-debug.mjs:14
Hw @ go-debug.mjs:41
i @ go-debug.mjs:13
undo
Have you got some piece of advice on how to debug it further or what I could have missed during my implementation that now causes this issue?