add wireframe/wireedges to menu

This commit is contained in:
Stewart Allen 2025-06-15 12:53:15 -04:00
commit 420475ecfc
3 changed files with 11 additions and 9 deletions

View file

@ -8,7 +8,6 @@ import '../add/three.js';
import '../mesh/build.js';
import { api } from '../mesh/api.js';
import { base } from '../geo/base.js';
import { space } from '../moto/space.js';
import { broker } from '../moto/broker.js';
import { $, $d, h, estop } from '../moto/webui.js';
@ -270,13 +269,7 @@ function space_init(data) {
case 'KeyV':
return shiftKey ? selection.show() : selection.focus();
case 'KeyW':
return shiftKey ?
api.wireframe() :
api.wireframe({
toggle: true
}, {
edges: base.util.toDegrees(api.prefs.map.surface.radians)
});
return shiftKey ? api.wireframe() : api.wireedges();
case 'KeyX':
return api.file.export();
}