Commit Graph

5059 Commits

Author SHA1 Message Date
Aaron
6c6f7f99ea perf(runtime): optimize element perf 2024-05-30 21:33:24 +08:00
Aaron
9d824d4991 refactor(elements): use mergeOptions replace deepMix 2024-05-30 21:32:59 +08:00
Aaron
6aaca9f9c8 feat(utils): add mergeOptions util 2024-05-30 21:32:04 +08:00
Aaron
4b997dccfe perf: optimize data perf 2024-05-30 21:04:48 +08:00
Aaron
d7a138ff8c
chore: update version to beta.38 (#5791)
* chore: update version to beta.38

* chore: update react version
2024-05-30 19:22:27 +08:00
Aaron
e7fb595bb5
fix: fix issue that arrow cannot update (#5790) 2024-05-30 18:56:39 +08:00
Aaron
0982c1e105
fix: fix exceptional canvas options when init in node env (#5788) 2024-05-30 14:07:46 +08:00
Aaron
04239f8858
fix: fix react node destruction logic (#5787)
* fix: fix unexpect drag-canvas update

* refactor(elements): define base-element

* fix: fix html and react node destroy logic

* test: update test case
2024-05-30 11:21:43 +08:00
Aaron
320c063977
fix: fix jest config (#5786) 2024-05-29 21:10:16 +08:00
Yuxin
ac0490f38c
fix: fix the conflict issue of hover-element and drag-element (#5762)
* fix: fix behaviors collision

* fix: add script to generate doc at local

* fix: fix cr issue
2024-05-23 17:35:23 +08:00
hustcc
65802cbcd8
feat: add plugin background (#5761)
* feat: add plugin background

* chore: update demo with background

* chore: fix ci

* test: add test case for background plugin

* chore: fix cr
2024-05-23 11:59:43 +08:00
Aaron
b7ccbcdc2b
feat: support tree expand collapse (#5755)
* test: rename test case

* refactor(behaviors): adjust collapse-expand

* feat(utils): add isCollapsed util

* fix(runtime): avoid unexcepted combo refresh when update node data

* refactor(elements): edge support loop config

* feat(runtime): support simulate layout

* feat(runtime): support collapse and expand tree node

* test(behaviors): add collapse expand node test case

* refactor(runtime): rename collapse expand api name

* refactor: remove collapseOrigin

* refactor(animation): adapat combo animation
2024-05-22 13:50:47 +08:00
Yuxin
68ee8e37f5
fix: fix composite shapes animation (#5759) 2024-05-22 10:23:54 +08:00
Yuxin
3b1bef3dd2
docs: iconfont (#5757) 2024-05-22 10:22:49 +08:00
Yuxin
a31abe4c9e
feat: add scaffold for creating G6 extension (#5749)
* feat: add scaffold for creating G6 extension
2024-05-20 20:16:07 +08:00
Aaron
716cb92084
fix: fix demos (#5754)
* fix: fix unexpected update style

* docs(demos): update demos

* fix(runtime): fix attributes assign
2024-05-20 15:18:21 +08:00
Aaron
49e51bbf39
refactor: adjust animation logic (#5751)
* refactor(transforms): transforms support receive draw context

* refactor(elements): edge update key when onframe

* refactor(elements): node/combo update key when onframe, adjust childrenNode type

* refactor(animation): adjust animation type definition

* feat(utils): add themeOf util

* feat(utils): add getElementAnimationOptions animationOf, remove unused utils

* refactor(runtime): extract animation logic into controller

* refactor(runtime): adapt new animation types

* refactor(animations): adjust animation executor

* refactor: adpat draw method

* chore: adjust toMatchSVGSnapshot

* refactor: adjust animations

* test: update test case and snapshots
2024-05-20 11:04:49 +08:00
Aaron
66a8f5be7d
docs(demo): add theme switch demo (#5752)
* fix: fix setBackground not effect

* docs(demo): add theme switch demo
2024-05-20 11:00:36 +08:00
hustcc
6e85c52991
chore: add missing dev deps (#5748) 2024-05-17 19:43:47 +08:00
Yuxin
77dbba54e6
feat: add parallel edge demo (#5741)
* refactor: add get-edge-actual-ends transform;fix: refine process-parellel-edges

* feat: add parallel edge demo

* feat: add badge offsetX/offsetY

* refactor: change ProcedureData class to type
2024-05-17 19:40:19 +08:00
Aaron
08c6066519
chore: update g6 and react version (#5747) 2024-05-17 10:11:49 +08:00
Aaron
e91c817bd7
demo: add euro cup demo (#5746)
* fix(graph): fix some options not effect after setOptions

* fix: fix issue that backgound cannot display

* docs: add euro cup demo

* fix: fix issue that html node cannot correct fit view

* chore: add deps
2024-05-16 21:07:32 +08:00
Wang Hongfei
aef5f591ad
feat: add docs to some layouts (#5744)
* feat: add docs to some layouts

---------

Co-authored-by: whf01206399 <whf01206399@antgroup.com>
2024-05-16 19:20:06 +08:00
Aaron
e907819be0
refactor: optimize memory usage during testing (#5745)
* refactor(registry): register same object won't log error

* chore: set --max-old-space-size to 1024

* refactor: adjust demo export
2024-05-16 16:34:27 +08:00
Aaron
2109e25895
chore: update 3d and react publish config (#5742)
* chore: update 3d and react publish config

* chore: update g6 version to beta.36
2024-05-16 14:19:30 +08:00
Wang Hongfei
2f8365bfd6
feat: add corresponding English docs (#5738)
* feat: add corresponding English docs
---------

Co-authored-by: whf01206399 <whf01206399@antgroup.com>
2024-05-16 10:13:08 +08:00
Yuxin
f4d530320f
fix: fix combo connection misalignment problem (#5740)
* fix: fix connection misalignment problem

* test: update snapshots
2024-05-15 15:11:49 +08:00
xiaoiver
36e39e5582
fix: update to latest @antv/g (#5702)
* fix: use transform instead of x/y/z

* fix: use transform instead of x/y in label

* chore: remove site docs apis

* chore: remove incorrect snapshots

* fix: image & icon node

* fix: update to latest @antv/component

* fix: combo & plugin bubble set

* chore: update behavior snapshots

* fix: edge loop curve & combo

* chore: unit tests

* fix: animation

* chore: force update snapshots

* chore: update lasso snapshots

* chore: update deps

* chore: update to latest g & g2 deps
2024-05-15 13:00:22 +08:00
Aaron
66aa63c9b2
docs(site): update doc hyperlinks (#5737) 2024-05-14 16:05:41 +08:00
Aaron
225872cd22
chore(g6): set deps version to specific (#5736) 2024-05-14 00:12:20 +08:00
Aaron
508b64168b
chore: add deploy script, update dependencies version (#5735)
* chore(site): add deploy script

* chore: update dependencies
2024-05-14 00:12:03 +08:00
Aaron
06432a3904
chore(site): update deploy.yml, packages.json, tsconfig.json (#5733)
* refactor(site): fix clear doc script

* chore(site): update deploy.yml, packages.json, tsconfig.json
2024-05-13 16:56:48 +08:00
Aaron
80285fa43a
refactor: update site examples (#5731)
* refactor(site): remove unavailable part examples

* refactor(docs): update plugin examples

* refactor(docs): update algorithm examples

* chore(site): update dumirc
2024-05-13 15:16:03 +08:00
Aaron
7ff8004fe1
docs: update behavior examples (#5729)
* docs: update behavior examples

* chore: add ts-node to devDependencies
2024-05-13 14:50:21 +08:00
Aaron
352b5ba1c6
docs(site): update layout examples (#5728)
* refactor: adjust layout api and exports

* chore: update deploy actions

* docs(site): update layout examples
2024-05-13 10:27:15 +08:00
Aaron
454bc13e09
docs(site): update element examples (#5727)
* refactor(runtime): getElementDat -> getElementsDataByType, getElementsData -> getElementDataById

* fix(runtime): fix issue that unexpect edge ends

* chore: config site env

* docs(site): update element examples
2024-05-12 18:02:43 +08:00
Aaron
3659e7d1a0
fix(runtime): fix incorrect combo connect (#5726)
* refactor(runtime): getElementDat -> getElementsDataByType, getElementsData -> getElementDataById

* fix(runtime): fix issue that unexpect edge ends
2024-05-11 21:56:03 +08:00
Aaron
fdb519f813
refactor(runtime): getElementDat -> getElementsDataByType, getElementsData -> getElementDataById (#5725) 2024-05-11 21:52:22 +08:00
Aaron
a0271bf2f1
docs(site): add animation examples (#5724)
* refactor(element): support disable animation in state animation

* chore: remove global.d.ts, update tsconfig

* refactor: update global script, add addPanel function

* docs: add animation examples
2024-05-10 21:50:34 +08:00
Yuxin
f2257fea88
fix: fix demo flex layout (#5723) 2024-05-10 19:24:01 +08:00
Aaron
8cd41ee647
fix: fix animation and theme (#5718)
* fix(spec): migrate missed states changes

* refactor: use fillOpacity, strokeOpacity to replace inherited opacity

* refactor: adjust inherited style logic

* feat: support badges and ports animation

* test: update test case and snapshots
2024-05-10 18:12:31 +08:00
Yuxin
ef1eaf6a54
docs: add data api (#5722) 2024-05-10 18:03:04 +08:00
Yuxin
ad30bd97d2
docs: add element api interactive demos (#5719)
* docs: add element api interactive demos

* fix: fix cr issues

* refactor: adjust locales in docs
2024-05-10 14:29:40 +08:00
Aaron
80ed0b9cc3
docs: perfect manual docs (#5710) 2024-05-10 11:17:08 +08:00
Wang Hongfei
07474e024d
feat(site): add algorithm/gaddi demo (#5711)
* feat: add algorithm/gaddi demo

* feat: add algorithm/shortestPath demo

* feat: adjust examples/algorithm structure & add label-propagation demo

* feat: add algorithm/louvain demo

---------

Co-authored-by: whf01206399 <whf01206399@antgroup.com>
2024-05-09 21:25:49 +08:00
Yuxin
07c77eeb2d
docs: impove behavior comments and add api interactive demos (#5715)
* docs: add reference page title

* docs: refine behavior api interactive demos
2024-05-09 20:29:40 +08:00
Aaron
1cee4a55da
fix: fix export and site (#5713)
* fix(behaviors): remove circular dependency

* chore(site): lock version of dumi up to 2.2.x
2024-05-09 11:29:50 +08:00
Aaron
c4eace4975
refactor: adjust element spec (#5712)
* fix(transforms): fix arrange draw order that handle update combo

* refactor(spec): move states, children, parentId to upper level
2024-05-09 10:04:27 +08:00
Yuxin
529a5ad246
refactor: focus-element, lasso-select, brush-select behavior (#5707)
* refactor: focus-element behavior

* refactor: lasso select, brush select

* fix: remove unnecessary utils
2024-05-08 17:04:47 +08:00
Yuxin
f0cbeba90a
docs: plugin api docs and demo (#5703)
* refactor: modify plugin comments

* docs: add plugin demos

* fix: fix ci
2024-05-07 20:43:47 +08:00