增加配件吸附功能

This commit is contained in:
2026-05-25 12:35:19 +08:00
parent 62eda81895
commit c6257883e5
6 changed files with 374 additions and 13 deletions

View File

@ -220,6 +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: true, // 启用拖拽吸附到最近的分割区域
// 拖拽到已占用区域时的行为:'return' 返回原位置,'replace' 替换目标位置的模型(默认 'return'
onOccupiedZone: 'replace'
},
transform: {
position: position,