Commit Graph

165 Commits

Author SHA1 Message Date
Yanyan-Wang
fb93cda45c fix: update the edges after first render with collapsed combos. 2020-06-22 13:55:00 +08:00
Yanyan-Wang
3da8396619 fix: unify the shape names for custom node and extended node 2020-06-22 13:55:00 +08:00
Yanyan-Wang
161ff7c0e8 fix: combo collapse and expand with edges problem. feat: getGroup and getContainer API for graph. fix: destroy the tooltip DOMs when destroy the graph. 2020-06-22 13:55:00 +08:00
Yanyan-Wang
c07bca9204 feat: focusItem with animation parameters related to the graph configure. docs: update the click to focus a node demo. 2020-06-10 15:19:24 +08:00
Yanyan-Wang
104e5b480f docs: register node and change the state demo. 2020-06-10 15:19:24 +08:00
Yanyan-Wang
855f1b7782 docs: update the stories for types. fix: startpoints and endpoints in modelcfg. 2020-06-09 10:21:12 +08:00
Yanyan-Wang
e25aa05696 fix: endPoint and startPoint are missing in modelConfig type; fix: edge background leads to empty canvas when the autoRotate is false. 2020-06-02 15:47:55 +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
8ba387c1d3 docs: add combo and custom combo demos for site. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
b17fa1cf7f docs: add combo middle doc. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
4b234402a9 docs: add advanced docs about registerCombo. docs: add alt for the i img tags. 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
Yanyan-Wang
8952cb4ae8 docs: add the middle docs for combo item. docs: modify the docs below node/edge/combo to introduce combo. docs: add item model properties API for convenient model configuration searching. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
b97d04e389 docs: add combo force layout API and middle doc 2020-05-21 15:24:22 +08:00
baizn
912c5cacb3 feat: add card-node 2020-05-21 15:24:22 +08:00
Yanyan-Wang
fd8511b449 fix: reconstructTree without parentId. 2020-05-21 15:24:22 +08:00
baizn
07a6d855bc feat: test combo feature 2020-05-21 15:24:22 +08:00
baizn
311460cb47 fix: add flow demo 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
Yanyan-Wang
4a0752de14 fix: combo force layout with nodespacing problem 2020-05-21 15:24:22 +08:00
Yanyan-Wang
36cad6d627 fix: keep the layout when combo is collapsed or expanded. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
09a8ff0851 feat: collapse and expand combo with adjusted layout in first stage 2020-05-21 15:24:22 +08:00
Yanyan-Wang
df46703bff feat: collapse and expand combo with show and hide items. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
94fd8f93b6 feat: collapse expand combo in first stage 2020-05-21 15:24:22 +08:00
Yanyan-Wang
5540f1993c feat: collapse expand combo in first stage 2020-05-21 15:24:22 +08:00
Yanyan-Wang
610b4dd099 feat: combo force layout with preventOverlap. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
21f58c2a71 feat: layout for combo. feat: nonoverlap for combo layout in first stage. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
ea48e70788 feat: render zindex for addItem and changeData. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
3798b476c2 feat: render zindex for combos when first render and changeData 2020-05-21 15:24:22 +08:00
Yanyan-Wang
4ee18ceeae feat: update combo tree structure for moving subtree. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
ec87457eb2 feat: registerCombo. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
71425ff9d6 feat: registerCombo in first stage 2020-05-21 15:24:22 +08:00
baizn
be0dc4c8bd fix: delete demos 2020-05-21 15:24:22 +08:00
Yanyan-Wang
9d1ff111d0 feat: layout for combo. feat: nonoverlap for combo layout in first stage. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
d1feaea737 feat: render zindex for addItem and changeData. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
8fb33d1798 feat: render zindex for combos when first render and changeData 2020-05-21 15:24:22 +08:00
Yanyan-Wang
d315338f71 feat: update combo tree structure for moving subtree. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
9b69551f5a feat: layout for combo. feat: nonoverlap for combo layout in first stage. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
ec21ebb19b feat: render zindex for addItem and changeData. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
512aa547e6 feat: render zindex for combos when first render and changeData 2020-05-21 15:24:22 +08:00
baizn
600699b302 fix: drag-combo 2020-05-21 15:24:22 +08:00
Yanyan-Wang
26e5601451 feat: update combo tree structure for moving subtree. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
a172cab65b feat: combo force layout with preventOverlap. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
4631708709 feat: layout for combo. feat: nonoverlap for combo layout in first stage. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
811f5bc18c feat: render zindex for addItem and changeData. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
711e8e41f9 feat: render zindex for combos when first render and changeData 2020-05-21 15:24:22 +08:00
baizn
da86834fc9 fix: resolve conflict 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
6f8e5877df feat: combo when graph.save. feat: uncombo. feat: remove combo. feat: focus combo. feat: update combo. 2020-05-21 15:24:22 +08:00
Yanyan-Wang
99100adb80 feat: combo controller 2020-05-21 15:24:22 +08:00
Yanyan-Wang
9e3d5bca83 test: re-run online ci. 2020-05-21 14:30:26 +08:00
Yanyan-Wang
ed2c8334d3 test: re-run online ci. 2020-05-21 14:30:26 +08:00
Yanyan-Wang
2ce92d6287 fix: TreeGraphData type with style and stateStyles. 2020-05-15 11:08:33 +08:00
Yanyan-Wang
1cf0e06826 docs: update the addChild and addItem to explain that the model will be used directly and might be modified. closes: #1550. 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
818b153384 fix: curveOffset for arc, quadratic, cubic edge. 2020-04-28 10:40:20 +08:00
Yanyan-Wang
9474111196 fix: fix the problem about fail to render the graph when the animate and fitView are true by turn off the animate for rendering temporary 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
8a85317705 test: tutorial data fetching in demo. 2020-04-22 10:57:05 +08:00
baizn
d5e5fce5de fix: 修复数据ID 2020-04-21 16:28:06 +08:00
Yanyan-Wang
eb76f84315 fix: state change to update the minimap in default and keyShape mode 2020-04-21 16:18:01 +08:00
baizn
bd88580575 fix: 修复数据问题 2020-04-21 13:34:02 +08:00
Yanyan-Wang
d575b96d48 fix: delete a data in stories. 2020-04-21 11:16:48 +08:00
Yanyan-Wang
49faf851cc fix: removeItem to update the minimap. 2020-04-16 15:59:51 +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
2d117dbad7 feat: no layout and no positions, changeData into a data with positions, show the node with positions in data. 2020-04-16 14:45:39 +08:00
Yanyan-Wang
a0360e08e8 feat: allow user to set curveOffset and curvePosition for bezier curves. 2020-04-16 14:45:39 +08:00
Yanyan-Wang
f69c574270 fix: relayout after addItem. feat: curveOffset and curvePosition for bezier curves in first stage 2020-04-16 14:45:39 +08:00
Yanyan-Wang
0a24ed36d7 docs: update the docs for dom listner. 2020-04-14 18:29:00 +08:00
baizn
7e3519c0ec fix: update typing file & tree demo 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
baizn
e2ca266e28 feat: support set the background of the label 2020-04-09 19:20:52 +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
316be7b62f feat: background color for downloadImage and toDataURL. fix: initial position for fruchterman layout. docs: update downloadImage and toDataURL docs. 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
Yanyan-Wang
0d6c8cceee feat: allow user define the grid img for grid plugin. fix: grid fills the canvas after graph changeSize. 2020-03-30 10:29:40 +08:00
ryannz
dd3d3df070 feat: add label background 2020-03-26 00:17:21 +08:00
Yanyan-Wang
a6ac63f849 fix: dagre with controlPoints and loop edges. closes: #1328. 2020-03-20 19:45:49 +08:00
Yanyan-Wang
47d7d18c03 fix: polyline with multiple nodes. closes: #1329. 2020-03-20 19:45:49 +08:00
baizn
1154a26354 fix: 修复直接使用attr修改文本属性的问题 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
Yanyan-Wang
44baf9cd8a fix: clone exceed maximum stack problem. docs: custom endArrow and startArrow for demos and docs. 2020-03-18 19:33:39 +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
baizn
124f4f1367 feat: status change 2020-03-09 22:32:09 +08:00
Yanyan-Wang
f3675a1af9 fix: resolve conflict. 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
1a3d38ef0a test: svg custom group 2020-03-09 18:18:29 +08:00
Yanyan-Wang
c19fdd3f8e fix: drag shadow caused by localRefresh. 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
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
08a12516e2 fix: dragging bug on minimap with a graph whose bbox is nagtive; fix: null matrix bug, create a unit matrix for null. fix: delete unnecessary console.log 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
Yanyan-Wang
9212710dc7 fix: minimap small view bug 2020-02-17 22:53:31 +08:00