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> |
||
|---|---|---|
| .. | ||
| functions | ||
| animatedLineTexture.ts | ||
| appConfig.ts | ||
| appConfigType.ts | ||
| constants.ts | ||
| customEnvironment.ts | ||
| customPhysics.ts | ||
| dualshockEventMapper.ts | ||
| lightmapGenerator.ts | ||
| me.ts | ||
| renderingMode.ts | ||