MCPcopy Index your code
hub / github.com/processing/p5.js / pushDirect

Method pushDirect

src/webgl/p5.Geometry.js:1851–1857  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

1849 this.pushDirect(data);
1850 },
1851 pushDirect(data) {
1852 if (data.length){
1853 this.getSrcArray().push(...data);
1854 } else{
1855 this.getSrcArray().push(data);
1856 }
1857 },
1858 resetSrcArray(){
1859 this.geometry[this.getSrcName()] = [];
1860 },

Callers 3

pushCurrentDataMethod · 0.95
addGeometryMethod · 0.80
vertexPropertyMethod · 0.80

Calls 2

getSrcArrayMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected