Fix view cone alignment when agent markers resize - #178
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Warning Review limit reachedNext included review available in 42 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change replaces marker-size center offsets with the stored agent anchor for view cone rendering, sightline reporting, geometry clipping, and drag previews. Tests verify alignment across sizes, sides, previews, and gestures. ChangesView cone anchor alignment
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to View-cone origins now remain aligned with the rendered agent as marker sizes change, including during dragging. No merge-blocking risk remains after the supplied regression coverage and normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Comments Outside DiffThese findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.
|
|
Addressed the animated-path finding in e447d7e. Both the path planner and transition renderer now convert through storedAgentAnchor, keeping the marker center and ray origin on the animated path. Added a failing-before regression covering both sides, four marker sizes, and start/midpoint/end; 45 focused tests and changed-file analysis pass. @greptileai please re-review the current head. |
There was a problem hiding this comment.
Greptile has paused reviews on this repository — it used its 300 free open-source review credits for this billing period. Reviews resume automatically on September 28. To continue before then, an organization admin can keep reviews running past the free credits — those bill as normal usage.
Changing agent marker size kept the icon centered but moved the position used to calculate its cone. This shifted wall cutouts away from the map artwork, producing visible notches around Haven's B entrance. Animated agent paths also mixed resized marker anchors with saved positions.
Use the existing stored agent anchor for attached cones, drag previews, elevation menus, sightline reports, and conversion between saved positions and animated path centers. Marker size remains a visual layout setting. The path planner and transition renderer now agree on the same center.
Validation:
Release is held for more changes.