100pah opened a new pull request #12471:
URL: https://github.com/apache/incubator-echarts/pull/12471
1. Enable treemap emphasis label formatter. Fix #11854. And add test cases.
[Details]:
The implementation of "insert levelModel" is migrate from "Tree.getModel"
to "beforeLink nodeData.wrapMethod('getItemModel', ...)", because the former
one miss the case of `data.getItemModel`, which is needed in label formatter
fetcher.
2. Fix the incorrect implementation of `leavesModel` in `TreeSeries`.
This defect is found when fix "1". "1" and "2" are sharing the same data
structure (Tree, insert model) so we'd better fix them together.
[Details]:
`leavesModel` should be inserted between the node `itemModel` and the
`seriesModel` in the "parentModel" chain.
It can be added either via [A] "beforeLink -
nodeData.wrapMethod('getItemModel, ...)"
or via [B] "TreeNode.getModel ".
But `TreeSeres` both use the two strategy, which causes the `leavesModel` is
inserted twice.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]