import MouseMoveDraggable from "./MouseMoveDraggable.js" /** @extends {MouseMoveDraggable} */ export default class MouseMoveNodes extends MouseMoveDraggable { startDrag() { if (!this.target.selected) { this.blueprint.unselectAll() this.target.setSelected(true) } } dragAction(location, offset) { this.target.acknowledgeDrag(offset) } unclicked() { if (!this.started) { this.blueprint.unselectAll() this.target.setSelected(true) } else { this.blueprint.getNodes(true).forEach(node => node.boundComments .filter(comment => !node.isInsideComment(comment)) .forEach(comment => node.unbindFromComment(comment)) ) this.blueprint.getCommentNodes().forEach(comment => /** @type {CommentNodeTemplate} */(comment.template).manageNodesBind() ) } } }