openscad-playground/src/state/app-state.ts

85 lines
2 KiB
TypeScript
Raw Normal View History

// Portions of this file are Copyright 2021 Google LLC, and licensed under GPL2+. See COPYING.
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
2024-12-31 17:53:45 +00:00
import { ParameterSet } from './customizer-types.ts';
import { VALID_EXPORT_FORMATS_2D, VALID_EXPORT_FORMATS_3D } from './formats.ts';
2023-03-26 07:48:04 +01:00
export type MultiLayoutComponentId = 'editor' | 'viewer' | 'customizer';
export type SingleLayoutComponentId = MultiLayoutComponentId;
🌈 Colorful Playground (#37) * glb (color-assimp2 branch) + model-viewer * color support + customizable output format * cleanup * disable monaco on iOS * reinstate STL viewer when output is stl * default to stl * fix iOS editor * script to build openscad-wasm from a branch / local repo * update fork link + build instructions * Update build-openscad-wasm.sh * Update initial-state.ts * update openscad3 refs * update wasm build script * Update Dockerfile.wasm * add jszip dep * multimaterial: color conversion + 3MF face painting * ignore ts error about compression apis * Update tsconfig.json * multimaterial support w/ extruder colors input component * fix wasm build script * symlinks for openscad.{js,wasm} under src * fix error line shift for bundled files * remove obsolete build script * set OPENSCADPATH env var * render-colors feature renamed * Customizer + prepare Multi-asset support * hide customizer button if unselected, hide it if no params, * Create build-openscad-wasm.sh * update build script * complete sound * fetchSource util * wider rotation allowance * use CSG-modules.scad as default * Update CustomizerPanel.tsx * Update index.html * capture save, allow Ctrl+Shift+Save to save project * customizer: fieldsets are better than accordion * expand customizer tabs by default * tooltip for reset buttons * pretty c++ exceptions * Delete inline-openscad-worker.ts * shuffle ux * use uzip instead of jszip for 3mf materialization * handle legacy links * update links to fork * use render-modifiers feature from color-assimp2 in preview mode * include NopSCADlib's STL files in archive * bind global f5 / f6 * update homepage back to openscad2 * styling fixes (editor alpha, customizer margins) * Add help link for customizer * fix customizer sliders (also need to show value input) * fix vector customizer component * style fallback editor * shorter logs button * customizer: rm reset button tooltip * customizer: allow dnd on viewer below, tweak background * add lights to modelviewer using an env image (gltf lights hard to plug across assimp for now) * update customizer styles * Update .gitignore * add license for UZIP.js (MIT) * Update skybox-lights.jpg * Update actions.ts * include NopSCADlib's STLs * Update LICENSE.md * include YAPP_Box examples * limit customizer height * Update skybox-lights.jpg * Update skybox-lights.jpg * Update openscad-worker.ts * build-openscad-wasm.sh fix: docker won't mount files outside home directory * Use Google CDN instead of unpkg for modelviewer * tmp updates before merge * Add ccache support to build-openscad-wasm.sh * Fix makefile * Update README.md * Fix ts imports * Delete build-openscad-wasm.sh * Crude off -> glb converter * Remove assimp related code * gltf diffs * Build using head openscad * readme: Update build prerequisites * make: attempt to build wasm binary in parallel first * Remove 3mf extruder color mapping & fix render / export flows (render all 3d to off) * off2glb: triangulate faces + add default color * Add simple e2e puppeteer test * ci: update pinned build to master output artefact * Update Makefile * Update test.yml * Update test.yml * Update test.yml * Update test.yml * ci: use relative node version names * Update test.yml * state: Remove renderFormat, introduce is2D * disable service worker in devel mode * remove dead code * build: fix NODE_ENV define * ci: simplify env vars * cleanups * Update README.md
2024-12-22 22:41:35 +00:00
export type Source = {
// If path ends w/ /, it's a directory, and URL should contain a ZIP file that can be mounted
path: string,
url?: string,
content?: string,
};
export interface FileOutput {
outFile: File,
outFileURL: string,
displayFile?: File,
displayFileURL?: string,
elapsedMillis: number,
formattedElapsedMillis: string,
formattedOutFileSize: string,
}
export interface State {
params: {
🌈 Colorful Playground (#37) * glb (color-assimp2 branch) + model-viewer * color support + customizable output format * cleanup * disable monaco on iOS * reinstate STL viewer when output is stl * default to stl * fix iOS editor * script to build openscad-wasm from a branch / local repo * update fork link + build instructions * Update build-openscad-wasm.sh * Update initial-state.ts * update openscad3 refs * update wasm build script * Update Dockerfile.wasm * add jszip dep * multimaterial: color conversion + 3MF face painting * ignore ts error about compression apis * Update tsconfig.json * multimaterial support w/ extruder colors input component * fix wasm build script * symlinks for openscad.{js,wasm} under src * fix error line shift for bundled files * remove obsolete build script * set OPENSCADPATH env var * render-colors feature renamed * Customizer + prepare Multi-asset support * hide customizer button if unselected, hide it if no params, * Create build-openscad-wasm.sh * update build script * complete sound * fetchSource util * wider rotation allowance * use CSG-modules.scad as default * Update CustomizerPanel.tsx * Update index.html * capture save, allow Ctrl+Shift+Save to save project * customizer: fieldsets are better than accordion * expand customizer tabs by default * tooltip for reset buttons * pretty c++ exceptions * Delete inline-openscad-worker.ts * shuffle ux * use uzip instead of jszip for 3mf materialization * handle legacy links * update links to fork * use render-modifiers feature from color-assimp2 in preview mode * include NopSCADlib's STL files in archive * bind global f5 / f6 * update homepage back to openscad2 * styling fixes (editor alpha, customizer margins) * Add help link for customizer * fix customizer sliders (also need to show value input) * fix vector customizer component * style fallback editor * shorter logs button * customizer: rm reset button tooltip * customizer: allow dnd on viewer below, tweak background * add lights to modelviewer using an env image (gltf lights hard to plug across assimp for now) * update customizer styles * Update .gitignore * add license for UZIP.js (MIT) * Update skybox-lights.jpg * Update actions.ts * include NopSCADlib's STLs * Update LICENSE.md * include YAPP_Box examples * limit customizer height * Update skybox-lights.jpg * Update skybox-lights.jpg * Update openscad-worker.ts * build-openscad-wasm.sh fix: docker won't mount files outside home directory * Use Google CDN instead of unpkg for modelviewer * tmp updates before merge * Add ccache support to build-openscad-wasm.sh * Fix makefile * Update README.md * Fix ts imports * Delete build-openscad-wasm.sh * Crude off -> glb converter * Remove assimp related code * gltf diffs * Build using head openscad * readme: Update build prerequisites * make: attempt to build wasm binary in parallel first * Remove 3mf extruder color mapping & fix render / export flows (render all 3d to off) * off2glb: triangulate faces + add default color * Add simple e2e puppeteer test * ci: update pinned build to master output artefact * Update Makefile * Update test.yml * Update test.yml * Update test.yml * Update test.yml * ci: use relative node version names * Update test.yml * state: Remove renderFormat, introduce is2D * disable service worker in devel mode * remove dead code * build: fix NODE_ENV define * ci: simplify env vars * cleanups * Update README.md
2024-12-22 22:41:35 +00:00
activePath: string,
sources: Source[],
2024-07-08 02:21:33 +01:00
vars?: {[name: string]: any},
features: string[],
🌈 Colorful Playground (#37) * glb (color-assimp2 branch) + model-viewer * color support + customizable output format * cleanup * disable monaco on iOS * reinstate STL viewer when output is stl * default to stl * fix iOS editor * script to build openscad-wasm from a branch / local repo * update fork link + build instructions * Update build-openscad-wasm.sh * Update initial-state.ts * update openscad3 refs * update wasm build script * Update Dockerfile.wasm * add jszip dep * multimaterial: color conversion + 3MF face painting * ignore ts error about compression apis * Update tsconfig.json * multimaterial support w/ extruder colors input component * fix wasm build script * symlinks for openscad.{js,wasm} under src * fix error line shift for bundled files * remove obsolete build script * set OPENSCADPATH env var * render-colors feature renamed * Customizer + prepare Multi-asset support * hide customizer button if unselected, hide it if no params, * Create build-openscad-wasm.sh * update build script * complete sound * fetchSource util * wider rotation allowance * use CSG-modules.scad as default * Update CustomizerPanel.tsx * Update index.html * capture save, allow Ctrl+Shift+Save to save project * customizer: fieldsets are better than accordion * expand customizer tabs by default * tooltip for reset buttons * pretty c++ exceptions * Delete inline-openscad-worker.ts * shuffle ux * use uzip instead of jszip for 3mf materialization * handle legacy links * update links to fork * use render-modifiers feature from color-assimp2 in preview mode * include NopSCADlib's STL files in archive * bind global f5 / f6 * update homepage back to openscad2 * styling fixes (editor alpha, customizer margins) * Add help link for customizer * fix customizer sliders (also need to show value input) * fix vector customizer component * style fallback editor * shorter logs button * customizer: rm reset button tooltip * customizer: allow dnd on viewer below, tweak background * add lights to modelviewer using an env image (gltf lights hard to plug across assimp for now) * update customizer styles * Update .gitignore * add license for UZIP.js (MIT) * Update skybox-lights.jpg * Update actions.ts * include NopSCADlib's STLs * Update LICENSE.md * include YAPP_Box examples * limit customizer height * Update skybox-lights.jpg * Update skybox-lights.jpg * Update openscad-worker.ts * build-openscad-wasm.sh fix: docker won't mount files outside home directory * Use Google CDN instead of unpkg for modelviewer * tmp updates before merge * Add ccache support to build-openscad-wasm.sh * Fix makefile * Update README.md * Fix ts imports * Delete build-openscad-wasm.sh * Crude off -> glb converter * Remove assimp related code * gltf diffs * Build using head openscad * readme: Update build prerequisites * make: attempt to build wasm binary in parallel first * Remove 3mf extruder color mapping & fix render / export flows (render all 3d to off) * off2glb: triangulate faces + add default color * Add simple e2e puppeteer test * ci: update pinned build to master output artefact * Update Makefile * Update test.yml * Update test.yml * Update test.yml * Update test.yml * ci: use relative node version names * Update test.yml * state: Remove renderFormat, introduce is2D * disable service worker in devel mode * remove dead code * build: fix NODE_ENV define * ci: simplify env vars * cleanups * Update README.md
2024-12-22 22:41:35 +00:00
exportFormat2D: keyof typeof VALID_EXPORT_FORMATS_2D,
exportFormat3D: keyof typeof VALID_EXPORT_FORMATS_3D,
2024-12-24 03:24:04 +00:00
extruderColors?: string[],
},
2023-03-26 07:48:04 +01:00
preview?: {
thumbhash?: string,
blurhash?: string,
},
2023-03-26 07:48:04 +01:00
view: {
logs?: boolean,
2024-12-24 03:24:04 +00:00
extruderPickerVisibility?: 'editing' | 'exporting',
2023-03-26 07:48:04 +01:00
layout: {
mode: 'single',
focus: SingleLayoutComponentId,
} | ({
mode: 'multi',
} & { [K in MultiLayoutComponentId]: boolean })
2024-07-08 02:21:33 +01:00
collapsedCustomizerTabs?: string[],
2023-03-27 01:08:45 +01:00
color: string,
2023-03-26 19:29:24 +01:00
showAxes?: boolean,
2023-03-27 01:27:09 +01:00
lineNumbers?: boolean,
2023-03-26 07:48:04 +01:00
}
🌈 Colorful Playground (#37) * glb (color-assimp2 branch) + model-viewer * color support + customizable output format * cleanup * disable monaco on iOS * reinstate STL viewer when output is stl * default to stl * fix iOS editor * script to build openscad-wasm from a branch / local repo * update fork link + build instructions * Update build-openscad-wasm.sh * Update initial-state.ts * update openscad3 refs * update wasm build script * Update Dockerfile.wasm * add jszip dep * multimaterial: color conversion + 3MF face painting * ignore ts error about compression apis * Update tsconfig.json * multimaterial support w/ extruder colors input component * fix wasm build script * symlinks for openscad.{js,wasm} under src * fix error line shift for bundled files * remove obsolete build script * set OPENSCADPATH env var * render-colors feature renamed * Customizer + prepare Multi-asset support * hide customizer button if unselected, hide it if no params, * Create build-openscad-wasm.sh * update build script * complete sound * fetchSource util * wider rotation allowance * use CSG-modules.scad as default * Update CustomizerPanel.tsx * Update index.html * capture save, allow Ctrl+Shift+Save to save project * customizer: fieldsets are better than accordion * expand customizer tabs by default * tooltip for reset buttons * pretty c++ exceptions * Delete inline-openscad-worker.ts * shuffle ux * use uzip instead of jszip for 3mf materialization * handle legacy links * update links to fork * use render-modifiers feature from color-assimp2 in preview mode * include NopSCADlib's STL files in archive * bind global f5 / f6 * update homepage back to openscad2 * styling fixes (editor alpha, customizer margins) * Add help link for customizer * fix customizer sliders (also need to show value input) * fix vector customizer component * style fallback editor * shorter logs button * customizer: rm reset button tooltip * customizer: allow dnd on viewer below, tweak background * add lights to modelviewer using an env image (gltf lights hard to plug across assimp for now) * update customizer styles * Update .gitignore * add license for UZIP.js (MIT) * Update skybox-lights.jpg * Update actions.ts * include NopSCADlib's STLs * Update LICENSE.md * include YAPP_Box examples * limit customizer height * Update skybox-lights.jpg * Update skybox-lights.jpg * Update openscad-worker.ts * build-openscad-wasm.sh fix: docker won't mount files outside home directory * Use Google CDN instead of unpkg for modelviewer * tmp updates before merge * Add ccache support to build-openscad-wasm.sh * Fix makefile * Update README.md * Fix ts imports * Delete build-openscad-wasm.sh * Crude off -> glb converter * Remove assimp related code * gltf diffs * Build using head openscad * readme: Update build prerequisites * make: attempt to build wasm binary in parallel first * Remove 3mf extruder color mapping & fix render / export flows (render all 3d to off) * off2glb: triangulate faces + add default color * Add simple e2e puppeteer test * ci: update pinned build to master output artefact * Update Makefile * Update test.yml * Update test.yml * Update test.yml * Update test.yml * ci: use relative node version names * Update test.yml * state: Remove renderFormat, introduce is2D * disable service worker in devel mode * remove dead code * build: fix NODE_ENV define * ci: simplify env vars * cleanups * Update README.md
2024-12-22 22:41:35 +00:00
currentRunLogs?: ['stderr'|'stdout', string][],
lastCheckerRun?: {
logText: string,
🌈 Colorful Playground (#37) * glb (color-assimp2 branch) + model-viewer * color support + customizable output format * cleanup * disable monaco on iOS * reinstate STL viewer when output is stl * default to stl * fix iOS editor * script to build openscad-wasm from a branch / local repo * update fork link + build instructions * Update build-openscad-wasm.sh * Update initial-state.ts * update openscad3 refs * update wasm build script * Update Dockerfile.wasm * add jszip dep * multimaterial: color conversion + 3MF face painting * ignore ts error about compression apis * Update tsconfig.json * multimaterial support w/ extruder colors input component * fix wasm build script * symlinks for openscad.{js,wasm} under src * fix error line shift for bundled files * remove obsolete build script * set OPENSCADPATH env var * render-colors feature renamed * Customizer + prepare Multi-asset support * hide customizer button if unselected, hide it if no params, * Create build-openscad-wasm.sh * update build script * complete sound * fetchSource util * wider rotation allowance * use CSG-modules.scad as default * Update CustomizerPanel.tsx * Update index.html * capture save, allow Ctrl+Shift+Save to save project * customizer: fieldsets are better than accordion * expand customizer tabs by default * tooltip for reset buttons * pretty c++ exceptions * Delete inline-openscad-worker.ts * shuffle ux * use uzip instead of jszip for 3mf materialization * handle legacy links * update links to fork * use render-modifiers feature from color-assimp2 in preview mode * include NopSCADlib's STL files in archive * bind global f5 / f6 * update homepage back to openscad2 * styling fixes (editor alpha, customizer margins) * Add help link for customizer * fix customizer sliders (also need to show value input) * fix vector customizer component * style fallback editor * shorter logs button * customizer: rm reset button tooltip * customizer: allow dnd on viewer below, tweak background * add lights to modelviewer using an env image (gltf lights hard to plug across assimp for now) * update customizer styles * Update .gitignore * add license for UZIP.js (MIT) * Update skybox-lights.jpg * Update actions.ts * include NopSCADlib's STLs * Update LICENSE.md * include YAPP_Box examples * limit customizer height * Update skybox-lights.jpg * Update skybox-lights.jpg * Update openscad-worker.ts * build-openscad-wasm.sh fix: docker won't mount files outside home directory * Use Google CDN instead of unpkg for modelviewer * tmp updates before merge * Add ccache support to build-openscad-wasm.sh * Fix makefile * Update README.md * Fix ts imports * Delete build-openscad-wasm.sh * Crude off -> glb converter * Remove assimp related code * gltf diffs * Build using head openscad * readme: Update build prerequisites * make: attempt to build wasm binary in parallel first * Remove 3mf extruder color mapping & fix render / export flows (render all 3d to off) * off2glb: triangulate faces + add default color * Add simple e2e puppeteer test * ci: update pinned build to master output artefact * Update Makefile * Update test.yml * Update test.yml * Update test.yml * Update test.yml * ci: use relative node version names * Update test.yml * state: Remove renderFormat, introduce is2D * disable service worker in devel mode * remove dead code * build: fix NODE_ENV define * ci: simplify env vars * cleanups * Update README.md
2024-12-22 22:41:35 +00:00
markers: monaco.editor.IMarkerData[],
}
rendering?: boolean,
previewing?: boolean,
🌈 Colorful Playground (#37) * glb (color-assimp2 branch) + model-viewer * color support + customizable output format * cleanup * disable monaco on iOS * reinstate STL viewer when output is stl * default to stl * fix iOS editor * script to build openscad-wasm from a branch / local repo * update fork link + build instructions * Update build-openscad-wasm.sh * Update initial-state.ts * update openscad3 refs * update wasm build script * Update Dockerfile.wasm * add jszip dep * multimaterial: color conversion + 3MF face painting * ignore ts error about compression apis * Update tsconfig.json * multimaterial support w/ extruder colors input component * fix wasm build script * symlinks for openscad.{js,wasm} under src * fix error line shift for bundled files * remove obsolete build script * set OPENSCADPATH env var * render-colors feature renamed * Customizer + prepare Multi-asset support * hide customizer button if unselected, hide it if no params, * Create build-openscad-wasm.sh * update build script * complete sound * fetchSource util * wider rotation allowance * use CSG-modules.scad as default * Update CustomizerPanel.tsx * Update index.html * capture save, allow Ctrl+Shift+Save to save project * customizer: fieldsets are better than accordion * expand customizer tabs by default * tooltip for reset buttons * pretty c++ exceptions * Delete inline-openscad-worker.ts * shuffle ux * use uzip instead of jszip for 3mf materialization * handle legacy links * update links to fork * use render-modifiers feature from color-assimp2 in preview mode * include NopSCADlib's STL files in archive * bind global f5 / f6 * update homepage back to openscad2 * styling fixes (editor alpha, customizer margins) * Add help link for customizer * fix customizer sliders (also need to show value input) * fix vector customizer component * style fallback editor * shorter logs button * customizer: rm reset button tooltip * customizer: allow dnd on viewer below, tweak background * add lights to modelviewer using an env image (gltf lights hard to plug across assimp for now) * update customizer styles * Update .gitignore * add license for UZIP.js (MIT) * Update skybox-lights.jpg * Update actions.ts * include NopSCADlib's STLs * Update LICENSE.md * include YAPP_Box examples * limit customizer height * Update skybox-lights.jpg * Update skybox-lights.jpg * Update openscad-worker.ts * build-openscad-wasm.sh fix: docker won't mount files outside home directory * Use Google CDN instead of unpkg for modelviewer * tmp updates before merge * Add ccache support to build-openscad-wasm.sh * Fix makefile * Update README.md * Fix ts imports * Delete build-openscad-wasm.sh * Crude off -> glb converter * Remove assimp related code * gltf diffs * Build using head openscad * readme: Update build prerequisites * make: attempt to build wasm binary in parallel first * Remove 3mf extruder color mapping & fix render / export flows (render all 3d to off) * off2glb: triangulate faces + add default color * Add simple e2e puppeteer test * ci: update pinned build to master output artefact * Update Makefile * Update test.yml * Update test.yml * Update test.yml * Update test.yml * ci: use relative node version names * Update test.yml * state: Remove renderFormat, introduce is2D * disable service worker in devel mode * remove dead code * build: fix NODE_ENV define * ci: simplify env vars * cleanups * Update README.md
2024-12-22 22:41:35 +00:00
exporting?: boolean,
checkingSyntax?: boolean,
2024-07-08 02:21:33 +01:00
parameterSet?: ParameterSet,
2023-03-26 07:48:04 +01:00
error?: string,
🌈 Colorful Playground (#37) * glb (color-assimp2 branch) + model-viewer * color support + customizable output format * cleanup * disable monaco on iOS * reinstate STL viewer when output is stl * default to stl * fix iOS editor * script to build openscad-wasm from a branch / local repo * update fork link + build instructions * Update build-openscad-wasm.sh * Update initial-state.ts * update openscad3 refs * update wasm build script * Update Dockerfile.wasm * add jszip dep * multimaterial: color conversion + 3MF face painting * ignore ts error about compression apis * Update tsconfig.json * multimaterial support w/ extruder colors input component * fix wasm build script * symlinks for openscad.{js,wasm} under src * fix error line shift for bundled files * remove obsolete build script * set OPENSCADPATH env var * render-colors feature renamed * Customizer + prepare Multi-asset support * hide customizer button if unselected, hide it if no params, * Create build-openscad-wasm.sh * update build script * complete sound * fetchSource util * wider rotation allowance * use CSG-modules.scad as default * Update CustomizerPanel.tsx * Update index.html * capture save, allow Ctrl+Shift+Save to save project * customizer: fieldsets are better than accordion * expand customizer tabs by default * tooltip for reset buttons * pretty c++ exceptions * Delete inline-openscad-worker.ts * shuffle ux * use uzip instead of jszip for 3mf materialization * handle legacy links * update links to fork * use render-modifiers feature from color-assimp2 in preview mode * include NopSCADlib's STL files in archive * bind global f5 / f6 * update homepage back to openscad2 * styling fixes (editor alpha, customizer margins) * Add help link for customizer * fix customizer sliders (also need to show value input) * fix vector customizer component * style fallback editor * shorter logs button * customizer: rm reset button tooltip * customizer: allow dnd on viewer below, tweak background * add lights to modelviewer using an env image (gltf lights hard to plug across assimp for now) * update customizer styles * Update .gitignore * add license for UZIP.js (MIT) * Update skybox-lights.jpg * Update actions.ts * include NopSCADlib's STLs * Update LICENSE.md * include YAPP_Box examples * limit customizer height * Update skybox-lights.jpg * Update skybox-lights.jpg * Update openscad-worker.ts * build-openscad-wasm.sh fix: docker won't mount files outside home directory * Use Google CDN instead of unpkg for modelviewer * tmp updates before merge * Add ccache support to build-openscad-wasm.sh * Fix makefile * Update README.md * Fix ts imports * Delete build-openscad-wasm.sh * Crude off -> glb converter * Remove assimp related code * gltf diffs * Build using head openscad * readme: Update build prerequisites * make: attempt to build wasm binary in parallel first * Remove 3mf extruder color mapping & fix render / export flows (render all 3d to off) * off2glb: triangulate faces + add default color * Add simple e2e puppeteer test * ci: update pinned build to master output artefact * Update Makefile * Update test.yml * Update test.yml * Update test.yml * Update test.yml * ci: use relative node version names * Update test.yml * state: Remove renderFormat, introduce is2D * disable service worker in devel mode * remove dead code * build: fix NODE_ENV define * ci: simplify env vars * cleanups * Update README.md
2024-12-22 22:41:35 +00:00
is2D?: boolean,
output?: FileOutput & {
2023-03-25 19:30:34 +00:00
isPreview: boolean,
},
🌈 Colorful Playground (#37) * glb (color-assimp2 branch) + model-viewer * color support + customizable output format * cleanup * disable monaco on iOS * reinstate STL viewer when output is stl * default to stl * fix iOS editor * script to build openscad-wasm from a branch / local repo * update fork link + build instructions * Update build-openscad-wasm.sh * Update initial-state.ts * update openscad3 refs * update wasm build script * Update Dockerfile.wasm * add jszip dep * multimaterial: color conversion + 3MF face painting * ignore ts error about compression apis * Update tsconfig.json * multimaterial support w/ extruder colors input component * fix wasm build script * symlinks for openscad.{js,wasm} under src * fix error line shift for bundled files * remove obsolete build script * set OPENSCADPATH env var * render-colors feature renamed * Customizer + prepare Multi-asset support * hide customizer button if unselected, hide it if no params, * Create build-openscad-wasm.sh * update build script * complete sound * fetchSource util * wider rotation allowance * use CSG-modules.scad as default * Update CustomizerPanel.tsx * Update index.html * capture save, allow Ctrl+Shift+Save to save project * customizer: fieldsets are better than accordion * expand customizer tabs by default * tooltip for reset buttons * pretty c++ exceptions * Delete inline-openscad-worker.ts * shuffle ux * use uzip instead of jszip for 3mf materialization * handle legacy links * update links to fork * use render-modifiers feature from color-assimp2 in preview mode * include NopSCADlib's STL files in archive * bind global f5 / f6 * update homepage back to openscad2 * styling fixes (editor alpha, customizer margins) * Add help link for customizer * fix customizer sliders (also need to show value input) * fix vector customizer component * style fallback editor * shorter logs button * customizer: rm reset button tooltip * customizer: allow dnd on viewer below, tweak background * add lights to modelviewer using an env image (gltf lights hard to plug across assimp for now) * update customizer styles * Update .gitignore * add license for UZIP.js (MIT) * Update skybox-lights.jpg * Update actions.ts * include NopSCADlib's STLs * Update LICENSE.md * include YAPP_Box examples * limit customizer height * Update skybox-lights.jpg * Update skybox-lights.jpg * Update openscad-worker.ts * build-openscad-wasm.sh fix: docker won't mount files outside home directory * Use Google CDN instead of unpkg for modelviewer * tmp updates before merge * Add ccache support to build-openscad-wasm.sh * Fix makefile * Update README.md * Fix ts imports * Delete build-openscad-wasm.sh * Crude off -> glb converter * Remove assimp related code * gltf diffs * Build using head openscad * readme: Update build prerequisites * make: attempt to build wasm binary in parallel first * Remove 3mf extruder color mapping & fix render / export flows (render all 3d to off) * off2glb: triangulate faces + add default color * Add simple e2e puppeteer test * ci: update pinned build to master output artefact * Update Makefile * Update test.yml * Update test.yml * Update test.yml * Update test.yml * ci: use relative node version names * Update test.yml * state: Remove renderFormat, introduce is2D * disable service worker in devel mode * remove dead code * build: fix NODE_ENV define * ci: simplify env vars * cleanups * Update README.md
2024-12-22 22:41:35 +00:00
export?: FileOutput,
};
export interface StatePersister {
set(state: State): Promise<void>;
}
2023-03-26 15:28:05 +01:00
export {}