(blocks)
| 17271 | return results |
| 17272 | } |
| 17273 | replaceWith(blocks) { |
| 17274 | const split = splitBlocks(blocks, SUBPARTICLE_MEMBRANE, PARTICLE_MEMBRANE).reverse() |
| 17275 | const parent = this.parent |
| 17276 | const index = this.index |
| 17277 | const newParticles = split.map((block, newBlockIndex) => parent._insertBlock(block, index)) |
| 17278 | this.destroy() |
| 17279 | return newParticles |
| 17280 | } |
| 17281 | replaceParticle(fn) { |
| 17282 | const parent = this.parent |
| 17283 | const index = this.index |
no test coverage detected