Skip to content

Commit 090a50e

Browse files
ochafikt-paul
ochafik
authored andcommitted
Export to STL by default
1 parent 03d0589 commit 090a50e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/state/fragment-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export async function readStateFromFragment(): Promise<State | null> {
8181
// Source deserialization also handles legacy links (source + sourcePath)
8282
sources: params?.sources ?? (params?.source ? [{path: params?.sourcePath, content: params?.source}] : undefined), // TODO: validate!
8383
exportFormat2D: validateStringEnum(params?.exportFormat2D, Object.keys(VALID_EXPORT_FORMATS_2D), s => 'svg'),
84-
exportFormat3D: validateStringEnum(params?.exportFormat3D, Object.keys(VALID_EXPORT_FORMATS_3D), s => 'glb'),
84+
exportFormat3D: validateStringEnum(params?.exportFormat3D, Object.keys(VALID_EXPORT_FORMATS_3D), s => 'stl'),
8585
extruderColors: validateArray(params?.extruderColors, validateString, () => undefined as any as []),
8686
},
8787
preview: preview ? {

src/state/initial-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function createInitialState(state: State | null, source?: {content?: stri
3737
sources: [{path: activePath, content, url}],
3838
features: [],
3939
exportFormat2D: 'svg',
40-
exportFormat3D: 'glb',
40+
exportFormat3D: 'stl',
4141
},
4242
view: {
4343
layout: {

0 commit comments

Comments
 (0)