MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / addRoot

Method addRoot

src/common/overlay/levelRenderer/Storage.js:348–355  ·  view source on GitHub ↗

* @function LevelRenderer.Storage.prototype.addRoot * @description 添加图形(Shape)或者组(Group)到根节点。 * * @param {(LevelRenderer.Shape/LevelRenderer.Group)} el - 图形。 *

(el)

Source from the content-addressed store, hash-verified

346 *
347 */
348 addRoot(el) {
349 if (el instanceof Group) {
350 el.addChildrenToStorage(this);
351 }
352
353 this.addToMap(el);
354 this._roots.push(el);
355 }
356
357 /**
358 * @function LevelRenderer.Storage.prototype.delRoot

Callers 13

HandlerSpec.jsFile · 0.80
StorageSpec.jsFile · 0.80
PainterSpec.jsFile · 0.80
addShapeMethod · 0.80
addGroupMethod · 0.80
echarts-en.min.jsFile · 0.80
echarts.min.jsFile · 0.80

Calls 3

addToMapMethod · 0.95
addChildrenToStorageMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected