add open poly rendering and preferences

This commit is contained in:
Stewart Allen 2024-07-27 22:08:26 -04:00
commit f04fb3a813
6 changed files with 45 additions and 8 deletions

View file

@ -479,6 +479,7 @@ let sketch = {
api.modal.bound._height.focus();
},
// related to items selections in a selected sketch
arrange: {
group() {
sketch.selection.ifcan((sketch, items) => {
@ -502,6 +503,7 @@ let sketch = {
rec.poly.move({ x: -center.x, y: -center.y, z:0 });
Object.assign(rec.item, rec.poly.toObject());
}
selection.centerXY();
sketch.render();
});
},
@ -588,6 +590,7 @@ let sketch = {
},
},
// related to items selections in a selected sketch
boolean: {
nest() {
sketch.selected.one?.boolean.nest();
@ -614,6 +617,7 @@ let sketch = {
}
},
// related to items selections in a selected sketch
pattern: {
circle() {
sketch.selected.one?.pattern.circle();
@ -1266,6 +1270,11 @@ const prefs = {
dark: false,
select: []
},
sketch: {
close_poly: false,
open_thick: 1,
open_type: 'miter'
},
normals: {
length: 0.25,
color_lite: 0xffff00,