remove surplus | 'radius's
This commit is contained in:
@ -40,7 +40,6 @@ test.describe('Testing segment overlays', () => {
|
||||
| 'horizontal'
|
||||
| 'vertical'
|
||||
| 'tangentialWithPrevious'
|
||||
| 'radius'
|
||||
| LineInputsType
|
||||
expectBeforeUnconstrained: string
|
||||
expectAfterUnconstrained: string
|
||||
@ -122,7 +121,6 @@ test.describe('Testing segment overlays', () => {
|
||||
| 'horizontal'
|
||||
| 'vertical'
|
||||
| 'tangentialWithPrevious'
|
||||
| 'radius'
|
||||
| LineInputsType
|
||||
expectBeforeUnconstrained: string
|
||||
expectAfterUnconstrained: string
|
||||
|
@ -34,7 +34,6 @@ import { CustomIcon, CustomIconName } from 'components/CustomIcon'
|
||||
import { ConstrainInfo } from 'lang/std/stdTypes'
|
||||
import { getConstraintInfo } from 'lang/std/sketch'
|
||||
import { Dialog, Popover, Transition } from '@headlessui/react'
|
||||
import { LineInputsType } from 'lang/std/sketchcombos'
|
||||
import toast from 'react-hot-toast'
|
||||
import { InstanceProps, create } from 'react-modal-promise'
|
||||
import { executeAst } from 'lang/langHelpers'
|
||||
@ -547,12 +546,10 @@ const ConstraintSymbol = ({
|
||||
iconName: 'dimension',
|
||||
},
|
||||
}
|
||||
const varName =
|
||||
_type in varNameMap ? varNameMap[_type as LineInputsType].varName : 'var'
|
||||
const name: CustomIconName = varNameMap[_type as LineInputsType].iconName
|
||||
const displayName = varNameMap[_type as LineInputsType]?.displayName
|
||||
const implicitDesc =
|
||||
varNameMap[_type as LineInputsType]?.implicitConstraintDesc
|
||||
const varName = _type in varNameMap ? varNameMap[_type].varName : 'var'
|
||||
const name: CustomIconName = varNameMap[_type].iconName
|
||||
const displayName = varNameMap[_type]?.displayName
|
||||
const implicitDesc = varNameMap[_type]?.implicitConstraintDesc
|
||||
|
||||
const _node = useMemo(
|
||||
() => getNodeFromPath<Expr>(kclManager.ast, pathToNode),
|
||||
|
@ -59,6 +59,7 @@ export type LineInputsType =
|
||||
| 'length'
|
||||
| 'intersectionOffset'
|
||||
| 'intersectionTag'
|
||||
| 'radius'
|
||||
|
||||
export type ConstraintType =
|
||||
| 'equalLength'
|
||||
|
@ -82,19 +82,19 @@ export type VarValueKeys =
|
||||
| 'center'
|
||||
export interface SingleValueInput<T> {
|
||||
type: 'singleValue'
|
||||
argType: LineInputsType | 'radius'
|
||||
argType: LineInputsType
|
||||
expr: T
|
||||
}
|
||||
export interface ArrayItemInput<T> {
|
||||
type: 'arrayItem'
|
||||
index: 0 | 1
|
||||
argType: LineInputsType | 'radius'
|
||||
argType: LineInputsType
|
||||
expr: T
|
||||
}
|
||||
export interface ObjectPropertyInput<T> {
|
||||
type: 'objectProperty'
|
||||
key: VarValueKeys
|
||||
argType: LineInputsType | 'radius'
|
||||
argType: LineInputsType
|
||||
expr: T
|
||||
}
|
||||
|
||||
@ -102,14 +102,14 @@ interface ArrayOrObjItemInput<T> {
|
||||
type: 'arrayOrObjItem'
|
||||
key: VarValueKeys
|
||||
index: 0 | 1
|
||||
argType: LineInputsType | 'radius'
|
||||
argType: LineInputsType
|
||||
expr: T
|
||||
}
|
||||
|
||||
interface ArrayInObject<T> {
|
||||
type: 'arrayInObject'
|
||||
key: VarValueKeys
|
||||
argType: LineInputsType | 'radius'
|
||||
argType: LineInputsType
|
||||
index: 0 | 1
|
||||
expr: T
|
||||
}
|
||||
|
Reference in New Issue
Block a user