p5 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accessibility/color_namer.js +5 -5
- package/dist/accessibility/describe.js +10 -0
- package/dist/accessibility/index.js +5 -5
- package/dist/accessibility/outputs.js +21 -0
- package/dist/app.js +5 -5
- package/dist/color/color_conversion.js +5 -5
- package/dist/color/creating_reading.js +1 -1
- package/dist/color/index.js +2 -2
- package/dist/color/p5.Color.js +1 -1
- package/dist/color/setting.js +2 -2
- package/dist/{constants-C-g_eAdC.js → constants-BRcElHU3.js} +19 -3
- package/dist/core/constants.js +1 -1
- package/dist/core/environment.js +6 -5
- package/dist/core/friendly_errors/fes_core.js +1 -1
- package/dist/core/friendly_errors/index.js +1 -1
- package/dist/core/friendly_errors/param_validator.js +46 -93
- package/dist/core/friendly_errors/sketch_reader.js +5 -5
- package/dist/core/friendly_errors/sketch_verifier.js +1 -1
- package/dist/core/friendly_errors/validate_params.js +5 -5
- package/dist/core/helpers.js +1 -1
- package/dist/core/init.js +5 -5
- package/dist/core/legacy.js +5 -5
- package/dist/core/main.js +5 -5
- package/dist/core/p5.Graphics.js +4 -4
- package/dist/core/p5.Renderer.js +3 -3
- package/dist/core/p5.Renderer2D.js +5 -5
- package/dist/core/rendering.js +4 -4
- package/dist/{creating_reading-D4AAKRbx.js → creating_reading-Cr8L2Jnm.js} +2 -2
- package/dist/dom/dom.js +10 -10
- package/dist/dom/index.js +2 -2
- package/dist/dom/p5.Element.js +2 -2
- package/dist/dom/p5.MediaElement.js +2 -2
- package/dist/events/acceleration.js +24 -24
- package/dist/events/keyboard.js +11 -6
- package/dist/image/const.js +1 -1
- package/dist/image/filterRenderer2D.js +4 -4
- package/dist/image/image.js +4 -4
- package/dist/image/index.js +4 -4
- package/dist/image/loading_displaying.js +4 -4
- package/dist/image/p5.Image.js +3 -3
- package/dist/image/pixels.js +1 -0
- package/dist/io/files.js +4 -4
- package/dist/io/index.js +4 -4
- package/dist/io/p5.TableRow.js +2 -2
- package/dist/{main-s72KWcUy.js → main-BKN5yFoS.js} +12 -9
- package/dist/math/Matrices/Matrix.js +1 -1
- package/dist/math/Matrices/MatrixNumjs.js +1 -1
- package/dist/math/index.js +1 -1
- package/dist/math/math.js +1 -1
- package/dist/math/p5.Matrix.js +1 -1
- package/dist/math/p5.Vector.js +1 -1
- package/dist/math/trigonometry.js +1 -1
- package/dist/{p5.Renderer-CwAYZOC2.js → p5.Renderer-R23xoC7s.js} +5 -5
- package/dist/{rendering--aAe5aq3.js → rendering-CvUVN-Vb.js} +101 -66
- package/dist/shape/2d_primitives.js +1 -1
- package/dist/shape/attributes.js +1 -1
- package/dist/shape/custom_shapes.js +2 -2
- package/dist/shape/index.js +2 -2
- package/dist/type/index.js +3 -3
- package/dist/type/p5.Font.js +3 -5
- package/dist/type/textCore.js +4 -4
- package/dist/webgl/3d_primitives.js +4 -4
- package/dist/webgl/GeometryBuilder.js +1 -1
- package/dist/webgl/ShapeBuilder.js +1 -1
- package/dist/webgl/index.js +4 -4
- package/dist/webgl/interaction.js +1 -1
- package/dist/webgl/light.js +4 -4
- package/dist/webgl/loading.js +5 -4
- package/dist/webgl/material.js +4 -4
- package/dist/webgl/p5.Camera.js +4 -4
- package/dist/webgl/p5.Framebuffer.js +4 -4
- package/dist/webgl/p5.Geometry.js +1 -1
- package/dist/webgl/p5.Quat.js +1 -1
- package/dist/webgl/p5.RendererGL.js +4 -4
- package/dist/webgl/p5.Shader.js +4 -4
- package/dist/webgl/p5.Texture.js +4 -4
- package/dist/webgl/text.js +32 -34
- package/lib/p5.esm.js +289 -247
- package/lib/p5.js +289 -247
- package/lib/p5.min.js +1 -1
- package/package.json +1 -2
- package/types/accessibility/color_namer.d.ts +8 -0
- package/types/accessibility/describe.d.ts +184 -0
- package/types/accessibility/gridOutput.d.ts +8 -0
- package/types/accessibility/outputs.d.ts +235 -0
- package/types/accessibility/textOutput.d.ts +8 -0
- package/types/color/color_conversion.d.ts +47 -0
- package/types/color/creating_reading.d.ts +1348 -0
- package/types/color/p5.Color.d.ts +1070 -0
- package/types/color/setting.d.ts +2085 -0
- package/types/core/constants.d.ts +341 -0
- package/types/core/environment.d.ts +668 -0
- package/types/core/friendly_errors/fes_core.d.ts +8 -0
- package/types/core/friendly_errors/file_errors.d.ts +8 -0
- package/types/core/friendly_errors/param_validator.d.ts +30 -0
- package/types/core/friendly_errors/sketch_reader.d.ts +8 -0
- package/types/core/friendly_errors/stacktrace.d.ts +11 -0
- package/types/core/friendly_errors/validate_params.d.ts +8 -0
- package/types/core/helpers.d.ts +8 -0
- package/types/core/legacy.d.ts +8 -0
- package/types/core/main.d.ts +5999 -0
- package/types/core/p5.Graphics.d.ts +484 -0
- package/types/core/p5.Renderer.d.ts +14 -0
- package/types/core/reference.d.ts +8 -0
- package/types/core/rendering.d.ts +481 -0
- package/types/core/structure.d.ts +492 -0
- package/types/core/transform.d.ts +1638 -0
- package/types/data/local_storage.d.ts +323 -0
- package/types/dom/dom.d.ts +1295 -0
- package/types/dom/p5.Element.d.ts +2011 -0
- package/types/dom/p5.File.d.ts +13 -0
- package/types/dom/p5.MediaElement.d.ts +1249 -0
- package/types/events/acceleration.d.ts +193 -0
- package/types/events/keyboard.d.ts +501 -0
- package/types/events/pointer.d.ts +782 -0
- package/types/global.d.ts +5544 -0
- package/types/image/filterRenderer2D.d.ts +54 -0
- package/types/image/image.d.ts +326 -0
- package/types/image/loading_displaying.d.ts +580 -0
- package/types/image/p5.Image.d.ts +5882 -0
- package/types/image/pixels.d.ts +832 -0
- package/types/io/files.d.ts +1447 -0
- package/types/io/p5.Table.d.ts +1247 -0
- package/types/io/p5.TableRow.d.ts +343 -0
- package/types/io/p5.XML.d.ts +1188 -0
- package/types/math/Matrices/Matrix.d.ts +1029 -0
- package/types/math/Matrices/MatrixNumjs.d.ts +8 -0
- package/types/math/calculation.d.ts +923 -0
- package/types/math/math.d.ts +90 -0
- package/types/math/noise.d.ts +311 -0
- package/types/math/p5.Matrix.d.ts +8 -0
- package/types/math/p5.Vector.d.ts +3416 -0
- package/types/math/random.d.ts +267 -0
- package/types/math/trigonometry.d.ts +663 -0
- package/types/p5.d.ts +6666 -0
- package/types/shape/2d_primitives.d.ts +1033 -0
- package/types/shape/attributes.d.ts +466 -0
- package/types/shape/curves.d.ts +740 -0
- package/types/shape/custom_shapes.d.ts +888 -0
- package/types/shape/vertex.d.ts +1141 -0
- package/types/type/p5.Font.d.ts +575 -0
- package/types/type/textCore.d.ts +1198 -0
- package/types/utilities/conversion.d.ts +894 -0
- package/types/utilities/time_date.d.ts +295 -0
- package/types/utilities/utility_functions.d.ts +587 -0
- package/types/webgl/3d_primitives.d.ts +1432 -0
- package/types/webgl/ShaderGenerator.d.ts +8 -0
- package/types/webgl/interaction.d.ts +371 -0
- package/types/webgl/light.d.ts +1184 -0
- package/types/webgl/loading.d.ts +482 -0
- package/types/webgl/material.d.ts +2656 -0
- package/types/webgl/p5.Camera.d.ts +3023 -0
- package/types/webgl/p5.DataArray.d.ts +61 -0
- package/types/webgl/p5.Framebuffer.d.ts +760 -0
- package/types/webgl/p5.Geometry.d.ts +1191 -0
- package/types/webgl/p5.Quat.d.ts +45 -0
- package/types/webgl/p5.RendererGL.d.ts +234 -0
- package/types/webgl/p5.Shader.d.ts +660 -0
- package/types/webgl/p5.Texture.d.ts +61 -0
- package/types/webgl/text.d.ts +74 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
// This file is auto-generated from JSDoc documentation
|
|
2
|
+
|
|
3
|
+
import p5 from 'p5';
|
|
4
|
+
|
|
5
|
+
declare module 'p5' {
|
|
6
|
+
class TableRow {
|
|
7
|
+
constructor(row: any[]);
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Stores a value in the TableRow's specified column.
|
|
11
|
+
* The column may be specified by either its ID or title.
|
|
12
|
+
*
|
|
13
|
+
* @param
|
|
14
|
+
* @param
|
|
15
|
+
*/
|
|
16
|
+
set(column: string | number, value: string | number): void;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Stores a Float value in the TableRow's specified column.
|
|
20
|
+
* The column may be specified by either its ID or title.
|
|
21
|
+
*
|
|
22
|
+
* @param
|
|
23
|
+
* @param
|
|
24
|
+
*/
|
|
25
|
+
setNum(column: string | number, value: number | string): void;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Stores a String value in the TableRow's specified column.
|
|
29
|
+
* The column may be specified by either its ID or title.
|
|
30
|
+
*
|
|
31
|
+
* @param
|
|
32
|
+
* @param
|
|
33
|
+
*/
|
|
34
|
+
setString(column: string | number, value: string | number | boolean | object): void;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves a value from the TableRow's specified column.
|
|
38
|
+
* The column may be specified by either its ID or title.
|
|
39
|
+
*
|
|
40
|
+
* @param
|
|
41
|
+
*/
|
|
42
|
+
get(column: string | number): string | number;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Retrieves a Float value from the TableRow's specified
|
|
46
|
+
* column. The column may be specified by either its ID or
|
|
47
|
+
* title.
|
|
48
|
+
*
|
|
49
|
+
* @param
|
|
50
|
+
*/
|
|
51
|
+
getNum(column: string | number): number;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves an String value from the TableRow's specified
|
|
55
|
+
* column. The column may be specified by either its ID or
|
|
56
|
+
* title.
|
|
57
|
+
*
|
|
58
|
+
* @param
|
|
59
|
+
*/
|
|
60
|
+
getString(column: string | number): string;
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Stores a value in the TableRow's specified column.
|
|
66
|
+
* The column may be specified by either its ID or title.
|
|
67
|
+
*
|
|
68
|
+
* @deprecated p5.Table will be removed in a future version of p5.js to make way for a new, friendlier version :)
|
|
69
|
+
* @param Column ID (Number)
|
|
70
|
+
* or Title (String)
|
|
71
|
+
* @param The value to be stored
|
|
72
|
+
* @example <div>
|
|
73
|
+
* <code>
|
|
74
|
+
* let table;
|
|
75
|
+
*
|
|
76
|
+
* async function setup() {
|
|
77
|
+
* // Create a 200x200 canvas and set a white background
|
|
78
|
+
* createCanvas(200, 200);
|
|
79
|
+
* background(255);
|
|
80
|
+
*
|
|
81
|
+
* // Load the CSV file with a header row
|
|
82
|
+
* table = await loadTable('assets/mammals.csv', ',', 'header');
|
|
83
|
+
*
|
|
84
|
+
* // Set every row's "name" to "Unicorn"
|
|
85
|
+
* let rows = table.getRows();
|
|
86
|
+
* for (let r = 0; r < rows.length; r++) {
|
|
87
|
+
* rows[r].set('name', 'Unicorn');
|
|
88
|
+
* }
|
|
89
|
+
*
|
|
90
|
+
* // Convert the table to an array
|
|
91
|
+
* let tableArray = table.getArray();
|
|
92
|
+
*
|
|
93
|
+
* // Set text properties
|
|
94
|
+
* fill(0); // Set text color to black
|
|
95
|
+
* textSize(12); // Set text size
|
|
96
|
+
*
|
|
97
|
+
* // Display each row of the table on the canvas
|
|
98
|
+
* let y = 20; // Starting y position
|
|
99
|
+
* for (let i = 0; i < tableArray.length; i++) {
|
|
100
|
+
* let rowText = tableArray[i].join(', ');
|
|
101
|
+
* text(rowText, 10, y * 2.5);
|
|
102
|
+
* y += 20; // Increment y position for the next row
|
|
103
|
+
* }
|
|
104
|
+
*
|
|
105
|
+
* describe('no image displayed');
|
|
106
|
+
* }
|
|
107
|
+
* </code>
|
|
108
|
+
* </div>
|
|
109
|
+
*/
|
|
110
|
+
function set(column: string | number, value: string | number): void;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Stores a Float value in the TableRow's specified column.
|
|
114
|
+
* The column may be specified by either its ID or title.
|
|
115
|
+
*
|
|
116
|
+
* @deprecated p5.Table will be removed in a future version of p5.js to make way for a new, friendlier version :)
|
|
117
|
+
* @param Column ID (Number)
|
|
118
|
+
* or Title (String)
|
|
119
|
+
* @param The value to be stored
|
|
120
|
+
* as a Float
|
|
121
|
+
* @example <div>
|
|
122
|
+
* <code>
|
|
123
|
+
* let table;
|
|
124
|
+
*
|
|
125
|
+
* async function setup() {
|
|
126
|
+
* // Create a 200x200 canvas and set a white background
|
|
127
|
+
* createCanvas(200, 200);
|
|
128
|
+
* background(255);
|
|
129
|
+
*
|
|
130
|
+
* // Load the CSV file with a header row
|
|
131
|
+
* table = await loadTable('assets/mammals.csv', ',', 'header');
|
|
132
|
+
*
|
|
133
|
+
* // Update each row's "id" to (row index + 10)
|
|
134
|
+
* let rows = table.getRows();
|
|
135
|
+
* for (let r = 0; r < rows.length; r++) {
|
|
136
|
+
* rows[r].setNum('id', r + 10);
|
|
137
|
+
* }
|
|
138
|
+
*
|
|
139
|
+
* // Convert the table to a 2D array for display
|
|
140
|
+
* let tableArray = table.getArray();
|
|
141
|
+
*
|
|
142
|
+
* // Set text properties
|
|
143
|
+
* fill(0); // Text color: black
|
|
144
|
+
* textSize(12); // Adjust text size as needed
|
|
145
|
+
*
|
|
146
|
+
* // Display each row of the table on the canvas
|
|
147
|
+
* let y = 20; // Starting y position
|
|
148
|
+
* for (let i = 0; i < tableArray.length; i++) {
|
|
149
|
+
* // Join each row's values with a comma separator
|
|
150
|
+
* let rowText = tableArray[i].join(', ');
|
|
151
|
+
* text(rowText, 10, y * 2.5);
|
|
152
|
+
* y += 20; // Increment y for the next row
|
|
153
|
+
* }
|
|
154
|
+
*
|
|
155
|
+
* describe('no image displayed');
|
|
156
|
+
* }
|
|
157
|
+
* </code>
|
|
158
|
+
* </div>
|
|
159
|
+
*/
|
|
160
|
+
function setNum(column: string | number, value: number | string): void;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Stores a String value in the TableRow's specified column.
|
|
164
|
+
* The column may be specified by either its ID or title.
|
|
165
|
+
*
|
|
166
|
+
* @deprecated p5.Table will be removed in a future version of p5.js to make way for a new, friendlier version :)
|
|
167
|
+
* @param Column ID (Number)
|
|
168
|
+
* or Title (String)
|
|
169
|
+
* @param The value to be stored
|
|
170
|
+
* as a String
|
|
171
|
+
* @example <div>
|
|
172
|
+
* <code>
|
|
173
|
+
* let table;
|
|
174
|
+
*
|
|
175
|
+
* async function setup() {
|
|
176
|
+
* // Create a 300x200 canvas and set a white background
|
|
177
|
+
* createCanvas(300, 200);
|
|
178
|
+
* background(255);
|
|
179
|
+
*
|
|
180
|
+
* // Load the CSV file with a header row
|
|
181
|
+
* table = await loadTable('assets/mammals.csv', ',', 'header');
|
|
182
|
+
*
|
|
183
|
+
* // Update each row's "name" field
|
|
184
|
+
* let rows = table.getRows();
|
|
185
|
+
* for (let r = 0; r < rows.length; r++) {
|
|
186
|
+
* let name = rows[r].getString('name');
|
|
187
|
+
* rows[r].setString('name', 'A ' + name + ' named George');
|
|
188
|
+
* }
|
|
189
|
+
*
|
|
190
|
+
* // Convert the table to a 2D array for display
|
|
191
|
+
* let tableArray = table.getArray();
|
|
192
|
+
*
|
|
193
|
+
* // Set text properties
|
|
194
|
+
* fill(0); // Text color: black
|
|
195
|
+
* textSize(12); // Adjust text size as needed
|
|
196
|
+
*
|
|
197
|
+
* // Display each row of the table on the canvas
|
|
198
|
+
* let y = 20; // Starting y position
|
|
199
|
+
* for (let i = 0; i < tableArray.length; i++) {
|
|
200
|
+
* let rowText = tableArray[i].join(', ');
|
|
201
|
+
* text(rowText, 10, y * 2.5);
|
|
202
|
+
* y += 20; // Increment y for the next row
|
|
203
|
+
* }
|
|
204
|
+
*
|
|
205
|
+
* // describe('no image displayed');
|
|
206
|
+
* }
|
|
207
|
+
* </code>
|
|
208
|
+
*/
|
|
209
|
+
function setString(column: string | number, value: string | number | boolean | object): void;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Retrieves a value from the TableRow's specified column.
|
|
213
|
+
* The column may be specified by either its ID or title.
|
|
214
|
+
*
|
|
215
|
+
* @deprecated p5.Table will be removed in a future version of p5.js to make way for a new, friendlier version :)
|
|
216
|
+
* @param columnName (string) or
|
|
217
|
+
* ID (number)
|
|
218
|
+
* @example <div>
|
|
219
|
+
* <code>
|
|
220
|
+
* let table;
|
|
221
|
+
*
|
|
222
|
+
* async function setup() {
|
|
223
|
+
* // Create a 200x100 canvas and set a white background
|
|
224
|
+
* createCanvas(200, 100);
|
|
225
|
+
* background(255);
|
|
226
|
+
*
|
|
227
|
+
* // Load the CSV file with a header row
|
|
228
|
+
* table = await loadTable('assets/mammals.csv', ',', 'header');
|
|
229
|
+
*
|
|
230
|
+
* // Extract the names from each row and store them in an array
|
|
231
|
+
* let names = [];
|
|
232
|
+
* let rows = table.getRows();
|
|
233
|
+
* for (let r = 0; r < rows.length; r++) {
|
|
234
|
+
* names.push(rows[r].get('name'));
|
|
235
|
+
* }
|
|
236
|
+
*
|
|
237
|
+
* // Set text properties and display the names on the canvas
|
|
238
|
+
* fill(0); // Set text color to black
|
|
239
|
+
* textSize(12); // Set text size
|
|
240
|
+
*
|
|
241
|
+
* // Join names into a single string separated by commas
|
|
242
|
+
* let namesText = names.join(', ');
|
|
243
|
+
* text(namesText, 35, 50);
|
|
244
|
+
*
|
|
245
|
+
* describe('no image displayed');
|
|
246
|
+
* }
|
|
247
|
+
* </code>
|
|
248
|
+
* </div>
|
|
249
|
+
*/
|
|
250
|
+
function get(column: string | number): string | number;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Retrieves a Float value from the TableRow's specified
|
|
254
|
+
* column. The column may be specified by either its ID or
|
|
255
|
+
* title.
|
|
256
|
+
*
|
|
257
|
+
* @deprecated p5.Table will be removed in a future version of p5.js to make way for a new, friendlier version :)
|
|
258
|
+
* @param columnName (string) or
|
|
259
|
+
* ID (number)
|
|
260
|
+
* @return Float Floating point number
|
|
261
|
+
* @example <div>
|
|
262
|
+
* <code>
|
|
263
|
+
* let table;
|
|
264
|
+
*
|
|
265
|
+
* async function setup() {
|
|
266
|
+
* // Create a 300x100 canvas and set a white background
|
|
267
|
+
* createCanvas(300, 100);
|
|
268
|
+
* background(255);
|
|
269
|
+
*
|
|
270
|
+
* // Load the CSV file with a header row
|
|
271
|
+
* table = await loadTable('assets/mammals.csv', ',', 'header');
|
|
272
|
+
*
|
|
273
|
+
* let rows = table.getRows();
|
|
274
|
+
* let minId = Infinity;
|
|
275
|
+
* let maxId = -Infinity;
|
|
276
|
+
*
|
|
277
|
+
* for (let r = 0; r < rows.length; r++) {
|
|
278
|
+
* let id = rows[r].getNum('id');
|
|
279
|
+
* minId = min(minId, id);
|
|
280
|
+
* maxId = max(maxId, id);
|
|
281
|
+
* }
|
|
282
|
+
*
|
|
283
|
+
* let result = 'minimum id = ' + minId + ', maximum id = ' + maxId;
|
|
284
|
+
*
|
|
285
|
+
* // Set text properties and display the result on the canvas
|
|
286
|
+
* fill(0); // Set text color to black
|
|
287
|
+
* textSize(12); // Set text size
|
|
288
|
+
* text(result, 10, 50);
|
|
289
|
+
*
|
|
290
|
+
* describe('no image displayed');
|
|
291
|
+
* }
|
|
292
|
+
* </code>
|
|
293
|
+
* </div>
|
|
294
|
+
*/
|
|
295
|
+
function getNum(column: string | number): number;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Retrieves an String value from the TableRow's specified
|
|
299
|
+
* column. The column may be specified by either its ID or
|
|
300
|
+
* title.
|
|
301
|
+
*
|
|
302
|
+
* @deprecated p5.Table will be removed in a future version of p5.js to make way for a new, friendlier version :)
|
|
303
|
+
* @param columnName (string) or
|
|
304
|
+
* ID (number)
|
|
305
|
+
* @return String
|
|
306
|
+
* @example <div>
|
|
307
|
+
* <code>
|
|
308
|
+
* let table;
|
|
309
|
+
*
|
|
310
|
+
* async function setup() {
|
|
311
|
+
* // Create a 200x100 canvas and set a white background
|
|
312
|
+
* createCanvas(200, 100);
|
|
313
|
+
* background(255);
|
|
314
|
+
*
|
|
315
|
+
* // Load the CSV file with a header row
|
|
316
|
+
* table = await loadTable('assets/mammals.csv', ',', 'header');
|
|
317
|
+
*
|
|
318
|
+
* let rows = table.getRows();
|
|
319
|
+
* let longest = '';
|
|
320
|
+
* for (let r = 0; r < rows.length; r++) {
|
|
321
|
+
* let species = rows[r].getString('species');
|
|
322
|
+
* if (longest.length < species.length) {
|
|
323
|
+
* longest = species;
|
|
324
|
+
* }
|
|
325
|
+
* }
|
|
326
|
+
*
|
|
327
|
+
* let result = 'longest: ' + longest;
|
|
328
|
+
*
|
|
329
|
+
* // Set text properties and display the result on the canvas
|
|
330
|
+
* fill(0); // Set text color to black
|
|
331
|
+
* textSize(12); // Set text size
|
|
332
|
+
* text(result, 30, 50);
|
|
333
|
+
*
|
|
334
|
+
* describe('no image displayed');
|
|
335
|
+
* }
|
|
336
|
+
* </code>
|
|
337
|
+
* </div>
|
|
338
|
+
*/
|
|
339
|
+
function getString(column: string | number): string;
|
|
340
|
+
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export default function p5_TableRow(p5: any, fn: any): void;
|