Add TS schema, selection actions to modelingMachine

This commit is contained in:
Frank Noirot
2023-09-13 14:45:14 -04:00
parent 26737e055a
commit c33107aa28
3 changed files with 516 additions and 435 deletions

View File

@ -21,12 +21,23 @@ import {
import { KCLError } from './lang/errors'
import { defferExecution } from 'lib/utils'
export type Axis = 'y-axis' | 'x-axis' | 'z-axis'
export type Selection = {
type: 'default' | 'line-end' | 'line-mid'
type:
| 'default'
| 'line-end'
| 'line-mid'
| 'face'
| 'point'
| 'edge'
| 'line'
| 'arc'
| 'all'
range: SourceRange
}
export type Selections = {
otherSelections: ('y-axis' | 'x-axis' | 'z-axis')[]
otherSelections: Axis[]
codeBasedSelections: Selection[]
}
export type TooTip =