immersive2/src/util
Michael Mainguy 6ea6eaaac7 Implement SVG-based dynamic connection arrows with toolbox color matching
Replace static arrow.png with dynamically generated SVG arrows that match
the source object's color from the toolbox palette.

Changes:
- Replace arrow.png loading with inline SVG generation (32x32 right-pointing triangle)
- Add CreateColoredTexture() method to generate arrows in any hex color
- Extract color from source mesh using three-priority fallback system:
  1. mesh.metadata.color (most reliable)
  2. sourceMesh.id parsing (e.g., "tool-#box-template-#FF0000")
  3. material color extraction (backwards compatibility)
- Match extracted color to closest of 16 toolbox colors using Euclidean distance
- Track all textures in Set for synchronized animation
- Add proper texture disposal to prevent memory leaks

Benefits:
- No external arrow.png dependency
- Connections visually match their source object's toolbox color
- Consistent 16-color palette across all connections
- Efficient texture sharing for matching colors
- SVG scales perfectly at any resolution

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 06:24:42 -06:00
..
functions Add face handles and transform tracking to ResizeGizmo 2025-11-17 17:06:32 -06:00
animatedLineTexture.ts Implement SVG-based dynamic connection arrows with toolbox color matching 2025-11-18 06:24:42 -06:00
appConfig.ts Refactor config naming and upgrade dependencies 2025-11-12 21:36:56 -06:00
appConfigType.ts Refactor config naming and upgrade dependencies 2025-11-12 21:36:56 -06:00
constants.ts Added webxr exit button 2025-02-14 11:01:27 -06:00
customEnvironment.ts Convert to unlit rendering and fix connection update error 2025-11-12 21:16:29 -06:00
customPhysics.ts Updated config page. 2024-08-30 12:43:19 -05:00
dualshockEventMapper.ts Added Initial Config Menu. 2023-07-27 15:43:34 -05:00
lightmapGenerator.ts Add WebXR rendering mode toggle with 4 modes 2025-11-13 10:36:03 -06:00
me.ts Refactored some larger classses...added enhanced map capability. 2024-06-03 08:34:48 -05:00
renderingMode.ts Add WebXR rendering mode toggle with 4 modes 2025-11-13 10:36:03 -06:00