This commit is contained in:
2026-05-27 10:31:17 +08:00
parent dbde91bbe0
commit a8ae4ffc57
3 changed files with 106 additions and 175 deletions

View File

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