BREAKING: KCL @settings are the source of truth for units (#5808)
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { Models } from '@kittycad/lib/dist/types/src'
|
||||
import { UnitAngle, UnitLength } from '@rust/kcl-lib/bindings/ModelingCmd'
|
||||
|
||||
export const APP_NAME = 'Modeling App'
|
||||
/** Search string in new project names to increment as an index */
|
||||
@ -168,6 +169,18 @@ export const ZOO_STUDIO_PROTOCOL = 'zoo-studio'
|
||||
*/
|
||||
export const ASK_TO_OPEN_QUERY_PARAM = 'ask-open-desktop'
|
||||
|
||||
/**
|
||||
* When no annotation is in the KCL file to specify the defaults, we use these
|
||||
* default units.
|
||||
*/
|
||||
export const DEFAULT_DEFAULT_ANGLE_UNIT: UnitAngle = 'degrees'
|
||||
|
||||
/**
|
||||
* When no annotation is in the KCL file to specify the defaults, we use these
|
||||
* default units.
|
||||
*/
|
||||
export const DEFAULT_DEFAULT_LENGTH_UNIT: UnitLength = 'mm'
|
||||
|
||||
/** Real execution. */
|
||||
export const EXECUTION_TYPE_REAL = 'real'
|
||||
/** Mock execution. */
|
||||
|
Reference in New Issue
Block a user