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 1919 "@visactor/vchart-theme" : " ~1.6.6" ,
2020 "@visactor/vmind" : " 1.2.4-alpha.5" ,
2121 "@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 " ,
2424 "@visactor/vtable" : " 1.19.0-alpha.0" ,
2525 "@visactor/vtable-editors" : " 1.19.0-alpha.0" ,
2626 "@visactor/vtable-gantt" : " 1.19.0-alpha.0" ,
5858 "react-device-detect" : " ^2.2.2" ,
5959 "minimist" : " 1.2.8"
6060 }
61- }
61+ }
Original file line number Diff line number Diff line change 3030 "dependencies" : {
3131 "@visactor/vchart" : " workspace:2.0.1" ,
3232 "@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 " ,
3535 "react-is" : " ^18.2.0"
3636 },
3737 "devDependencies" : {
7878 "access" : " public" ,
7979 "registry" : " https://registry.npmjs.org/"
8080 }
81- }
81+ }
Original file line number Diff line number Diff line change 3131 "@visactor/vchart" : " workspace:2.0.1" ,
3232 "@visactor/vchart-extension" : " workspace:2.0.1" ,
3333 "@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 " ,
3636 "react-is" : " ^18.2.0"
3737 },
3838 "devDependencies" : {
8383 "access" : " public" ,
8484 "registry" : " https://registry.npmjs.org/"
8585 }
86- }
86+ }
Original file line number Diff line number Diff line change 2121 "start" : " ts-node __tests__/runtime/browser/scripts/initVite.ts && vite serve __tests__/runtime/browser"
2222 },
2323 "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 " ,
2828 "@visactor/vutils" : " ~1.0.9" ,
2929 "@visactor/vdataset" : " ~1.0.9" ,
3030 "@visactor/vlayouts" : " ~1.0.9" ,
6161 "registry" : " https://registry.npmjs.org/"
6262 },
6363 "license" : " MIT"
64- }
64+ }
Original file line number Diff line number Diff line change @@ -323,12 +323,19 @@ export class CompareSankeySeries extends SankeySeries<ICompareSankeySeriesSpecBa
323323
324324 // 同时需要清除 hover
325325 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+ } ) ;
328338 }
329- allNodeElements . forEach ( el => {
330- el . removeState ( STATE_VALUE_ENUM . STATE_HOVER ) ;
331- } ) ;
332339 }
333340}
334341
Original file line number Diff line number Diff line change 122122 "@visactor/vdataset" : " ~1.0.9" ,
123123 "@visactor/vscale" : " ~1.0.9" ,
124124 "@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 " ,
129129 "@visactor/vutils-extension" : " workspace:2.0.1"
130130 },
131131 "publishConfig" : {
132132 "access" : " public" ,
133133 "registry" : " https://registry.npmjs.org/"
134134 }
135- }
135+ }
Original file line number Diff line number Diff line change 2121 },
2222 "dependencies" : {
2323 "@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 " ,
2727 "@visactor/vutils" : " ~1.0.9"
2828 },
2929 "devDependencies" : {
4242 "vite" : " 3.2.6" ,
4343 "typescript" : " 4.9.5"
4444 }
45- }
45+ }
Original file line number Diff line number Diff line change 5656 "vite" : " 3.2.6"
5757 },
5858 "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 " ,
6161 "@visactor/vchart" : " workspace:2.0.1" ,
62- "@visactor/vrender" : " 1.0.9 " ,
62+ "@visactor/vrender" : " 1.0.10 " ,
6363 "@visactor/vutils" : " ~1.0.9"
6464 }
65- }
65+ }
You can’t perform that action at this time.
0 commit comments