fix: drag shadow caused by localRefresh.

This commit is contained in:
Yanyan-Wang 2020-03-05 19:53:14 +08:00 committed by Yanyan Wang
parent 25a3cb41ce
commit c19fdd3f8e
4 changed files with 14 additions and 5 deletions

View File

@ -1,4 +1,14 @@
# ChangeLog # ChangeLog
#### 3.3.7
- feat: beforeaddchild and afteraddchild emit for TreeGraph;
- feat: built-in nodes' labels can be captured;
- fix: drag shadow caused by localRefresh, update the g-canvas version;
- fix: abnormal polyline bendding;
- fix: collapse-expand trigger problem;
- fix: update nodes with empty string label;
- fix: abnormal rendering when a graph has image nodes and other type nodes;.
#### 3.3.6 #### 3.3.6
- feat: support edge weight for dagre layout; - feat: support edge weight for dagre layout;
- feat: automatically add draggable to keyShape, users do not need to assign it when custom a node or an edge; - feat: automatically add draggable to keyShape, users do not need to assign it when custom a node or an edge;

View File

@ -1,6 +1,6 @@
{ {
"name": "@antv/g6", "name": "@antv/g6",
"version": "3.3.6", "version": "3.3.7",
"description": "A Graph Visualization Framework in JavaScript", "description": "A Graph Visualization Framework in JavaScript",
"keywords": [ "keywords": [
"antv", "antv",
@ -71,8 +71,8 @@
"dependencies": { "dependencies": {
"@antv/dom-util": "^2.0.1", "@antv/dom-util": "^2.0.1",
"@antv/event-emitter": "~0.1.0", "@antv/event-emitter": "~0.1.0",
"@antv/g-base": "^0.3.22", "@antv/g-base": "^0.3.29",
"@antv/g-canvas": "^0.3.25", "@antv/g-canvas": "^0.3.29",
"@antv/g-math": "^0.1.1", "@antv/g-math": "^0.1.1",
"@antv/hierarchy": "^0.6.1", "@antv/hierarchy": "^0.6.1",
"@antv/matrix-util": "^2.0.4", "@antv/matrix-util": "^2.0.4",

View File

@ -1,5 +1,5 @@
export default { export default {
version: '3.3.6', version: '3.3.7',
rootContainerClassName: 'root-container', rootContainerClassName: 'root-container',
nodeContainerClassName: 'node-container', nodeContainerClassName: 'node-container',
edgeContainerClassName: 'edge-container', edgeContainerClassName: 'edge-container',

View File

@ -141,7 +141,6 @@ const DecisionTree = () => {
type: 'animate-line', type: 'animate-line',
}, },
}); });
graph.get('canvas').set('localRefresh', false);
const translate = (x, y) => { const translate = (x, y) => {
let moveX = x; let moveX = x;