Skip to content

Commit f36ac09

Browse files
Merge branch 'master' into foamtree-update
2 parents 98de72b + 1ccda17 commit f36ac09

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
1212

1313
## UNRELEASED
1414

15+
* **Improvement**
16+
* Keep treemap labels visible during zooming animations for better user experience ([#414](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/414) by [@
17+
stanislawosinski](https://github.com/stanislawosinski))
18+
19+
* **Bug Fix**
20+
* Don't show an empty tooltip when hovering over the FoamTree attribution group or between top-level groups ([#413](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/413) by [@
21+
stanislawosinski](https://github.com/stanislawosinski))
22+
1523
* **Internal**
1624
* Upgrade FoamTree to version 3.5.0, replace vendor dependency with an NPM package ([#412](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/412) by [@
1725
stanislawosinski](https://github.com/stanislawosinski))

client/components/Treemap.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export default class Treemap extends Component {
6262
maxGroupLevelsDrawn: Infinity,
6363
maxGroupLabelLevelsDrawn: Infinity,
6464
maxGroupLevelsAttached: Infinity,
65+
wireframeLabelDrawing: 'always',
6566
groupMinDiameter: 0,
6667
groupLabelVerticalPadding: 0.2,
6768
rolloutDuration: 0,
@@ -105,9 +106,12 @@ export default class Treemap extends Component {
105106
},
106107
onGroupDoubleClick: preventDefault,
107108
onGroupHover(event) {
108-
// Ignoring hovering on `FoamTree` branding group
109-
if (event.group && event.group.attribution) {
109+
// Ignoring hovering on `FoamTree` branding group and the root group
110+
if (event.group && (event.group.attribution || event.group === this.get('dataObject'))) {
110111
event.preventDefault();
112+
if (props.onMouseLeave) {
113+
props.onMouseLeave.call(component, event);
114+
}
111115
return;
112116
}
113117

0 commit comments

Comments
 (0)