immersive2/public
Michael Mainguy 970f6fc78a Fix label positioning, add billboard mode, fix XR entry shift, and fix config system
Label Positioning Fixes:
- Fix labels accounting for mesh scaling using maximumWorld coordinates
- Labels now properly positioned on scaled objects (spheres, boxes, etc.)
- Restore world→local coordinate transformation in updateLabelPosition

Billboard Mode Implementation:
- Add configurable label rendering modes: fixed, billboard, dynamic, distance-based
- Implement billboard mode (labels always face camera using BILLBOARDMODE_Y)
- Add label rendering mode to AppConfig with default 'billboard'
- Add UI selector in ConfigModal for label rendering mode
- Observable pattern updates all existing labels when mode changes

XR Entry Positioning Fix:
- Synchronize desktop camera position to platform before entering XR
- Transfer camera world position and rotation to prevent scene shift
- Reset physics velocity on XR entry to prevent drift
- Add debug logging for position synchronization

Config System Architecture Fix:
- Create singleton appConfigInstance to ensure single source of truth
- Update DiagramObject to use singleton instead of creating instances
- Update DiagramManager to use singleton
- Fix ConfigModal to update AppConfig directly (was only updating legacy config)
- ConfigModal now triggers Observable notifications via appConfigInstance setters
- Maintain legacy config for backward compatibility
- Fixes issue where label rendering mode changes didn't take effect

Files Modified:
- src/diagram/diagramObject.ts - Label positioning, billboard mode, singleton config
- src/diagram/diagramManager.ts - Use singleton config
- src/util/appConfig.ts - Add labelRenderingMode, export singleton
- src/util/appConfigType.ts - Add LabelRenderingMode type
- src/react/pages/configModal.tsx - Update AppConfig directly, add label mode UI
- src/util/functions/groundMeshObserver.ts - Add camera position sync on XR entry
- public/api/user/features - Update test config
- package.json - Version bump

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 08:52:04 -06:00
..
api/user Fix label positioning, add billboard mode, fix XR entry shift, and fix config system 2025-11-18 08:52:04 -06:00
assets Updated config page. 2024-08-30 14:56:13 -05:00
pages updated web styles. 2024-05-10 13:33:30 -05:00
voice Re added quest link. 2024-04-02 14:19:27 -05:00
_headers Added _headers file 2023-08-02 14:47:51 -05:00
_redirects Added netlify _redirects 2023-12-12 07:11:07 -06:00
android-icon-192x192.png Added 3d closet demo, cleaned up menus. 2024-02-02 15:36:47 -06:00
b2b2c.csv Updated config page. 2024-08-30 14:56:13 -05:00
manifest.webmanifest Updated icon 2024-05-07 10:29:47 -05:00
newRelic.js Fixed problem with label editor. 2023-08-17 10:20:39 -05:00
niceware.js Network handler code. 2023-09-05 06:48:55 -05:00
styles.css updated linting warnings, removed unused variables. 2024-08-03 19:16:32 -05:00
sw.js Disabled service worker, enhanced management console. 2024-08-30 12:43:19 -05:00