I found the following bug that can be observed at the http://evmar.github.io/webtreemap/ page. It irrecoverably deletes nodes while zooming out.
To reproduce we need to make three clicks on the page.
- Click on the
uglify_js/node_modules square.
Now we can see CHANGELOG.md, README.md and other files.
- Click on the most outer block
node_modules (50.0m)
- Click again on the
uglify_js/node_modules and there are no files that we have seen at the point 1.
I think the problem might be in this loop:
|
for (; i < children.length; i++) { |
I found the following bug that can be observed at the http://evmar.github.io/webtreemap/ page. It irrecoverably deletes nodes while zooming out.
To reproduce we need to make three clicks on the page.
uglify_js/node_modulessquare.Now we can see
CHANGELOG.md,README.mdand other files.node_modules (50.0m)uglify_js/node_modulesand there are no files that we have seen at the point 1.I think the problem might be in this loop:
webtreemap/src/treemap.ts
Line 265 in e238c45