Export to STL by default
This commit is contained in:
parent
03d0589575
commit
090a50ee84
2 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ export async function readStateFromFragment(): Promise<State | null> {
|
|||
// Source deserialization also handles legacy links (source + sourcePath)
|
||||
sources: params?.sources ?? (params?.source ? [{path: params?.sourcePath, content: params?.source}] : undefined), // TODO: validate!
|
||||
exportFormat2D: validateStringEnum(params?.exportFormat2D, Object.keys(VALID_EXPORT_FORMATS_2D), s => 'svg'),
|
||||
exportFormat3D: validateStringEnum(params?.exportFormat3D, Object.keys(VALID_EXPORT_FORMATS_3D), s => 'glb'),
|
||||
exportFormat3D: validateStringEnum(params?.exportFormat3D, Object.keys(VALID_EXPORT_FORMATS_3D), s => 'stl'),
|
||||
extruderColors: validateArray(params?.extruderColors, validateString, () => undefined as any as []),
|
||||
},
|
||||
preview: preview ? {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ export function createInitialState(state: State | null, source?: {content?: stri
|
|||
sources: [{path: activePath, content, url}],
|
||||
features: [],
|
||||
exportFormat2D: 'svg',
|
||||
exportFormat3D: 'glb',
|
||||
exportFormat3D: 'stl',
|
||||
},
|
||||
view: {
|
||||
layout: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue