Skip to content

docs(router): use the public routerPresets export - #5101

Merged
lxfu1 merged 1 commit into
antvis:masterfrom
cangen185-sudo:codex/docs-router-preset-export
Oct 15, 2026
Merged

lxfu1 merged 1 commit into
antvis:masterfrom
cangen185-sudo:codex/docs-router-preset-export

Conversation

@cangen185-sudo

@cangen185-sudo cangen185-sudo commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

馃摑 Description

Replace the obsolete Registry.Router.presets.orth reference in the English and Chinese Manhattan-router documentation with the exported routerPresets.orth. Update both examples to show importing routerPresets from @antv/x6 and using it as fallbackRouter.

馃挕 Motivation and Context

Closes #5092.

X6 v3 exports routerPresets through its public entry point; Registry has no Router static property. This change only corrects documentation and does not add an API or change routing behavior.

馃З Types of changes

  • Docs

馃攳 Validation

  • Extracted the actual Manhattan example from each locale and type-checked it against the current public source entry point using the repository's TypeScript configuration: 0 diagnostics for each locale.
  • vitest run __tests__/registry/router: 126 passed.
  • git diff --check: passed.
  • Full-suite recheck at this exact PR head: 3032 passed, 0 failed across 202 test files; TypeScript passed. This Windows recheck uses a real Arial font registered as the process-local sans-serif, addressing the baseline test's implicit font-width assumption. No test assertion or system font configuration was changed.
  • No documentation-site build or browser rendering is claimed.

Codex assisted with documentation audit and validation. Ready for maintainer review.

@cangen185-sudo
cangen185-sudo marked this pull request as ready for review October 15, 2026 01:28
@cangen185-sudo
cangen185-sudo marked this pull request as draft October 15, 2026 01:28
@cangen185-sudo
cangen185-sudo marked this pull request as ready for review October 15, 2026 01:43
@lxfu1
lxfu1 merged commit c849756 into antvis:master Oct 15, 2026
1 check passed
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.

Registry.Router.presets.orth鏂囨。涓嶅

2 participants