Commit Graph

332 Commits

Author SHA1 Message Date
Yanyan-Wang
7cf61ad117 fix: grid DOM selectable and drag-canvas problem. docs: add docs about the coordinate system. 2020-07-06 11:51:07 +08:00
Yanyan-Wang
9cbaf6c4b5 fix: dulplicated edges in nodeselectchange event of brush-select 2020-07-06 11:51:07 +08:00
baizn
91ec11aed4 fix: update plugins doc 2020-07-03 23:47:26 +08:00
baizn
d004a3aab8 feat: pulgins & redo & undo docs 2020-07-03 23:47:26 +08:00
huangz
3ab2886521 test: add test case for all node 2020-06-29 13:42:14 +08:00
huangz
c0ee14707c test: add extend-circle-spec test case 2020-06-29 13:42:14 +08:00
Yanyan-Wang
c1bca220ad fix: rebase 2020-06-29 11:01:43 +08:00
Yanyan-Wang
f5eafe7f17 feat: 6 built-in arrows and 4 built-in markers. 2020-06-29 11:01:43 +08:00
Yanyan-Wang
fcad47d2b6 feat: built-in arrows and markers. 2020-06-29 11:01:43 +08:00
Yanyan-Wang
5b1ab44280 feat: built-in arrows; feat: built-in markers; 2020-06-29 11:01:43 +08:00
Yanyan-Wang
76af4f59f2 feat: adjacency matrix in Algorithm. feat: floydShall shortest path in Algorithm. 2020-06-29 11:01:43 +08:00
baizn
73be2a0e01 fix: remove toolbar container from canvas container 2020-06-24 14:05:49 +08:00
baizn
4808d78f5d fix: refactor toolbar plugins 2020-06-24 14:05:49 +08:00
baizn
b14e7da300 fix: refactor plugins 2020-06-24 14:05:49 +08:00
baizn
991cc3e828 feat: add tooltip plugins 2020-06-24 14:05:49 +08:00
baizn
34f74018d9 feat: toolbar & menu component 2020-06-24 14:05:49 +08:00
baizn
a94f5dbf79 fix: 不能设置不存在的状态 2020-06-24 14:05:49 +08:00
baizn
526c5d33ba feat: redo & undo 2020-06-24 14:05:49 +08:00
baizn
94524f0715 fix: support configuration enabled undo & redo stack, default disabled 2020-06-23 17:20:20 +08:00
baizn
c62483b19b feat: add get stack function 2020-06-23 17:20:20 +08:00
baizn
c4bcca2484 fix: remove undo & redo function, move to toolbar plugin 2020-06-23 17:20:20 +08:00
baizn
dffd9f1bc7 feat: redo & undo 2020-06-23 17:20:20 +08:00
baizn
755008f04b fix: keyshape states bug & add tree demo 2020-06-23 16:48:17 +08:00
baizn
4dba5be128 fix: update package version 2020-06-12 13:38:06 +08:00
baizn
49752c50bd fix: delete unused depsendencies 2020-06-12 10:12:28 +08:00
baizn
c0ba525674 fix:在setState方法中限制不存在的状态 2020-06-12 10:12:28 +08:00
Yanyan-Wang
b17c4c56b8 test: update the combo-force-spec. 2020-06-10 15:19:24 +08:00
Yanyan-Wang
b54dd5ada1 fix: graph disapears when it is dragged out of the view. fix: when the graph is out of the view, it can not be dragged back. fix: linkPoints size and radius problem. feat: focusItem with animation. docs: animateCfg. 2020-06-10 15:19:24 +08:00
baizn
9d521e1a35 fix: 不能设置不存在的状态 2020-06-09 13:13:42 +08:00
troy.lty
72233e8cf4 test: add test case for defaultPrevented 2020-06-09 13:12:52 +08:00
Yanyan-Wang
b00bce3519 fix: getType is not a function error occurs when addItem with point; fix: checking comboTrees avaiability; fix: error occurs when createCombo into the graph without any combos. 2020-06-02 15:47:55 +08:00
baizn
125d8cbbe5 fix: combo states 2020-06-02 14:59:35 +08:00
baizn
c193b35321 fix: combo states 2020-06-02 14:59:35 +08:00
Dobler
f8bfd80891 refactor(mds layout): replace NumericJS dependency with ml-matrix 2020-06-01 15:36:17 +08:00
Yanyan-Wang
cdb52d5487 fix: conflict. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
8db13542c2 docs: update the english version of algorithm. chore: update the variable name from vertex to node. docs: update dingtalk group code image. 2020-05-21 15:24:22 +08:00
baizn
024d930996 fix: add neighbors unit test 2020-05-21 15:24:22 +08:00
baizn
96b98d9290 feat: graph algorithm & docs 2020-05-21 15:24:22 +08:00
Yanyan-Wang
036c841bc6 test: update node-spec 2020-05-21 15:24:22 +08:00
Yanyan-Wang
aad9a9836a fix: solve conflict to master branch 2020-05-21 15:24:22 +08:00
Yanyan-Wang
ef40817d0a fix: updating node postion by updateItem does not update the parent combos. docs: update updateCombos API. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
d775564494 fix: remove the collapse icon for built-in rect combo. 2020-05-21 15:24:22 +08:00
baizn
2554247f9b feat: add Combo graph & combo docs 2020-05-21 15:24:22 +08:00
baizn
8c7550956d feat: darg combo with states 2020-05-21 15:24:22 +08:00
baizn
4a8171a104 fix: drag-node behavior supports selected states 2020-05-21 15:24:22 +08:00
baizn
31646e472a fix: drga-combo states 2020-05-21 15:24:22 +08:00
baizn
67499dd54d fix: test combo & fix uncombo 2020-05-21 15:24:22 +08:00
baizn
07a6d855bc feat: test combo feature 2020-05-21 15:24:22 +08:00
Yanyan-Wang
9067dbfc4c tests: modify force-spec to avoid add listeners before graph.render(). 2020-05-21 15:24:22 +08:00
Yanyan-Wang
53e2be3853 feat: optimize the performance of combos by terminate the traverse with some conditions. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
b357e470de test: add tests for collapse-expand combo behavior, uncombo, hide/show combo, addItem with combo, removeItem with combo. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
4c012591d6 test: add tests for comboForce layout. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
a67c1c4b56 feat: collapse expand combo to add virtual edges to represent the edges between collapsed combos. 2020-05-21 15:24:22 +08:00
baizn
600699b302 fix: drag-combo 2020-05-21 15:24:22 +08:00
baizn
527403f767 feat: add drag-combo behavior 2020-05-21 15:24:22 +08:00
baizn
ddfda472bf fix: 调整类型申明 2020-05-21 15:24:22 +08:00
Yanyan-Wang
35a958a549 feat: config the paddings and smallest size for rect and circle. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
23746b0fa0 test: update the test related to combo 2020-05-21 15:24:22 +08:00
Yanyan-Wang
37be486f7b feat: combo shape and test 2020-05-21 15:24:22 +08:00
Yanyan-Wang
d3dba51f59 feat: combo shape 2020-05-21 15:24:22 +08:00
baizn
71076b7355 feat: combo interface 2020-05-21 15:24:22 +08:00
Yanyan-Wang
f1b2dca3b5 chore: gasby version to fix the site problem. fix: graph.translate problem due to new version of G. 2020-05-15 11:08:33 +08:00
Yanyan-Wang
2907ad9c5c fix: getControlPoint with wrong controlpoints problem. docs: fix the collapsed expand symbol in customTree demo of the site. 2020-05-15 11:08:33 +08:00
Yanyan-Wang
1498699276 fix: force layout afterlayout event 2020-04-28 10:40:20 +08:00
Yanyan-Wang
cbaabb3cd9 fix: problem about switching to another applications or browser menu and then switch back, the drag-canvas does not take effect. 2020-04-28 10:40:20 +08:00
Yanyan-Wang
5c71309c27 fix: moveTo wrong logic problem. docs: update version number and CHANGELOG. 2020-04-16 14:45:54 +08:00
Yanyan-Wang
b56c83d3eb feat: downloadFullImage for full graph. 2020-04-16 14:06:22 +08:00
Yanyan-Wang
9fe366bf7f fix: delete unnecessary console.log. test: minimap spec with float numbers online. 2020-04-13 10:31:50 +08:00
baizn
905cc27ce1 fix: changeData clear states & refactor states 2020-04-13 10:31:50 +08:00
Yanyan-Wang
399e730165 fix: minimap viewport displace problem. feat: better performance of minimap. 2020-04-10 22:10:16 +08:00
ryannz
a1683f3aa8 Merge branch 'master' into feat/add-text-bg 2020-03-31 20:21:14 +08:00
Yanyan-Wang
152b4dedb3 fix: cubic with only one controlPoint error. fix: polyline without L attribute error. 2020-03-31 15:58:19 +08:00
Yanyan-Wang
6dddb7e6be refactor: clip for image. docs: update CHANGELOG 2020-03-31 15:18:23 +08:00
Yanyan-Wang
c9503a191b fix: grid zooming leads to empty space problem. 2020-03-30 10:29:40 +08:00
baizn
1c6188f1ee fix: 修复 group 多层级时的bug 2020-03-30 10:24:44 +08:00
ryannz
dd3d3df070 feat: add label background 2020-03-26 00:17:21 +08:00
baizn
024c99a66e fix: getStateStyle & clearItemStates 2020-03-20 16:54:18 +08:00
baizn
50844edf25 feat: support hiding non-keyshape elements when scaling canvas 2020-03-20 16:54:18 +08:00
baizn
c43ef7071b feat: support hiding non-keyshape elements when scaling canvas 2020-03-20 16:54:18 +08:00
Yanyan-Wang
06ba0ee634 fix: empty path string when startpoint and endpoint is nan in polyline 2020-03-19 15:43:20 +08:00
baizn
415b6693b2 fix: group bug 2020-03-17 19:04:43 +08:00
Yanyan-Wang
afa6424eb6 docs: graph.on and graph.off API 2020-03-17 17:57:35 +08:00
Yanyan-Wang
a0fec0e646 fix: switch to other tabs and than go back to the graph, drag behavior does not take effect anymore. closes: #1148. closes: #1244. 2020-03-17 17:57:35 +08:00
Yanyan-Wang
2c07d5a769 fix: changeData with rect node leads to wrong positions. closes: #1301. 2020-03-17 17:57:35 +08:00
Yanyan-Wang
1c61707132 fix: force layout parameter functions cannot read original edge properties. 2020-03-17 17:57:35 +08:00
Yanyan-Wang
73ec73fd7b fix: mouse move error when the data is empty with fitview. closes: #1026. 2020-03-17 17:57:35 +08:00
Yanyan-Wang
895c7c25d4 test: open skipped tests. 2020-03-10 12:19:09 +08:00
Yanyan-Wang
2c15f59eea fix: startpoint and endpoint for edge 2020-03-10 12:19:09 +08:00
Yanyan-Wang
8f21d9e650 test: find start and end point 2020-03-10 12:19:09 +08:00
Yanyan-Wang
442d01b787 test: polyline start and end point 2020-03-10 12:19:09 +08:00
baizn
3208a25ad0 feat: merge support svg code 2020-03-09 22:32:09 +08:00
baizn
acc37d95d9 feat: refactor states 2020-03-09 22:32:09 +08:00
baizn
48cce57ad2 feat: status change 2020-03-09 22:32:09 +08:00
baizn
6c1ae3cca4 feat: update supports all elements 2020-03-09 22:32:09 +08:00
Yanyan-Wang
61fc89c7c0 fix: delete dagre startpoint and endpoint. test: update dagre test. 2020-03-09 22:32:09 +08:00
baizn
1937a22d0e feat: refactor activate-relations behavior 2020-03-09 22:32:09 +08:00
baizn
2798390ab5 feat: refactor states 2020-03-09 22:32:09 +08:00
baizn
6f93c095e8 feat: refactor states 2020-03-09 22:32:09 +08:00
baizn
124f4f1367 feat: status change 2020-03-09 22:32:09 +08:00
Yanyan-Wang
96eefaf412 test: open some test. 2020-03-09 18:18:29 +08:00
Yanyan-Wang
4c1cc5227f fix: update g-svg to solve some todo tests. 2020-03-09 18:18:29 +08:00
Yanyan-Wang
3b2c907c15 test: avoid the different enviroment results between online and offline. 2020-03-09 18:18:29 +08:00
Yanyan-Wang
57395fc906 test: avoid the different enviroment results between online and offline. 2020-03-09 18:18:29 +08:00
Yanyan-Wang
8433826dfc feat: svg version. 2020-03-09 18:18:29 +08:00
Yanyan-Wang
1a3d38ef0a test: svg custom group 2020-03-09 18:18:29 +08:00
Yanyan-Wang
2d9c65e30c test: context menu and bundling 2020-03-09 18:18:29 +08:00
Yanyan-Wang
6f7c6f188e test: minimap and bundling 2020-03-09 18:18:29 +08:00
Yanyan-Wang
917ac20179 test: svg minimap test 2020-03-09 18:18:29 +08:00
Yanyan-Wang
938b342f93 feat: svg minimap 2020-03-09 18:18:29 +08:00
Yanyan-Wang
61b173f1a9 feat: svg TreeGraph, behaviors, items. 2020-03-09 18:18:29 +08:00
Yanyan-Wang
adb70e9aec test: behaviors tests for svg 2020-03-09 18:18:29 +08:00
Yanyan-Wang
bd1c410f86 feat: graph support svg 2020-03-09 18:18:29 +08:00
Yanyan-Wang
12f91363d3 test: delete unnecessary .only 2020-03-05 21:31:58 +08:00
Yanyan-Wang
25a3cb41ce fix: emit beforeaddchild and afteraddchild in TreeGraph. closes: #1249. 2020-03-05 21:31:58 +08:00
Yanyan-Wang
2b37a1615f fix: rendering error when a graph has image nodes and other type nodes. closes: #1271. 2020-03-05 21:31:58 +08:00
Yanyan-Wang
ca86f670e9 fix: polyline auto controlpoints problem. fix: group collapse-expand-group behavior does not response bug. fix: set capture of label for built-in nodes to true. closes: #1265. closes: #1270. closes: #1262. 2020-03-05 21:31:58 +08:00
Yanyan-Wang
881088b560 refactor: delete coveralls 2020-02-25 21:37:39 +08:00
Yanyan-Wang
36c523381c feat: automatically add draggable to keyShape, users do not need to assign it when custom a node or an edge; fix: cannot read 0 of null problem in getPointByCanvas; fix: the shape.attr error in updateShapeStyle; fix: modify the usage of bbox in view controller since the interface is changed by G; fix: brush-select bug; fix: update G version to solve lacking of removeChild problem. fix: local rendering residual when changeData is called. doc: update the demo of custom behavior doc. doc: add plugin demos and cases for site. closes: #1250; 2020-02-25 21:37:39 +08:00
Yanyan-Wang
0612399996 fix: local refresh influence on changeData; fix: brush-select bug; refactor: upgrade g-canvas to 0.3.21 to solve lacking of removeChild function. closes: #1228 2020-02-25 21:37:39 +08:00
Yanyan-Wang
8a439bc2a1 fix: local refresh influence on changeData; fix: brush-select bug; refactor: upgrade g-canvas to 0.3.21 to solve lacking of removeChild function. closes: #1228 2020-02-25 21:37:39 +08:00
Yanyan-Wang
683a3ac746 fix: enhance coverage 2020-02-19 10:45:34 +08:00
Yanyan-Wang
c0c449bb35 fix: minimap delegate and keyShape bug. fix: null matrix of getLoopCfgs. 2020-02-17 22:53:31 +08:00
vellengs
239cafac1c Update graph-spec.ts 2020-02-17 22:50:45 +08:00
vellengs
349b617e7e Update graph-spec.ts 2020-02-17 22:50:45 +08:00
xieyunqi
da5a70829c fix:wrong spell and eslint 2020-02-17 22:50:45 +08:00
Yanyan-Wang
0a7251530d fix: enhance coverage 2020-02-14 18:01:36 +08:00
Yanyan-Wang
875781c3d4 fix: delete unnecessary import 2020-02-14 14:22:58 +08:00
Yanyan-Wang
473699fa3a fix: edge label auto rotate with endArrow bug. test: edge label auto rotate with zooming and moving 2020-02-14 14:22:58 +08:00
chenshuai2144
d8f5fe7d9b chore: prettier all code 2020-02-14 11:30:12 +08:00
Yanyan-Wang
9410e27d38 fix: enhance the coverage 2020-02-13 18:10:26 +08:00
Yanyan-Wang
f940b2496d fix: enhance the coverage 2020-02-13 18:10:26 +08:00
vellengs
f416d81de7 Update mode-spec.ts 2020-02-13 14:46:48 +08:00
vellengs
a760197fa9 Update mode-spec.ts 2020-02-13 14:46:48 +08:00
Yanyan-Wang
237049fb55 test: enhance the coverage 2020-02-12 21:44:55 +08:00
Yanyan-Wang
bf12dbcd99 test: enhance the coverage 2020-02-12 21:44:55 +08:00
Yanyan-Wang
ecd7505872 fix: moveTo bug. fix: site buttons closes: #1210 2020-02-12 21:44:55 +08:00
Yanyan-Wang
ba086f375f fix: compatibility for G6 3.3 2020-02-12 09:43:00 +08:00
Yanyan-Wang
5f0c12ed6e add: tutorial demo to stories. fix: flow demo problem in stories 2020-02-10 20:35:03 +08:00
Yanyan-Wang
d49a7feedc fix: update g to new view and deal with canvas draggable. fix: readable for fruchterman from pr #1166 2020-02-10 20:35:03 +08:00
baizn
6d2b08cf74 fix: refactor TS eslint 2020-02-10 14:06:49 +08:00
Yanyan-Wang
3249f4f6e4 fix: optimize the performance 2020-02-10 10:15:25 +08:00
Yanyan-Wang
18588febcc feat: site for G 3.3 2020-02-10 10:11:14 +08:00
Yanyan-Wang
f095a89696 test: plugin import in tests 2020-02-07 20:18:29 +08:00
Yanyan-Wang
4312e556e0 fix: import g6 for webworker in circular-web-worker-spec 2020-02-07 18:52:42 +08:00
Yanyan-Wang
4161634f62 fix: import G6.min in test problem 2020-02-07 18:52:42 +08:00
Yanyan-Wang
bedc7e5b35 update: version number to beta.7 2020-02-07 18:52:42 +08:00
Yanyan-Wang
8d59571693 fix: webworker postMessage parameter ts type in force layout 2020-02-07 12:11:28 +08:00
Yanyan-Wang
8a3db1d234 fix: temporally set the second parameter for postMessage to be undefined in force layout with webworker 2020-02-07 12:11:28 +08:00
Yanyan-Wang
93946287d4 fix: brush-select bug 2020-02-05 14:21:30 +08:00
baizn
f304d8ae74 feat: update g version 2020-01-16 20:40:33 +08:00