Compare commits
4 Commits
main
...
zoom-to-fi
Author | SHA1 | Message | Date | |
---|---|---|---|---|
866cbfc6e3 | Merge branch 'main' into zoom-to-fit-on-object-pop | |||
b7085d50b7 | A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu) | |||
8783151be7 | A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu) | |||
be03b2c51d | zoom to fit on object pop |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 41 KiB |
|
@ -358,7 +358,7 @@ export const modelingMachine = createMachine(
|
||||||
'Artifact graph populated': 'showPlanes',
|
'Artifact graph populated': 'showPlanes',
|
||||||
},
|
},
|
||||||
|
|
||||||
entry: 'hide default planes',
|
entry: ['hide default planes', 'zoom to fit'],
|
||||||
},
|
},
|
||||||
|
|
||||||
showPlanes: {
|
showPlanes: {
|
||||||
|
@ -1063,6 +1063,16 @@ export const modelingMachine = createMachine(
|
||||||
sketchEnginePathId: '',
|
sketchEnginePathId: '',
|
||||||
sketchPlaneId: '',
|
sketchPlaneId: '',
|
||||||
}),
|
}),
|
||||||
|
'zoom to fit': () =>
|
||||||
|
engineCommandManager.sendSceneCommand({
|
||||||
|
type: 'modeling_cmd_req',
|
||||||
|
cmd_id: uuidv4(),
|
||||||
|
cmd: {
|
||||||
|
type: 'zoom_to_fit',
|
||||||
|
padding: 0.1,
|
||||||
|
object_ids: [],
|
||||||
|
},
|
||||||
|
}),
|
||||||
'reset camera position': () =>
|
'reset camera position': () =>
|
||||||
engineCommandManager.sendSceneCommand({
|
engineCommandManager.sendSceneCommand({
|
||||||
type: 'modeling_cmd_req',
|
type: 'modeling_cmd_req',
|
||||||
|
|