@mx-sose-front/mx-sose-graph 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +4 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/store/graphStore.ts +4 -1
package/package.json
CHANGED
package/src/store/graphStore.ts
CHANGED
|
@@ -798,11 +798,12 @@ export const useGraphStore = defineStore('graph', () => {
|
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
|
|
801
|
+
console.log('1. endDragShape start')
|
|
802
802
|
// 更新相关 edge 的 waypoints
|
|
803
803
|
await EdgeUtils.updateRelatedEdgesAsync(shapes.value, changedIds, (shape) => {
|
|
804
804
|
updateShape(shape.id, shape)
|
|
805
805
|
}, edgesByNodeId.value, shapeMap.value)
|
|
806
|
+
console.log('1. endDragShape start')
|
|
806
807
|
//对“本次直接拖动的隔间”做一次自动扩容检查
|
|
807
808
|
autoExpandMovedCompartmentsAfterDrag(shapes.value, changedIds, updateShape)
|
|
808
809
|
// 把 clone 也并入“需要同步 comparents 的变更集合”
|
|
@@ -860,8 +861,10 @@ export const useGraphStore = defineStore('graph', () => {
|
|
|
860
861
|
}
|
|
861
862
|
//对外只暴露一个事件:shape-drag-end
|
|
862
863
|
eventBus.emit('shape-drag-end', payloads, ownerPayload, onNestDone)
|
|
864
|
+
console.log('3. emit done')
|
|
863
865
|
// 清理拖拽状态
|
|
864
866
|
cleanupAfterDrag()
|
|
867
|
+
console.log('4. cleanupAfterDrag done')
|
|
865
868
|
} catch (e) {
|
|
866
869
|
console.error('endDragShape 执行失败:', e)
|
|
867
870
|
} finally {
|