Commit graph

254 commits

Author SHA1 Message Date
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
Olivier Chafik
b8c2825b03
Merge pull request #46 from Rotzbua/fix_wasm
fix(wasm): prevent globbing and word splitting
2024-07-17 13:21:25 +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
Rotzbua
e479da1ae2
fix(html): various bugs
* two meta viewport
* invalid trailing slashes on void element
* audio-tag moved to body
2024-07-16 22:57:41 +02:00
Rotzbua
589b0e7ebd
feat(ci): add github actions to perform a build 2024-07-16 22:37:20 +02:00
Rotzbua
3b6b2ce39b
fix(wasm): prevent globbing and word splitting
https://www.shellcheck.net/wiki/SC2086
2024-07-16 21:52:56 +02:00
Olivier Chafik
bc88246021
Merge pull request #43 from jaydenlo08/lasercut
Added Lasercut library
2024-07-14 13:04:26 +01:00
Olivier Chafik
d6e7304cca
Merge pull request #45 from openscad/ochafik-patch-1
Update examples/fonts.scad - added auto direction = rtl
2024-07-13 12:10:48 +01:00
Olivier Chafik
1d99c6222a
Update fonts.scad - added auto direction = rtl 2024-07-13 12:10:23 +01:00
Olivier Chafik
66667cc000
Merge pull request #44 from ochafik/fonts
Add Noto Fonts
2024-07-13 05:18:00 +01:00
ochafik
271eea22f4 Remove CJKtc fonts for now (way too big - font.zip goes from 4MB to 32MB!) and broken for now 2024-07-13 05:15:50 +01:00
ochafik
f61b625a01 Add Noto Fonts 2024-07-13 05:09:24 +01:00
Jayden Lo
a662f21a8a added lasercut lib; use /usr/bin/env bash in makefile 2024-07-12 19:00:27 +08:00
Olivier Chafik
31a329fb5a
Merge pull request #41 from ochafik/build-nits
`build`: Add script to build openscad-wasm + remove useless script
2024-07-08 03:11:32 +01:00
ochafik
df8dbd83a2 Delete inline-openscad-worker.ts 2024-07-08 02:58:27 +01:00
ochafik
45162bdf62 Create build-openscad-wasm.sh 2024-07-08 02:58:18 +01:00
Olivier Chafik
15c2e566c4
Merge pull request #40 from ochafik/style-nits
Style nits
2024-07-08 02:55:32 +01:00
ochafik
ce7ebdd921 tweak iOS fallback editor style 2024-07-08 02:54:13 +01:00
ochafik
4ec135ac8f fix customizer style 2024-07-08 02:53:28 +01:00
Olivier Chafik
dc8261a2fb
Merge pull request #39 from ochafik/sounds
Global F5/F6 bindings + familiar sound on F6
2024-07-08 02:48:25 +01:00
ochafik
9b95b87626 make F5 / F6 work globally 2024-07-08 02:46:15 +01:00
ochafik
b47300be7a add render sound 2024-07-08 02:45:23 +01:00
Olivier Chafik
dbb67b9b64
Merge pull request #38 from ochafik/customizer
add customizer
2024-07-08 02:39:10 +01:00
ochafik
829ed40441 Update README.md 2024-07-08 02:38:52 +01:00
ochafik
76492bc903 add customizer 2024-07-08 02:34:46 +01:00
Olivier Chafik
5481491433
Merge pull request #36 from ochafik/main
Fix error reporting in non-default files + link bins
2024-07-08 01:28:33 +01:00
ochafik
9929ffe324 symlinks for openscad.{js,wasm} under src 2024-07-01 03:09:06 +01:00
ochafik
980bf30323 fix error line shift for bundled files 2024-07-01 03:08:58 +01:00
Olivier Chafik
38806c13f5
Merge pull request #33 from ochafik/rel-imports
Fix relative imports
2024-06-29 01:30:36 +01:00
ochafik
fd89c4c3b6 Render files from their original path to resolve relative paths 2024-06-29 01:27:12 +01:00
ochafik
b8a4a7423f Fix TS compilation errors 2024-06-29 01:27:00 +01:00
ochafik
3d191078f1 Don't skip nopscad tests 2024-06-29 01:24:18 +01:00
Olivier Chafik
aa7513a107
Merge pull request #31 from ochafik/ios-editor
disable monaco editor on iOS
2024-06-21 17:44:13 +01:00
Olivier Chafik
ecf7f3b633 Merge remote-tracking branch 'origin/main' into ios-editor 2024-06-21 17:33:41 +01:00
Olivier Chafik
7ac0397f21 disable monaco editor on iOS 2024-06-21 17:30:18 +01:00