MCPcopy Create free account
hub / github.com/pmndrs/postprocessing / set

Method set

src/core/Selection.js:165–177  ·  view source on GitHub ↗

* Clears this selection and adds the given objects. * * @param {Iterable } objects - The objects that should be selected. * @return {Selection} This selection.

(objects)

Source from the content-addressed store, hash-verified

163 */
164
165 set(objects) {
166
167 this.clear();
168
169 for(const object of objects) {
170
171 this.add(object);
172
173 }
174
175 return this;
176
177 }
178
179 /**
180 * An alias for {@link has}.

Callers 15

constructorMethod · 0.95
createLightsFunction · 0.80
createEnvironmentFunction · 0.80
createActorsFunction · 0.80
createLightsFunction · 0.80
createEnvironmentFunction · 0.80
loadFunction · 0.80
god-rays.jsFile · 0.80
loadFunction · 0.80
depth-picking.jsFile · 0.80
loadFunction · 0.80
dot-screen.jsFile · 0.80

Calls 2

clearMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected