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

    Function useTextTool

    • Text tool. Drag-rect insertion is owned end-to-end by the dispatcher's insertAction (kind: 'text'); click-on-selected-text-node enters edit mode via the enterTextEdit action.

      Consumers must register both the insert dep (e.g. through SceneCanvas's useInsertDepSource) and the textEdit dep (enterTextEditAction's contract — see src/interactions/actions/defaults/enterTextEdit.ts). Custom node factories and hit gating belong on those deps, not on the tool.

      Returns Tool<undefined>