(mapName, svg)
| 28476 | /** @class */ |
| 28477 | function () { |
| 28478 | function GeoSVGResource(mapName, svg) { |
| 28479 | this.type = 'geoSVG'; // All used graphics. key: hostKey, value: root |
| 28480 | |
| 28481 | this._usedGraphicMap = createHashMap(); // All unused graphics. |
| 28482 | |
| 28483 | this._freedGraphics = []; |
| 28484 | this._mapName = mapName; // Only perform parse to XML object here, which might be time |
| 28485 | // consiming for large SVG. |
| 28486 | // Although convert XML to zrender element is also time consiming, |
| 28487 | // if we do it here, the clone of zrender elements has to be |
| 28488 | // required. So we do it once for each geo instance, util real |
| 28489 | // performance issues call for optimizing it. |
| 28490 | |
| 28491 | this._parsedXML = parseXML(svg); |
| 28492 | } |
| 28493 | |
| 28494 | GeoSVGResource.prototype.load = function () |
| 28495 | /* nameMap: NameMap */ |
nothing calls this directly
no test coverage detected
searching dependent graphs…