Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit8d45df8664

README.md

selection_highlight

Mirrors the editor's entity selection onto the outline render feature as an edit-only hint (the rim drops automatically when the world leaves edit mode). Subscribes to the shared modules.api.editor.selection service's entity scope and reconciles the outline sink so exactly the selected entities are rimmed.

Exports

  • M.reconcile(sink, ids) — pure: drives sink (set(id) / clear(id)) so exactly ids are outlined, clearing anything previously set that is no longer selected. Only touches ids it owns.
  • M.attach() — wire reconcile to the real selection scope (via Selection.subscribe) and the real outline sink (outline.setEditorHint / outline.clear).

Notes

  • reconcile is pure so it can be unit-tested against a mock sink.