Visitar URL original
feat(layers): forward path antialiasing through composite layers by chrisgervang · Pull Request #10561 · visgl/deck.gl · GitHub
Skip to content

feat(layers): forward path antialiasing through composite layers - #10561

Merged
chrisgervang merged 3 commits into
chrisgervang/point-cloud-layer-antialiasingfrom
chrisgervang/composite-line-antialiasing
Aug 21, 2026
Merged

chrisgervang merged 3 commits into
chrisgervang/point-cloud-layer-antialiasingfrom
chrisgervang/composite-line-antialiasing

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Aug 14, 2026 •

Copy link
Copy Markdown
Collaborator

Goal

Expose PathLayer analytic antialiasing through the composite layers that render polygon and GeoJSON strokes.

Change List

  • Add lineAntialiasing to PolygonLayer and forward it to the stroke PathLayer.
  • Add lineAntialiasing to GeoJsonLayer and map it to line and polygon-stroke sublayers.
  • Follow GeoJsonLayer's existing pointAntialiasing naming precedent.
  • Include PolygonLayer and GeoJsonLayer API documentation with the feature.
  • Add composite tests that verify default-off and enabled shader-uniform forwarding.

Validation

  • Focused composite-layer headless tests
  • Included in stack-wide yarn lint and yarn build

Note

Low Risk
Optional prop defaults to false, so existing visuals are unchanged. Only prop forwarding and docs/tests; no shader or data-path changes.

Overview
Exposes PathLayer analytic antialiasing on polygon and GeoJSON strokes via a new lineAntialiasing prop (default false).

PolygonLayer and GeoJsonLayer now forward the flag to their stroke PathLayers. GeoCellLayer (and thus layers like S2Layer) pass it through as well. Docs and composite tests cover default-off behavior and shader define forwarding.

Reviewed by Cursor Bugbot for commit 614382b. Bugbot is set up for automated code reviews on this repo. Configure here.

@coveralls

coveralls commented Aug 14, 2026 •

Copy link
Copy Markdown

Coverage Status

Coverage is 82.218% — chrisgervang/composite-line-antialiasing into chrisgervang/point-cloud-layer-antialiasing. No base build found for chrisgervang/point-cloud-layer-antialiasing.

@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from e13dd7b to 61650a2 Compare August 14, 2026 00:52
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from 61650a2 to d7d2644 Compare August 14, 2026 17:39
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from d7d2644 to fcdb945 Compare August 14, 2026 18:39
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from fcdb945 to f8b2f87 Compare August 14, 2026 19:44
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from f8b2f87 to f884713 Compare August 15, 2026 00:43
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch 2 times, most recently from e9c58c3 to 370a060 Compare August 15, 2026 23:39
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from 370a060 to e3bff24 Compare August 16, 2026 03:25
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from e3bff24 to 53beb8b Compare August 17, 2026 21:45
@greptile-apps

greptile-apps Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Greptile Summary

The PR exposes PathLayer analytic antialiasing through polygon, GeoJSON, and geographic-cell composite layers while preserving the default-off behavior.

  • Adds and documents the lineAntialiasing composite-layer property.
  • Forwards the property to PathLayer-backed polygon and GeoJSON strokes.
  • Adds composite-layer tests for default and enabled shader variants.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
modules/layers/src/polygon-layer/polygon-layer.ts Defines a default-off lineAntialiasing property and forwards it to the polygon stroke PathLayer.
modules/layers/src/geojson-layer/geojson-layer.ts Adds the public GeoJsonLayer stroke option used by PathLayer-backed line and polygon-outline sublayers.
modules/layers/src/geojson-layer/sub-layer-map.ts Maps GeoJsonLayer lineAntialiasing to the underlying PathLayer antialiasing property.
modules/geo-layers/src/geo-cell-layer/GeoCellLayer.ts Passes lineAntialiasing through geographic-cell layers to their PolygonLayer sublayer.
test/modules/layers/antialiasing-composite.spec.ts Verifies default-off and enabled shader-define forwarding for PolygonLayer and GeoJsonLayer.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  GeoJson[GeoJsonLayer lineAntialiasing] --> GeoPath[Line and polygon-stroke PathLayers]
  Polygon[PolygonLayer lineAntialiasing] --> PolygonPath[Stroke PathLayer]
  GeoCell[GeoCellLayer / S2Layer] --> Polygon
  GeoPath --> Shader[ANTIALIASING shader variant]
  PolygonPath --> Shader
Loading

Reviews (17): Last reviewed commit: "fix(geo-cell-layer): forward line antial..." | Re-trigger Greptile

@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from 53beb8b to a73abeb Compare August 18, 2026 18:09
@chrisgervang chrisgervang added this to the v9.4 milestone Aug 19, 2026
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from a73abeb to 5c277d3 Compare August 19, 2026 00:15

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5c277d3. Configure here.

@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch 2 times, most recently from f62b00e to f0af505 Compare August 19, 2026 00:55
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch 2 times, most recently from 4ba4388 to 611453a Compare August 20, 2026 01:06
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from 611453a to eda8133 Compare August 20, 2026 01:10
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch 2 times, most recently from 54478c9 to 5bd2b5b Compare August 20, 2026 05:36
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from 5bd2b5b to 8d40578 Compare August 20, 2026 05:47
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch 2 times, most recently from 0573eb4 to d0d52d2 Compare August 20, 2026 18:39
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from d0d52d2 to 93d5150 Compare August 20, 2026 18:45
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from 93d5150 to cd13ac8 Compare August 20, 2026 23:01
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from cd13ac8 to bf0ca91 Compare August 20, 2026 23:25
@chrisgervang
chrisgervang force-pushed the chrisgervang/composite-line-antialiasing branch from bf0ca91 to 614382b Compare August 20, 2026 23:33
@chrisgervang
chrisgervang merged commit 49e6207 into master Aug 21, 2026
12 checks passed
@chrisgervang
chrisgervang deleted the chrisgervang/composite-line-antialiasing branch August 21, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants