stub in snap but requires more work and validating removal of some mouse dragging code
This commit is contained in:
parent
75f42428d4
commit
caeba6a48d
5 changed files with 38 additions and 16 deletions
|
|
@ -1176,6 +1176,8 @@ const prefs = {
|
|||
scale_group_Z: true
|
||||
},
|
||||
space: {
|
||||
snap: 1,
|
||||
snapon: false,
|
||||
center: true,
|
||||
floor: true,
|
||||
wire: false,
|
||||
|
|
|
|||
|
|
@ -284,7 +284,20 @@ api.settings = function() {
|
|||
}),
|
||||
]);
|
||||
|
||||
modal.show('settings', h.div({ class: "settings" }, [ set1, set2, set3, set4 ] ));
|
||||
// const set5 = h.div([
|
||||
// h.label({ class: "header", _: 'snap'}),
|
||||
// h.label('value'),
|
||||
// h.input({ type: "text", size: 5, value: parseFloat(space.snap || 1),
|
||||
// onchange: ev => call.set_snap_value(ev.target.value)
|
||||
// }),
|
||||
// h.label('enabled'),
|
||||
// h.input({ type: "checkbox",
|
||||
// onchange: ev => prefs.save( space.snapon = !space.snapon ),
|
||||
// [ space.snapon === true ? 'checked' : 'unchecked' ] : 1
|
||||
// }),
|
||||
// ]);
|
||||
|
||||
modal.show('settings', h.div({ class: "settings" }, [ set1, set2, set3, set4, set5 ] ));
|
||||
}
|
||||
|
||||
// create html elements
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
// dep: add.three
|
||||
// dep: moto.license
|
||||
// dep: moto.broker
|
||||
// use: mesh.api
|
||||
// dep: mesh.api
|
||||
// use: mesh.util
|
||||
gapp.register("mesh.object", [], (root, exports) => {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue