Zoom out on extruded object (#2819)

This commit is contained in:
49fl
2024-07-04 01:19:24 -04:00
committed by GitHub
parent 08e9fe2e52
commit 1257ec0327
3 changed files with 52 additions and 3 deletions

View File

@ -1012,6 +1012,11 @@ export const modelingMachine = createMachine(
const updatedAst = await kclManager.updateAst(modifiedAst, true, {
focusPath: pathToExtrudeArg,
zoomToFit: true,
zoomOnRangeAndType: {
range: selection.codeBasedSelections[0].range,
type: 'start_path',
},
})
if (updatedAst?.selections) {
editorManager.selectRange(updatedAst?.selections)