Skip to content

Updated some JsDoc definitions #5578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Feb 12, 2022
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/addons/p5.sound.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function getAudioContext() {
* example below. This method utilizes
* <a href="https://github.com/tambien/StartAudioContext">StartAudioContext
* </a>, a library by Yotam Mann (MIT Licence, 2016).</p>
* @param {Element|Array} [element(s)] This argument can be an Element,
* @param {Element|Array} [elements] This argument can be an Element,
* Selector String, NodeList, p5.Element,
* jQuery Element, or an Array of any of those.
* @param {Function} [callback] Callback to invoke when the AudioContext
Expand Down
6 changes: 3 additions & 3 deletions src/core/shape/vertex.js
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ p5.prototype.quadraticVertex = function(...args) {
* @method vertex
* @param {Number} x
* @param {Number} y
* @param {Number} z z-coordinate of the vertex.
* @param {Number} [z] z-coordinate of the vertex.
* Defaults to 0 if not specified.
* @chainable
*/
Expand All @@ -967,8 +967,8 @@ p5.prototype.quadraticVertex = function(...args) {
* @param {Number} x
* @param {Number} y
* @param {Number} [z]
* @param {Number} u the vertex's texture u-coordinate
* @param {Number} v the vertex's texture v-coordinate
* @param {Number} [u] the vertex's texture u-coordinate
* @param {Number} [v] the vertex's texture v-coordinate
* @chainable
*/
p5.prototype.vertex = function(x, y, moveTo, u, v) {
Expand Down
37 changes: 31 additions & 6 deletions src/core/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,37 @@ import p5 from './main';
* alt="The transformation matrix used when applyMatrix is called"/>
*
* @method applyMatrix
* @param {Number|Array} a numbers which define the 2×3 matrix to be multiplied, or an array of numbers
* @param {Number} b numbers which define the 2×3 matrix to be multiplied
* @param {Number} c numbers which define the 2×3 matrix to be multiplied
* @param {Number} d numbers which define the 2×3 matrix to be multiplied
* @param {Number} e numbers which define the 2×3 matrix to be multiplied
* @param {Number} f numbers which define the 2×3 matrix to be multiplied
* @param {Array} arr an array of numbers
* @chainable
*/
/**
* @method applyMatrix
* @param {Number} a_2x3 numbers which define the 2×3 matrix to be multiplied
* @param {Number} b_2x3 numbers which define the 2×3 matrix to be multiplied
* @param {Number} c_2x3 numbers which define the 2×3 matrix to be multiplied
* @param {Number} d_2x3 numbers which define the 2×3 matrix to be multiplied
* @param {Number} e_2x3 numbers which define the 2×3 matrix to be multiplied
* @param {Number} f_2x3 numbers which define the 2×3 matrix to be multiplied
* @chainable
*/
/**
* @method applyMatrix
* @param {Number} a_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} b_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} c_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} d_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} e_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} f_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} g_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} h_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} i_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} j_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} k_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} l_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} m_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} n_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} o_4x4 numbers which define the 4x4 matrix to be multiplied
* @param {Number} p_4x4 numbers which define the 4x4 matrix to be multiplied
* @chainable
* @example
* <div>
Expand Down