Skip to content

Releases: antvis/X6

3.1.7

Choose a tag to compare

@GaoFuhong GaoFuhong released this 18 Mar 08:02
2c46438

What's Changed

New Contributors

Full Changelog: 3.1.6...v3.1.7

3.1.6

Choose a tag to compare

@GaoFuhong GaoFuhong released this 04 Feb 10:13
f83961f

What's Changed

Full Changelog: v3.1.5...3.1.6

3.1.5

Choose a tag to compare

@GaoFuhong GaoFuhong released this 27 Jan 12:40
93d6eb1

What's Changed

Full Changelog: v3.1.4...v3.1.5

3.1.4

Choose a tag to compare

@GaoFuhong GaoFuhong released this 31 Dec 08:21
b4ee03a

What's Changed

Full Changelog: 3.1.3...v3.1.4

3.1.3

Choose a tag to compare

@GaoFuhong GaoFuhong released this 19 Dec 12:30
c431583

What's Changed

  • fix: correct distance compute method of snap.anchor.bbox by @GaoFuhong in #4970
  • fix: edit node text with textWrap by @GaoFuhong in #4973
  • fix: 解决连线vertices工具removeRedundancies设置为false时,hisitory失效、mouseup事件无法冒泡到连线的问题,并在examples中增加相应示例 by @linkun-wang in #4888
  • fix(stencil plugin): stencil graph height adaptive after search and optimize some tests by @GaoFuhong in #4975

3.1.1

Choose a tag to compare

@GaoFuhong GaoFuhong released this 05 Dec 09:53
d1a9380

What's Changed

Full Changelog: 3.1.0...v3.1.1

3.1.0

Choose a tag to compare

@hustcc hustcc released this 02 Dec 01:36
aaafad9

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

Choose a tag to compare

@GaoFuhong GaoFuhong released this 22 Nov 13:57
7b34150

重大变更

  • 插件整合:所有 @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]

Choose a tag to compare

@GaoFuhong GaoFuhong released this 20 Oct 11:01
6701982

2.19.0 (2025-10-20)

Bug Fixes

Read more

@antv/x6@2.11.3

Choose a tag to compare

@NewByVector NewByVector released this 05 Jul 05:46
@antv/x6@2.11.3