@@ -9,8 +9,8 @@ import p5 from './main';
99/**
1010 * Base class for all elements added to a sketch, including canvas,
1111 * graphics buffers, and other HTML elements. It is not called directly, but <a href="#/p5.Element">p5.Element</a>
12- * objects are created by calling <a href="#/p5/createCanvas">createCanvas</a>, <a href="#/p5/createGraphics">createGraphics</a>,
13- * <a href="#/p5/createDiv">createDiv</a>, <a href="#/p5/createImg">createImg</a>, <a href="#/p5/createInput">createInput</a>, etc.
12+ * objects are created by calling <a href="#/p5/createCanvas">createCanvas() </a>, <a href="#/p5/createGraphics">createGraphics() </a>,
13+ * <a href="#/p5/createDiv">createDiv() </a>, <a href="#/p5/createImg">createImg() </a>, <a href="#/p5/createInput">createInput() </a>, etc.
1414 *
1515 * @class p5.Element
1616 * @constructor
@@ -48,7 +48,7 @@ p5.Element = function(elt, pInst) {
4848 *
4949 * Attaches the element to the parent specified. A way of setting
5050 * the container for the element. Accepts either a string ID, DOM
51- * node, or <a href="#/p5.Element">p5.Element</a>. If no arguments given, parent node is returned.
51+ * node, or <a href="#/p5.Element">p5.Element</a>. If no arguments are given, parent node is returned.
5252 * For more ways to position the canvas, see the
5353 * <a href='https://github.com/processing/p5.js/wiki/Positioning-your-canvas'>
5454 * positioning the canvas</a> wiki page.
@@ -116,7 +116,7 @@ p5.Element.prototype.parent = function(p) {
116116 * Sets the ID of the element. If no ID argument is passed in, it instead
117117 * returns the current ID of the element.
118118 * Note that only one element can have a particular id in a page.
119- * The <a href="#/p5.Element/class">. class()</a> function can be used
119+ * The <a href="#/p5.Element/class">class()</a> method can be used
120120 * to identify multiple elements with the same class name.
121121 *
122122 * @method id
@@ -187,10 +187,10 @@ p5.Element.prototype.class = function(c) {
187187} ;
188188
189189/**
190- * The . <a href="#/p5.Element/mousePressed">mousePressed()</a> function is called
190+ * The <a href="#/p5.Element/mousePressed">mousePressed()</a> method is called
191191 * once after every time a mouse button is pressed over the element. Some mobile
192192 * browsers may also trigger this event on a touch screen, if the user performs
193- * a quick tap. This can be used to attach element specific event listeners.
193+ * a quick tap. This can be used to attach element- specific event listeners.
194194 *
195195 * @method mousePressed
196196 * @param {Function|Boolean } fxn function to be fired when mouse is
@@ -244,9 +244,9 @@ p5.Element.prototype.mousePressed = function(fxn) {
244244} ;
245245
246246/**
247- * The . <a href="#/p5.Element/doubleClicked">doubleClicked()</a> function is called once after every time a
247+ * The <a href="#/p5.Element/doubleClicked">doubleClicked()</a> method is called once after every time a
248248 * mouse button is pressed twice over the element. This can be used to
249- * attach element and action specific event listeners.
249+ * attach element and action- specific event listeners.
250250 *
251251 * @method doubleClicked
252252 * @param {Function|Boolean } fxn function to be fired when mouse is
@@ -290,18 +290,18 @@ p5.Element.prototype.doubleClicked = function(fxn) {
290290} ;
291291
292292/**
293- * The <a href="#/p5.Element/mouseWheel">mouseWheel()</a> function is called
293+ * The <a href="#/p5.Element/mouseWheel">mouseWheel()</a> method is called
294294 * once after every time a mouse wheel is scrolled over the element. This can
295- * be used to attach element specific event listeners.
295+ * be used to attach element- specific event listeners.
296296 *
297- * The function accepts a callback function as argument which will be executed
297+ * The method accepts a callback function as argument which will be executed
298298 * when the `wheel` event is triggered on the element, the callback function is
299299 * passed one argument `event`. The `event.deltaY` property returns negative
300300 * values if the mouse wheel is rotated up or away from the user and positive
301301 * in the other direction. The `event.deltaX` does the same as `event.deltaY`
302302 * except it reads the horizontal wheel scroll of the mouse wheel.
303303 *
304- * On OS X with "natural" scrolling enabled, the `event.deltaY` values are
304+ * On macOS with "natural" scrolling enabled, the `event.deltaY` values are
305305 * reversed.
306306 *
307307 * @method mouseWheel
@@ -352,10 +352,10 @@ p5.Element.prototype.mouseWheel = function(fxn) {
352352} ;
353353
354354/**
355- * The <a href="#/p5.Element/mouseReleased">mouseReleased()</a> function is
355+ * The <a href="#/p5.Element/mouseReleased">mouseReleased()</a> method is
356356 * called once after every time a mouse button is released over the element.
357357 * Some mobile browsers may also trigger this event on a touch screen, if the
358- * user performs a quick tap. This can be used to attach element specific event listeners.
358+ * user performs a quick tap. This can be used to attach element- specific event listeners.
359359 *
360360 * @method mouseReleased
361361 * @param {Function|Boolean } fxn function to be fired when mouse is
@@ -401,10 +401,10 @@ p5.Element.prototype.mouseReleased = function(fxn) {
401401} ;
402402
403403/**
404- * The . <a href="#/p5.Element/mouseClicked">mouseClicked()</a> function is
404+ * The <a href="#/p5.Element/mouseClicked">mouseClicked()</a> method is
405405 * called once after a mouse button is pressed and released over the element.
406406 * Some mobile browsers may also trigger this event on a touch screen, if the
407- * user performs a quick tap.This can be used to attach element specific event listeners.
407+ * user performs a quick tap. This can be used to attach element- specific event listeners.
408408 *
409409 * @method mouseClicked
410410 * @param {Function|Boolean } fxn function to be fired when mouse is
@@ -452,9 +452,9 @@ p5.Element.prototype.mouseClicked = function(fxn) {
452452} ;
453453
454454/**
455- * The . <a href="#/p5.Element/mouseMoved">mouseMoved()</a> function is called once every time a
455+ * The <a href="#/p5.Element/mouseMoved">mouseMoved()</a> method is called once every time a
456456 * mouse moves over the element. This can be used to attach an
457- * element specific event listener.
457+ * element- specific event listener.
458458 *
459459 * @method mouseMoved
460460 * @param {Function|Boolean } fxn function to be fired when a mouse moves
@@ -508,9 +508,9 @@ p5.Element.prototype.mouseMoved = function(fxn) {
508508} ;
509509
510510/**
511- * The . <a href="#/p5.Element/mouseOver">mouseOver()</a> function is called once after every time a
511+ * The <a href="#/p5.Element/mouseOver">mouseOver()</a> method is called once after every time a
512512 * mouse moves onto the element. This can be used to attach an
513- * element specific event listener.
513+ * element- specific event listener.
514514 *
515515 * @method mouseOver
516516 * @param {Function|Boolean } fxn function to be fired when a mouse moves
@@ -549,9 +549,9 @@ p5.Element.prototype.mouseOver = function(fxn) {
549549} ;
550550
551551/**
552- * The . <a href="#/p5.Element/mouseOut">mouseOut()</a> function is called once after every time a
552+ * The <a href="#/p5.Element/mouseOut">mouseOut()</a> method is called once after every time a
553553 * mouse moves off the element. This can be used to attach an
554- * element specific event listener.
554+ * element- specific event listener.
555555 *
556556 * @method mouseOut
557557 * @param {Function|Boolean } fxn function to be fired when a mouse
@@ -590,8 +590,8 @@ p5.Element.prototype.mouseOut = function(fxn) {
590590} ;
591591
592592/**
593- * The . <a href="#/p5.Element/touchStarted">touchStarted()</a> function is called once after every time a touch is
594- * registered. This can be used to attach element specific event listeners.
593+ * The <a href="#/p5.Element/touchStarted">touchStarted()</a> method is called once after every time a touch is
594+ * registered. This can be used to attach element- specific event listeners.
595595 *
596596 * @method touchStarted
597597 * @param {Function|Boolean } fxn function to be fired when a touch
@@ -637,8 +637,8 @@ p5.Element.prototype.touchStarted = function(fxn) {
637637} ;
638638
639639/**
640- * The . <a href="#/p5.Element/touchMoved">touchMoved()</a> function is called once after every time a touch move is
641- * registered. This can be used to attach element specific event listeners.
640+ * The <a href="#/p5.Element/touchMoved">touchMoved()</a> method is called once after every time a touch move is
641+ * registered. This can be used to attach element- specific event listeners.
642642 *
643643 * @method touchMoved
644644 * @param {Function|Boolean } fxn function to be fired when a touch moves over
@@ -676,8 +676,8 @@ p5.Element.prototype.touchMoved = function(fxn) {
676676} ;
677677
678678/**
679- * The . <a href="#/p5.Element/touchEnded">touchEnded()</a> function is called once after every time a touch is
680- * registered. This can be used to attach element specific event listeners.
679+ * The <a href="#/p5.Element/touchEnded">touchEnded()</a> method is called once after every time a touch is
680+ * registered. This can be used to attach element- specific event listeners.
681681 *
682682 * @method touchEnded
683683 * @param {Function|Boolean } fxn function to be fired when a touch ends
@@ -723,9 +723,9 @@ p5.Element.prototype.touchEnded = function(fxn) {
723723} ;
724724
725725/**
726- * The . <a href="#/p5.Element/dragOver">dragOver()</a> function is called once after every time a
726+ * The <a href="#/p5.Element/dragOver">dragOver()</a> method is called once after every time a
727727 * file is dragged over the element. This can be used to attach an
728- * element specific event listener.
728+ * element- specific event listener.
729729 *
730730 * @method dragOver
731731 * @param {Function|Boolean } fxn function to be fired when a file is
@@ -761,9 +761,9 @@ p5.Element.prototype.dragOver = function(fxn) {
761761} ;
762762
763763/**
764- * The . dragLeave() function is called once after every time a
764+ * The <a href="#/p5.Element/ dragLeave">dragLeave()</a> method is called once after every time a
765765 * dragged file leaves the element area. This can be used to attach an
766- * element specific event listener.
766+ * element- specific event listener.
767767 *
768768 * @method dragLeave
769769 * @param {Function|Boolean } fxn function to be fired when a file is
0 commit comments