Commit Graph

5190 Commits

Author SHA1 Message Date
Aaron
77558e76a5
feat: support specific and set cursor (#6160)
Co-authored-by: antv <antv@antfin.com>
2024-08-09 16:02:14 +08:00
Aaron
e7b38ebe3b
fix: fix setVisibility util (#6158)
* refactor: omit visibility from element to sub shape

* fix(utils): refactor setVisibility

---------

Co-authored-by: antv <antv@antfin.com>
2024-08-09 16:02:04 +08:00
Aaron
aae7a1638d
fix(behaviors): fix click-select lost preset states (#6161)
Co-authored-by: antv <antv@antfin.com>
2024-08-09 16:01:44 +08:00
Aaron
0f03fe4c23
fix(behaviors): fix drag-canvas event listener type (#6153)
Co-authored-by: antv <antv@antfin.com>
2024-08-08 15:00:37 +08:00
Yuxin
3aa9bbbfa2
fix: fix issue for null values in the alignFields util (#6152) 2024-08-08 11:19:32 +08:00
Aaron
117d4513bf
chore: update version (#6148)
Co-authored-by: antv <antv@antfin.com>
2024-08-07 15:54:21 +08:00
Aaron
a1a8d01087
fix(plugins): wont show tooltip when target element is to be destroyed (#6147)
Co-authored-by: antv <antv@antfin.com>
2024-08-07 15:34:05 +08:00
Yuxin
858a713dd4
feat: add decision tree demo (#6139)
* feat: add decision tree demo

* fix: fix ci issue

* refactor: bring element to front before collapse

* fix: fix cr issues

* fix: use getNodeLikeDatum
2024-08-07 15:31:36 +08:00
Aaron
f5311dd43b
fix(behaviors): fix drag canvas unbind event (#6146)
Co-authored-by: antv <antv@antfin.com>
2024-08-07 14:20:08 +08:00
Aaron
c943ab5d9e
refactor: improve site docs (#6133)
* docs: add faq

* refactor: adjust site version ref

* docs: improve faq

---------

Co-authored-by: antv <antv@antfin.com>
2024-08-07 10:55:36 +08:00
Aaron
bf41d079f4
fix: destroy shape after change icon type (#6142)
Co-authored-by: antv <antv@antfin.com>
2024-08-07 10:25:47 +08:00
Aaron
6de9cceb4f
refactor(layout): optimize tree enter layout (#6141)
Co-authored-by: antv <antv@antfin.com>
2024-08-07 10:24:45 +08:00
Yuxin
c98d3508c5
feat: add mindmap demo (#6132)
* feat: add mindmap demo

* refactor: set ports to mindmap

* refactor: type
2024-08-07 00:08:44 +08:00
Aaron
7ce727aacd
chore: update version (#6129)
* chore: update deps version

* chore: update version

---------

Co-authored-by: antv <antv@antfin.com>
2024-08-06 10:53:39 +08:00
Aaron
871b7b531f
feat: implement image shape support radius (#6127)
* chore: reserve id when referenced

* feat(utils): add getAncestorShapes util

* feat(elements): add image shape support radius, adpat elements

---------

Co-authored-by: antv <antv@antfin.com>
2024-08-06 09:56:42 +08:00
Aaron
e75c7bd608
fix(behaviors): fix drag element, drag canvas conflict (#6125)
Co-authored-by: antv <antv@antfin.com>
2024-08-05 16:23:17 +08:00
MusicTen
7ca88d0dc4
fix(minimap): fix collapsed combo childrenNode getShape not found (#6120)
Co-authored-by: 王璨 <can.wang@eoitek.com>
2024-08-05 10:04:22 +08:00
Aaron
f6d10cf2ee
chore: update version (#6118)
Co-authored-by: yvonneyx <zhuyuxin0627@gmail.com>
2024-08-02 17:04:20 +08:00
Aaron
d76be08320
refactor: adjust folder strucure (#6115)
* test: adjust test structure

* test(demo): replace alias path to @antv/g6

* refactor(registry): adjust registry structure to avoid circular reference

* chore: adjust bugs dir, and snapshot path rule

---------

Co-authored-by: antv <antv@antfin.com>
2024-08-02 16:46:47 +08:00
Aaron
6b2ec3d41c
docs: add coordinate docs (#6117)
Co-authored-by: antv <antv@antfin.com>
2024-08-02 16:08:01 +08:00
Aaron
5016fe2bcc
feat(plugins): add minimap plugin (#6103)
* feat(event): before draw, after draw will info whether to be render

* feat(plugins): add minimap plugin

* refactor(plugins): add container style

* refactor(plugins): remove DOMRect, add renderer option

* test: adjust minimap demo

* chore(test): config playwright test env

* test(plugins): add test case for minimap

* chore: update test config

* refactor: remove useless comment

---------

Co-authored-by: antv <antv@antfin.com>
2024-08-02 10:07:28 +08:00
Aaron
17944c508d
refactor: drag canvas can be triggered on elements (#6108)
* refactor(behaviors): drag canvas can trigger on elements

* test: add test snapshots
2024-08-02 10:07:13 +08:00
Aaron
bcc5118af4
fix: fix unexpected canvas access after switch renderer (#6110)
* test: remove useless demo

* fix: fix unexpected canvas access after switch renderer
2024-08-02 10:06:51 +08:00
Aaron
51d4d7f5fd
fix(elements): fix incorrect ports position when rotate node (#6113)
Co-authored-by: antv <antv@antfin.com>
2024-08-02 10:06:28 +08:00
Aaron
0dd0c59d89
fix(runtime): fix camera position lost after canvas resize (#6114)
Co-authored-by: antv <antv@antfin.com>
2024-08-02 10:05:55 +08:00
Aaron
36411e5882
chore: update issue template (#6101)
* chore: update oscp template description

* chore: update bug report template description
2024-07-31 17:20:19 +08:00
MusicTen
c3058dc532
fix: the initial values of some nodes are not set by default (#6075)
Co-authored-by: 王璨 <can.wang@eoitek.com>
2024-07-22 19:10:41 +08:00
Yuxin
3ac8a02e8f
fix: resolve animation conflict between hover-activate and collapse-expand behaviors (#6070) 2024-07-22 18:57:30 +08:00
Yuxin
56e54adf96
feat: autosize element label (#6068) 2024-07-19 19:09:31 +08:00
Aaron
d45429ab3f
chore: config project (#6065) 2024-07-19 19:09:17 +08:00
Aaron
5f0a11beba
chore: update version (#6064)
Co-authored-by: antv <antv@antfin.com>
2024-07-19 12:42:47 +08:00
Aaron
ed6e940876
refactor: support dynamic switch renderer (#6062)
* feat(runtime): graph emit renderer change event

* refactor: refactor canvas and support switch renderer

* fix(3d): remove light on destroy plugin

* refactor(3d): clear cache when renderer change

* test: add switch renderer demo

---------

Co-authored-by: antv <antv@antfin.com>
2024-07-19 12:22:46 +08:00
Yuxin
6775bbc70c
feat(behavior): fix element size (#6059)
* feat(behavior): fix element size

* fix: fix cr issues
2024-07-19 11:14:00 +08:00
xuwb
f72d4c24a6
fix: label background word wrap width (#6055)
* fix: label background 折行宽度修改

* feat: 更新label-oversized 测试demo和截图

---------

Co-authored-by: xwb163631 <xwb163631@gongdao.com>
2024-07-18 11:40:53 +08:00
Yuxin
3f775f9ef8
feat(behavior): hide elements when zooming, scrolling and dragging canvas (#6054)
* feat(behavior): hide elements when zooming,scrolling and dragging canvas

* fix: fix cr issues

* test: supplement viewport transfron test

* refactor: rename ViewportEvent to IViewportEvent
2024-07-17 16:23:53 +08:00
Yuxin
fd2d79094e
fix: fix issue that use dagre and polyline togethor (#6046) 2024-07-16 17:54:56 +08:00
Yuxin
7656fe6287
feat: create-edge behavior supports history tracking (#6043)
* feat: create-edge behavior supports history tracking

* test: update snapshots
2024-07-16 17:54:34 +08:00
Aaron
2a7c953c62
chore: adjust release pr workflow (#6044)
* chore: adjust workflow and add publish doc

---------

Co-authored-by: antv <antv@antfin.com>
2024-07-16 17:41:04 +08:00
Aaron
21463f2627
chore: update dumi version and config (#6045)
* chore: update dumi version

* chore: config mako module id strategy
2024-07-16 16:27:28 +08:00
Yuxin
d7d13aa6e2
fix: fix issue that history beforeAddCommand returns false (#6042)
* fix: fix issue that history beforeAddCommand returns false

* test: supplement history test
2024-07-16 16:26:13 +08:00
Aaron
36b9c6b4c3
chore: update husky and add release workflow (#6041)
* chore: update husky

* chore: update github workflows

* chore: update scripts

* chore: fix workflow
2024-07-16 15:35:47 +08:00
Yuxin
a82369e731
fix: fix polyline misalignment in orth router between nodes (#6040) 2024-07-16 14:25:03 +08:00
Yuxin
66a98a0f66
docs: add level of detail demo (#6038)
* docs: add level of detail demo
2024-07-16 10:12:38 +08:00
Aaron
7b558edc70 fix: fix setOptions 2024-07-15 20:31:47 +08:00
Aaron
1d9d9b164c
chore: update version (#6039) 2024-07-15 20:12:33 +08:00
Aaron
a56b629cfe
fix(layout): fix some layout cannot get data position (#6037)
* chore: update deps version

* fix: fix some layout connot get data position
2024-07-15 20:10:23 +08:00
Aaron
0e911c2ad9
refactor: refactor canvas, support switch renderer (#6034)
* chore: update pnpm workspace

* refactor(runtime): refactor canvas, support setRenderer

* refactor(runtime): graph adpat canvas, remove get/set background

* refactor: adjust $layer property

* refactor: refactor fullscreen plugin

* refactor: base-element add context property

* refactor: canvas add getRenderer API
2024-07-15 19:58:58 +08:00
Yuxin
5b993b007d
chore: update deps (#6035) 2024-07-15 15:12:39 +08:00
Aaron
79e2493796
refactor(registry): register support override (#6032) 2024-07-15 14:34:49 +08:00
Aaron
dcd7d36c76
refactor: refactor click select (#6029)
* feat(utils): add statesOf util

* refactor: adjust getData return type

* refactor(behaviors): refactor click-select
2024-07-12 10:10:10 +08:00