Merge pull request #118 from openscad/ochafik-export-stl-default
Export to STL by default
This commit is contained in:
commit
e0282681d6
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)
|
// Source deserialization also handles legacy links (source + sourcePath)
|
||||||
sources: params?.sources ?? (params?.source ? [{path: params?.sourcePath, content: params?.source}] : undefined), // TODO: validate!
|
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'),
|
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 []),
|
extruderColors: validateArray(params?.extruderColors, validateString, () => undefined as any as []),
|
||||||
},
|
},
|
||||||
preview: preview ? {
|
preview: preview ? {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ export function createInitialState(state: State | null, source?: {content?: stri
|
||||||
sources: [{path: activePath, content, url}],
|
sources: [{path: activePath, content, url}],
|
||||||
features: [],
|
features: [],
|
||||||
exportFormat2D: 'svg',
|
exportFormat2D: 'svg',
|
||||||
exportFormat3D: 'glb',
|
exportFormat3D: 'stl',
|
||||||
},
|
},
|
||||||
view: {
|
view: {
|
||||||
layout: {
|
layout: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue