canvasToTrace
Returns the draw calls nodes produce as a normalized multi-line text trace — geometry and style assertions without pixel rasterization.
Each leaf runs through the production draw pass — the same dispatch Kanvas draws with — against a width × height canvas at density 1 with no declared bounds: the surface is the world, and infinite lines clip against the circle circumscribing it. Each line formats one Compose canvas call (rect, line, circle, path) with its resolved geometry and paint; a leaf the draw pass skips produces no line, and path lines carry the path's bounding box — vertex data is not part of the trace. Coordinates round to three decimals, absorbing Double → Float jitter; colors print as #rrggbb, alpha-prefixed as #aarrggbb when not opaque.
Return
One line per recorded draw call, newline-joined.
Parameters
The styled leaves to trace, drawn in order.
The canvas width in px.
The canvas height in px.