Commit graph

189 commits

Author SHA1 Message Date
ochafik
32a4ecf9c4 Update e2e.test.js 2024-12-25 12:17:51 +00:00
ochafik
e512561b85 fix typo 2024-12-25 12:17:51 +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
Olivier Chafik
8c0057d6b2 Skip all dotfiles from sw generation 2024-12-23 14:23:47 +00:00
ochafik
f0c1b4c902 Update e2e.test.js 2024-12-23 13:55:20 +00:00
ochafik
ae3b3bfc95 upgrade all packages 2024-12-23 13:55:20 +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
c1312c4444
Support & document using custom wasm build (#67) 2024-12-23 01:38:28 +00:00
Olivier Chafik
1eff05782a
Update readme (#66)
* Update README.md

* Update README.md

* Update README.md
2024-12-22 23:48:53 +00:00
Olivier Chafik
a779976038
webpack: don't precache .DS_Store in sw.js (#64) 2024-12-22 22:50:04 +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
92103a80b9
Merge pull request #62 from ochafik/main
Merge offline support updates
2024-12-19 02:28:47 +00:00
Olivier Chafik
a8736a1c41
Merge pull request #61 from openscad/pin-wasm
Pin wasm
2024-12-16 02:17:39 +00:00
ochafik
a8c7ba90ca Update Makefile 2024-12-16 02:11:29 +00:00
ochafik
0489edff66 Pin wasm build to last working version 2024-12-16 02:10:28 +00:00
Olivier Chafik
339c15980b Use workbox-webpack-plugin 2024-10-23 17:38:03 +01: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
7b99679fb6 Bundle fork me on GH ribbon css (https://github.com/openscad/openscad-playground/issues/56) 2024-10-23 14:54:00 +01:00
Olivier Chafik
8a0a062c3d Bundle model-viewer.min.js (https://github.com/openscad/openscad-playground/issues/56) 2024-10-23 14:41:43 +01:00
Olivier Chafik
3010320956
Merge pull request #51 from openscad/ochafik-patch-2
fix build-openscad-wasm.sh
2024-07-18 05:19:17 +01:00
Olivier Chafik
6ced96a42e
fix build-openscad-wasm.sh
docker won't mount files outside home directory
2024-07-17 14:15:19 +01:00
Olivier Chafik
71c629c061
Merge pull request #48 from Rotzbua/fix_html
fix(html): various bugs
2024-07-17 13:30:38 +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
Olivier Chafik
7fc953ea3a
Merge pull request #47 from Rotzbua/feat_ci
feat(ci): add github actions to perform a build
2024-07-17 13:26:32 +01:00
Olivier Chafik
946badb7ea
Merge pull request #49 from Rotzbua/fix_http
fix: use https for openscad homepage
2024-07-17 13:22:11 +01:00