Skip to content

fix(x6): align evaluator and container guidance with 3.1.8 - #111

Open
m1s1q1 wants to merge 2 commits into
antvis:masterfrom
m1s1q1:fix/x6-element-container
Open

m1s1q1 wants to merge 2 commits into
antvis:masterfrom
m1s1q1:fix/x6-element-container

Conversation

@m1s1q1

@m1s1q1 m1s1q1 commented Oct 20, 2026 •

Copy link
Copy Markdown

The evaluator pins X6 3.1.7 while the skill and reference examples use container ID strings, causing TypeError: t.cloneNode is not a function at initialization. X6 3.1.8 supports DOM IDs (antvis/X6#5087), so upgrading the evaluator allows the existing examples to initialize.

This change pins the evaluator and introductory CDN example to X6 3.1.8 and documents both valid container forms: an existing DOM ID or an HTMLElement. It limits the variable-redeclaration warning to hosts that already provide the same binding. It also fixes the CDN filename, supplies a sized container in the HTML example, corrects the 80 0 typo, and synchronizes the skill catalog descriptions. All 136 reference records are retained byte-for-byte from upstream.

Validation:

  • npm test: all 14 tests passed.
  • npm run build: retrieval indexes rebuilt and TypeScript compilation passed.
  • Real browser comparison with pinned X6 3.1.7 and 3.1.8: the ID-string example fails on 3.1.7 and renders two nodes and one edge on 3.1.8; HTMLElement containers work in both versions.
  • Revised overview, graph-init and CDN examples initialize successfully on 3.1.8. Invalid IDs/CSS selectors are rejected; an unsized container still has zero height.
  • X6 3.1.8 dist/x6.js returns HTTP 404; dist/x6.min.js returns HTTP 200.
  • Original reference initialization checks: 130 of 136 initialize on 3.1.8. Six fail before Graph initialization on the pre-existing Graph.registerHTMLComponent error in both versions. This check covers initialization, not full rendering of every reference.
  • git diff --check: passed.

Generated with AI assistance.

@lxfu1

lxfu1 commented Nov 3, 2026

Copy link
Copy Markdown
Member

Update X6 to version 3.1.8. antvis/X6#5087

@m1s1q1 m1s1q1 changed the title fix(x6): use HTMLElement containers in skills and references fix(x6): align evaluator and container guidance with 3.1.8 Nov 5, 2026
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.

2 participants