Skip to content

Releases: antvis/X6

3.1.1

05 Dec 09:53
d1a9380

Choose a tag to compare

What's Changed

Full Changelog: 3.1.0...v3.1.1

3.1.0

02 Dec 01:36
aaafad9

Choose a tag to compare

What's Changed

  • chore: correct gh-pages about auto synchronize site by @GaoFuhong in #4916
  • fix(examples/er): 优化er相关safari的兼容性表现 by @Totoro-jam in #4906
  • fix(edge): safari中marker标记不渲染的判断更新并增加针对safari兼容的test by @Totoro-jam in #4921
  • fix: remove cells error with history plugin by @GaoFuhong in #4927
  • docs: update x6-shape 3.x by @GaoFuhong in #4929
  • feat: add virtual options and support react/vue/angular shape nodes virtual render by @GaoFuhong in #4935
  • chore: publish 3.1.0 by @GaoFuhong in #4938

Full Changelog: v3.0.1...3.1.0

@antv/x6 3.0.1

22 Nov 13:57
7b34150

Choose a tag to compare

重大变更

  • 插件整合:所有 @antv/x6-plugin-xxxx 包并入主包并统一导出,原有 graph.use(new Xxx()) 用法保持不变,仅需替换导入路径(参见 src/plugin/index.ts:1-11)。
  • 动画 API:移除 2.x 的 transition 用法,引入全新的动画系统 animate,支持命令式/配置式/自定义 Shape 动效(参见 src/model/animation/animation.ts:10-21, src/model/animation/index.ts:1-8)。
  • 交互默认值调整:画布平移 panning 默认开启;当使用 Scroller 时为避免交互冲突,默认禁用画布 panning(参见文档 site/docs/tutorial/update.zh.md:69-71)。

功能增强

  • 虚拟渲染能力:在大图场景可开启 virtual: true,仅渲染可视区域并自动加入缓冲边距以提升性能(参见 src/graph/virtual-render.ts:94-106;示例见 site/examples/showcase/practices/demo/virtualRender.ts:7-15)。
  • 动画系统:提供 AnimationKeyframeEffectAnimationManager,支持播放、暂停、反向、速率调整与完成/取消事件(参见 src/model/animation/animation.ts:75-144, src/model/animation/animationManager.ts:3-19, src/model/animation/index.ts:1-8)。
  • 插件统一导出:ClipboardDndExportHistoryKeyboardSelectionMiniMapScrollerStencilSnaplineTransform 统一从 @antv/x6 导出(参见 src/plugin/index.ts:1-11)。

优化

  • 交互体验:panning 默认开启,Selection 在与 panning 触发冲突时具备更合理的优先级(参见 site/docs/tutorial/update.zh.md:69-71)。
  • 虚拟渲染性能:滚动/平移/缩放事件节流控制与渲染区域动态扩展(固定边距 120px)(参见 src/graph/virtual-render.ts:15-18,99-103)。

迁移指南

  1. 升级依赖:

    {
      "dependencies": {
        "@antv/x6": "^3.0.0"
      }
    }
  2. 移除旧插件依赖:@antv/x6-plugin-selection@antv/x6-plugin-transform@antv/x6-plugin-scroller@antv/x6-plugin-keyboard@antv/x6-plugin-history@antv/x6-plugin-clipboard@antv/x6-plugin-snapline@antv/x6-plugin-dnd@antv/x6-plugin-minimap@antv/x6-plugin-stencil@antv/x6-plugin-export(参见 site/docs/tutorial/update.zh.md:30-43)。

  3. 替换导入路径:

    // 2.x
    import { Scroller } from '@antv/x6-plugin-scroller'
    import { Selection } from '@antv/x6-plugin-selection'
    graph.use(new Scroller())
    graph.use(new Selection())
    
    // 3.x
    import { Scroller, Selection } from '@antv/x6'
    graph.use(new Scroller())
    graph.use(new Selection())
  4. 动画迁移:将 2.x 的 transition 用法迁移至 3.x 的 animate 能力,参考动画文档与 API(参见 site/docs/tutorial/update.zh.md:61-66)。

  5. 配置检查:

    • 若需要关闭画布平移,显式设置 panning: false
    • 使用 Scroller 时可开启 virtual: true 以优化大图渲染。

v2.19.0 [Deprecated]

20 Oct 11:01
6701982

Choose a tag to compare

2.19.0 (2025-10-20)

Bug Fixes

Read more

@antv/[email protected]

05 Jul 05:46

Choose a tag to compare

@antv/[email protected]

23 Mar 01:53
632b7dc

Choose a tag to compare

@antv/x6-sites 1.7.0 (2023-03-23)

Bug Fixes

Features

@antv/[email protected]

19 Mar 01:36
44a5cfd

Choose a tag to compare

@antv/x6-devtool 1.0.0 (2023-03-19)

Bug Fixes

Features

@antv/[email protected]

06 Mar 03:55
5d68501

Choose a tag to compare

@antv/x6-sites 1.6.6 (2023-03-06)

@antv/[email protected]

02 Mar 09:47
2685e33

Choose a tag to compare

@antv/x6 2.5.2 (2023-03-02)

Bug Fixes

  • add excludeShapes options for manhattan router (#3334) (c76a23b)

This release is also available on:

@antv/[email protected]

02 Mar 09:47
2685e33

Choose a tag to compare

@antv/x6-sites 1.6.5 (2023-03-02)

Bug Fixes

  • add excludeShapes options for manhattan router (#3334) (c76a23b)