Skip to content

Commit

Permalink
Merge pull request #553 from processing/clone-release
Browse files Browse the repository at this point in the history
Clone p5.js's latest release instead of main, and remove old reference items
  • Loading branch information
Qianqianye authored Sep 18, 2024
2 parents ccad5b8 + 03cb4ee commit 66a3813
Show file tree
Hide file tree
Showing 382 changed files with 1,178 additions and 2,811 deletions.
90 changes: 30 additions & 60 deletions public/reference/data.json

Large diffs are not rendered by default.

38 changes: 0 additions & 38 deletions src/content/reference/en/JSON/stringify.mdx

This file was deleted.

64 changes: 0 additions & 64 deletions src/content/reference/en/console/log.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion src/content/reference/en/p5.AudioIn/getSources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file: lib/addons/p5.sound.js
description: |
<p>Returns a list of available input sources. This is a wrapper
for <a href="https://developer.mozilla.org/
en-US/docs/Web/API/MediaDevices/enumerateDevices" target="_blank">
en-US/docs/Web/API/MediaDevices/enumerateDevices/" target="_blank">
MediaDevices.enumerateDevices() - Web APIs | MDN</a>
and it returns a Promise.</p>
line: 6280
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.AudioIn/setSource.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: |
position in the array returned by getSources().
This is only available in browsers that support
<a href="https://developer.mozilla.org/
en-US/docs/Web/API/MediaDevices/enumerateDevices" target="_blank">
en-US/docs/Web/API/MediaDevices/enumerateDevices/" target="_blank">
navigator.mediaDevices.enumerateDevices()</a></p>
line: 6340
isConstructor: false
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/camera.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ description: >
the "up"
vector is <code>(0, 1, 0)</code>.</p>
line: 2765
line: 2764
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/centerX.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: >
"world" space, so
<code>myCamera.centerX</code> is 0.</p>
line: 1187
line: 1186
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/centerY.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: >
"world" space, so
<code>myCamera.centerY</code> is 0.</p>
line: 1300
line: 1299
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/centerZ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: >
"world" space, so
<code>myCamera.centerZ</code> is 0.</p>
line: 1413
line: 1412
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/eyeX.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file: src/webgl/p5.Camera.js
description: |
<p>The camera’s y-coordinate.</p>
<p>By default, the camera’s y-coordinate is set to 0 in "world" space.</p>
line: 851
line: 850
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/eyeY.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file: src/webgl/p5.Camera.js
description: |
<p>The camera’s y-coordinate.</p>
<p>By default, the camera’s y-coordinate is set to 0 in "world" space.</p>
line: 963
line: 962
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/eyeZ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file: src/webgl/p5.Camera.js
description: |
<p>The camera’s z-coordinate.</p>
<p>By default, the camera’s z-coordinate is set to 800 in "world" space.</p>
line: 1075
line: 1074
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/frustum.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ description: >
the
camera and the origin.</p>
line: 2274
line: 2273
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/lookAt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ description: >
<code>myCamera.lookAt(10, 20, 30)</code> points the camera at the coordinates
<code>(10, 20, 30)</code>.</p>
line: 2668
line: 2667
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/move.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: >
pixels to the right, 20 pixels down, and 30 pixels backward in its "local"
space.</p>
line: 2993
line: 2992
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/ortho.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ description: >
<code>far</code> are set to
0 and <code>max(width, height) + 800</code>, respectively.</p>
line: 2086
line: 2085
isConstructor: false
itemtype: method
example:
Expand Down
4 changes: 2 additions & 2 deletions src/content/reference/en/p5.Camera/pan.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ description: >
<p>Note: Angles are interpreted based on the current
<a href="/reference/p5/angleMode">angleMode()</a>.</p>
line: 2542
<a href="/reference/p5/angleMode/">angleMode()</a>.</p>
line: 2541
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/perspective.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ description: >
<code>10 * 800</code>,
which is 10 times the default distance between the camera and the origin.</p>
line: 1863
line: 1862
isConstructor: false
itemtype: method
example:
Expand Down
4 changes: 2 additions & 2 deletions src/content/reference/en/p5.Camera/roll.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ description: >
<p>Note: Angles are interpreted based on the current
<a href="/reference/p5/angleMode">angleMode()</a>.</p>
line: 2464
<a href="/reference/p5/angleMode/">angleMode()</a>.</p>
line: 2463
isConstructor: false
itemtype: method
alt: >-
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/set.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description: >
<code>cam2.set(cam1)</code> will set <code>cam2</code> using
<code>cam1</code>’s configuration.</p>
line: 3244
line: 3243
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/setPosition.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: >
places the camera at coordinates <code>(10, 20, 30)</code> in "world"
space.</p>
line: 3090
line: 3089
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/slerp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ description: >
close to <code>cam1</code>’s.</p>
<p>Note: All of the cameras must use the same projection.</p>
line: 3321
line: 3320
isConstructor: false
itemtype: method
example:
Expand Down
4 changes: 2 additions & 2 deletions src/content/reference/en/p5.Camera/tilt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ description: >
<p>Note: Angles are interpreted based on the current
<a href="/reference/p5/angleMode">angleMode()</a>.</p>
line: 2605
<a href="/reference/p5/angleMode/">angleMode()</a>.</p>
line: 2604
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/upX.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: |
<p>The x-component of the camera's "up" vector.</p>
<p>The camera's "up" vector orients its y-axis. By default, the "up" vector is
<code>(0, 1, 0)</code>, so its x-component is 0 in "local" space.</p>
line: 1526
line: 1525
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/upY.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: |
<p>The y-component of the camera's "up" vector.</p>
<p>The camera's "up" vector orients its y-axis. By default, the "up" vector is
<code>(0, 1, 0)</code>, so its y-component is 1 in "local" space.</p>
line: 1637
line: 1636
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/upZ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: |
<p>The z-component of the camera's "up" vector.</p>
<p>The camera's "up" vector orients its y-axis. By default, the "up" vector is
<code>(0, 1, 0)</code>, so its z-component is 0 in "local" space.</p>
line: 1748
line: 1747
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Color/setAlpha.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: >
<p>The range depends on the
<a href="/reference/p5/colorMode">colorMode()</a>. In the default RGB mode
<a href="/reference/p5/colorMode/">colorMode()</a>. In the default RGB mode
it's
between 0 and 255.</p>
Expand Down
4 changes: 2 additions & 2 deletions src/content/reference/en/p5.Color/setBlue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ file: src/color/p5.Color.js
description: >
<p>Sets the blue component of a color.</p>
<p>The range depends on the <a href="/reference/p5/colorMode">colorMode()</a>.
In the
<p>The range depends on the <a
href="/reference/p5/colorMode/">colorMode()</a>. In the
default RGB mode it's between 0 and 255.</p>
line: 655
Expand Down
4 changes: 2 additions & 2 deletions src/content/reference/en/p5.Color/setGreen.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ file: src/color/p5.Color.js
description: >
<p>Sets the green component of a color.</p>
<p>The range depends on the <a href="/reference/p5/colorMode">colorMode()</a>.
In the
<p>The range depends on the <a
href="/reference/p5/colorMode/">colorMode()</a>. In the
default RGB mode it's between 0 and 255.</p>
line: 613
Expand Down
4 changes: 2 additions & 2 deletions src/content/reference/en/p5.Color/setRed.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ file: src/color/p5.Color.js
description: >
<p>Sets the red component of a color.</p>
<p>The range depends on the <a href="/reference/p5/colorMode">colorMode()</a>.
In the
<p>The range depends on the <a
href="/reference/p5/colorMode/">colorMode()</a>. In the
default RGB mode it's between 0 and 255.</p>
line: 571
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Element/class.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: >
<p>Adds a
<a
href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class"
href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class/"
target="_blank">class attribute</a>
to the element using a given string.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Element/drop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description: >
parameter, <code>event</code>, that's a
<a
href="https://developer.mozilla.org/en-US/docs/Web/API/DragEvent">DragEvent</a>.</p>
href="https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/">DragEvent</a>.</p>
line: 3772
isConstructor: false
itemtype: method
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Element/elt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: >
<p>The
<a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement"
<a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/"
target="_blank">HTMLElement</a>
object's properties and methods can be used directly.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Element/position.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description: >
element's
<a target="_blank"
href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">positioning
href="https://developer.mozilla.org/en-US/docs/Web/CSS/position/">positioning
scheme</a>.
<code>positionType</code> is a string that can be either
Expand Down
Loading

0 comments on commit 66a3813

Please sign in to comment.