BREAKING: KCL @settings are the source of truth for units (#5808)

This commit is contained in:
Jonathan Tran
2025-03-31 10:56:03 -04:00
committed by GitHub
parent eac5abba79
commit efc8c82d8b
237 changed files with 820 additions and 2146 deletions

View File

@ -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. */