add surface selection and angle preference

This commit is contained in:
Stewart Allen 2022-03-31 15:24:11 -04:00
commit a9939a4b51
7 changed files with 202 additions and 58 deletions

View file

@ -214,7 +214,7 @@ api.welcome = function(version = "unknown") {
api.settings = function() {
const { util } = mesh;
const { prefs } = api;
const { normals, space } = prefs.map;
const { surface, normals, space } = prefs.map;
const { dark } = space;
const col1 = h.div([
@ -249,7 +249,18 @@ api.settings = function() {
}),
]);
modal.show('settings', h.div({ class: "settings" }, [ col1, col2 ] ));
const col3 = h.div([
h.label(''),
h.label('surface'),
h.label('radians'),
h.input({ type: "text", size: 5, value: surface.radians,
onchange: ev => call.set_surface_radians(ev.target.value)
}),
h.label(' '),
h.label(' ')
]);
modal.show('settings', h.div({ class: "settings" }, [ col1, col2, col3 ] ));
}
// create html elements