Scene view symbols come from SVG files: the behavior, container, rigidbody, camera and particles icons live in src/viewport/icons/ and are changed by editing the file and running npm run build; they are bundled, parsed once and drawn into a Graphics by the new module symbolIcons.ts, currentColor becomes the theme color of the symbol, the origin sits in the middle with a centered viewBox and the same units as before, so the symbols are pixel for pixel unchanged; what depends on the object (camera frame, collider outline, one-way cone) stays in code; unit tests keep the files to what Pixi's SVG parser and a browser draw alike (no transform, no polygon, fill always given), e2e 5c reads the five symbols in the theme color (#175)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
25ec7879a0
commit
1c212b1ccc
12 files changed
+195
-72
No files matched your search
@@ -24,6 +24,7 @@ export const LANES = {
|
||||
physics: -3500,
|
||||
shapes: -3900,
|
||||
queries: -4300,
|
||||
symbols: -4700,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user