Yuxin
07bbc6a4f2
feat(runtime): add transform controller ( #5641 )
...
* feat(runtime): add transform controller
* test: add unit test
* refactor: rename
2024-04-15 10:49:22 +08:00
Yuxin
fad00f57fc
feat: add click-element behavior ( #5636 )
...
* feat: add click-element behavior
* test: add click-element unit tests
* docs: add site demo
* test: update snapshots after deps update
* test: contextmenu unit test
2024-04-12 15:05:06 +08:00
Frank William
a0d6cfe7a5
feat(behaviors): add brush-select, add lasso-select ( #5623 )
...
* feat(behaviors): add brush-select
* feat(behaviors): add lasso-select/brush-select
---------
Co-authored-by: wb-xcf804241 <wb-xcf804241@alibaba-inc.com>
2024-04-12 14:03:07 +08:00
Yuxin
09a62abc38
feat: hull plugin (convex hull, concave hull) ( #5626 )
...
* feat: hull
* feat: hull label and dynamically change options
* feat: hull supports convex and concave hull
* docs: site demo
* test: add unit tests
* test: fix ci issues
* chore: update deps
* fix: fix cr issues
* test: contextmenu unit test
* test: update snapshots
2024-04-11 20:43:33 +08:00
Yuxin
62535be333
feat: history plugin ( #5605 )
...
* feat: base history plugin
* feat: mount history api to graph
* test: history unit and integration test
* refactor: simplify compute draw data
* test: update snapshots
* feat: history event emitter and site demo
2024-04-11 18:49:18 +08:00
Aaron
50ec5d8ef5
refactor: adapt new d3 force and d3 force 3d layout ( #5635 )
...
* feat(palettes): add tableau palette
* refactor(runtime): remove presetLayout, adapt new force layout
* feat(behaviors): support drag element force behaviors
* feat: adapt d3 force layout
* test: remove webgl dependencies
2024-04-11 14:20:03 +08:00
Yuxin
ba7caf3ca3
refactor: update theme base style and update snapshots ( #5628 )
...
* refactor: update theme base config and update snapshots
* refactor: adjust base theme style
* test: update snapshots
---------
Co-authored-by: Aaron <yangtao.yangtao@antgroup.com>
2024-04-09 16:06:47 +08:00
Aaron
90fd24e9b4
chore: update version to beta.32 ( #5631 )
2024-04-08 22:34:17 +08:00
Aaron
a428667dae
refactor: define and export event ( #5627 )
...
* feat(utils): add isElement util
* refactor(runtime): override on/once api to provide type
* refactor: define and export event type
* refactor(runtime): carry originalTarget in element event
2024-04-07 18:54:15 +08:00
Frank William
944ccda096
fix(behaviors): create-edge demo update ( #5624 )
...
Co-authored-by: wb-xcf804241 <wb-xcf804241@alibaba-inc.com>
2024-04-07 17:12:27 +08:00
Aaron
e968ba6359
feat: element support lifecycle methods ( #5620 )
...
* test: rename test case
* refactor(elements): element support override lifecycle methods
* test: add demo that support state animation
2024-04-07 17:10:49 +08:00
Aaron
cf0ccc70d6
refactor: remove state change event ( #5617 )
...
* refactor: remove state change event
* test: add element state test case
2024-04-07 17:06:57 +08:00
Frank William
84074e6a37
feat(behavior): add create-edge ( #5601 )
...
* feat(behavior): add create-edge
* refactor: rename edgeConfig to edgeStyle
* feat(behavior): create-edge add onCreate
* refactor(behaviors): adjust create edge
---------
Co-authored-by: wb-xcf804241 <wb-xcf804241@alibaba-inc.com>
Co-authored-by: Aaron <yangtao.yangtao@antgroup.com>
2024-04-07 11:21:11 +08:00
Aaron
6583288f83
feat: add 3d behaviors ( #5614 )
...
* refactor: adjust ExtensionCategory to enum
* feat(plugins): add camera setting plugin
* refactor(utils): shortcut support drag extend key
* refactor: adjust event type definition
* refactor: emit canvas event
* refactor: adjust exports
* refactor: adjust renderer
* feat(behaviors): add 3d behaviors
* test: add dev demos
* chore: adjust package.json
* refactor: fix getExtension type
2024-04-03 20:46:59 +08:00
Aaron
6796bcd763
refactor(behaviors): adjut behaviors ( #5612 )
2024-04-03 12:00:08 +08:00
Aaron
61fa3d158a
refactor(runtime): add element lifecycle event ( #5611 )
...
* test: remove async from createGraph
* refactor(runtime): add element lifecycle event
2024-04-03 11:59:22 +08:00
Joel Alan
d0c3c7dbc5
feat: plugin legend ( #5593 )
...
* chore: rebase v5
* fix: resolve conversation
* ci: update snapshots
* refactor(plugin): update legend case and snapshots
---------
Co-authored-by: Aaron <yangtao.yangtao@antgroup.com>
2024-04-02 23:29:06 +08:00
Aaron
923c62a639
feat(runtime): add getPluginInstance API ( #5609 )
2024-04-02 19:50:20 +08:00
Aaron
6425dbcba3
test: adjust test structure ( #5607 )
...
* chore: use swc/jest replace ts-jest
* test: adjust test env and cases
* chore: remove prettier to format snapshot
* test: update snapshots
* chore: adsjut test case
* refactor: optmize canvas destroy
* test: use xml-formatter to format snapshots
* test: add toMatchAnimation matcher
* test: add createGraph util
* test: adjust test demo and types
* test: update test case and snapshots
* chore: rename cases folder to unit
2024-04-02 19:13:53 +08:00
Aaron
6135475b0e
chore: update version to 5.0.0-beta.31 ( #5602 )
2024-04-01 11:18:00 +08:00
Aaron
da5297cd8c
feat: add 3d elements, plugin ( #5597 )
...
* refactor: adjust exports, use enum replace const enum
* fix: fix issue that unexpected z attr
* feat(utils): add TupleMap and getCacheKey
* feat(elements): add 3d elements
* feat(plugins): add 3d light
* refactor: adjust 3d renderer
* refactor: adjust exports
* test: add demos
* chore: config packages.json, jest config
* test: fix test case
* chore: update g6-extension-3d version
* chore: setup project configs
* test: fix demo type issue
* chore: config tsconfig for type-check
2024-03-29 11:57:10 +08:00
Aaron
bcd080432f
fix: fix issue that cause memory leak ( #5587 )
...
* fix: fix issue that may cause memories lack
* test: adjust test case to destroy graph
2024-03-29 11:45:18 +08:00
Frank William
72c5e74611
feat(behavior): add click focus element(node/combo) ( #5595 )
...
* feat(behavior): add click focus element
---------
Co-authored-by: wb-xcf804241 <wb-xcf804241@alibaba-inc.com>
2024-03-28 13:16:44 +08:00
DonovanYe
f5ec528661
docs: fix typos in elements.zh.md and CONTRIBUTING.en-US.md ( #5598 )
...
* docs: fix typos in elements.zh.md
* docs: fix typos in CONTRIBUTING.en-US.md
2024-03-28 00:13:07 +08:00
hustcc
fff59f2027
feat: add toolbar plugin ( #5589 )
...
* feat: add type define of toolbar plugin
* feat: add toolbar plugin
* docs: add toolbar demo
* test: add test case
* chore: fix typo
* fix: remove insert-css
* chore: update test case
* chore: fix cr
2024-03-27 21:20:46 +08:00
Yuxin
5566f74fa2
feat: add hover-element behavior ( #5579 )
...
* feat: add hover-element behavior definition
* feat: add hover-element behavior
* test: add uts
* feat: add site demos
* feat: add unit test
* fix: cr issues
* fix: cr issues
* fix: cr issues
2024-03-25 20:50:20 +08:00
Aaron
1885a29c26
chore: add tag script ( #5588 )
2024-03-25 11:15:10 +08:00
foolvip
f30e58da8e
feat: add hexagon node ( #5527 )
...
* feat: add hexagon node
* feat:add getHexagonPoints unit test
* feat: add hexagon demo to site
2024-03-25 11:09:28 +08:00
Aaron
c59f0d286c
chore: update version to beta.30 ( #5586 )
2024-03-25 10:05:43 +08:00
Aaron
19405ae0bc
feat(runtime): add updateBehavior/ updatePlugin api ( #5585 )
2024-03-22 19:42:22 +08:00
hustcc
b9d81ec02d
feat: add plugin contextmenu ( #5577 )
...
* feat: contextmenu class
* chore: update context menu options
* feat: show context menu
* feat: update context menu
* chore: rename to contextmenu
* chore: rename G6ElementEvent to ElementEvent
2024-03-22 19:03:35 +08:00
Joel Alan
ad2d2cf923
feat: tooltip plugin ( #5573 )
...
* feat: tooltip plugin
* fix: resolve conversation
* fix: resolve conversation
* ci: test coverage
* chore: enable elements to anable
* fix: demo
* fix: test
2024-03-22 18:00:13 +08:00
Aaron
7024c5eb60
refactor(behavior): optimize zoom canvas experience ( #5584 )
2024-03-22 17:21:12 +08:00
Aaron
b57cdfb912
fix: fix issue where drag elements under non-default zoom values was abnormal ( #5583 )
...
* refactor(behaviors): remove draggableElement of drag-element
* fix(behaviors): fix drag element error when not on default zoom
2024-03-22 17:15:38 +08:00
Aaron
f451672c7a
refactor: adapt antv dagre ( #5578 )
...
* refactor: adapt antv dagre
* chore: update @antv/layout version
* feat(layout): adapt dagrejs layout
* docs: add dagre demo
2024-03-22 16:35:34 +08:00
hustcc
74c19e903e
feat: add plugin watermark ( #5569 )
...
* chore: init type define
* fix: badge typo in readme
* feat: plugin watermark
* feat: add watmermark plugin
* test: add tc for watermark, but should skip it
* docs: add demos for watermark
* test: add tc for mock
* chore: fix cr
* test: use jest-canvas-mock make ci works
* chore: update demo
* docs: add case panel
* refactor: render watermark into div
* chore: update
2024-03-21 20:12:31 +08:00
Yuxin
776822740e
docs: add combo demos ( #5568 )
...
* docs: add combo demos
* docs: combo demos
2024-03-20 19:37:45 +08:00
Aaron
c1063a8ad4
chore: update version to 5.0.0-beta.29 ( #5546 )
2024-03-16 00:52:11 +08:00
Aaron
a0c131b0a7
feat: adapt combo, add drag-element / collapse-expand behaviors ( #5543 )
...
* refactor(runtime): merge into getChildrenData, getComboData, add get getAncestorsData
* refactor(runtime): move translate logic from graph to data controller
* feat(utils): add positionOf util
* refactor(runtime): adjust the order of drawing combos
* refactor(elements): sync combo position to model, adjust combo size calc
* refactor(utils): dfs provide depth info
* refactor(elements): combo sync position and zIndex
* feat(utils): add zIndexOf util
* refactor(runtime): refactor data/element controller to fit combo update
* test: assign graph into window.graph
* refactor(elements): combo use childrenData to get marker text
* refactor(elements): filter zIndex from graphicStyle
* feat(utils): add getSubgraphRelatedEdges util
* refactor(animation): add combo-collapse-expand animation
* refactor(runtime): add combo collapse and expand flow
* fix: fix issue in data controller and base-combo
* test: update test case and snapshots
* feat(behaviors): support click collapse-expand, drag-combo
* refactor: merge drag node and drag combo into drag element
* fix(behaviors): fix issue drag element between combo wont update
* test(behaviors): add drag-element test case and snapshots
* test: fix snapshot
* test: update test case and snapshots
* fix: fix format and types
* chore: adjust drag-node to drag element
2024-03-16 00:39:25 +08:00
Joel Alan
d36ae29416
test: compact box ( #5541 )
...
* test: compact box
* fix: resolve conversation
2024-03-15 23:36:23 +08:00
Joel Alan
7f2e6a58c4
test: layout mindmap ( #5540 )
...
* test: layout mindmap
* fix: type
* refactor: adjust demo and snapshots
---------
Co-authored-by: Aaron <yangtao.yangtao@antgroup.com>
2024-03-15 23:30:00 +08:00
Joel Alan
494779ce0b
test: layout dendrogram ( #5539 )
...
* test: layout dendrogram
* fix: resolve conversation
2024-03-15 23:22:26 +08:00
Aaron
87621a4793
refactor: adjust type definition ( #5545 )
...
* refactor: adjust type definition
* fix: fix graphlib type define
2024-03-15 23:07:32 +08:00
hustcc
5dcbb5e510
docs: update readme ( #5544 )
...
* docs: update readme
* docs: update readme en-US
* docs: add CONTRIBUTING.md
* chore: add a readme image and demo
* fix: ci
* chore: fix ci
2024-03-15 19:39:28 +08:00
Yuxin
810f982719
feat: refine theme and add support background ( #5538 )
...
* refactor: support setting background
* docs: add theme demo
* test: update snapshots
* feat: palette field support callback
* test: update tests and snapshots
* fix: wordwrap set false
* fix: fix cr issues
* fix: animation field
* test: update test case and snapshots
2024-03-15 19:36:27 +08:00
Joel Alan
7ea9471a13
test: combo combined layout test ( #5535 )
2024-03-15 18:24:13 +08:00
hustcc
26ba38c75a
docs: add demo for gpu ( #5533 )
...
* docs: add demo for gpu
* chore: update edge style
2024-03-15 10:43:31 +08:00
Joel Alan
d410770e2d
test: dagre layout ( #5534 )
2024-03-14 21:43:11 +08:00
hustcc
b0804ab750
docs: add concentric demo ( #5531 )
...
* docs: add Concentric demo
* chore: remove unused config
* chore: fix cr
2024-03-14 20:02:32 +08:00
hustcc
bdc3a6cbeb
test: add fruchterman layout test ( #5530 )
...
* test: add fruchterman layout test
* docs: add fruchterman demo
* fix: eslint error
* chore: fix cr
* chore: remove unused code
* chore: fix cr
2024-03-14 19:43:53 +08:00
Joel Alan
f9b845a9da
chore: add radial layout demo ( #5532 )
...
* chore: add radial layout demo
* fix: conversation
* feat: update snapshots
* fix: ci
2024-03-14 19:42:30 +08:00
Joel Alan
095f7fc8b3
feat: circular layout demp ( #5528 )
2024-03-13 20:14:54 +08:00
Yuxin
d90d916454
docs: add polyline demos ( #5526 )
2024-03-13 14:45:23 +08:00
Yuxin
ede3c16a70
docs: add node port demo site ( #5522 )
...
* docs: add node port demo site
* fix: cr issues
2024-03-12 21:15:46 +08:00
Yuxin
52e9eeccd1
docs: add curve loop and polyline loop demos ( #5524 )
...
* docs: add curve loop and polyline loop demos
* refactor: node mapper supports callback
2024-03-12 21:02:26 +08:00
Aaron
0300507314
test: refactor the file naming rules of toMatchSnapshot ( #5519 )
2024-03-12 11:11:33 +08:00
Aaron
d0c92d26b2
refactor: adjust element controller ( #5513 )
...
* refactor(runtime): element split draw to draw and computeDrawData
* feat(utils): add parentIdOf util
* refactor(runtime): element controller use data flow
* refactor(utils): toGraphlibData does a shallow copy
* refactor: base-shape set visibility, setVisibility support keep raw attributes
* refactor(runtime): refactor element controller, merge runtime style into model
* test: update test case and snapshots
* test(elements): add test case and snapshots
* chore(site): update site demo
* refactor(runtime): add syntax sugar for runtime api
* test: remove layout case demo
* refactor(animation): recover to enter, exit animation stage
* refactor(runtime): add frontElement, backElement api
* refactor(runtime): add showElement, hideElement API
* refactor(behaviors): drag-node adpat new api
2024-03-12 10:49:12 +08:00
Yuxin
9646b6fc4d
docs: add cubic vertical and cubic horizontal demos ( #5518 )
2024-03-11 22:35:21 +08:00
Yuxin
1ba0f7f601
docs: add quadratic and cubic demos ( #5517 )
...
* docs: add quadratic and cubic demos
* fix: cr issues
2024-03-11 22:35:07 +08:00
Aaron
0b09106868
fix(behaviors): fix issue that cannot drag canvas when animation is enabled ( #5514 )
2024-03-11 18:30:51 +08:00
Yuxin
acd154f22d
feat: set node ports without rendering graphics ( #5509 )
...
* feat: set node ports without rendering graphics
* refactor: optimize port style
* test: add ut
2024-03-11 16:14:38 +08:00
hustcc
2fb69fcecc
docs: add layout mds demo and test case ( #5510 )
...
* docs: add layout mds demo and test case
* chore: fix ci
2024-03-08 18:41:00 +08:00
hustcc
b1f6a56462
docs: add layout grid demo and test cases ( #5507 )
...
* docs: add grid layout and test case
* chore: remove unused code
* chore: rename position to placement
* chore: remove grid sortBy label
2024-03-08 18:09:25 +08:00
Yuxin
0d383f8254
refactor: rename position to placement ( #5508 )
...
* refactor: rename position to placement
* docs: rename position to placement
2024-03-08 16:47:53 +08:00
Aaron
095ae763cf
feat(behaviors): add drag node behavior ( #5503 )
...
* refactor: export idOf util
* refactor(runtime): setElementVisibility support set animation individually
* feat(utils): add setCacheStyle util
* fix(runtime): fix issue that setVisibility call in a short period of time
* fix(elements): fix edge arrow that create and animate error
* refactor(elements): adjust nodelike default style props'
* feat(behaviors): add drag node behavior
* test(behaviors): add drag node test snapshots
* test(behavior): update test case and snapshot
* refactor: adjust exports
2024-03-08 16:31:17 +08:00
hustcc
596b1030e2
docs: add element label background ( #5506 )
...
* docs: add element label background
* test: fix ci
* test: make layout test can work
* chore: fix cr
2024-03-08 12:25:25 +08:00
hustcc
a5f887908b
docs: add oversized label demo ( #5505 )
...
* docs: add oversized label demo
* docs: add copy label demo
* docs: update label text wordWrap
* docs: use clipboard API
* test: add test for element label oversized
2024-03-08 10:20:05 +08:00
Joel Alan
cb9f274a36
chore: opt the layout of force-directed graph ( #5484 )
...
* chore: opt the layout of force-directed graph
* fix: resolve conversation
2024-03-07 20:20:09 +08:00
hustcc
5a3e6c9e60
docs: add diamond, image demo ( #5501 )
...
* docs: add diamond, image demo
* chore: fix code review
2024-03-07 17:01:11 +08:00
Yuxin
8633679419
feat(combo): add rect combo element ( #5496 )
...
* feat: add rect combo
* test: add unit tests
* feat: update collapsedMarkerType
* fix: fix rebase issue
* fix: cr issues
* fix: ci
* fix(runtime): fix layout get element size
* fix(test): fix measureText type error
---------
Co-authored-by: Aaron <yangtao.yangtao@antgroup.com>
2024-03-07 14:17:34 +08:00
Aaron
304dc3cad3
fix: fix element cannot re-create when type changed ( #5500 )
...
* fix(elements): fix diamond node
* fix(runtime): fix issue that shape cannot re-create when type changed
* test: update test snapshot and case
2024-03-07 11:22:23 +08:00
Aaron
673546e641
feat: add grid line plugin ( #5498 )
...
* refactor(test): demo support disable default grid
* refactor(runtime): uniform graph lifecycle event, emit size change event
* feat(utils): add mod util
* feat(plugin): add grid plugin
* refactor(register): adjust extension type definitions
* refactor(runtime): adjust rest widget define
* refactor(test): add test case
2024-03-06 20:02:15 +08:00
Cee
21d5e4694d
feat(shape): add diamond node ( #5431 )
...
* fix: contextmenu event emit (#5380 )
Co-authored-by: 宋鹏捷 <songpengjie@abtnetworks.com>
* feat: diamond node
* test: rerun unit test of diamond node
* chore: remove lineWidth offset
* test(diamond): add diamond test demo
* chore: remove backup file
* chore: add any type
* fix: fix ci error
* fix: add site demo
* test: add diamond utils unit test
* chore: remove old version unit test
* fix: remove scripts && fix ci
---------
Co-authored-by: Song Pengjie (宋鹏捷) <spengjie@sina.com>
Co-authored-by: 宋鹏捷 <songpengjie@abtnetworks.com>
2024-03-06 08:50:36 +08:00
Aaron
b7bbc29704
refactor: adjust project and add 3d extension package ( #5497 )
...
* refactor: remove g6-plugin-map-view and react-node
* refactor: adjust exports
* chore: update deps, use turbo to batch build
* feat(3d): init g6-extension-3d package
* chore: update turbo config
* refactor: fix cr issues
2024-03-05 19:13:37 +08:00
Aaron
3c3e8979bf
refactor(elements): adjust element type definitions ( #5494 )
2024-03-05 16:40:39 +08:00
Joel Alan
948f868912
fix: dev scripts ( #5482 )
2024-03-05 15:17:50 +08:00
Aaron
0a74e2f973
refactor: change widget to plugin ( #5490 )
...
* refactor: rename widget to plugin
* refactor: change module to extension
2024-03-05 15:00:06 +08:00
Aaron
2fc6e0ebdb
feat(runtime): support fit api ( #5489 )
...
* refactor(utils): union support multiple bboxes
* fix(test): fix test env
* refactor(utils): add getBBoxSize, multiple and divide support number
* refactor(spec): adjust animation, add extra viewport options
* refactor(behaviors): zoom canvas set pointer position as origin when wheel
* refactor(behaviors): drag-canvas use graph api
* feat(runtime): support fit api
* refactor(test): update test case and snapshot use x,y
* refactor(animation): add getAnimation util to get global animation config
* refactor(utils): remove getElementsBBox, and extend union to getCombinedBBox
2024-03-04 20:44:24 +08:00
Yuxin
f9e2ac6815
feat(combo): add circle combo element ( #5473 )
...
* feat: circle combo
* refactor: ci
* refactor: registry typo
* feat: test combo children change
* refactor: combo animation
* refactor: circle combo
* refactor: base-combo
* refactor: combo collapsed marker
* test: add combo test
* refactor: fix cr issues
2024-03-04 19:02:12 +08:00
Yuxin
c0d02134f6
fix: fix issues that wrong getEllipseIntersectPoint ( #5485 )
...
* fix: fix issues that wrong getEllipseIntersectPoint
* test: update test snapshots
2024-03-01 13:20:42 +08:00
Aaron
251b9a8528
refactor: adjust test env ( #5479 )
...
* refactor(test): use lil-gui in demo env
* refactor(runtime): graph viewport api use default canvas center as origin
* refactor(runtime): layout support preset options
* refactor(test): remove createGraph
* refactor(test): update test case and snapshot
* test: add test cases
2024-02-29 15:09:56 +08:00
Aaron
b98a164d5f
feat: add drag canvas behavior ( #5475 )
...
* refactor(types): rename loose to loosen
* feat(utils): add Shortcut util
* refactor(behaviors): refactor zoom canvas with shortcuts
* chore(test): update toBeCloseTo message style
* feat(behaviors): add drag-canvas behavior
* refactor(utils): abstract out module from behavior and widget
* feat(runtime): add widget controller
* refactor: fix cr issues
2024-02-28 15:45:25 +08:00
Yuxin
e802349d81
docs: add build-in and custom arrows demos ( #5477 )
...
* refactor: simplify arrow size setting
* test: add buildin and custom arrows tests
* docs: add arrows site demos
* test: add arrow snapshots
2024-02-28 12:34:24 +08:00
omahs
7539c3eb99
docs: fix typos ( #5476 )
...
* fix typos
* fix typo
* fix typos
* fix typos
2024-02-27 21:07:36 +08:00
Aaron
b86bdcde91
feat: add behavior controller and zoom-canvas ( #5470 )
...
* feat(utils): add parseBehaviors util
* feat(constants): add events definition
* refactor(event): rename Event to BaseEvent
* refactor(utils): adjust events
* refactor(utils): move isNode to element
* feat(utils): add isEdge util
* feat(utils): add eventTargetOf util
* feat(runtime): add behavior controller
* refactor(runtime): viewport emit standard event
* feat(behaviors): add zoom-canvas
* chore(test): update test env
* refactor(runtime): export event, destroy behavior, add test cases
2024-02-26 18:48:21 +08:00
Aaron
d2d2bc6507
refactor(elements): optimize elements types ( #5472 )
2024-02-26 16:56:43 +08:00
Yuxin
634d5960f4
feat: add light and dark theme; node supports new badgePalette
attribute ( #5467 )
...
* feat(node): support new badgePalette attribute
* feat: add light theme and dark theme;update demo and test panel
* refactor(site): update site demos
* refactor: rename disable to disabled
* refactor: rename disable to disabled
---------
Co-authored-by: Aaron <yangtao.yangtao@antgroup.com>
2024-02-26 15:45:59 +08:00
Aaron
1096dd903d
refactor: adjust test env and fix element types ( #5471 )
...
* chore(test): support alias in test cases
* chore(test): adjust test utils, add toMatchSnapshot
* chore(tests): use path alias in tests
* feat(utils): add parseSize util
* chore: set vite alias config
* fix(elements): fix elements types and remove edge sourcePoints
* refactor(tests): adapt size and remove sourcePoint, update snapshots
* refactor(runtime): remove sleep usage
2024-02-26 10:24:02 +08:00
hustcc
17de905d81
refactor: type define ( #5468 )
...
* chore: add 3d sphere file
* test: add createDeterministicRandom for 3d test data
* chore: simplify type define
* fix: create webgl instance
* chore: remove sphere
2024-02-23 18:51:22 +08:00
Yuxin
491838604a
docs: add line demo ( #5464 )
...
* docs: add line demo
* test: update test snapshots
* test: add unit tests
* fix: fix cr issues
* fix: fix cr issues
2024-02-23 10:50:05 +08:00
Yuxin
d0f8d526f3
fix: fix issue that wrong label bg when rotate ( #5462 )
...
* fix: fix issue that wrong label bg when rotate
* test: update test snapshots
2024-02-22 20:41:55 +08:00
Song Pengjie (宋鹏捷)
8af3cf0bb0
feat: add image node ( #5417 )
...
* fix: contextmenu event emit (#5380 )
Co-authored-by: 宋鹏捷 <songpengjie@abtnetworks.com>
* feat: add image node
* fix: remove empty method
* fix: remove fill color for image node
* feat: add image node
* test: update image node snapshot
* test: update controller viewport snapshot
* fix: update unit test and fix bugs for image node
* fix: fix code review issue
* fix: remove console.log
* fix: fix code review issue
* ci: add ci for pull request
* fix: add getIconStyle for image node
* fix: fix ci issue and code review issue
---------
Co-authored-by: 宋鹏捷 <songpengjie@abtnetworks.com>
2024-02-22 18:48:34 +08:00
hustcc
75906453f1
docs: add ellipse, star demo ( #5457 )
...
* docs: add ellipse demo
* feat: calculate icon size by key shape attribute
* chore: add ICON_SIZE_RATIO constant
2024-02-22 15:59:46 +08:00
Aaron
50bb0cc1cb
refactor(runtime): adapt polyline and cubic edges ( #5458 )
...
* refactor(registry): register built-in edges
* fix(utils): fix getEllipseIntersectPoint get NaN result
* refactor(runtime): adapt more edges
* fix: fix cr issues
2024-02-22 15:56:21 +08:00
hustcc
b364dba430
docs: add radius rect demo, and draw rect node with GRect ( #5452 )
...
* docs: add radius rect demo, and draw rect node with GRect
* test: upadte node-rect with Graph
* chore: fix ci
* fix: rect anchor draw error
2024-02-22 10:44:04 +08:00
Aaron
836efe4376
refactor: adjust render and draw async invoke ( #5456 )
...
* refactor(runtime): adjust async render process
* refactor(runtime): setup default zoom
* test: update layout test case
* refactor(runtime): remove context param from controller api
2024-02-22 09:37:09 +08:00
Yuxin
cce285be70
feat: polyline supports orthogonal routing and loop ( #5449 )
...
* feat: polyline supports orthogonal routing
* feat: orth routing adapts ports
* refactor: draw cubic loop
* feat: add polyline loop
* feat: optimize loop radius calculation
* test: update unit snapshots
* test: add unit tests
* fix: fix code review
* test: add orth route ut
---------
Co-authored-by: banxuan.zyx <banxuan.zyx@antgroup.com>
2024-02-22 09:35:14 +08:00
Aaron
288c7b34bf
refactor: replace the animation return value with an event throw ( #5445 )
...
* fix(animation): fix issue that onfinish is override
* refactor: emit animation event instead of return
* refactor(element): optimize invoke logic
* refactor(events): rename event name
* refactor(runtime): adjust event value
* refactor(demo): dev env support display timer
* refactor(runtime): rename element render to draw
* feat(utils): add isEmptyData util
* refactor(utils): modify createAnimationsProxy, add withAnimationCallbacks, executeAnimatableTasks
* refactor(runtime): refactor element controller, add events
* refactor: adjust async draw, layout, emit render event
2024-02-21 17:19:10 +08:00
hustcc
bb09bc447b
docs: add triangle demo ( #5451 )
...
* docs: add triangle demo
* fix: halo stroke should be key fill
* fix: remove port width, height, use r to set the radius
2024-02-21 13:20:10 +08:00
hustcc
619cf7d26b
feat: add portXyy and badgeXyy options ( #5450 )
...
* feat: add portFill and badgeFill options
* chore: change .js to .ts
2024-02-20 21:41:25 +08:00