refactor(HEL-752): remove unused locals while preserving evaluation and props
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
* values feed the viewport's shot solver.
|
||||
*/
|
||||
import { shotStore } from '$lib/shot/shotStore.svelte';
|
||||
import { JOINT_CONFIGS, getDOF, setDOF, type JointConfig } from '$lib/shot/helpers/jointConfig';
|
||||
import { readPosture, clonePosture, type Posture } from '$lib/shot/helpers/posture';
|
||||
import { JOINT_CONFIGS, type JointConfig } from '$lib/shot/helpers/jointConfig';
|
||||
import '$lib/shot/helpers/posture';
|
||||
import type { ShotParams } from '$lib/shot/calibration/shotSolver';
|
||||
import { SHOT_SIZE_OPTIONS, ANGLE_OPTIONS, ELEVATION_OPTIONS } from '$lib/shot/calibration/shotAxes';
|
||||
import { COMPOSITION_PRESETS } from '$lib/shot/calibration/compositionPresets';
|
||||
@@ -23,7 +23,7 @@
|
||||
// reference editor used; the viewport applies it with writePosture.
|
||||
let jointsOpen = $state(true);
|
||||
|
||||
function dofValue(cfg: JointConfig, figure: any, dofIndex: number): number {
|
||||
function dofValue(cfg: JointConfig, figure: { posture?: unknown } | null, dofIndex: number): number {
|
||||
const joint = figure?.posture ? figure : figure; // DOF read from posture data below
|
||||
void joint;
|
||||
// We don't have a live mannequin here — read from the stored posture
|
||||
|
||||
@@ -63,10 +63,6 @@
|
||||
shotStore.addKeyframe(selectedObject.id, elapsed);
|
||||
}
|
||||
|
||||
function commitStagedKeyframe() {
|
||||
if (!selectedObject) return;
|
||||
shotStore.commitLiveKeyframe(selectedObject.id);
|
||||
}
|
||||
|
||||
function deleteSelectedKeyframe() {
|
||||
if (!selectedObject || !selectedKeyframeId) return;
|
||||
|
||||
Reference in New Issue
Block a user