* @function LevelRenderer.Storage.prototype.addRoot * @description 添加图形(Shape)或者组(Group)到根节点。 * * @param {(LevelRenderer.Shape/LevelRenderer.Group)} el - 图形。 *
(el)
| 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 |
no test coverage detected