Commit graph openscad-playground/src
Author SHA1 Message Date
Karl Svartholm
08367a73d8 Disable Monaco editor on Android user agents 2025-12-19 21:58:49 +01:00
ochafik
090a50ee84 Export to STL by default 2025-04-20 21:46:01 +02:00
ochafik
56173552af Fix 3mf export flow through material dialog 2024-12-31 18:50:38 +00:00
ochafik
e087b87c19 Fix type lints in editor 2024-12-31 18:50:38 +00:00
Rotzbua
7ffedccf2e chore(editor): update to latest version 2024-12-31 16:50:39 +00:00
ochafik
6a9529aab7 Multimaterial: trim strings, skip empties 2024-12-31 16:43:15 +00:00
ochafik
5e48ffbf34 Add blurhash previews to make (re)loading more entertaining 2024-12-31 16:43:15 +00:00
ochafik
60ed786e22 Fix typo 2024-12-31 16:43:15 +00:00
ochafik
a0015af28e Replace rollup w/ webpack for the web worker 2024-12-31 16:06:51 +00:00
ochafik
dd3d385899 Basic URL loading support 2024-12-26 19:27:27 +00:00
ochafik
ecdc04af39 axes: use axes viewer for snapping logic (model viewer wiggles b/c of the prompt) 2024-12-26 19:27:27 +00:00
ochafik
d457595d48 Allow editing of bundled files again 2024-12-26 19:27:27 +00:00
ochafik
5a67b2d554 Fix lighting 2024-12-26 19:27:27 +00:00
ochafik
96fd24a1e4 Fix axes rotation: get to nearest rotation before cycling, and default to diagonal 2024-12-26 19:27:27 +00:00
ochafik
58a513dd11 Test loading demo by path 2024-12-25 14:02:50 +00:00
ochafik
b76ac89d44 Fix loading of demos 2024-12-25 14:02:50 +00:00
ochafik
0a99893f77 Preserve filename in output 2024-12-25 12:47:14 +00:00
ochafik
d3150854ac axes: add back & left quick views 2024-12-25 12:35:18 +00:00
ochafik
32fee6eb06 Normalize CRLF to \n and test customizer in e2e test 2024-12-25 12:17:51 +00:00
ochafik
657ccb9181 Remove render-modifiers feature reference 2024-12-25 11:31:54 +00:00
ochafik
ae21d92928 Remove spurious localization warning 2024-12-25 11:31:54 +00:00
ochafik
7ec83c371b tests: add basic e2e tests involving libs (BOSL2 & NopSCADlib) 2024-12-25 11:31:54 +00:00
ochafik
741b367952 viewer: disable interaction prompt once use clicked on axes 2024-12-25 11:31:54 +00:00
ochafik
719641ca7b Update ViewerPanel.tsx 2024-12-25 01:53:00 +00:00
ochafik
062c89a45b Cycle through predefined orbits when tapping axes 2024-12-25 01:53:00 +00:00
ochafik
909e4a8231 Drop readDirAsArray / use fs.readdirSync instead 2024-12-25 01:52:38 +00:00
ochafik
cde9d907a4 Update links (no more ochafik-specific branch) 2024-12-25 01:52:38 +00:00
ochafik
c844684c95 Tweak lighting of glb outputs 2024-12-24 04:57:05 +00:00
ochafik
8f51167d5a Fix multimaterial dialog 2024-12-24 03:43:50 +00:00
ochafik
18c1e6e12b Fix 3mf export 2024-12-24 03:43:50 +00:00
ochafik
7c82459e1f Shorter label for ExportButton, longer in dropdown 2024-12-24 03:43:50 +00:00
ochafik
1f29ff5098 Fix ViewPanel axis registration 2024-12-24 03:43:50 +00:00
ochafik
34f8bc5c33 Create export_3mf.ts 2024-12-24 03:43:50 +00:00
ochafik
22fd82e3f2 Revamp off2glb 2024-12-24 03:43:50 +00:00
ochafik
c8284671a0 Smaller axes 2024-12-23 23:47:39 +00:00
ochafik
7057573134 Upgrade primereact deps 2024-12-23 13:55:20 +00:00
ochafik
1eef3dccca nits 2024-12-23 13:06:00 +00:00
ochafik
c155c156cb e2e: Wait for main viewer to have an src 2024-12-23 13:06:00 +00:00
ochafik
57c2d021ba Reinstate settings 2024-12-23 13:06:00 +00:00
ochafik
7a9e3f927f Add axes w/ rotation sync w/ main model viewer 2024-12-23 13:06:00 +00:00
ochafik
a01a7df0a0 Remove react-stl-viewer 2024-12-23 13:06:00 +00:00
ochafik
885a579a7a Fix translucency export to GLB (export primitives by color + set alpha blend) 2024-12-23 13:06:00 +00:00
ochafik
20f12a24e3 Default export to glb 2024-12-23 13:06:00 +00:00
ochafik
ba79a7cd87 Align orientation of model-viewer w/ OpenSCAD 2024-12-23 03:14:25 +00:00
Olivier Chafik
950dc7ec98
Use history.replaceState instead of setting location.hash (#68) 2024-12-23 02:38:52 +00:00
Olivier Chafik
f3cb9ae3f9
🌈 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
Olivier Chafik
af98f19850 Service worker for offline usage w/ workbox (https://developer.chrome.com/docs/workbox/modules/workbox-cli; https://github.com/openscad/openscad-playground/issues/56) 2024-10-23 15:31:59 +01:00
Olivier Chafik
76f4f19e3d
Merge pull request #50 from Rotzbua/fix_css
fix(css): missing var()
2024-07-17 13:29:36 +01:00
Rotzbua
6739e28aeb
fix(css): missing var() 2024-07-16 23:08:38 +02:00
Rotzbua
c273d61e7f
fix: use https for openscad homepage 2024-07-16 23:02:51 +02:00