add multiple selections support for focusPath (#3944)

This commit is contained in:
max
2024-09-23 08:07:31 +02:00
committed by GitHub
parent 619b059ae1
commit 7848d63177
3 changed files with 35 additions and 27 deletions

View File

@ -555,7 +555,7 @@ export const modelingMachine = setup({
store.videoElement?.pause()
const updatedAst = await kclManager.updateAst(modifiedAst, true, {
focusPath: pathToExtrudeArg,
focusPath: [pathToExtrudeArg],
zoomToFit: true,
zoomOnRangeAndType: {
range: selection.codeBasedSelections[0].range,
@ -602,7 +602,7 @@ export const modelingMachine = setup({
store.videoElement?.pause()
const updatedAst = await kclManager.updateAst(modifiedAst, true, {
focusPath: pathToRevolveArg,
focusPath: [pathToRevolveArg],
zoomToFit: true,
zoomOnRangeAndType: {
range: selection.codeBasedSelections[0].range,