File tree Expand file tree Collapse file tree 9 files changed +91
-84
lines changed
src/charts/compare-sankey Expand file tree Collapse file tree 9 files changed +91
-84
lines changed Original file line number Diff line number Diff line change 19
19
"@visactor/vchart-theme" : " ~1.6.6" ,
20
20
"@visactor/vmind" : " 1.2.4-alpha.5" ,
21
21
"@visactor/vutils" : " ~1.0.9" ,
22
- "@visactor/vrender" : " 1.0.9 " ,
23
- "@visactor/vrender-kits" : " 1.0.9 " ,
22
+ "@visactor/vrender" : " 1.0.10 " ,
23
+ "@visactor/vrender-kits" : " 1.0.10 " ,
24
24
"@visactor/vtable" : " 1.19.0-alpha.0" ,
25
25
"@visactor/vtable-editors" : " 1.19.0-alpha.0" ,
26
26
"@visactor/vtable-gantt" : " 1.19.0-alpha.0" ,
58
58
"react-device-detect" : " ^2.2.2" ,
59
59
"minimist" : " 1.2.8"
60
60
}
61
- }
61
+ }
Original file line number Diff line number Diff line change 30
30
"dependencies" : {
31
31
"@visactor/vchart" : " workspace:2.0.1" ,
32
32
"@visactor/vutils" : " ~1.0.9" ,
33
- "@visactor/vrender-core" : " 1.0.9 " ,
34
- "@visactor/vrender-kits" : " 1.0.9 " ,
33
+ "@visactor/vrender-core" : " 1.0.10 " ,
34
+ "@visactor/vrender-kits" : " 1.0.10 " ,
35
35
"react-is" : " ^18.2.0"
36
36
},
37
37
"devDependencies" : {
78
78
"access" : " public" ,
79
79
"registry" : " https://registry.npmjs.org/"
80
80
}
81
- }
81
+ }
Original file line number Diff line number Diff line change 31
31
"@visactor/vchart" : " workspace:2.0.1" ,
32
32
"@visactor/vchart-extension" : " workspace:2.0.1" ,
33
33
"@visactor/vutils" : " ~1.0.9" ,
34
- "@visactor/vrender-core" : " 1.0.9 " ,
35
- "@visactor/vrender-kits" : " 1.0.9 " ,
34
+ "@visactor/vrender-core" : " 1.0.10 " ,
35
+ "@visactor/vrender-kits" : " 1.0.10 " ,
36
36
"react-is" : " ^18.2.0"
37
37
},
38
38
"devDependencies" : {
83
83
"access" : " public" ,
84
84
"registry" : " https://registry.npmjs.org/"
85
85
}
86
- }
86
+ }
Original file line number Diff line number Diff line change 21
21
"start" : " ts-node __tests__/runtime/browser/scripts/initVite.ts && vite serve __tests__/runtime/browser"
22
22
},
23
23
"dependencies" : {
24
- "@visactor/vrender-core" : " 1.0.9 " ,
25
- "@visactor/vrender-kits" : " 1.0.9 " ,
26
- "@visactor/vrender-components" : " 1.0.9 " ,
27
- "@visactor/vrender-animate" : " 1.0.9 " ,
24
+ "@visactor/vrender-core" : " 1.0.10 " ,
25
+ "@visactor/vrender-kits" : " 1.0.10 " ,
26
+ "@visactor/vrender-components" : " 1.0.10 " ,
27
+ "@visactor/vrender-animate" : " 1.0.10 " ,
28
28
"@visactor/vutils" : " ~1.0.9" ,
29
29
"@visactor/vdataset" : " ~1.0.9" ,
30
30
"@visactor/vlayouts" : " ~1.0.9" ,
61
61
"registry" : " https://registry.npmjs.org/"
62
62
},
63
63
"license" : " MIT"
64
- }
64
+ }
Original file line number Diff line number Diff line change @@ -323,12 +323,19 @@ export class CompareSankeySeries extends SankeySeries<ICompareSankeySeriesSpecBa
323
323
324
324
// 同时需要清除 hover
325
325
const allNodeElements = this . _nodeMark . getGraphics ( ) ;
326
- if ( ! allNodeElements || ! allNodeElements . length ) {
327
- return ;
326
+ if ( allNodeElements || ! allNodeElements . length ) {
327
+ allNodeElements . forEach ( el => {
328
+ el . removeState ( STATE_VALUE_ENUM . STATE_HOVER ) ;
329
+ } ) ;
330
+ }
331
+
332
+ // 同时需要清除 hover
333
+ const allLinkElements = this . _linkMark . getGraphics ( ) ;
334
+ if ( allLinkElements || ! allLinkElements . length ) {
335
+ allLinkElements . forEach ( el => {
336
+ el . removeState ( STATE_VALUE_ENUM . STATE_HOVER ) ;
337
+ } ) ;
328
338
}
329
- allNodeElements . forEach ( el => {
330
- el . removeState ( STATE_VALUE_ENUM . STATE_HOVER ) ;
331
- } ) ;
332
339
}
333
340
}
334
341
Original file line number Diff line number Diff line change 122
122
"@visactor/vdataset" : " ~1.0.9" ,
123
123
"@visactor/vscale" : " ~1.0.9" ,
124
124
"@visactor/vlayouts" : " ~1.0.9" ,
125
- "@visactor/vrender-core" : " 1.0.9 " ,
126
- "@visactor/vrender-kits" : " 1.0.9 " ,
127
- "@visactor/vrender-components" : " 1.0.9 " ,
128
- "@visactor/vrender-animate" : " 1.0.9 " ,
125
+ "@visactor/vrender-core" : " 1.0.10 " ,
126
+ "@visactor/vrender-kits" : " 1.0.10 " ,
127
+ "@visactor/vrender-components" : " 1.0.10 " ,
128
+ "@visactor/vrender-animate" : " 1.0.10 " ,
129
129
"@visactor/vutils-extension" : " workspace:2.0.1"
130
130
},
131
131
"publishConfig" : {
132
132
"access" : " public" ,
133
133
"registry" : " https://registry.npmjs.org/"
134
134
}
135
- }
135
+ }
Original file line number Diff line number Diff line change 21
21
},
22
22
"dependencies" : {
23
23
"@visactor/vchart" : " workspace:1.11.0" ,
24
- "@visactor/vrender-core" : " 1.0.9 " ,
25
- "@visactor/vrender-kits" : " 1.0.9 " ,
26
- "@visactor/vrender-components" : " 1.0.9 " ,
24
+ "@visactor/vrender-core" : " 1.0.10 " ,
25
+ "@visactor/vrender-kits" : " 1.0.10 " ,
26
+ "@visactor/vrender-components" : " 1.0.10 " ,
27
27
"@visactor/vutils" : " ~1.0.9"
28
28
},
29
29
"devDependencies" : {
42
42
"vite" : " 3.2.6" ,
43
43
"typescript" : " 4.9.5"
44
44
}
45
- }
45
+ }
Original file line number Diff line number Diff line change 56
56
"vite" : " 3.2.6"
57
57
},
58
58
"dependencies" : {
59
- "@visactor/vrender-core" : " 1.0.9 " ,
60
- "@visactor/vrender-kits" : " 1.0.9 " ,
59
+ "@visactor/vrender-core" : " 1.0.10 " ,
60
+ "@visactor/vrender-kits" : " 1.0.10 " ,
61
61
"@visactor/vchart" : " workspace:2.0.1" ,
62
- "@visactor/vrender" : " 1.0.9 " ,
62
+ "@visactor/vrender" : " 1.0.10 " ,
63
63
"@visactor/vutils" : " ~1.0.9"
64
64
}
65
- }
65
+ }
You can’t perform that action at this time.
0 commit comments