29 Commits

Author SHA1 Message Date
geopenta
ed6ed3f018
fix(editor): release scene singletons on Editor unmount (#214)
The spatial-grid manager, scene-store subscriptions, and the viewer
outliner's Object3D arrays are module-level singletons that previously
lived for the whole page lifetime. When an app unmounted the Editor
(e.g. navigating away from the 3D editor and back in an SPA host) they
retained references to the disposed Three.js scene graph, which caused
the app to freeze on re-entry as the stale data was replayed against a
fresh scene.

- initSpatialGridSync now returns the unsubscribe handle from its
  scene-store subscription so callers can detach it.
- initializeEditorRuntime becomes reversible: it wires up the spatial
  grid, space detection and SFX bus on mount and returns a teardown
  closure that detaches both store subscriptions, clears the spatial
  grid manager, and truncates the viewer outliner's selected/hovered
  arrays in place.
- The Editor component's runtime-init effect now returns that teardown,
  so the singletons are reset cleanly every time the Editor unmounts.
- initSFXBus is now idempotent via an internal guard so repeated
  Editor mounts do not stack duplicate mitt listeners.

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-05 23:37:30 -04:00
Aymeric Rabot
1d28e4208f
sync: update core and viewer from monorepo (#143)
Major changes:
- Roof system rewrite with roof-segment support
- Scene store refactor
- Spatial grid improvements
- Item light system
- Post-processing and selection manager updates
- Perf monitor component

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 23:18:30 -04:00
wass08
f2501be2bf remove community 2026-03-13 09:07:46 +01:00
wass08
20f5f7ab4a fix wall elevation with slab holes 2026-02-24 10:27:51 +09:00
wass08
d15f601107 item scale 2026-02-23 10:59:42 +09:00
wass08
16ba5bf9c6 fiix adjacent walls pushed up 2026-02-23 08:22:06 +09:00
wass08
5d17fecf94 fix holes null 2026-02-16 12:19:58 +09:00
wass08
052efea2cb polished placements 2026-02-16 09:12:04 +09:00
wass08
13070a5630 ceiling holes 2026-02-16 08:59:28 +09:00
wass08
0797a828f8 fix build issues 2026-02-12 10:56:56 +09:00
wass08
cfa7b8bfc1 handle holes in spatial grid manager 2026-02-12 10:46:07 +09:00
wass08
5392d66bd6 handle better slab polygon detection 2026-02-02 11:35:44 +09:00
wass08
72a0e3952a slab panel 2026-02-02 11:17:47 +09:00
wass08
07dee4aefc rename items 2026-01-29 15:37:51 +09:00
wass08
9c185c4d33 fix slab detection for wall 2026-01-29 15:08:57 +09:00
wass08
e27028a29a working ceiling items 2026-01-28 06:55:56 +09:00
wass08
1a5bd11009 slab outset + wall pushing up 2026-01-27 19:33:30 +09:00
wass08
408fd8b87c slab polygons elevation 2026-01-27 19:20:01 +09:00
wass08
11aba2af36 draft item-system + elevation 2026-01-27 19:05:08 +09:00
wass08
e49ba32d18 attach to wall side 2026-01-23 12:33:50 +09:00
wass08
aaadec8add fix default spatial grid 2026-01-23 11:31:14 +09:00
wass08
5de0818633 biome 2026-01-21 10:03:29 +09:00
wass08
980dd4c3dc level items 2026-01-20 08:39:14 +09:00
wass08
f59e12193d wall item checks 2026-01-20 07:56:40 +09:00
wass08
f3456aed42 can place on wall 2026-01-19 09:32:46 +09:00
wass08
69148705c6 check wall + clean attach/detach 2026-01-19 08:29:43 +09:00
wass08
159b61d22a showing what is placeable or not 2026-01-18 11:09:05 +09:00
wass08
35a479df15 can place draft 2026-01-18 11:03:48 +09:00
wass08
8bf933ed36 draft spatial grid 2026-01-18 10:54:02 +09:00