weasel API - v0.8.0
    Preparing search index...

    Function useImageTool

    • 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.

      Parameters

      Returns Tool<null>