Skip to content

Commit ac9dbe1

Browse files
committed
Make renderer stuff private
1 parent 13b6be4 commit ac9dbe1

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

docs/parameterData.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,6 @@
392392
[]
393393
]
394394
},
395-
"calculateOffset": {
396-
"overloads": [
397-
[]
398-
]
399-
},
400395
"createCanvas": {
401396
"overloads": [
402397
[
@@ -3236,13 +3231,6 @@
32363231
]
32373232
}
32383233
},
3239-
"p5.Renderer": {
3240-
"resize": {
3241-
"overloads": [
3242-
[]
3243-
]
3244-
}
3245-
},
32463234
"p5.Element": {
32473235
"remove": {
32483236
"overloads": [

src/core/p5.Renderer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,13 +367,15 @@ function renderer(p5, fn){
367367
* @param {HTMLElement} elt DOM node that is wrapped
368368
* @param {p5} [pInst] pointer to p5 instance
369369
* @param {Boolean} [isMainCanvas] whether we're using it as main canvas
370+
* @private
370371
*/
371372
p5.Renderer = Renderer;
372373
}
373374

374375
/**
375376
* Helper fxn to measure ascent and descent.
376377
* Adapted from http://stackoverflow.com/a/25355178
378+
* @private
377379
*/
378380
function calculateOffset(object) {
379381
let currentLeft = 0,

src/webgl/light.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ function light(p5, fn){
964964
* // Load an image and create a p5.Image object.
965965
* img = await loadImage('assets/outdoor_spheremap.jpg');
966966
*
967-
* createCanvas(100 ,100 ,WEBGL);
967+
* createCanvas(100, 100, WEBGL);
968968
*
969969
* describe('A sphere floating above a landscape. The surface of the sphere reflects the landscape. The full landscape is viewable in 3D as the user drags the mouse.');
970970
* }

0 commit comments

Comments
 (0)