Skip to content

Commit e824c51

Browse files
committed
changed the mispelling of paremeter to parameter
1 parent ad4d38c commit e824c51

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

public/reference/data.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10675,7 +10675,7 @@
1067510675
{
1067610676
"file": "src/dom/dom.js",
1067710677
"line": 1159,
10678-
"description": "<p>Creates a dropdown menu <code>&lt;select&gt;&lt;/select&gt;</code> element.</p>\n<p>The parameter is optional. If <code>true</code> is passed, as in\n<code>let mySelect = createSelect(true)</code>, then the dropdown will support\nmultiple selections. If an existing <code>&lt;select&gt;&lt;/select&gt;</code> element\nis passed, as in <code>let mySelect = createSelect(otherSelect)</code>, the existing\nelement will be wrapped in a new <a href=\"#/p5.Element\">p5.Element</a>\nobject.</p>\n<p>Dropdowns extend the <a href=\"#/p5.Element\">p5.Element</a> class with a few\nhelpful methods for managing options:</p>\n<ul>\n<li><code>mySelect.option(name, [value])</code> adds an option to the menu. The first paremeter, <code>name</code>, is a string that sets the option's name and value. The second parameter, <code>value</code>, is optional. If provided, it sets the value that corresponds to the key <code>name</code>. If an option with <code>name</code> already exists, its value is changed to <code>value</code>.</li>\n<li><code>mySelect.value()</code> returns the currently-selected option's value.</li>\n<li><code>mySelect.selected()</code> returns the currently-selected option.</li>\n<li><code>mySelect.selected(option)</code> selects the given option by default.</li>\n<li><code>mySelect.disable()</code> marks the whole dropdown element as disabled.</li>\n<li><code>mySelect.disable(option)</code> marks a given option as disabled.</li>\n<li><code>mySelect.enable()</code> marks the whole dropdown element as enabled.</li>\n<li><code>mySelect.enable(option)</code> marks a given option as enabled.</li>\n</ul>\n",
10678+
"description": "<p>Creates a dropdown menu <code>&lt;select&gt;&lt;/select&gt;</code> element.</p>\n<p>The parameter is optional. If <code>true</code> is passed, as in\n<code>let mySelect = createSelect(true)</code>, then the dropdown will support\nmultiple selections. If an existing <code>&lt;select&gt;&lt;/select&gt;</code> element\nis passed, as in <code>let mySelect = createSelect(otherSelect)</code>, the existing\nelement will be wrapped in a new <a href=\"#/p5.Element\">p5.Element</a>\nobject.</p>\n<p>Dropdowns extend the <a href=\"#/p5.Element\">p5.Element</a> class with a few\nhelpful methods for managing options:</p>\n<ul>\n<li><code>mySelect.option(name, [value])</code> adds an option to the menu. The first parameter, <code>name</code>, is a string that sets the option's name and value. The second parameter, <code>value</code>, is optional. If provided, it sets the value that corresponds to the key <code>name</code>. If an option with <code>name</code> already exists, its value is changed to <code>value</code>.</li>\n<li><code>mySelect.value()</code> returns the currently-selected option's value.</li>\n<li><code>mySelect.selected()</code> returns the currently-selected option.</li>\n<li><code>mySelect.selected(option)</code> selects the given option by default.</li>\n<li><code>mySelect.disable()</code> marks the whole dropdown element as disabled.</li>\n<li><code>mySelect.disable(option)</code> marks a given option as disabled.</li>\n<li><code>mySelect.enable()</code> marks the whole dropdown element as enabled.</li>\n<li><code>mySelect.enable(option)</code> marks a given option as enabled.</li>\n</ul>\n",
1067910679
"itemtype": "method",
1068010680
"name": "createSelect",
1068110681
"return": {
@@ -10723,7 +10723,7 @@
1072310723
{
1072410724
"file": "src/dom/dom.js",
1072510725
"line": 1440,
10726-
"description": "<p>Creates a radio button element.</p>\n<p>The parameter is optional. If a string is passed, as in\n<code>let myRadio = createSelect('food')</code>, then each radio option will\nhave <code>\"food\"</code> as its <code>name</code> parameter: <code>&lt;input name=\"food\"&gt;&lt;/input&gt;</code>.\nIf an existing <code>&lt;div&gt;&lt;/div&gt;</code> or <code>&lt;span&gt;&lt;/span&gt;</code>\nelement is passed, as in <code>let myRadio = createSelect(container)</code>, it will\nbecome the radio button's parent element.</p>\n<p>Radio buttons extend the <a href=\"#/p5.Element\">p5.Element</a> class with a few\nhelpful methods for managing options:</p>\n<ul>\n<li><code>myRadio.option(value, [label])</code> adds an option to the menu. The first paremeter, <code>value</code>, is a string that sets the option's value and label. The second parameter, <code>label</code>, is optional. If provided, it sets the label displayed for the <code>value</code>. If an option with <code>value</code> already exists, its label is changed and its value is returned.</li>\n<li><code>myRadio.value()</code> returns the currently-selected option's value.</li>\n<li><code>myRadio.selected()</code> returns the currently-selected option.</li>\n<li><code>myRadio.selected(value)</code> selects the given option and returns it as an <a href=\"https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement\" target=\"_blank\"><code>HTMLInputElement</code></a>.</li>\n<li><code>myRadio.disable(shouldDisable)</code> enables the entire radio button if <code>true</code> is passed and disables it if <code>false</code> is passed.</li>\n</ul>\n",
10726+
"description": "<p>Creates a radio button element.</p>\n<p>The parameter is optional. If a string is passed, as in\n<code>let myRadio = createSelect('food')</code>, then each radio option will\nhave <code>\"food\"</code> as its <code>name</code> parameter: <code>&lt;input name=\"food\"&gt;&lt;/input&gt;</code>.\nIf an existing <code>&lt;div&gt;&lt;/div&gt;</code> or <code>&lt;span&gt;&lt;/span&gt;</code>\nelement is passed, as in <code>let myRadio = createSelect(container)</code>, it will\nbecome the radio button's parent element.</p>\n<p>Radio buttons extend the <a href=\"#/p5.Element\">p5.Element</a> class with a few\nhelpful methods for managing options:</p>\n<ul>\n<li><code>myRadio.option(value, [label])</code> adds an option to the menu. The first parameter, <code>value</code>, is a string that sets the option's value and label. The second parameter, <code>label</code>, is optional. If provided, it sets the label displayed for the <code>value</code>. If an option with <code>value</code> already exists, its label is changed and its value is returned.</li>\n<li><code>myRadio.value()</code> returns the currently-selected option's value.</li>\n<li><code>myRadio.selected()</code> returns the currently-selected option.</li>\n<li><code>myRadio.selected(value)</code> selects the given option and returns it as an <a href=\"https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement\" target=\"_blank\"><code>HTMLInputElement</code></a>.</li>\n<li><code>myRadio.disable(shouldDisable)</code> enables the entire radio button if <code>true</code> is passed and disables it if <code>false</code> is passed.</li>\n</ul>\n",
1072710727
"itemtype": "method",
1072810728
"name": "createRadio",
1072910729
"return": {
@@ -13116,7 +13116,7 @@
1311613116
{
1311713117
"file": "src/image/loading_displaying.js",
1311813118
"line": 888,
13119-
"description": "<p>Draws an image to the canvas.</p>\n<p>The first parameter, <code>img</code>, is the source image to be drawn. <code>img</code> can be\nany of the following objects:</p>\n<ul>\n<li><a href=\"#/p5.Image\">p5.Image</a></li>\n<li><a href=\"#/p5.Element\">p5.Element</a></li>\n<li><a href=\"#/p5.Texture\">p5.Texture</a></li>\n<li><a href=\"#/p5.Framebuffer\">p5.Framebuffer</a></li>\n<li><a href=\"#/p5.FramebufferTexture\">p5.FramebufferTexture</a></li>\n</ul>\n<p>The second and third parameters, <code>dx</code> and <code>dy</code>, set the coordinates of the\ndestination image's top left corner. See\n<a href=\"#/p5/imageMode\">imageMode()</a> for other ways to position images.</p>\n<p>Here's a diagram that explains how optional parameters work in <code>image()</code>:</p>\n<p><img src=\"assets/drawImage.png\"></img></p>\n<p>The fourth and fifth parameters, <code>dw</code> and <code>dh</code>, are optional. They set the\nthe width and height to draw the destination image. By default, <code>image()</code>\ndraws the full source image at its original size.</p>\n<p>The sixth and seventh parameters, <code>sx</code> and <code>sy</code>, are also optional.\nThese coordinates define the top left corner of a subsection to draw from\nthe source image.</p>\n<p>The eighth and ninth parameters, <code>sw</code> and <code>sh</code>, are also optional.\nThey define the width and height of a subsection to draw from the source\nimage. By default, <code>image()</code> draws the full subsection that begins at\n<code>(sx, sy)</code> and extends to the edges of the source image.</p>\n<p>The ninth parameter, <code>fit</code>, is also optional. It enables a subsection of\nthe source image to be drawn without affecting its aspect ratio. If\n<code>CONTAIN</code> is passed, the full subsection will appear within the destination\nrectangle. If <code>COVER</code> is passed, the subsection will completely cover the\ndestination rectangle. This may have the effect of zooming into the\nsubsection.</p>\n<p>The tenth and eleventh paremeters, <code>xAlign</code> and <code>yAlign</code>, are also\noptional. They determine how to align the fitted subsection. <code>xAlign</code> can\nbe set to either <code>LEFT</code>, <code>RIGHT</code>, or <code>CENTER</code>. <code>yAlign</code> can be set to\neither <code>TOP</code>, <code>BOTTOM</code>, or <code>CENTER</code>. By default, both <code>xAlign</code> and <code>yAlign</code>\nare set to <code>CENTER</code>.</p>\n",
13119+
"description": "<p>Draws an image to the canvas.</p>\n<p>The first parameter, <code>img</code>, is the source image to be drawn. <code>img</code> can be\nany of the following objects:</p>\n<ul>\n<li><a href=\"#/p5.Image\">p5.Image</a></li>\n<li><a href=\"#/p5.Element\">p5.Element</a></li>\n<li><a href=\"#/p5.Texture\">p5.Texture</a></li>\n<li><a href=\"#/p5.Framebuffer\">p5.Framebuffer</a></li>\n<li><a href=\"#/p5.FramebufferTexture\">p5.FramebufferTexture</a></li>\n</ul>\n<p>The second and third parameters, <code>dx</code> and <code>dy</code>, set the coordinates of the\ndestination image's top left corner. See\n<a href=\"#/p5/imageMode\">imageMode()</a> for other ways to position images.</p>\n<p>Here's a diagram that explains how optional parameters work in <code>image()</code>:</p>\n<p><img src=\"assets/drawImage.png\"></img></p>\n<p>The fourth and fifth parameters, <code>dw</code> and <code>dh</code>, are optional. They set the\nthe width and height to draw the destination image. By default, <code>image()</code>\ndraws the full source image at its original size.</p>\n<p>The sixth and seventh parameters, <code>sx</code> and <code>sy</code>, are also optional.\nThese coordinates define the top left corner of a subsection to draw from\nthe source image.</p>\n<p>The eighth and ninth parameters, <code>sw</code> and <code>sh</code>, are also optional.\nThey define the width and height of a subsection to draw from the source\nimage. By default, <code>image()</code> draws the full subsection that begins at\n<code>(sx, sy)</code> and extends to the edges of the source image.</p>\n<p>The ninth parameter, <code>fit</code>, is also optional. It enables a subsection of\nthe source image to be drawn without affecting its aspect ratio. If\n<code>CONTAIN</code> is passed, the full subsection will appear within the destination\nrectangle. If <code>COVER</code> is passed, the subsection will completely cover the\ndestination rectangle. This may have the effect of zooming into the\nsubsection.</p>\n<p>The tenth and eleventh parameters, <code>xAlign</code> and <code>yAlign</code>, are also\noptional. They determine how to align the fitted subsection. <code>xAlign</code> can\nbe set to either <code>LEFT</code>, <code>RIGHT</code>, or <code>CENTER</code>. <code>yAlign</code> can be set to\neither <code>TOP</code>, <code>BOTTOM</code>, or <code>CENTER</code>. By default, both <code>xAlign</code> and <code>yAlign</code>\nare set to <code>CENTER</code>.</p>\n",
1312013120
"itemtype": "method",
1312113121
"name": "image",
1312213122
"example": [

src/content/reference/en/p5/createRadio.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ description: >
2828
<ul>
2929
3030
<li><code>myRadio.option(value, [label])</code> adds an option to the menu.
31-
The first paremeter, <code>value</code>, is a string that sets the option's
31+
The first parameter, <code>value</code>, is a string that sets the option's
3232
value and label. The second parameter, <code>label</code>, is optional. If
3333
provided, it sets the label displayed for the <code>value</code>. If an option
3434
with <code>value</code> already exists, its label is changed and its value is

src/content/reference/en/p5/createSelect.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ description: >
2828
<ul>
2929
3030
<li><code>mySelect.option(name, [value])</code> adds an option to the menu.
31-
The first paremeter, <code>name</code>, is a string that sets the option's
31+
The first parameter, <code>name</code>, is a string that sets the option's
3232
name and value. The second parameter, <code>value</code>, is optional. If
3333
provided, it sets the value that corresponds to the key <code>name</code>. If
3434
an option with <code>name</code> already exists, its value is changed to

src/content/reference/en/p5/image.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ description: >
7979
8080
subsection.</p>
8181
82-
<p>The tenth and eleventh paremeters, <code>xAlign</code> and
82+
<p>The tenth and eleventh parameters, <code>xAlign</code> and
8383
<code>yAlign</code>, are also
8484
8585
optional. They determine how to align the fitted subsection.

src/content/reference/ko/p5/p5.Image.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ methods:
124124
125125
<a href="#/p5.Image/set">img.set()</a>를 호출하여 이루어질 수 있습니다.</p>
126126
127-
<p>선택적 매개변수(paremeter)인 <code>x</code>, <code>y</code>, <code>width</code>, <code>height</code>는
127+
<p>선택적 매개변수(parameter)인 <code>x</code>, <code>y</code>, <code>width</code>, <code>height</code>는
128128
129129
업데이트할 <a href="#/p5.Image">p5.Image</a> 객체의 하위 섹션(subsection)을 정의합니다.
130130

0 commit comments

Comments
 (0)