import Command from "./Command"; import { serializeObject3DArray } from "../functions/debug"; export default class SelectMultipleCommand extends Command { objects: any; oldSelection: any; constructor(editor, objects) { super(editor); this.objects = objects.slice(0); this.oldSelection = editor.selected.slice(0); } execute() { this.editor.selectMultiple(this.objects, false); } undo() { this.editor.setSelection(this.oldSelection, false); } toString() { return `SelectMultipleCommand id: ${ this.id } objects: ${serializeObject3DArray(this.objects)}`; } }