This commit is contained in:
2026-05-25 13:47:09 +08:00
parent 266c0c154e
commit dbde91bbe0
3 changed files with 40 additions and 145 deletions

View File

@ -221,9 +221,8 @@ export const executeEvent = async (dropzone_data, result, sku) => {
axis: rotation.y === 0 || rotation.y === 180 ? 'x' : 'z',
step: 0.1,
boundaryConstraint: true, // 启用边界限制
snapToZone: true, // 启用拖拽吸附到最近的分割区域
// 拖拽到已占用区域时的行为:'return' 返回原位置,'replace' 替换目标位置的模型(默认 'return'
onOccupiedZone: 'replace'
snapToZone: false, // 启用拖拽吸附到最近的分割区域
onOccupiedZone: '' // 拖拽到已占用区域时的行为:'return' 返回原位置,'replace' 替换目标位置的模型(默认 'return' "" 允许重叠
},
transform: {
position: position,