Compare commits

...

4 Commits

6 changed files with 11 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -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',