add sketch scaling, selection persistence

This commit is contained in:
Stewart Allen 2024-07-24 15:57:32 -04:00
commit ef0f4c3efd
4 changed files with 108 additions and 29 deletions

View file

@ -876,6 +876,8 @@ gapp.register("moto.space", [], (root, exports) => {
isVis = trackTo.visible;
if (mouseDownSelect) selection = mouseDownSelect(undefined, event);
if (selection && selection.length > 0) {
// selection = selection.map(o => o.isGroup ? o.children : o).flat();
// console.log({ selection });
trackTo.visible = true;
let int = intersect(selection.slice().append(trackTo), false);
trackTo.visible = isVis;