feat(timeline): 支持拖拽调整时长与运镜/轨迹关键帧时间

This commit is contained in:
2026-09-17 17:30:22 +08:00
parent bab92c05b8
commit 8d67f17a84
21 changed files with 2556 additions and 194 deletions

View File

@@ -30,7 +30,7 @@ import {
VIEWPORT_CAMERA_VISUAL_SCALE,
} from "../schema/cameraGeometry";
import { VIEWPORT_OBJECT_LABEL_VERTICAL_GAP } from "../schema/viewportLabels";
import { evaluateTrajectoryMotionAtTime, getTrajectoryPointTime } from "../schema/trajectoryMotion";
import { evaluateTrajectoryMotionAtTime, getTrajectoryPointTimes } from "../schema/trajectoryMotion";
import type { TransformMode } from "../store/directorStore";
import { useDirectorStore } from "../store/directorStore";
import { usePlaybackStore } from "../runtime/playbackStore";
@@ -920,7 +920,7 @@ function TrajectoryPath({
if (pointIndex < 0) return;
setPlaying(false);
setPlayhead(getTrajectoryPointTime(pointIndex, points.length, playbackDuration));
setPlayhead(getTrajectoryPointTimes(points, playbackDuration)[pointIndex] ?? 0);
}
/**