getModel is read, and getViewOfComponentModel for where the legend was
drawn (#1315). ECharts' typings declare both private, which is why they are
named structurally here, and the second is optional so that an instance
without it reads as it did before. getZr() and dispatchAction() are
deliberately not declared: the first exposes no element-to-DOM-node
mapping in the production build, and the second is ECharts' own
highlighting, which MaidrLayer.selectors has no way to call (#1195).
A rendered ECharts instance.
getModelis read, andgetViewOfComponentModelfor where the legend was drawn (#1315). ECharts' typings declare both private, which is why they are named structurally here, and the second is optional so that an instance without it reads as it did before.getZr()anddispatchAction()are deliberately not declared: the first exposes no element-to-DOM-node mapping in the production build, and the second is ECharts' own highlighting, whichMaidrLayer.selectorshas no way to call (#1195).