Commit Graph

412 Commits

Author SHA1 Message Date
Yanyan Wang
d7cab02dd7
feat: theme module (#4330)
* feat: theme module

* chore: add test for theme

* chore: move default themes into stdlibs and refine the theme to be same as v4

* chore: rebase v5 with item module

* feat: subject theme solver

* chore: typo
2023-03-20 11:27:53 +08:00
xiaoiver
8aa3618ea2
支持更多场景下的布局过渡动画 (#4345)
* feat: support transition on layouts without iterations #4339

* feat: use immediately invoked layout as a shortcut #4339

* feat: handle scenario when layout is unset in spec

* fix: disable css parsing for better performance
2023-03-14 14:51:09 +08:00
Yanyan Wang
e2158e8592
feat: edge state styles (#4357) 2023-03-14 14:48:58 +08:00
14
2d9cdb8f41
feat: add behavior controller and click-select (#4328)
* feat: add behavior controller and click-select

* fix: fix code review

---------

Co-authored-by: 14 <yisi.wys@antgroup.com>
2023-03-02 20:27:14 +08:00
xiaoiver
0f23a181db
V5 layout (#4308)
* feat: unified datachange from changeData, addData, updateData, and removeData; feat: item definition and first drawing

* feat: update canvas while addData; feat: update canvas while updateData (node); chore: unified additems, removeitems, updateitems to be itemchange hook

* feat: init layout controller

* feat: node and edge updating and drawing

* chore: neaten

* feat: draw and update labels for node and edge

* feat: icon for edge; feat: custom node and edge and register to lib

* feat: init layout controller

* fix: use latest g-webgl

* feat: layout controller should support  &  option

* fix: registry typo & add custom layout test case

* feat: state related API for graph and item

* chore: update notes

---------

Co-authored-by: Yanyan-Wang <yanyanwang93@gmail.com>
2023-03-01 14:45:57 +08:00
Yanyan Wang
875a9eb39b
feat: unified datachange from changeData, addData, updateData, and removeData; feat: item definition and first drawing (#4259)
* feat: unified datachange from changeData, addData, updateData, and removeData; feat: item definition and first drawing

* feat: update canvas while addData; feat: update canvas while updateData (node); chore: unified additems, removeitems, updateitems to be itemchange hook

* feat: node and edge updating and drawing

* chore: neaten

* feat: draw and update labels for node and edge

* feat: icon for edge; feat: custom node and edge and register to lib

* feat: state related API for graph and item

* chore: update notes

* feat: state styles for item

* chore: update tests
2023-03-01 14:21:55 +08:00
Yanyan Wang
bb82593eb8
feat: implement add remove and update API for graph data module (#4255)
* feat: implement add remove and update API for graph data module

* chore: remove IItem INode IEdge and ICombo from input and output of API in  graph

* docs: udpate temporary graph api docs
2023-02-07 10:51:02 +08:00
Yanyan Wang
6880a3aad7
chore: packages refine for v5 (#4251) 2023-02-06 14:46:57 +08:00
Yanyan Wang
df112de066
chore: behavior type generic and test; chore: update notes; (#4243) 2023-02-02 10:44:55 +08:00
Yanyan Wang
dce8ec70b8 feat: hooks for graph; feat: data and interaction controllers for the… (#4189)
* feat: hooks for graph; feat: data and interaction controllers for these two types of extensions

* chore: format notes

* perf: types refine

* feat: graph behavior apis

* feat: item and its controller

* feat: init Node Edge and Combo item

* feat: init layoutm theme, extension controllers

* feat: init Graph class

* feat: add gymnastics for behavior

* chore: behavior type generic refine

* chore: refine

* feat: complete hooks list
2023-02-02 10:32:01 +08:00
Yanyan Wang
d4b91357e6 feat: add necessary types (#4182)
* feat: add necessary types

* feat: add combo data type

* feat: add animate attribute type to graph elements

* chore: format notes
2023-02-02 10:32:01 +08:00
Yanyan-Wang
3095544cdf chore: commit history cleaning 2023-02-02 10:31:36 +08:00