mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-11-29 16:40:40 +03:00
The A* heuristic estimated the bends left to arrive at the end dongle moving along the end heading, i.e. away from the end element, which the search itself forbids. And the vertical same-heading cases compared the other way around than the horizontal ones. Estimate them for arriving against the end heading, consistently for all headings. Routes stay the same (bar the choice between equally good ones), but the search expands ~23% fewer nodes. Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
@excalidraw/element
Install
npm install @excalidraw/element
If you prefer Yarn over npm, use this command to install the Excalidraw utils package:
yarn add @excalidraw/element
With PNPM, similarly install the package with this command:
pnpm add @excalidraw/element