feat: finalize corrected-route planning and Rerun recording review

This commit is contained in:
DCCONSTRUCTIONS
2026-09-22 10:10:03 +03:00
parent c804d89b18
commit 2e5d52521f
132 changed files with 14141 additions and 898 deletions
@@ -1,5 +1,7 @@
import {Checker,ColorField,ControlRow,Inspector,RangeControl,Select} from '@nodedc/ui-react';
import type {SceneSettings,PointColorMode,PointPalette} from './sceneSettings';
import {MAX_ACCUMULATION_SECONDS} from './sceneSettings';
import {formatAccumulationDuration} from './ObservationTimeline';
const colorModeOptions: Array<{ value: PointColorMode; label: string; description: string }> = [
{ value: "intensity", label: "Интенсивность", description: "Значение отражённого сигнала" },
@@ -28,7 +30,7 @@ export function SceneDisplayControls({displayDraft,stageDisplayPatch,commitDispl
{
id: "points",
label: "Облако точек",
description: "Размер и способ окрашивания",
description: "Размер, плотность и окрашивание",
content: (
<div className="inspector-control-stack">
<div
@@ -47,6 +49,17 @@ export function SceneDisplayControls({displayDraft,stageDisplayPatch,commitDispl
onChange={(pointSize) => stageDisplayPatch({ pointSize })}
/>
</div>
{replayPresented ? <>
<RangeControl
label="Прореживание облака"
value={displayDraft.pointDecimationPercent ?? 0}
min={0} max={100} step={0.1}
exactValueBounds={{min: 0, max: 100}}
formatValue={(value) => `${value.toLocaleString('ru-RU')} %`}
onChange={(pointDecimationPercent) => stageDisplayPatch({pointDecimationPercent})}
/>
<p className="scene-window-note">0% — все точки, 100% — без точек. Предпросмотр обновляется после изменения. Настройки сохраняются при закрытии окна; исходная запись не меняется.</p>
</> : null}
<div className="scene-settings-commit-field" onBlur={flushDisplaySettings}>
<ControlRow label="Атрибут цвета">
<Select
@@ -85,12 +98,6 @@ export function SceneDisplayControls({displayDraft,stageDisplayPatch,commitDispl
</ControlRow>
</div>
) : null}
{replayPresented ? (
<p className="scene-window-note">
Первый новый режим читает индекс архивных точек. Следующие палитры
переключаются из подготовленного цветового кэша без переэкспорта геометрии.
</p>
) : null}
</div>
),
},
@@ -100,6 +107,18 @@ export function SceneDisplayControls({displayDraft,stageDisplayPatch,commitDispl
description: "История облака и траектория",
content: (
<div className="inspector-control-stack">
<RangeControl
label="Диапазон шкалы, мин"
value={(displayDraft.accumulationMaxSeconds ?? MAX_ACCUMULATION_SECONDS) / 60}
min={1} max={30} step={0.1}
exactValueBounds={{min: 1 / 60}}
formatValue={(value) => `${value.toLocaleString('ru-RU', {maximumFractionDigits: 2})} мин`}
onChange={(minutes) => {
const accumulationMaxSeconds = Math.max(1, Math.round(minutes * 60));
stageDisplayPatch({accumulationMaxSeconds,
accumulationSeconds: Math.min(displayDraft.accumulationSeconds, accumulationMaxSeconds)});
}}
/>
<div
className="scene-settings-commit-field"
onPointerUp={flushDisplaySettings}
@@ -110,10 +129,12 @@ export function SceneDisplayControls({displayDraft,stageDisplayPatch,commitDispl
label="Окно накопления"
value={displayDraft.accumulationSeconds}
min={0}
max={120}
max={displayDraft.accumulationMaxSeconds ?? MAX_ACCUMULATION_SECONDS}
exactValueBounds={{min: 0}}
step={1}
formatValue={(value) => (value === 0 ? "Только кадр" : `${value} с`)}
onChange={(accumulationSeconds) => stageDisplayPatch({ accumulationSeconds })}
formatValue={formatAccumulationDuration}
onChange={(accumulationSeconds) => stageDisplayPatch({ accumulationSeconds,
accumulationMaxSeconds: Math.max(accumulationSeconds, displayDraft.accumulationMaxSeconds ?? MAX_ACCUMULATION_SECONDS) })}
/>
</div>
<div className="nodedc-field">