Skip to content

InteractionSwitches

github-actions[bot] edited this page Sep 21, 2026 · 1 revision

Interface: InteractionSwitches

Imported from @elite-dangerous-almanac/galaxy-map.

Which of the user's inputs the map acts on. Each switch is on unless a host turns it off, and each one covers the mouse and the touch form of the same input.

A switch that is off stops that input from changing the view or the selection. It does not stop the map from drawing, from reporting a hover or from answering systemAt, and it does not stop the canvas from holding off the browser's own default action: a canvas that let the page scroll under a disabled wheel would be worse than one that zooms.

The switches are for the user's input. A setView, a setSelection and a flyTo from the host work whatever they say.

Properties

keys

readonly keys: boolean

The eight movement keys.


orbit

readonly orbit: boolean

The left drag and the two finger turn.


pan

readonly pan: boolean

The right drag and the one finger drag.


select

readonly select: boolean

The click and the tap that select a system.


zoom

readonly zoom: boolean

The wheel and the pinch.

Clone this wiki locally