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

Class ParticleAtom

external/.scrollLibs.js:15140–15151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15138class DescendantChangedParticleEvent extends AbstractParticleEvent {}
15139class LineChangedParticleEvent extends AbstractParticleEvent {}
15140class ParticleAtom {
15141 constructor(particle, atomIndex) {
15142 this._particle = particle
15143 this._atomIndex = atomIndex
15144 }
15145 replace(newAtom) {
15146 this._particle.setAtom(this._atomIndex, newAtom)
15147 }
15148 get atom() {
15149 return this._particle.getAtom(this._atomIndex)
15150 }
15151}
15152const ParticleEvents = { ChildAddedParticleEvent, ChildRemovedParticleEvent, DescendantChangedParticleEvent, LineChangedParticleEvent }
15153var WhereOperators
15154;(function (WhereOperators) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected