MCPcopy Create free account
hub / github.com/breck7/scroll / _transformBlock

Method _transformBlock

external/.scrollLibs.js:15268–15273  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

15266 }
15267 // todo: perhaps if needed in the future we can add more contextual params here
15268 _transformBlock(block) {
15269 this.particleTransformers.forEach(fn => {
15270 block = fn(block)
15271 })
15272 return block
15273 }
15274 addTransformer(fn) {
15275 if (!this.particleTransformers) this.particleTransformers = []
15276 this.particleTransformers.push(fn)

Callers 2

createParticleMethod · 0.80

Calls 2

fnFunction · 0.85
forEachMethod · 0.80

Tested by

no test coverage detected