Skip to content

Commit ececd07

Browse files
committed
Update reference for v11, fix locked version on p5 update
1 parent 576579a commit ececd07

File tree

123 files changed

+3337
-679
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+3337
-679
lines changed

public/reference/data.json

Lines changed: 554 additions & 209 deletions
Large diffs are not rendered by default.

src/content/reference/en/p5.Camera/camera.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ description: >
5151
the "up"
5252
5353
vector is <code>(0, 1, 0)</code>.</p>
54-
line: 2764
54+
line: 2765
5555
isConstructor: false
5656
itemtype: method
5757
example:

src/content/reference/en/p5.Camera/centerX.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: >
1010
"world" space, so
1111
1212
<code>myCamera.centerX</code> is 0.</p>
13-
line: 1186
13+
line: 1187
1414
isConstructor: false
1515
itemtype: property
1616
example:

src/content/reference/en/p5.Camera/centerY.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: >
1010
"world" space, so
1111
1212
<code>myCamera.centerY</code> is 0.</p>
13-
line: 1299
13+
line: 1300
1414
isConstructor: false
1515
itemtype: property
1616
example:

src/content/reference/en/p5.Camera/centerZ.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: >
1010
"world" space, so
1111
1212
<code>myCamera.centerZ</code> is 0.</p>
13-
line: 1412
13+
line: 1413
1414
isConstructor: false
1515
itemtype: property
1616
example:

src/content/reference/en/p5.Camera/eyeX.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ module: 3D
44
submodule: Camera
55
file: src/webgl/p5.Camera.js
66
description: |
7-
<p>The camera’s y-coordinate.</p>
8-
<p>By default, the camera’s y-coordinate is set to 0 in "world" space.</p>
9-
line: 850
7+
<p>The camera’s x-coordinate.</p>
8+
<p>By default, the camera’s x-coordinate is set to 0 in "world" space.</p>
9+
line: 851
1010
isConstructor: false
1111
itemtype: property
1212
example:

src/content/reference/en/p5.Camera/eyeY.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ file: src/webgl/p5.Camera.js
66
description: |
77
<p>The camera’s y-coordinate.</p>
88
<p>By default, the camera’s y-coordinate is set to 0 in "world" space.</p>
9-
line: 962
9+
line: 963
1010
isConstructor: false
1111
itemtype: property
1212
example:

src/content/reference/en/p5.Camera/eyeZ.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ file: src/webgl/p5.Camera.js
66
description: |
77
<p>The camera’s z-coordinate.</p>
88
<p>By default, the camera’s z-coordinate is set to 800 in "world" space.</p>
9-
line: 1074
9+
line: 1075
1010
isConstructor: false
1111
itemtype: property
1212
example:

src/content/reference/en/p5.Camera/frustum.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ description: >
5858
the
5959
6060
camera and the origin.</p>
61-
line: 2273
61+
line: 2274
6262
isConstructor: false
6363
itemtype: method
6464
example:

src/content/reference/en/p5.Camera/lookAt.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ description: >
1919
<code>myCamera.lookAt(10, 20, 30)</code> points the camera at the coordinates
2020
2121
<code>(10, 20, 30)</code>.</p>
22-
line: 2667
22+
line: 2668
2323
isConstructor: false
2424
itemtype: method
2525
example:

src/content/reference/en/p5.Camera/move.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description: >
1616
pixels to the right, 20 pixels down, and 30 pixels backward in its "local"
1717
1818
space.</p>
19-
line: 2992
19+
line: 2993
2020
isConstructor: false
2121
itemtype: method
2222
example:

src/content/reference/en/p5.Camera/ortho.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ description: >
5151
<code>far</code> are set to
5252
5353
0 and <code>max(width, height) + 800</code>, respectively.</p>
54-
line: 2085
54+
line: 2086
5555
isConstructor: false
5656
itemtype: method
5757
example:

src/content/reference/en/p5.Camera/pan.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ description: >
2424
<p>Note: Angles are interpreted based on the current
2525
2626
<a href="/reference/p5/angleMode/">angleMode()</a>.</p>
27-
line: 2541
27+
line: 2542
2828
isConstructor: false
2929
itemtype: method
3030
example:

src/content/reference/en/p5.Camera/perspective.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ description: >
8989
<code>10 * 800</code>,
9090
9191
which is 10 times the default distance between the camera and the origin.</p>
92-
line: 1862
92+
line: 1863
9393
isConstructor: false
9494
itemtype: method
9595
example:

src/content/reference/en/p5.Camera/roll.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ description: >
2424
<p>Note: Angles are interpreted based on the current
2525
2626
<a href="/reference/p5/angleMode/">angleMode()</a>.</p>
27-
line: 2463
27+
line: 2464
2828
isConstructor: false
2929
itemtype: method
3030
alt: >-

src/content/reference/en/p5.Camera/set.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: >
1313
1414
<code>cam2.set(cam1)</code> will set <code>cam2</code> using
1515
<code>cam1</code>’s configuration.</p>
16-
line: 3243
16+
line: 3244
1717
isConstructor: false
1818
itemtype: method
1919
example:

src/content/reference/en/p5.Camera/setPosition.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description: >
1616
1717
places the camera at coordinates <code>(10, 20, 30)</code> in "world"
1818
space.</p>
19-
line: 3089
19+
line: 3090
2020
isConstructor: false
2121
itemtype: method
2222
example:

src/content/reference/en/p5.Camera/slerp.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ description: >
4242
close to <code>cam1</code>’s.</p>
4343
4444
<p>Note: All of the cameras must use the same projection.</p>
45-
line: 3320
45+
line: 3321
4646
isConstructor: false
4747
itemtype: method
4848
example:

src/content/reference/en/p5.Camera/tilt.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ description: >
2424
<p>Note: Angles are interpreted based on the current
2525
2626
<a href="/reference/p5/angleMode/">angleMode()</a>.</p>
27-
line: 2604
27+
line: 2605
2828
isConstructor: false
2929
itemtype: method
3030
example:

src/content/reference/en/p5.Camera/upX.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: |
77
<p>The x-component of the camera's "up" vector.</p>
88
<p>The camera's "up" vector orients its y-axis. By default, the "up" vector is
99
<code>(0, 1, 0)</code>, so its x-component is 0 in "local" space.</p>
10-
line: 1525
10+
line: 1526
1111
isConstructor: false
1212
itemtype: property
1313
example:

src/content/reference/en/p5.Camera/upY.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: |
77
<p>The y-component of the camera's "up" vector.</p>
88
<p>The camera's "up" vector orients its y-axis. By default, the "up" vector is
99
<code>(0, 1, 0)</code>, so its y-component is 1 in "local" space.</p>
10-
line: 1636
10+
line: 1637
1111
isConstructor: false
1212
itemtype: property
1313
example:

src/content/reference/en/p5.Camera/upZ.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: |
77
<p>The z-component of the camera's "up" vector.</p>
88
<p>The camera's "up" vector orients its y-axis. By default, the "up" vector is
99
<code>(0, 1, 0)</code>, so its z-component is 0 in "local" space.</p>
10-
line: 1747
10+
line: 1748
1111
isConstructor: false
1212
itemtype: property
1313
example:

src/content/reference/en/p5.Element/addClass.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ submodule: DOM
55
file: src/dom/dom.js
66
description: |
77
<p>Adds a class to the element.</p>
8-
line: 2536
8+
line: 2540
99
isConstructor: false
1010
itemtype: method
1111
example:

src/content/reference/en/p5.Element/attribute.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ description: >
3838
horizontal
3939
4040
alignment to <code>center</code>.</p>
41-
line: 3257
41+
line: 3261
4242
isConstructor: false
4343
itemtype: method
4444
example:
@@ -80,12 +80,12 @@ return:
8080
description: value of the attribute.
8181
type: String
8282
overloads:
83-
- line: 3257
83+
- line: 3261
8484
params: []
8585
return:
8686
description: value of the attribute.
8787
type: String
88-
- line: 3312
88+
- line: 3316
8989
params:
9090
- name: attr
9191
description: |

src/content/reference/en/p5.Element/center.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description: >
1515
is aligned
1616
1717
both vertically and horizontally.</p>
18-
line: 2809
18+
line: 2813
1919
isConstructor: false
2020
itemtype: method
2121
example:

src/content/reference/en/p5.Element/child.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description: >
1414
array of
1515
1616
children DOM nodes is returned.</p>
17-
line: 2704
17+
line: 2708
1818
isConstructor: false
1919
itemtype: method
2020
example:
@@ -92,12 +92,12 @@ return:
9292
description: an array of child nodes.
9393
type: 'Node[]'
9494
overloads:
95-
- line: 2704
95+
- line: 2708
9696
params: []
9797
return:
9898
description: an array of child nodes.
9999
type: 'Node[]'
100-
- line: 2784
100+
- line: 2788
101101
params:
102102
- name: child
103103
description: |

src/content/reference/en/p5.Element/draggable.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: >
1212
1313
<code>myElement.draggable(otherElement)</code>, the other element will become
1414
draggable.</p>
15-
line: 3927
15+
line: 3931
1616
isConstructor: false
1717
itemtype: method
1818
example:

src/content/reference/en/p5.Element/drop.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ description: >
2525
2626
<a
2727
href="https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/">DragEvent</a>.</p>
28-
line: 3772
28+
line: 3776
2929
isConstructor: false
3030
itemtype: method
3131
example:

src/content/reference/en/p5.Element/hasClass.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ submodule: DOM
55
file: src/dom/dom.js
66
description: |
77
<p>Checks if a class is already applied to element.</p>
8-
line: 2618
8+
line: 2622
99
isConstructor: false
1010
itemtype: method
1111
example:

src/content/reference/en/p5.Element/hide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ submodule: DOM
55
file: src/dom/dom.js
66
description: |
77
<p>Hides the current element.</p>
8-
line: 3511
8+
line: 3515
99
isConstructor: false
1010
itemtype: method
1111
example:

src/content/reference/en/p5.Element/html.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ description: >
1818
element's inner
1919
2020
HTML is returned.</p>
21-
line: 2875
21+
line: 2879
2222
isConstructor: false
2323
itemtype: method
2424
example:
@@ -82,12 +82,12 @@ return:
8282
description: the inner HTML of the element
8383
type: String
8484
overloads:
85-
- line: 2875
85+
- line: 2879
8686
params: []
8787
return:
8888
description: the inner HTML of the element
8989
type: String
90-
- line: 2944
90+
- line: 2948
9191
params:
9292
- name: html
9393
description: |

src/content/reference/en/p5.Element/position.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ description: >
2828
returns
2929
3030
the element's position in an object, as in <code>{ x: 0, y: 0 }</code>.</p>
31-
line: 2962
31+
line: 2966
3232
isConstructor: false
3333
itemtype: method
3434
example:
3535
- |-
3636
37-
<div>
38-
<code class='norender'>
37+
<div class='norender'>
38+
<code>
3939
function setup() {
4040
let cnv = createCanvas(100, 100);
4141
@@ -50,8 +50,8 @@ example:
5050
</code>
5151
</div>
5252
53-
<div>
54-
<code class='norender'>
53+
<div class='norender'>
54+
<code>
5555
function setup() {
5656
let cnv = createCanvas(100, 100);
5757
@@ -70,12 +70,12 @@ return:
7070
description: 'object of form `{ x: 0, y: 0 }` containing the element''s position.'
7171
type: Object
7272
overloads:
73-
- line: 2962
73+
- line: 2966
7474
params: []
7575
return:
7676
description: 'object of form `{ x: 0, y: 0 }` containing the element''s position.'
7777
type: Object
78-
- line: 3013
78+
- line: 3017
7979
params:
8080
- name: x
8181
description: |

src/content/reference/en/p5.Element/remove.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ file: src/dom/dom.js
66
description: |
77
<p>Removes the element, stops all audio/video streams, and removes all
88
callback functions.</p>
9-
line: 3713
9+
line: 3717
1010
isConstructor: false
1111
itemtype: method
1212
example:

src/content/reference/en/p5.Element/removeAttribute.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: >
1313
<code>align</code>
1414
1515
attribute if it's been set.</p>
16-
line: 3341
16+
line: 3345
1717
isConstructor: false
1818
itemtype: method
1919
example:

src/content/reference/en/p5.Element/removeClass.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ submodule: DOM
55
file: src/dom/dom.js
66
description: |
77
<p>Removes a class from the element.</p>
8-
line: 2575
8+
line: 2579
99
isConstructor: false
1010
itemtype: method
1111
example:

src/content/reference/en/p5.Element/show.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ submodule: DOM
55
file: src/dom/dom.js
66
description: |
77
<p>Shows the current element.</p>
8-
line: 3475
8+
line: 3479
99
isConstructor: false
1010
itemtype: method
1111
example:

0 commit comments

Comments
 (0)