zijlijn concepten beter geplaatst

This commit is contained in:
2026-09-03 08:50:20 +02:00
parent 2c141b6d3f
commit 1abc84489f
5 changed files with 49 additions and 26 deletions
@@ -9,6 +9,7 @@ export class CmapInteractionController {
this.activeMarqueeCleanup = null;
this.canvasPanPointerDownHandler = null;
this.activeCanvasPanCleanup = null;
this.boundaryRefreshScheduled = false;
}
get items() { return this.editor.items; }
@@ -24,9 +25,19 @@ export class CmapInteractionController {
this.moveSubmapGroup(record, x, y, moveMembership);
queueMicrotask(() => this.redrawAllConnectors());
}
this.scheduleBoundaryRefresh();
return { x, y };
}
scheduleBoundaryRefresh() {
if (this.boundaryRefreshScheduled) return;
this.boundaryRefreshScheduled = true;
window.requestAnimationFrame(() => {
this.boundaryRefreshScheduled = false;
if (!this.editor.destroyed) this.editor.refreshBoundaryReferences();
});
}
beginItemMove(record, includeDescendants = false) {
if (record.moveMembership) return record.moveMembership;
let groupItems = [record];