Skip to content

docs(extensions): PathStyleExtension reference for dashMode and dashUnits - #10584

Merged
chrisgervang merged 15 commits into
masterfrom
claude/deck-gl-path-dashing-2jnq8i-6
Oct 5, 2026
Merged

chrisgervang merged 15 commits into
masterfrom
claude/deck-gl-path-dashing-2jnq8i-6

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

For #10582, #10583

dashMode and dashUnits are not documented yet. This PR rewrites the PathStyleExtension page for readers coming from MapLibre or SVG, following #10796.

Change List

  • PathStyleExtension: document dashMode, dashUnits and getOffset units
  • PathStyleExtension: Remarks on dash modes, MapLibre/SVG comparison, troubleshooting
  • Upgrade guide: highPrecisionDash deprecation
  • path-dash-rfc.md: dash offset as future work
  • analytic-antialiasing-rfc.md: offset strokes share PathLayer.antialiasing coverage
  • PathStyleExtension: interactive road and dash mode demos replace the CodePen

@coveralls

coveralls commented Aug 21, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.59% (+0.01%) from 82.576% — claude/deck-gl-path-dashing-2jnq8i-6 into master

@chrisgervang
chrisgervang marked this pull request as ready for review August 21, 2026 23:15
@greptile-apps

greptile-apps Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low risk] Documentation updates for path styling features.

The PR appears safe to merge; no new actionable finding or outstanding previous finding remains.

Summary

The PR rewrites the PathStyleExtension reference, adds interactive dash demos, and updates migration guidance and RFCs.

  • Documents dashMode, dashUnits, offset units, and troubleshooting.
  • Replaces the CodePen with road and dash-mode demos.
  • Clarifies the highPrecisionDash deprecation and offset antialiasing behavior.

Reviews (49) · Last reviewed commit: "docs(extensions): make road demo code co..."

Comment thread scripts/dash-figures/capture-before.sh Resolved
Comment thread scripts/dash-figures/compose.mjs Resolved
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i-6 branch from 4a824cc to 71f8727 Compare August 22, 2026 00:59
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i-6 branch from 71f8727 to 9c84f74 Compare August 22, 2026 01:05
Comment thread scripts/dash-figures/capture-before.sh Resolved
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i-6 branch from 9c84f74 to b263e42 Compare August 22, 2026 01:09
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i-6 branch 2 times, most recently from d886bc4 to 4851561 Compare August 22, 2026 22:00
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i-6 branch 2 times, most recently from 76becef to 8fa5665 Compare August 22, 2026 22:34
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i-6 branch from 8fa5665 to 95baf17 Compare August 23, 2026 02:49
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i-6 branch from 95baf17 to bbc9088 Compare August 23, 2026 19:44
Comment thread scripts/dash-figures/capture-before.sh Resolved
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i-6 branch from bbc9088 to a5f53b4 Compare August 24, 2026 00:05
Comment thread scripts/dash-figures/capture-before.sh Resolved
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i-6 branch from a5f53b4 to 95e7c4b Compare August 24, 2026 00:12
Base automatically changed from claude/deck-gl-path-dashing-2jnq8i-5 to master September 2, 2026 05:48
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i-6 branch from be70655 to 7fb993c Compare September 2, 2026 05:48
Comment thread scripts/dash-figures/capture-before.sh Resolved
Comment thread docs/whats-new.md Resolved
Comment thread docs/whats-new.md Resolved
Comment thread docs/whats-new.md Resolved
Comment thread docs/upgrade-guide.md Resolved
Comment thread docs/upgrade-guide.md Resolved
Comment thread docs/upgrade-guide.md Resolved
@chrisgervang chrisgervang changed the title docs(extensions): frame PathStyleExtension as stroke construction docs(extensions): PathStyleExtension reference for dashMode and dashUnits Oct 4, 2026
Comment thread website/src/doc-demos/extensions.js Resolved
claude and others added 15 commits October 4, 2026 18:58
The dash work across this stack fixes six defects and adds three capabilities, but
a reader had no way to tell those apart, and nothing to look at: the "Comparison
between dash modes" image the extension docs carried for years was dropped when
the Tips section was rewritten and never replaced.

Adds a symptom-to-resolution table answering "which of my problems does upgrading
solve, and which need a prop" — six of eleven listed symptoms resolve on upgrade,
five need dashMode or dashUnits — and four figures:

- path-style-dash-modes: the replacement for what was removed. One path with
  deliberately unequal segments, joints marked with ticks, drawn under all four
  dashMode x dashJustified combinations.
- path-style-dash-density: the same straight line from 1/2/4/12/40/120 vertices,
  'segment' beside 'path'.
- path-style-dash-units: 'widths' against 'pixels' at z12/13/14.
- path-style-dash-fixes: before/after for the automatic fixes.

Every panel is a real render. "After" panels come from committed golden images, so
a published figure cannot drift from what the code does — if behavior changes the
golden test fails first. "Before" panels come from capture-before.sh, which
reverts only the three behavior-carrying sources and re-renders; the spec and its
geometry stay current so both halves of a pair draw the identical scene. Diffing
today's golden against the layer-1 golden would not work: several of these cases
had their geometry changed mid-stack, so that comparison would show two different
scenes and overstate the fix.

The figures go in docs/images/path-style/ rather than the deck.gl-data repo the
other doc images use. That repo is not reachable from this environment; the
tradeoff is ~185KB in-repo against docs that render immediately and a link check
that passes. Moving them later is a four-URL swap.

Two things the figures caught, both now covered by tests:

- The offset fix claimed earlier in this stack was never demonstrable. Its render
  case uses dashMode 'segment', where the dash phase is zero and scaling it by the
  offset width changes nothing, so the case rendered identically before and after.
  path-dash-offset-mode-path covers the configuration where the fix actually
  applies. Dash period across offsets 0/2/4/8: before 43.4/42.4/42.4/41.6, after
  43.4/43.4/43.4/43.4. It is spelled with the deprecated highPrecisionDash because
  that is the only spelling of a continuous phase existing in both the current and
  pre-9.4 API, which is what lets it be re-rendered for the comparison.
- A scenario-table row overstated the dashJustified guard as fixing solid short
  segments. That case's golden never changed, and the arithmetic says why: a
  segment shorter than dashSize has no room for a gap and correctly renders solid
  either way. The guard removes an Inf/NaN degeneracy, and the docs now say so
  rather than implying justification rescues dense polylines.

That ~4% offset drift does not read in a figure, so the pair is left out of
path-style-dash-fixes with a comment saying why; a panel identical on both sides
would suggest the fix did nothing.

Also documents the v9.4 dash changes in whats-new and the highPrecisionDash
deprecation in the upgrade guide, notes there that stored screenshots of
billboarded, elevated, offset or fine-dashed paths will need regenerating, and
records that getDashArray has always been relative to half the stroke width rather
than the full width.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014GipN1niYRgRuLVat2wujw
Replace the CodePen embed with a road demo of dashes and offsets, and
add a demo of dashMode and dashJustified on three shapes from the old
figure.
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i-6 branch from ae8648d to 061b4d0 Compare October 5, 2026 02:00
@chrisgervang chrisgervang added this to the v9.4 patch releases milestone Oct 5, 2026
@chrisgervang
chrisgervang merged commit 4206483 into master Oct 5, 2026
7 checks passed
@chrisgervang
chrisgervang deleted the claude/deck-gl-path-dashing-2jnq8i-6 branch October 5, 2026 02:10
@chrisgervang chrisgervang mentioned this pull request Oct 7, 2026
53 of 66 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants