* 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
* 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
* 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
* 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>
* 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
* chore: add 3d sphere file
* test: add createDeterministicRandom for 3d test data
* chore: simplify type define
* fix: create webgl instance
* chore: remove sphere
* refactor(runtime): adjust async render process
* refactor(runtime): setup default zoom
* test: update layout test case
* refactor(runtime): remove context param from controller api
* feat(port): add linkToCenter attribute
* fix: ci
* refactor: rename getCurveControlPoint function
* refactor: update snapshots related to port
---------
Co-authored-by: banxuan.zyx <banxuan.zyx@antgroup.com>
* test: add test case for viewport with svg renderer
* chore: rename file
* chore: update test case
* chore: keep the comment
* feat: add createGraphCavas, and use it in main.ts
* chore: move viewport.spec.ts to unit
* test: use real graph instance instead of mock
* chore: remove unused code
* chore: fix ci
* refactor(runtime): rename dataController in context to model
* feat(utils): add isVisible and update uitls
* refactor(layout): update layout types and register built-in layouts
* feat(utils): add deduplicate util
* refactor(utils): update inferDefaultValue to infer position
* refactor(element): add updateNodeLikePosition method to update position immediately
* feat(runtime): data controller support call methods without trace
* fix(animation): it's neccessary to reserve commonEffectTiming config
* fix(test): fix test case issue
* feat(utils): add tree data converter utils
* refactor(runtime): update element controller, add get element api, and updateByLayoutResult method
* feat(utils): add layout utils
* refactor(layout): add built-in layouts
* refactor(elements): add built-in edges
* feat(runtime): add layout controller
* test(layout): add and update test snapshot
* test: update test case
* refactor(utils): remove transformGraphDataToTreeData
* fix: fix issue occured in rebase
* refactor(layout): add built-in layout registration
* refactor(spec): support config global animation
* test(runtime): update element controller snapshots
* fix(elements): fix issue that edge lack of default control points
* refactor(runtime): support tree layout
* fix(elements): fix issue that unexpect loop edge infer
* fix(runtime): fix layout error, support global animation, optimize updateNodeLikePosition method
* test(layout): add static layout test case
* refactor(test): update dendrogram snapshot
* fix(utils): fix pickLayoutResult test case
* refactor(types): add positions type
* refactor(runtime): optimize element updateNodeLikePosition perf
* fix(test): fix test case types issue
* test(demo): update test demos
* refactor(utils): modify transformTreeDataToGraphData default getNodeData
* refactor(runtime): data controller provide getParentData API
* refactor(runtime): rename sneak to silence
* refactor(layout): add comment
* refactor(registry): use console.error instead of throw when plugin duplicated