@sequent-org/moodboard 1.4.19 → 1.4.20
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/package.json
CHANGED
|
@@ -510,7 +510,9 @@ export function openMindmapEditor(object, create = false) {
|
|
|
510
510
|
const sideButton = (typeof target.closest === 'function')
|
|
511
511
|
? target.closest('.mb-mindmap-side-btn')
|
|
512
512
|
: null;
|
|
513
|
-
|
|
513
|
+
// Allow all mindmap "+" buttons to complete their click flow
|
|
514
|
+
// without collapsing current selection in capture phase.
|
|
515
|
+
if (sideButton) return;
|
|
514
516
|
finalize(true);
|
|
515
517
|
if (typeof this.clearSelection === 'function') {
|
|
516
518
|
this.clearSelection();
|
|
@@ -209,7 +209,10 @@ function relayoutMindmapBranchLevel({ core, eventBus, parentId, side }) {
|
|
|
209
209
|
if (!(targetX === currentX && targetY === currentY)) {
|
|
210
210
|
core.updateObjectPositionDirect(node.id, { x: targetX, y: targetY }, { snap: false });
|
|
211
211
|
eventBus.emit(Events.Object.TransformUpdated, { objectId: node.id });
|
|
212
|
-
eventBus.emit(Events.Tool.DragUpdate, {
|
|
212
|
+
eventBus.emit(Events.Tool.DragUpdate, {
|
|
213
|
+
object: node.id,
|
|
214
|
+
position: { x: targetX, y: targetY },
|
|
215
|
+
});
|
|
213
216
|
movedPositions.set(node.id, { x: targetX, y: targetY });
|
|
214
217
|
|
|
215
218
|
const dx = Math.round(targetX - currentX);
|
|
@@ -233,7 +236,10 @@ function relayoutMindmapBranchLevel({ core, eventBus, parentId, side }) {
|
|
|
233
236
|
};
|
|
234
237
|
core.updateObjectPositionDirect(descId, nextPos, { snap: false });
|
|
235
238
|
eventBus.emit(Events.Object.TransformUpdated, { objectId: descId });
|
|
236
|
-
eventBus.emit(Events.Tool.DragUpdate, {
|
|
239
|
+
eventBus.emit(Events.Tool.DragUpdate, {
|
|
240
|
+
object: descId,
|
|
241
|
+
position: nextPos,
|
|
242
|
+
});
|
|
237
243
|
movedPositions.set(descId, nextPos);
|
|
238
244
|
});
|
|
239
245
|
}
|
|
@@ -965,7 +971,10 @@ export class HandlesDomRenderer {
|
|
|
965
971
|
const nextPos = { x: Math.round(Number(snap.x) + dx), y: Math.round(Number(snap.y) + dy) };
|
|
966
972
|
core.updateObjectPositionDirect(nodeId, nextPos, { snap: false });
|
|
967
973
|
eventBus.emit(Events.Object.TransformUpdated, { objectId: nodeId });
|
|
968
|
-
eventBus.emit(Events.Tool.DragUpdate, {
|
|
974
|
+
eventBus.emit(Events.Tool.DragUpdate, {
|
|
975
|
+
object: nodeId,
|
|
976
|
+
position: nextPos,
|
|
977
|
+
});
|
|
969
978
|
});
|
|
970
979
|
translatedScopeByCompound.set(compoundId, moveScopeIds);
|
|
971
980
|
logMindmapCompoundDebug('layout:drag-end-translate-scope', {
|
|
@@ -994,7 +1003,10 @@ export class HandlesDomRenderer {
|
|
|
994
1003
|
const nextPos = { x: Math.round(snap.x), y: Math.round(snap.y) };
|
|
995
1004
|
core.updateObjectPositionDirect(nodeId, nextPos, { snap: false });
|
|
996
1005
|
eventBus.emit(Events.Object.TransformUpdated, { objectId: nodeId });
|
|
997
|
-
eventBus.emit(Events.Tool.DragUpdate, {
|
|
1006
|
+
eventBus.emit(Events.Tool.DragUpdate, {
|
|
1007
|
+
object: nodeId,
|
|
1008
|
+
position: nextPos,
|
|
1009
|
+
});
|
|
998
1010
|
});
|
|
999
1011
|
logMindmapCompoundDebug('layout:drag-end-restore-compound', {
|
|
1000
1012
|
compoundId,
|