mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
chore(street-level): format; drop nearest.js from tool configs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
affa2164e0
commit
1db3290e0b
6 files changed
+18
-13
No files matched your search
@@ -284,7 +284,11 @@ const findPick = (page, prefix, { box = null, step = 3 } = {}) =>
|
||||
for (let px = x; px < x + w; px += stride) {
|
||||
const id = scene.pick({ x: px, y: py })?.id;
|
||||
if (typeof id === 'string' && id.startsWith(want))
|
||||
return { x: rect.left + px, y: rect.top + py, local: { x: px, y: py } };
|
||||
return {
|
||||
x: rect.left + px,
|
||||
y: rect.top + py,
|
||||
local: { x: px, y: py },
|
||||
};
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user