Skip to content

Releases: graph-cn/flutter_graph_view

v1.1.2

16 Sep 17:23
Compare
Choose a tag to compare
  • feat: support specifying legends and legend text build.

    example

    Options()
        ..legendBuilder = (color, i) { // default
            return RectangleComponent.fromRect(
                Rect.fromLTWH(40, 50.0 + 30 * i, 30, 18),
                paint: Paint()..color = color,
            );
        }
        ..legendTextBuilder = (tag, i, color, position) { // default
            return TextComponent(
                text: tag,
                position: Vector2(position.x + 40, position.y - 6),
                // position: Vector2(position.x + 40, position.y - 2),
                // textRenderer: TextPaint(
                //   style: TextStyle(
                //     fontSize: 17.0,
                //     color: Colors.white,
                //   ),
                // ),
            );
        }

Full Changelog: v1.1.1...v1.1.2

v1.1.1

26 Jul 23:05
Compare
Choose a tag to compare

What's Changed

Features

  • feat: make opacity configurable for vertex and edge. options.hoverOpacity
  • perf: adjusting the parameters of the decorators.
  • feat: add a decorator for the anti Coulomb force rule.
  • feat add a choice to HookeBorderDecorator, to control the border of the graph.
  • feat: support specifying vertex text style.
  • interface change: add a graph parameter to DataConvertor.convertGraph

    接口变更:为 convertGraph 添加一个graph参数

  • feat: add interface to GraphComponent: addVertex, addEdge, mergeGraph
  • feat: add implementation of PersistenceDecorator to store position of vertex. (#10 #11, via: @jersonal-com )
  • feat: support zooming through gestures.

Bugfix

  • fix: make CoulombCenterDecorator a usable decorator.
  • fix: vertex text style background not working.
  • fix: prevent the addition of duplicate data.
  • fix usage of both Scale and Pan on mobile platforms. ( #12, via: @muknta )

New Contributors

Full Changelog: v1.0.0...v1.1.1

v1.0.0

01 Apr 21:23
Compare
Choose a tag to compare

Full Changelog: v0.3.0...v1.0.0

v0.3.0

31 Mar 06:17
Compare
Choose a tag to compare

Full Changelog: v0.2.2+1...v0.3.0

v0.2.2+1

27 Mar 07:06
Compare
Choose a tag to compare

Full Changelog: v0.0.2...v0.2.2+1

v0.0.2

05 Apr 13:33
Compare
Choose a tag to compare

0.0.2

  • feat: enable decorator for vertex.

    • Remove the breath effect. To use the breath effect, please pass in BreatheDecorator() when creating the GraphAlgorithm object, such as:
    FlutterGraphWidget(
        ...
        algorithm: ForceDirected(BreatheDecorator()),
        ...
    )
  • feat: adding custom properties to vertex components helps the algorithm create more effects.

  • dependency: upgrade flame from 1.6.0 to 1.7.0


  • 特性:启用节点操作算法装饰器,可以多个操作算法以装饰模式的方式进行复合
    • 移除原有的呼吸特效,如需保持原有的呼吸特性,可以在创建 FlutterGraphWidget 时,使用如下写法:
    FlutterGraphWidget(
        ...
        algorithm: ForceDirected(BreatheDecorator()),
        ...
    )
    
  • 特性:为节点组件追加可以自定义的属性,帮助算法实现更多特效
  • 依赖:升级flame版本至 1.7.0

v0.0.1+10

08 Feb 06:44
Compare
Choose a tag to compare
  • feat: support multi line between two vertexes.
  • enhance: optimized edge experience.
    • hover height 1->3
    • edge highlight when component hovered.
      image

v0.0.1+9

01 Feb 21:01
Compare
Choose a tag to compare
  • feat: create random color for tag.
  • feat: add legend in graph.
    image

v0.0.1+8

30 Jan 00:13
Compare
Choose a tag to compare
  • feat(convert): cache the edge names and vertex tags in graph.
  • feat: support customize background.
  • feat(options style): support assigning colors to vertexes through tags (name or index).

v0.0.1+7

29 Jan 04:38
Compare
Choose a tag to compare
  • feat: supported customize vertex ui.
  • feat: supported customize edge ui.