MCPcopy
hub / github.com/apache/echarts / resetForLabelLayout

Method resetForLabelLayout

src/component/helper/MapDraw.ts:580–587  ·  view source on GitHub ↗

* FIXME: this is a temporarily workaround. * When `geoRoam` the elements need to be reset in `MapView['render']`, because the props like * `ignore` might have been modified by `LabelManager`, and `LabelManager#addLabelsOfSeries` * will subsequently cache `defaultAttr` like `ignore`. I

()

Source from the content-addressed store, hash-verified

578 * Use clone/immutable in `LabelManager`?
579 */
580 resetForLabelLayout() {
581 this.group.traverse(el => {
582 const label = el.getTextContent();
583 if (label) {
584 label.ignore = mapLabelRaw(label).ignore;
585 }
586 });
587 }
588
589 private _updateMapSelectHandler(
590 mapOrGeoModel: MapOrGeoModel,

Callers 1

renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected