2026-05-24-19-53-00 加快位姿长按微调速度
This commit is contained in:
@@ -92,6 +92,14 @@ const poseStepConfig: Record<ModelPoseKey, { min: number; max: number; step: num
|
||||
translateZ: { min: -2, max: 2, step: 0.001, minus: '-0.001', plus: '+0.001' },
|
||||
scale: { min: 0.5, max: 3, step: 0.001, minus: '-0.001', plus: '+0.001' },
|
||||
};
|
||||
const poseRepeatDelayMs = 240;
|
||||
const poseRepeatIntervalMs = 55;
|
||||
const poseRepeatDeltaMultiplier: Partial<Record<ModelPoseKey, number>> = {
|
||||
translateX: 5,
|
||||
translateY: 5,
|
||||
translateZ: 5,
|
||||
scale: 5,
|
||||
};
|
||||
|
||||
const defaultModelPose: ModelPose = {
|
||||
rotateX: 0,
|
||||
@@ -3276,10 +3284,11 @@ export default function ReverseWorkspace({
|
||||
|
||||
const startPoseRepeat = (key: ModelPoseKey, delta: number) => {
|
||||
stopPoseRepeat();
|
||||
const repeatDelta = delta * (poseRepeatDeltaMultiplier[key] ?? 1);
|
||||
poseRepeatRef.current.timeout = window.setTimeout(() => {
|
||||
nudgeModelPose(key, delta);
|
||||
poseRepeatRef.current.interval = window.setInterval(() => nudgeModelPose(key, delta), 90);
|
||||
}, 360);
|
||||
nudgeModelPose(key, repeatDelta);
|
||||
poseRepeatRef.current.interval = window.setInterval(() => nudgeModelPose(key, repeatDelta), poseRepeatIntervalMs);
|
||||
}, poseRepeatDelayMs);
|
||||
};
|
||||
|
||||
const resetRotationPose = () => {
|
||||
|
||||
Reference in New Issue
Block a user