Skip to content

v2.1.0

Latest

Choose a tag to compare

@CorvusYe CorvusYe released this 16 Dec 06:53
· 19 commits to main since this release

What's Changed

Pub v2.1.0

  • doc: the first complete documentation for using the markdown format. Contributed by @NoachDev #31

    首份完整的markdown格式的使用文档

  • 4 feats contributed by @NoachDev #31

    • A new vertex shape for the graph: VertexDiamondShape(8f42cca)
    • Individually scalable vertex sizes
    • Solid colors
    • Scalable loop arc edges
  • 1 fix and 1 feat contributed by @sealoyal #30

    • fix: edge self connection cannot apply edge decorator.

      边自连接无法应用边装饰器

    • feat: a new edge decorator for label support.

      新增边标签显示装饰器

      options
          ..edgeShape = EdgeLineShape(
              decorators: [
                  LabelEdgeDecorator(),
              ],
          )
  • feat: support obtaining the center position of edges.

  • feat: support for setting the edge text renderer.

    支持设置边的文本内容及渲染器

    options
        ..edgeTextGetter = (e) {// default to e.ranking
          return '${e.ranking}';
        }
        ..edgeShape = EdgeLineShape(
          textRenderer: EdgeTextRendererImpl(),
        )

Pub v2.0.2+1

  • fix: the issue of incorrect rendering when calling setState from the outside

    修复从外部setState时无法正常渲染的问题

  • fix: the issue where the data panel is still initialized even if the vertex is not tapUp

    修复当节点未点击,但数据面板依然被初始化的问题

Pub 2.0.2

  • feat: in the VertexShape, add new callback functions onLoad, onDrag, onPointerUp, and onPointerDown.

    在实现VertexShape时,增加onLoadonDragonPointerUponPointerDown回调以实现个性化的事件响应。

  • fix: the text wrapping issue in VertexTextRendererImpl

    修复 VertexTextRendererImpl 段落长度与实际文本长度不符导致换行的问题。

Pub 2.0.1

  • deprecated: DreatheDecorator

    废弃节点上下浮动的呼吸特效

  • feat: Ensure that the graph object is not null and supports external specification.

    确保 graph 对象不为空,且支持从外部指定

Pub v2.0.0

  • perf: remove duplicate method calls.

    针对 ForceDecorator 的子类,移除super.compute避免重复执行

  • refac: replace flame with canvas

    使用原生画布来替代 flame

Warning(注意事项)

Due to the destructive changes made to most APIs that are incompatible with 1.x, please upgrade from 1.x with caution. However, if there are performance issues due to excessive data volume in the project, please do not hesitate to upgrade to 2.x, even if it requires a certain amount of work.

由于多数 API 产生了破坏性的改动,与 1.x 不兼容,请谨慎从 1.x 中升级,但如果项目中因数据量过大,遇到了性能问题,请毫不犹豫升级到 2.x,即使需要一定工作量。


Pub v1.2.1

  • feat: add a decorator for counting

    新增一个计数用的装饰器

  • fix: the issue of font and size not displaying properly.

    修复字体跟字号无法正常显示的问题

New Contributors

Full Changelog: v1.2.0...2.1.0