Skip to content

fix(core): attribute transition bugs - #10738

Merged
Pessimistress merged 2 commits into
masterfrom
x/transition-fixes
Sep 29, 2026
Merged

Pessimistress merged 2 commits into
masterfrom
x/transition-fixes

Conversation

@Pessimistress

Copy link
Copy Markdown
Collaborator

Change List

  • Fix an issue that initial data load always transitions from 0,0,0 (empty buffer) while enter behavior is expected
  • Forward GeoJsonLayer transition.geometry to PathLayer's transition.getPath and PolygonLayer's transition.getPolygon (previously mapped to getPosition only)

@greptile-apps

greptile-apps Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Fixes transition and geometry accessor bugs in core and layers.

The PR appears safe to merge; no outstanding or new actionable findings remain.

Findings

  1. P1 Custom transitions stop working ▶

Summary

The PR preserves the initialized source of GPU attribute transitions during pre-render restarts and forwards GeoJson geometry transitions to the path and polygon accessors. It also adds regression tests for both behaviors. The previous custom-sublayer finding was conceded in its thread.

Reviews (2) · Last reviewed commit: "Merge branch 'master' into x/transition-..."


if (PolygonStrokeLayer || LineStringsLayer) {
const forwardedProps = forwardProps(this, LINE_LAYER.props);
const forwardedProps = forwardProps(this, LINE_LAYER.props, 'getPath');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Custom transitions stop working

When linestrings is replaced through _subLayerProps[id].type by a layer whose geometry attribute uses an accessor such as getPosition, this code still forwards transitions.geometry only as getPath. The replacement layer cannot find the transition under its own accessor, so its geometry transition is silently disabled. The transition key must account for the resolved sublayer class or be configurable for custom replacements.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Worth mixing customizations in?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I wouldn’t mix that into this fix. Replacement sublayers are expected to honor the geometry contract of their slot: linestrings and polygons-stroke receive getPath, while polygons-fill receives getPolygon. A custom layer that only uses getPosition would already be incompatible with the slot’s geometry data, independent of transitions. So forwarding transitions.geometry under getPath is consistent with the existing contract.

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Left one comment

@coveralls

coveralls commented Sep 24, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.505% (+0.03%) from 82.473% — x/transition-fixes into master

@Pessimistress
Pessimistress merged commit b57521a into master Sep 29, 2026
7 checks passed
@Pessimistress
Pessimistress deleted the x/transition-fixes branch September 29, 2026 20:49
@chrisgervang chrisgervang added this to the v9.4 patch releases milestone Oct 4, 2026
This was referenced Oct 7, 2026
chrisgervang pushed a commit that referenced this pull request Oct 22, 2026
@chrisgervang

Copy link
Copy Markdown
Collaborator

Released in deck.gl 9.4.1. Thanks @Pessimistress!

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