add surface selection and angle preference
This commit is contained in:
parent
52388e704e
commit
a9939a4b51
7 changed files with 202 additions and 58 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue