Repository navigation
test(render): render CollisionFilterExtension cases under map, globe and orthographic views - #10663
Merged
Merged
Conversation
Base automatically changed from
claude/globe-flat-common-helpers-GveWO
to
master
September 25, 2026 17:34
chrisgervang
force-pushed
the
claude/test-collision-filter-views-GveWO
branch
from
September 25, 2026 17:37
9f488bb to
b99cdf5
Compare
chrisgervang
force-pushed
the
claude/test-collision-filter-views-GveWO
branch
from
October 3, 2026 22:10
b99cdf5 to
13595ce
Compare
…and orthographic views CollisionFilterExtension resolves collisions in clip space using the active view's matrices, so it is view-agnostic and needs no fix for GlobeView. This makes it the reference consumer of the view-matrix render helper (test/render/view-presets.ts): every collision-filter case is now expanded with expandViewMatrix(['map', 'globe']) and the `simple` variant additionally renders under OrthographicView via a layers factory that converts the SF lng/lat data into the map preset's pixel space (preset.coordinateSystem / preset.toPosition). - The 5 existing map goldens are reused unchanged (names and images). - +5 `-globe` goldens: same point cloud, same collision thinning and priority ordering as the map twins; globe curvature is negligible at zoom 11.5, but faded-out (near-transparent) circles still write depth and, on the sphere, sit at different depths, so a few circles show crescent bites where a fainter neighbour in front occludes them. This is generic translucent depth-write behaviour on GlobeView, not a collision resolution difference. - +1 `simple-orthographic` golden: pixel-for-pixel the same picture as the map golden (99.74% pixelmatch), proving the cartesian preset. - The variant list is typed (Partial<ScatterplotLayerProps & CollisionFilterExtensionProps>) so the spec type-checks under the root tsconfig; the previous spread of an untyped props union did not. No source or docs changes. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01FyzWaF5TmQPmGjh3Zr3XL9
chrisgervang
force-pushed
the
claude/test-collision-filter-views-GveWO
branch
from
October 23, 2026 00:37
13595ce to
96da2fd
Compare
chrisgervang
marked this pull request as ready for review
November 3, 2026 17:13
[Low impact] The PR appears safe to merge; both previous findings are fixed and no new issues were found. SummaryAdds render coverage for
Reviews (3) · Last reviewed commit: "test(render): describe the collision fil..." · Reviewed by Greptile |
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01FyzWaF5TmQPmGjh3Zr3XL9
ibgreen
approved these changes
Nov 3, 2026
ibgreen
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed the render-test expansion across map, globe and orthographic views, including collision priority, disabled filtering and expanded collision radius. No blocking findings. Current GitHub Actions test workflow passes. Review based on source and CI; tests were not run locally.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow up of #10657
CollisionFilterExtensionresolves collisions in clip space with the active view's matrices, so it needs no GlobeView fix. That makes it the reference consumer ofexpandViewMatrix. Tests only.GlobeViewcollision-filter-effect-simple-globe: 10 pxScatterplotLayerpoints thinned by the extension, San Francisco at zoom 11.5collision-filter-effect-disabled-globe: same scene withcollisionEnabled: falseNo before images: all 11 cases pass on master with this PR's spec, so the images show current behavior and the PR only adds the coverage.
Change List
collision-filter-extension.spec.ts: all 5 variants also render underGlobeView;simpleadditionally underOrthographicView, using the preset'scoordinateSystemandtoPositionto convert the lng/lat data. Map names and goldens unchanged-globegoldens and 1simple-orthographicgolden with the same thinning and priority order as the map twins. A few globe circles show crescent bites where a faded neighbor in front writes depth; the same happens without the extension on the spherePartial<ScatterplotLayerProps & CollisionFilterExtensionProps>so the spec type-checks under the root tsconfigRan the render spec headless on WebGL,
tscand lint.Note
Low Risk
Test-only changes that expand render test coverage with no impact on production code.
Overview
Expands render test coverage for
CollisionFilterExtensionacross multiple view presets usingexpandViewMatrix.All five test variants are now tested under both
MapViewandGlobeView, with thesimplecase additionally coveringOrthographicViewvia preset-derived coordinate systems and position transformations. Test cases are also explicitly typed against layer and extension props.Reviewed by Cursor Bugbot for commit cbf6fc9. Bugbot is set up for automated code reviews on this repo. Configure here.