Instrumentation
Generated by
website/scripts/generate-api.tsfrompackages/gridla/src. Do not edit by hand; runbun run generateinwebsite/.
Optional tracing. Pass onTrace in SolveOptions and every solve reports the strategy it used, so you can build debug overlays or log interaction paths without the core owning a logger.
Types
SolveStrategy
Names of the strategies a solver may report.
TraceCallback
Receives a TraceEvent for every solve. Pass it as SolveOptions.onTrace.
TraceEvent
One record per solve: the operation, the strategy that produced the result, whether it was accepted, and the active item's resulting rectangle in canvas coordinates.