We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c3911 commit 3efe5cbCopy full SHA for 3efe5cb
1 file changed
src/type/textCore.js
@@ -755,6 +755,9 @@ function textCore(p5, fn) {
755
*
756
* For example, if the text contains multiple lines due to wrapping or explicit line breaks, textWidth()
757
* will return the width of the longest line.
758
+ *
759
+ * **Note:** In p5.js 2.0+, leading and trailing spaces are ignored.
760
+ * `textWidth(" Hello ")` returns the same width as `textWidth("Hello")`.
761
762
* @method textWidth
763
* @for p5
@@ -817,9 +820,6 @@ function textCore(p5, fn) {
817
820
* </code>
818
821
* </div>
819
822
- * **Note:** In p5.js 2.0+, leading and trailing spaces are ignored.
- * `textWidth(" Hello ")` returns the same width as `textWidth("Hello")`.
- *
823
* @example
824
* <div>
825
* <code>
0 commit comments