Commit Graph

170 Commits

Author SHA1 Message Date
Yanyan-Wang
aa27cc4e11 feat: new version of basic styles for light version; feat: shortcuts-call behavior for calling a Graph function by shortcuts; docs: update the docs for new feature; docs: demos for more interactions 2020-11-12 21:41:35 +08:00
Yanyan-Wang
93973b80dc feat: basic style(light version) for edges and combos 2020-11-11 19:34:56 +08:00
Yanyan-Wang
7f2a28dd19 feat: new color palatte(light version) for nodes 2020-11-11 19:34:56 +08:00
zuiidea
5b5899dc5f fix: custom node "pieChart" demo
large arc flag and the y coordinate of the end position are wrong
2020-11-06 20:09:14 +08:00
shiwu
03e5aaff6d docs: fix the error description for clustering force layout 2020-10-28 16:24:18 +08:00
shiwu
e1072066ac feat: drag the viewport of the minimap out of the the view 2020-10-28 16:00:23 +08:00
shiwu
87ab7cc9ce docs: update the custom edge and node docs and add an demo for custom edge with extra shape 2020-10-26 15:08:06 +08:00
shiwu
40f376b97b docs: update getContent parameter type for contextMenu and tooltip 2020-10-26 15:08:06 +08:00
baizn
5533de189d fix: 同步文档及demo 2020-10-10 18:01:46 +08:00
baizn
7b9234a164 fix: timebar docs 2020-10-10 17:21:58 +08:00
baizn
c547f61781 fix: slice time error 2020-09-24 15:15:22 +08:00
baizn
c249f41a76 fix: modelrect & jsx-node 2020-09-24 11:21:09 +08:00
Dominic Ming
cc69c10864 feat: jsx node extend config support and next style (#2092)
* feat: register node from xml string or xml string genrator

* feat: add register xml node to interface and stroy book

* fix: merge register to node & basic props back to shape options

* fix: delete unused static function on shape

* feat: xml node update when setState

* feat: simple template renderer on xml

* feat: simple template renderer on xml

* fix: xml node update state style error

* chore: remove lodash dependency

* fix: remove xml html node after compile

* feat: support loose json and object wrapped with {{ }}

* feat: add test for new xml parser

* feat: using style from cfg into xml node

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* feat: register node from xml string or xml string genrator

* feat: add register xml node to interface and stroy book

* fix: merge register to node & basic props back to shape options

* fix: delete unused static function on shape

* feat: xml node update when setState

* feat: simple template renderer on xml

* feat: simple template renderer on xml

* fix: xml node update state style error

* chore: remove lodash dependency

* fix: remove xml html node after compile

* feat: support loose json and object wrapped with {{ }}

* feat: add test for new xml parser

* feat: using style from cfg into xml node

* fix: xml node state style not correct (#1916)

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* fix: update & state

* fix: {{}} replace bug and only keyshape inherit origin attrs

* lint: fix line problem in xml

* fix: xml node parse error and origin style only used on keyshape (#1942)

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* fix: {{}} replace bug and only keyshape inherit origin attrs

* lint: fix line problem in xml

* fix: test xml node

* fix: fix image node problem

* doc: add xml node examples

* feat: add jsx key for node extend

* feat: add next key to keep shape display inline

* fix: xml json parse bug cause boolean not supported

* fix: lint problem

* fix: coveage fix

Co-authored-by: Moyee <576375879@qq.com>
2020-09-24 11:21:09 +08:00
baizn
7a6951b719 fix: modelrect & jsx-node 2020-09-24 11:21:09 +08:00
Dominic Ming
fe4b55969f feat: jsx node extend config support and next style (#2092)
* feat: register node from xml string or xml string genrator

* feat: add register xml node to interface and stroy book

* fix: merge register to node & basic props back to shape options

* fix: delete unused static function on shape

* feat: xml node update when setState

* feat: simple template renderer on xml

* feat: simple template renderer on xml

* fix: xml node update state style error

* chore: remove lodash dependency

* fix: remove xml html node after compile

* feat: support loose json and object wrapped with {{ }}

* feat: add test for new xml parser

* feat: using style from cfg into xml node

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* feat: register node from xml string or xml string genrator

* feat: add register xml node to interface and stroy book

* fix: merge register to node & basic props back to shape options

* fix: delete unused static function on shape

* feat: xml node update when setState

* feat: simple template renderer on xml

* feat: simple template renderer on xml

* fix: xml node update state style error

* chore: remove lodash dependency

* fix: remove xml html node after compile

* feat: support loose json and object wrapped with {{ }}

* feat: add test for new xml parser

* feat: using style from cfg into xml node

* fix: xml node state style not correct (#1916)

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* fix: update & state

* fix: {{}} replace bug and only keyshape inherit origin attrs

* lint: fix line problem in xml

* fix: xml node parse error and origin style only used on keyshape (#1942)

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* fix: {{}} replace bug and only keyshape inherit origin attrs

* lint: fix line problem in xml

* fix: test xml node

* fix: fix image node problem

* doc: add xml node examples

* feat: add jsx key for node extend

* feat: add next key to keep shape display inline

* fix: xml json parse bug cause boolean not supported

* fix: lint problem

* fix: coveage fix

Co-authored-by: Moyee <576375879@qq.com>
2020-09-24 11:20:02 +08:00
baizn
8e2f2917f8 fix: modelrect & jsx-node 2020-09-24 11:19:03 +08:00
Dominic Ming
c1080f2e3b feat: jsx node extend config support and next style (#2092)
* feat: register node from xml string or xml string genrator

* feat: add register xml node to interface and stroy book

* fix: merge register to node & basic props back to shape options

* fix: delete unused static function on shape

* feat: xml node update when setState

* feat: simple template renderer on xml

* feat: simple template renderer on xml

* fix: xml node update state style error

* chore: remove lodash dependency

* fix: remove xml html node after compile

* feat: support loose json and object wrapped with {{ }}

* feat: add test for new xml parser

* feat: using style from cfg into xml node

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* feat: register node from xml string or xml string genrator

* feat: add register xml node to interface and stroy book

* fix: merge register to node & basic props back to shape options

* fix: delete unused static function on shape

* feat: xml node update when setState

* feat: simple template renderer on xml

* feat: simple template renderer on xml

* fix: xml node update state style error

* chore: remove lodash dependency

* fix: remove xml html node after compile

* feat: support loose json and object wrapped with {{ }}

* feat: add test for new xml parser

* feat: using style from cfg into xml node

* fix: xml node state style not correct (#1916)

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* fix: update & state

* fix: {{}} replace bug and only keyshape inherit origin attrs

* lint: fix line problem in xml

* fix: xml node parse error and origin style only used on keyshape (#1942)

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* fix: {{}} replace bug and only keyshape inherit origin attrs

* lint: fix line problem in xml

* fix: test xml node

* fix: fix image node problem

* doc: add xml node examples

* feat: add jsx key for node extend

* feat: add next key to keep shape display inline

* fix: xml json parse bug cause boolean not supported

* fix: lint problem

* fix: coveage fix

Co-authored-by: Moyee <576375879@qq.com>
2020-09-24 11:16:59 +08:00
baizn
9981f8dac6 fix: modelrect & jsx-node 2020-09-24 11:16:31 +08:00
Dominic Ming
c356e9d804 feat: add docs and jsx option in register (#2126)
* feat: register node from xml string or xml string genrator

* feat: add register xml node to interface and stroy book

* fix: merge register to node & basic props back to shape options

* fix: delete unused static function on shape

* feat: xml node update when setState

* feat: simple template renderer on xml

* feat: simple template renderer on xml

* fix: xml node update state style error

* chore: remove lodash dependency

* fix: remove xml html node after compile

* feat: support loose json and object wrapped with {{ }}

* feat: add test for new xml parser

* feat: using style from cfg into xml node

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* feat: register node from xml string or xml string genrator

* feat: add register xml node to interface and stroy book

* fix: merge register to node & basic props back to shape options

* fix: delete unused static function on shape

* feat: xml node update when setState

* feat: simple template renderer on xml

* feat: simple template renderer on xml

* fix: xml node update state style error

* chore: remove lodash dependency

* fix: remove xml html node after compile

* feat: support loose json and object wrapped with {{ }}

* feat: add test for new xml parser

* feat: using style from cfg into xml node

* fix: xml node state style not correct (#1916)

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* fix: update & state

* fix: {{}} replace bug and only keyshape inherit origin attrs

* lint: fix line problem in xml

* fix: xml node parse error and origin style only used on keyshape (#1942)

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* fix: {{}} replace bug and only keyshape inherit origin attrs

* lint: fix line problem in xml

* fix: test xml node

* fix: fix image node problem

* doc: add xml node examples

* feat: add jsx key for node extend

* feat: add next key to keep shape display inline

* fix: xml json parse bug cause boolean not supported

* fix: lint problem

* fix: coveage fix

* feat: update jsx node example and doc

Co-authored-by: Moyee <576375879@qq.com>
2020-09-24 11:16:31 +08:00
Dominic Ming
581f7c8637 feat: jsx node extend config support and next style (#2092)
* feat: register node from xml string or xml string genrator

* feat: add register xml node to interface and stroy book

* fix: merge register to node & basic props back to shape options

* fix: delete unused static function on shape

* feat: xml node update when setState

* feat: simple template renderer on xml

* feat: simple template renderer on xml

* fix: xml node update state style error

* chore: remove lodash dependency

* fix: remove xml html node after compile

* feat: support loose json and object wrapped with {{ }}

* feat: add test for new xml parser

* feat: using style from cfg into xml node

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* feat: register node from xml string or xml string genrator

* feat: add register xml node to interface and stroy book

* fix: merge register to node & basic props back to shape options

* fix: delete unused static function on shape

* feat: xml node update when setState

* feat: simple template renderer on xml

* feat: simple template renderer on xml

* fix: xml node update state style error

* chore: remove lodash dependency

* fix: remove xml html node after compile

* feat: support loose json and object wrapped with {{ }}

* feat: add test for new xml parser

* feat: using style from cfg into xml node

* fix: xml node state style not correct (#1916)

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* fix: update & state

* fix: {{}} replace bug and only keyshape inherit origin attrs

* lint: fix line problem in xml

* fix: xml node parse error and origin style only used on keyshape (#1942)

* feat: using style from cfg into xml node

* fix: node style not rollback with the style

* fix: remove unused var

* feat: xml node using single-node setState methods

* fix: {{}} replace bug and only keyshape inherit origin attrs

* lint: fix line problem in xml

* fix: test xml node

* fix: fix image node problem

* doc: add xml node examples

* feat: add jsx key for node extend

* feat: add next key to keep shape display inline

* fix: xml json parse bug cause boolean not supported

* fix: lint problem

* fix: coveage fix

Co-authored-by: Moyee <576375879@qq.com>
2020-09-24 11:16:31 +08:00
Yanyan-Wang
eacc80a078 fix: toolbar positions for slice timebar. 2020-09-24 11:08:10 +08:00
baizn
20b098d15d feat: add timebar examples 2020-09-24 11:08:10 +08:00
Yanyan-Wang
540fbcf8a5 fix: toolbar positions for slice timebar. 2020-09-24 11:08:10 +08:00
baizn
c944186cab feat: add timebar examples 2020-09-24 11:08:10 +08:00
Yanyan-Wang
9a1993cbfa fix: treeGraph render with addItem and stack problem, closes: #2084; docs: complete the Event API docs. 2020-09-18 20:58:57 +08:00
Yanyan-Wang
e649582d1b feat: edge filter lens. 2020-09-18 20:58:57 +08:00
Yanyan-Wang
0b87f16f45 fix: toolbar redo undo addItem with type problem, closes #2043; fix: optimized drag-canvas with hidden items; fix: state style with 0 value problem, closes: #2039; feat: fisheye allows user to config the trigger of scaling range(r) and magnify factor(d) by scaleRBy and scaleDBy respectively; feat: add the percent text of magnify factor(d) for fisheye and users are allowed to configure it by show showDPercent.fix: layout with webworker leads to twice beforelayout, closes: #2052. 2020-09-14 10:59:09 +08:00
Yanyan-Wang
2cac425437 docs: update tooltip demos. 2020-09-03 19:46:08 +08:00
Yanyan-Wang
a1554f3e20 fix: hide the tooltip plugin when drag node and contextmenu, closes #1975; fix: processParellelEdges without edge id problem; fix: label background with left, right position problem, closes #1861; fix: create-edge and redo undo problem, closes #1976. 2020-09-03 16:53:32 +08:00
Yanyan-Wang
17567b37bf docs: update the url of docs. 2020-09-03 00:14:10 +08:00
Yanyan-Wang
eb7557773d docs: update the docs url in demos. docs: fix the ordering problem of docs. 2020-09-03 00:14:10 +08:00
chenluli
f7d6a5d644 fix: docs for getConnectedComponents;fix:example title for create edge 2020-08-26 22:10:04 +08:00
Yanyan-Wang
5726004440 docs: update create edge demo with linkCenter 2020-08-25 15:02:25 +08:00
baizn
59ec5803b7 feat: docs & demos of chart node 2020-08-25 14:31:10 +08:00
Yanyan-Wang
f3a111d708 chore: update chart-node-g6 2020-08-25 10:44:49 +08:00
Yanyan-Wang
93ca3d77b6 docs: update bubble set example. docs: update changelog and version number. 2020-08-25 10:44:49 +08:00
Yanyan-Wang
2fab49aab2 docs: update xml node demo. 2020-08-25 10:44:49 +08:00
Yanyan-Wang
bbc5172a95 feat: getChartRegion Util for chart node. 2020-08-25 10:44:49 +08:00
Yanyan-Wang
a5117c3458 docs: add xml node demo for site 2020-08-25 10:44:49 +08:00
chenluli
b351a06a1b docs: add examples for hull 2020-08-24 19:17:01 +08:00
Yanyan-Wang
4670a751ed fix: drop a node onto a sub node of a combo. closes: #1828 2020-08-22 22:40:38 +08:00
Yanyan-Wang
5c2a82e49c docs: update the screenshot for create-edge demo 2020-08-22 22:40:38 +08:00
Yanyan-Wang
1ae908ed74 feat: click and drag to create an edge by create-edge behavior; process multiple parallel edges to quadratic with proper curveOffset. 2020-08-22 22:40:38 +08:00
zchuhyy
5743df8494 Update index.ts
demo中 https://g6.antv.vision/zh/examples/case/decisionTree

第一次点击根节点的使得节点全部collapsed的时候, TextShape的text还是‘-’, 但理论上说应该为‘+’。
2020-08-20 17:32:29 +08:00
afc163
dc2c6c6043 style: fix eslint bugs 2020-08-17 18:50:55 +08:00
baizn
9d74606420 fix: update docs 2020-08-14 09:54:53 +08:00
baizn
9e70ef5c84 feat: add statistical chart nodes 2020-08-14 09:54:53 +08:00
baizn
071ce303b7 fix: use G6 marker 2020-08-12 17:50:46 +08:00
baizn
eff8fd0f4b feat: upgrade g-canvas 2020-08-12 17:50:46 +08:00
Yanyan-Wang
cc225bbeed fix: tooltip plugin position problem. fix: tooltip plugin for node and edge, shouldUpdate. fix: destroy graph with tooltip behavior. fix: context menu plugin with clickHandler problem and shouldUpdate, itemTypes. 2020-08-11 16:16:16 +08:00