File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -755,6 +755,9 @@ function textCore(p5, fn) {
755
755
*
756
756
* For example, if the text contains multiple lines due to wrapping or explicit line breaks, textWidth()
757
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")`.
758
761
*
759
762
* @method textWidth
760
763
* @for p5
@@ -817,9 +820,6 @@ function textCore(p5, fn) {
817
820
* </code>
818
821
* </div>
819
822
*
820
- * **Note:** In p5.js 2.0+, leading and trailing spaces are ignored.
821
- * `textWidth(" Hello ")` returns the same width as `textWidth("Hello")`.
822
- *
823
823
* @example
824
824
* <div>
825
825
* <code>
You can’t perform that action at this time.
0 commit comments