The current UI mode with associated state-specific data. Derived from internal state (_ui) with hydrated measurement objects.
IDs of measurements the user has explicitly toggled to be visible. Excludes preview-on-hover and other transient visibility effects. Use this when a UI control needs to anticipate the outcome of toggling visibility.
IDs of measurements that should be visible in the 3D viewport. Derived from internal state and UI mode (includes preview-on-hover, force-visibility, the selected measurement in view mode, the edited one in edit mode, etc.).
ComputedStore interface defining derived state computed from the base Store.
A computed store uses zustand-computed to derive values from base state without storing them directly. This ensures derived values are always consistent with base state and updates automatically when dependencies change.