Skip to the usage guide
AntV X6 Editorby antvis

AntV X6 Editor Skill.

Create an interface for authoring connected diagrams, not just viewing a network that already exists.

  • Diagram Editors
  • Node Interfaces
  • AntV
Source Review · AntV X6 EditorSKILL.md
Task Diagram Editors Produces • X6 diagram-editor JavaScript with styled nodes and edges • A deliberate set of editor plugins and canvas interactions • Connection, framing, and optional serialization behavior appropriate to the editor Before You Start Use the documented @antv/x6 v3 API with a browser canvas and the required plugins. Fetching additional references needs network access. Check examples against your installed version.
Editorial summary · source reviewed 2026-10-07 · not a generated example

01 What It Does

AntV X6 Editor: Build a Diagram Canvas

An X6 v3 diagram-editor guide covering imperative node-edge construction, explicit plugin setup, gesture separation, and specialized reference retrieval.

Source-based workflowNot an execution benchmark

The Working Approach

AntV X6 Editor is aimed at interactive diagram tools such as flowchart, DAG, entity-relationship, lineage, and organization-chart editors. The captured entry targets X6 v3 and describes an imperative approach: create the graph, add nodes and edges, then register the editor plugins required for the intended operations.

Its distinguishing work is editor behavior. Selection, history, clipboard, keyboard, stencil, drag-and-drop, transforms, and export need explicit setup; canvas panning and connection behavior belong to a different configuration layer. The source also routes serialization and port-specific tasks to detailed references. It does not turn a drawn workflow into an executable business process.

Expected Deliverables

  • X6 diagram-editor JavaScript with styled nodes and edges
  • A deliberate set of editor plugins and canvas interactions
  • Connection, framing, and optional serialization behavior appropriate to the editor
See the Example Brief

From Brief to Review

  1. 01
    Define the Editing Task

    List the diagram objects people can create, move, select, connect, and remove. Decide which editor operations are actually necessary before enabling plugins.

  2. 02
    Build the Node-Edge Model

    Create the graph and add the required shapes and connections. Retrieve dedicated guidance for ports, custom HTML nodes, or nested structures when those features are in scope.

  3. 03
    Register Editor Capabilities

    Import and register the plugins used by the implementation. Keep constructor options such as panning and connecting separate from plugin classes.

  4. 04
    Check the Editing Session

    Test selection, pan, zoom, and drag gestures for conflicts, frame the content, and verify any promised save/load or export path rather than assuming it exists.

02 When to Use It

When to Use It

Use the documented @antv/x6 v3 API with a browser canvas and the required plugins. Fetching additional references needs network access. Check examples against your installed version.

A Good Fit

  • Workflow Authoring InterfacesUseful when users need to construct or modify a node-edge diagram rather than only inspect an existing graph.
  • Domain Diagram EditorsThe source includes routes for ER, lineage, DAG, UML, and organization-chart requirements.
  • Editor Interaction DebuggingIts plugin-registration and input-modifier rules help isolate missing operations and competing gestures.

Limits to Check

  • Not a Workflow Execution EngineThe documented scope is diagram editing. Business execution, server persistence, and domain validation require separate implementation.
  • Not G6 or G2G6 network exploration and G2 statistical charts have different purposes and APIs; their rendering patterns should not be mixed into this editor.
  • Source-Specific Runtime AssumptionsThe entry prescribes v3 conventions, JavaScript output, and container handling for its workflow. Validate those assumptions in the installed package and hosting environment rather than presenting them as universal library constraints.

Bring These Inputs

  • Diagram SchemaProvide node types, permitted relationships, port requirements, and initial diagram data.
  • Editing OperationsState whether users need selection, undo, clipboard, a stencil, resizing, keyboard actions, or export.
  • Application EnvironmentSupply the installed X6 version, canvas container, surrounding page interactions, and persistence requirements.

03 Decisions That Matter

Decisions That Matter

  1. Capabilities Are Explicit

    Registering only the required plugins makes the difference between a displayed diagram and an operational editor visible.

  2. Gestures Have Separate Jobs

    The source uses modifiers to prevent panning, zooming, and rubber-band selection from competing for the same input.

  3. Authoring and Persistence Differ

    A visible diagram is not evidence that editing state can be saved and restored. Serialization is a separate reference and verification task.

04 Try a Focused Brief

Try a Focused Brief

The example brief below has not been tested. Check the skill’s setup before using it.

Review the Setup

Use the complete antv-x6-editor Skill source as guidance and install the project runtime separately. No universal Skill installer command has been verified from this entry.

Upstream Source File
https://github.com/antvis/chart-visualization-skills/blob/a105fa12a9fa41fccccc2eba7f4b34973628f5d3/skills/antv-x6-editor/SKILL.md

Use the documented @antv/x6 v3 API with a browser canvas and the required plugins. Fetching additional references needs network access. Check examples against your installed version.

Start With One Deliverable

Adapt the scope, source material and constraints in this brief before running the skill.

Example Brief
Use antv-x6-editor to prototype an approval-flow editor with the supplied node types and allowed connections. Inspect our X6 version first. Implement selection and undo with explicit plugin registration, separate pan and zoom gestures, and keep business execution out of scope. If JSON save/load is included, follow the serialization reference and demonstrate a round trip; do not claim backend persistence.

Inspect the Result

Check the actual output against these observable criteria.

  • Every used editor operation has the required imported and registered capability.
  • Panning, zooming, selection, and node manipulation do not fight for the same gesture.
  • Any promised serialization or export operation is demonstrated in the actual project.

OpenDesign provides a local design workspace for coding agents. This listing does not mean the skill is bundled or that its external tools, credentials and software dependencies are included.

05 Source and License

Source and License

This page describes the pinned source revision linked below. Upstream behavior and requirements can change.

Source Owner
antvis
License
MIT
Reviewed Snapshot
2026-10-07 · a105fa12a9fa
Editorial Source Summary
An X6 v3 diagram-editor guide covering imperative node-edge construction, explicit plugin setup, gesture separation, and specialized reference retrieval.

Original summary by OpenDesign, based on the linked source. Repository stars are a dated popularity signal, not skill usage or a quality score.

06 Questions Before You Start

Questions Before You Start

Why not use G6 for the same diagram?

The source distinguishes X6's editable canvas and imperative authoring API from G6's graph-visualization workflow. Choose by the interaction users need, not only by how the picture looks.

Are panning and selection configured the same way?

No. The entry separates constructor-level interaction options from plugins such as Selection, which must be registered before their methods are used.

Does adding nodes require a separate graph.render call?

The captured X6 v3 guidance says node and edge additions render automatically and warns against borrowing graph.render from G6. Check the installed API when integrating.

OpenDesign

Make Room for the Next Design Iteration.

Keep your brief, source material and design work together in a local workspace. Check the skill’s own setup before adding it to your workflow.

Upstream Source File
https://github.com/antvis/chart-visualization-skills/blob/a105fa12a9fa41fccccc2eba7f4b34973628f5d3/skills/antv-x6-editor/SKILL.md