more clean up (#889)
This commit is contained in:
@ -24,9 +24,7 @@ import {
|
|||||||
StateFrom,
|
StateFrom,
|
||||||
} from 'xstate'
|
} from 'xstate'
|
||||||
import { useCommandsContext } from 'hooks/useCommandsContext'
|
import { useCommandsContext } from 'hooks/useCommandsContext'
|
||||||
import { invoke } from '@tauri-apps/api'
|
|
||||||
import { isTauri } from 'lib/isTauri'
|
import { isTauri } from 'lib/isTauri'
|
||||||
import { VITE_KC_API_BASE_URL } from 'env'
|
|
||||||
|
|
||||||
type MachineContext<T extends AnyStateMachine> = {
|
type MachineContext<T extends AnyStateMachine> = {
|
||||||
state: StateFrom<T>
|
state: StateFrom<T>
|
||||||
|
@ -27,7 +27,7 @@ import {
|
|||||||
addLineHighlight,
|
addLineHighlight,
|
||||||
lineHighlightField,
|
lineHighlightField,
|
||||||
} from 'editor/highlightextension'
|
} from 'editor/highlightextension'
|
||||||
import { isOverlap, roundOff } from 'lib/utils'
|
import { roundOff } from 'lib/utils'
|
||||||
import { kclErrToDiagnostic } from 'lang/errors'
|
import { kclErrToDiagnostic } from 'lang/errors'
|
||||||
import { CSSRuleObject } from 'tailwindcss/types/config'
|
import { CSSRuleObject } from 'tailwindcss/types/config'
|
||||||
import { useModelingContext } from 'hooks/useModelingContext'
|
import { useModelingContext } from 'hooks/useModelingContext'
|
||||||
|
@ -787,7 +787,7 @@ export const modelingMachine = createMachine(
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
'hide default planes': ({}) => {
|
'hide default planes': () => {
|
||||||
kclManager.hidePlanes()
|
kclManager.hidePlanes()
|
||||||
},
|
},
|
||||||
edit_mode_exit: () =>
|
edit_mode_exit: () =>
|
||||||
|
Reference in New Issue
Block a user