q5 4.2.5 → 4.2.6

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.
Files changed (3) hide show
  1. package/deno.json +1 -1
  2. package/package.json +1 -1
  3. package/q5.d.ts +5 -23
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@q5/q5",
3
- "version": "4.2.5",
3
+ "version": "4.2.6",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "Beginner friendly graphics powered by WebGPU, optimized for interactive art!",
6
6
  "author": "quinton-ashley",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q5",
3
- "version": "4.2.5",
3
+ "version": "4.2.6",
4
4
  "description": "Beginner friendly graphics powered by WebGPU, optimized for interactive art!",
5
5
  "author": "quinton-ashley",
6
6
  "contributors": [
package/q5.d.ts CHANGED
@@ -1267,11 +1267,14 @@ declare global {
1267
1267
  * Array containing all current touch points within the
1268
1268
  * browser window. Each touch being an object with
1269
1269
  * `id`, `x`, and `y` properties.
1270
+ *
1271
+ * Consider using the `pointers` array instead,
1272
+ * which includes mouse, touch, and pen input.
1270
1273
  * @example
1271
1274
  * q5.draw = function () {
1272
1275
  * background(0.8);
1273
- * for (let touch of touches) {
1274
- * circle(touch.x, touch.y, 100);
1276
+ * for (let pt of pointers) {
1277
+ * circle(pt.x, pt.y, 100);
1275
1278
  * }
1276
1279
  * };
1277
1280
  */
@@ -1328,27 +1331,6 @@ declare global {
1328
1331
  */
1329
1332
  function touchMoved(): void;
1330
1333
 
1331
- /** 🖲
1332
- * Array containing all current pointers within the
1333
- * browser window.
1334
- *
1335
- * This includes mouse, pen, and touch interactions.
1336
- *
1337
- * Each pointer is an object with
1338
- * `event`, `x`, and `y` properties.
1339
- *
1340
- * The `event` property contains the most recent
1341
- * [PointerEvent](https://developer.mozilla.org/docs/Web/API/PointerEvent) associated with the pointer, which includes additional information such as the pointer type.
1342
- * @example
1343
- * q5.draw = function () {
1344
- * background(0.8);
1345
- * for (let pointer of pointers) {
1346
- * circle(pointer.x, pointer.y, 100);
1347
- * }
1348
- * };
1349
- */
1350
- function pointers(): void;
1351
-
1352
1334
  /** 🖲
1353
1335
  * Sets the cursor to a [CSS cursor type](https://developer.mozilla.org/docs/Web/CSS/cursor) or image.
1354
1336
  * If an image is provided, optional x and y coordinates can