Drag-to-insert image tool. A drag-rect commits a leaf node with
data: { image: { src } } through the dispatcher's insertAction + the
kit's insert dep (the same path the shape tools use); the kit:image
painter renders it once the bitmap decodes.
Thin declarative veneer — the node is minted by useInsertDepSource's
'image' case, not the tool. src is baked into the binding's params
so the insert dep can stamp it onto the new node.
Drag-to-insert image tool. A drag-rect commits a leaf node with
data: { image: { src } }through the dispatcher'sinsertAction+ the kit'sinsertdep (the same path the shape tools use); thekit:imagepainter renders it once the bitmap decodes.Thin declarative veneer — the node is minted by
useInsertDepSource's'image'case, not the tool.srcis baked into the binding'sparamsso the insert dep can stamp it onto the new node.