* feat: allowDragOnItem config for scroll-canvas;
* docs: add sequence graph demo to the site
* feat: allowDragOnItem config for scroll-canvas, closes: #3062;feat: hideEdge config for minimap to enhance the performance, closes: #3158;fix: minimap has incorrect shape zIndex with keyShape type and delegate type, closes: #3132;fix: minimap viewport dragging problem in firefox and safari, closes: #2939;
* feat: allow to setTextWaterMarker and setImageWaterMarker with an undefined parameter to remove the watermarker, closes: #3478; docs: add sequence demo to site, closes: #3027;perf: unify the formats of shouldBegin, shouldUpdate, and shouldEnd in behaviors, closes: #3028; perf: fitView and fitCenter according to the corner ndoes insead of getCanvasBBox to avoid maximum call stack size exceeded, closes: #2447; fix: treeGraph changeData with node properties lost, closes: #3215; fix: error occurs while calling updateLayout from gpu layout to a cpu layout, closes: #3272; fix: error occurs while calling changeData to remove a node in a combo, cloases: #3293;
* chore: refine
* chore: upgrade version num
* Fix combos to inherit animation setting from graph (#3992)
* fix: createCombo didn't update the "comboTrees" correctly (#3993)
* Fix the comboTrees update in createCombo()
* Copy tests from core to pc
* Fix useless conditional
* Change variable name to not include verb
* Add some missing types
* docs: update traverseTree and traverseTreeUp doc
* fix: drag-canvas incorrectly stopped by right click; perf: improve the performance of setItemState and active-relations again;
* fix: setItemState on node, related edges linking positions are not refreshed; feat: graph supports optimizeThreshold to control the number threshold of nodes to enable the optimization on rendering and interaction, currently only affects the edges refresh while the related node state style changed;
* chore: update CHANGELOG
* chore: tests refine
* docs: update docs and demos for force2 on website
Co-authored-by: daniele-pini <daniele.pini@siren.io>
* perf: Annotation min-width and input width;
* Fix build issue (#3934)
* fix: there is no dir named mobile
* fix: path-util is not marked as dependency of plugin, but actually it is
Co-authored-by: xiangyifeng <xiangyifeng@tencent.com>
Co-authored-by: fxiangyi <fxiangyi@gmail.com>
Co-authored-by: xiangyifeng <xiangyifeng@tencent.com>
* feat: beforechangedata and afterchagnedata for graph changeData; feat: Annotation supports icon events callbacks; feat: Annotation supports defaultBegin position configuration for new annotation cards; perf: Annotation updated automatically when graph data changed and graph item visiblity changed;
* fix: Destroy legend canvas when the plugin is destroyed, closes: #3931; fix: unexpected console, closes: #3926
* fix: legend changeData problem, closes: #3561; fix: redo and undo with an image node, closes: #3782;
* fix: call refreshPositions instead of positionsAnimate while there is no layout configuration;
* test: update test cases
* perf: optimize the performance of combo graph;
* chore: upgrade license for g6-react-node
* chore: upgrade version nums
* docs: new demo for viewport animation
* fix: star node with leftBottom linkPoint show and hide problem; fix: relayout does not execute onAllLayoutEnd problem;
* fix: combo edge state update problem, closes: #3639;
* docs: add comboCombined demo for site
* docs: running arrow demo
* fix: custom layout warning and layout failed problem; fix: upgrade layout to fix DagreLayoutOptions type error; fix: upgrade layout to fix comboCombined with original node infomations problem;
* chore: tests refine
* Truncate node labels (#3690)
* Added maxLength property to LabelStyle
* Added unit test for label max length
* Added truncateLabelByLength util function
* Added safety checks for negative and non-number maxLength values
* Moved maxLength prop to labelCfg
* feat: maxLength for labelCfg;
* chore: upgrade version nums
Co-authored-by: Tony <51513780+TonyN96@users.noreply.github.com>
* fix: spelling error for nodeselectChange, closes: #3736; fix: update node icon from show false to show true; feat: combo supports collapsedSubstituteIcon showing after collapsed; feat: remove animations while first rendering with (collapsed)combos;
* chore: refine
* chore: gitleaks pin to v1-6-0
* fix: afterrender should be emitted when the layout is not configured;
* fix: update combo edge at the same time onDrag (#3734)
* docs: docs refine (#3733)
* implement more efficient way of dragging combo
* clean up
* reslove conflicts
Co-authored-by: Yanyan Wang <yanyanwang93@gmail.com>
* fix: [tooltip plugin] wrap className in quotes when createDom to support multi classname (#3747)
* docs: docs refine (#3733)
* fix: [tooltip plugin] wrap className in quotes when createDom
Co-authored-by: Yanyan Wang <yanyanwang93@gmail.com>
* perf: spelling error in drag-combo
* fix: relayout while collapse-expand-combo
* refactor: 将 toolbar plugin 的默认操作函数抽离 (#3718)
* refactor: refactor plugin toolBar
Change-Id: I7862749924f7a100d93a1e380524aea3ee96cc3d
* docs: update doc
Change-Id: Ifbb32ea0f0f0791994eb4cb88f4bd3af9b29d587
* refactor: remote {
Change-Id: I20bea2426bb077fe51ec1309aca8545b65a5d0a5
* chore: update CHANGELOG
* chore: update version nums
* fix: collapsed combo with error size
Co-authored-by: femiabdul <83455275+femiabdul@users.noreply.github.com>
Co-authored-by: bjym <aaron.bjym1011@gmail.com>
Co-authored-by: 忽如寄 <594613537@qq.com>
* feat: shouldDeselect param for lasso-select; fix: initial collapsed combos with unexpected size;
* docs: new docs for comboCombined; docs: update translate and zoom api with animate cfg
* chore: refine
* feat: support meta and key combination to trigger zoom for scroll-canvas behavior (#3568)
* feat: support meta and key combination to trigger zoom for scroll-canvas behavior
* docs: fix typo in docs
* fix: push ctrl into zoomKey array unexpectedly
Co-authored-by: litianyi.troy <litianyi.troy@bytedance.com>
* chore: update version nums
Co-authored-by: Troy Li <troy.lty@alipay.com>
Co-authored-by: litianyi.troy <litianyi.troy@bytedance.com>
* docs: add indented tree and brief node demos
* feat: combo supports being assigned positions
* fix: run layout promise only when the layout is configured;
* chore: rebase and version number unpdate
* chore: upgrade
* chore: refine
* chore: refine
* fix: no animate when a node has no previous position
* fix: fix the hidden combos not set correctly (#3509)
close#3508
* chore: update version
* chore: register dagreCompound layout (#3548)
* fix: #3513 切换节点文字位置,文字位置出现错误 (#3531)
Co-authored-by: daichaofan <daichaofan@139.com>
* chore: update versions
Co-authored-by: simplejason <simplejason.coder@gmail.com>
Co-authored-by: daichaofan <50311886+daichaofan@users.noreply.github.com>
Co-authored-by: daichaofan <daichaofan@139.com>
* docs: add indented tree and brief node demos
* fix: getUpdateType with type error; fix: edge label background with clearItemStates problem; fix: edge label with autoRotate false and padding problem; fix: changeData in the process of create-edge behavior, an error occurs, closes: #3384;
* fix: simple timebar silder text position strategy and expand the lineAppendWidth for the slider; feat: timebar supports filterItemTypes to configure the types of the graph items to be filtered; only nodes can be filtered before; feat: timebar supports to configure the rotate of the tick labels by tickLabelStyle[dot]rotate; feat: timebar supports container CSS configuration by containerCSS; feat: timebar supports a function getDate to returns the date value according to each node or edge by user; feat: timebar supports afunction getValue to returns the value (for trend line of trend timebar) according to each node or edge by user; feat: timebar supports to configure a boolean changeData to control the filter way, true means filters by graph[dot]changeData, false means filters by graph[dot]showItem and graph[dot]hideItem; feat: timebar supports to configure a function shouldIgnore to return true or false by user to decide whether the node or the edge should be ignored while filtering;
* fix: missing event with animated zoom (#3316)
* docs: update dagre docs
* feat: add translate animation (#3315)
* feat: add translate animation
* fix: add item type to the parameter of afterremoveitem event; (#3314)
* fix: add item type to the parameter of afterremoveitem event;
* fix: typo (#3311)
Co-authored-by: qinggniq <livewithblank@outlook.com>
* fix: use move for animated translate
* fix: interface signatures
Co-authored-by: Yanyan Wang <yanyanwang93@gmail.com>
Co-authored-by: qinggniq <livewithblank@outlook.com>
* fix: edge label padding bug, closes: #3346;fix: update node with iconfont icon, the icon is updated to a wrong position, closes: #3348;
* fix: test problems
* chore: update version nums
* chore: update version nums after publishing
Co-authored-by: Fabio Tacchelli <fabio.tacchelli@gmail.com>
Co-authored-by: qinggniq <livewithblank@outlook.com>
* chorre: try to optimize the performance of updating nodes
* feat: better performance for item drawing
* fix: combos is null in data validation
* fix: disable the capture of hull shape to enhance the performance of dragging canvas with hulls
* chore: upgrade antv matrix-util
* fix: upgrade layout to beta 5 to solve proxy problem for IE;
* chore: update version num
* docs: udpate CHANGELOG
* fix typo (#3307)
* feat: add zoom animation (#3264)
add jsdoc
* docs: fix 404 url (#3269)
* docs(zh): update url of 'Combo Force Layout'
* docs(en): update url of 'Combo Force Layout'
* Update TreeGraph.zh.md
* Update TreeGraph.en.md
* update
* fix: fix path shape will disappear after setItemState (#3291)
setItemState will change shape.attrs.path into a object
* docs: update site doces
* chore: update version num
Co-authored-by: shiwu <shiwu.wyy@antgroup.com>
Co-authored-by: qinggniq <livewithblank@gmail.com>
Co-authored-by: Fabio Tacchelli <fabio.tacchelli@gmail.com>
Co-authored-by: EvanOne(文一) <1656081615@qq.com>
Co-authored-by: dgmpk <465316497@qq.com>
* docs: Indented layoutCfg.indent support function
We can set node's horizontal offset dynamically with function,
which allow user to create custom layout.
Closes#3081
* docs: Indented layoutCfg.indent support function
Co-authored-by: powellpeng <powellpeng@tencent.com>