Havn
PlatformLoreDocs Sign in
KernelBosonHintLore
  • Start here 3
  • Camera 12
  • Selection 6
  • Visibility 4
  • Display 3
  • Render 3
  • Materials 2
  • Painterly brushes 3
  • Edges 2
  • Section box 4
  • Properties 4
  • Semantic camera 3
  • Scene info 4
  • Interaction 8
    • tool_set
    • tool_commit
    • tool_cancel
    • keymap_set
    • targets_set
    • input_dispatch
    • get_tool
    • get_keymap
  • Text 2
  • Batch 1
  • Contract 1

Nothing in Boson matches.

Docs/ Boson

Interaction

8 pages

  • tool_set Activates a tool of the viewport.
  • tool_commit Commits the open session if it can (as Enter does); done is false with no session open.
  • tool_cancel Cancels the open session (reason 'verb'); done is false with no session open.
  • keymap_set Replaces the viewport's key bindings whole.
  • targets_set Replaces the viewport's host targets whole: ports anchored to 2D shapes ({ key, kind: 'port', nodeId, portId, side: 'in' | 'out', bind: { shape, anchor }, radiusPx }), tested like the kit's own targets and owned by the resident wire tool.
  • input_dispatch Feeds input events through the same router as the DOM, for replay, tests and agents: { type: 'pointer', phase, pointerId, pointerType, x, y, button?, buttons?, modifiers?, pressure?, time }, { type: 'wheel', x, y, dx, dy, modifiers?, time }, { type: 'key', phase, key, code?, modifiers?, repeat?, time }, { type: 'focus', lost }, { type: 'tick', time }.
  • get_tool The active tool of the viewport with its descriptor, the open session (or null) and every tool tool_set can pick.
  • get_keymap The viewport's key bindings and its whole pointer-role table, as keymap_set takes them.
PreviousScene info NextText
Havn Platform Lore Docs