Feature: Disable all automatic zoom_to_fit
workflows. Do not take control of users camera. (#6076)
chore: removing all force zoom_to_fit workflows in the system except on initial stream load sending it
This commit is contained in:
@ -10,7 +10,7 @@ import type { Node } from '@rust/kcl-lib/bindings/Node'
|
||||
import type EditorManager from '@src/editor/manager'
|
||||
import type { KclManager } from '@src/lang/KclSingleton'
|
||||
import type CodeManager from '@src/lang/codeManager'
|
||||
import type { PathToNode, Program, SourceRange } from '@src/lang/wasm'
|
||||
import type { PathToNode, Program } from '@src/lang/wasm'
|
||||
import type { ExecutionType } from '@src/lib/constants'
|
||||
import {
|
||||
EXECUTION_TYPE_MOCK,
|
||||
@ -52,11 +52,6 @@ export async function updateModelingState(
|
||||
},
|
||||
options?: {
|
||||
focusPath?: Array<PathToNode>
|
||||
zoomToFit?: boolean
|
||||
zoomOnRangeAndType?: {
|
||||
range: SourceRange
|
||||
type: string
|
||||
}
|
||||
}
|
||||
): Promise<void> {
|
||||
// Step 1: Update AST without executing (prepare selections)
|
||||
@ -83,8 +78,6 @@ export async function updateModelingState(
|
||||
if (executionType === EXECUTION_TYPE_REAL) {
|
||||
await dependencies.kclManager.executeAst({
|
||||
ast: updatedAst.newAst,
|
||||
zoomToFit: options?.zoomToFit,
|
||||
zoomOnRangeAndType: options?.zoomOnRangeAndType,
|
||||
})
|
||||
} else if (executionType === EXECUTION_TYPE_MOCK) {
|
||||
await dependencies.kclManager.executeAstMock(updatedAst.newAst)
|
||||
|
Reference in New Issue
Block a user