@thi.ng/rstream-gestures 4.1.33 → 4.1.35

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-12-16T12:52:25Z
3
+ - **Last updated**: 2022-12-22T21:47:07Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -26,7 +26,7 @@ This project is part of the
26
26
 
27
27
  ## About
28
28
 
29
- Unified mouse, mouse wheel & multi-touch event stream abstraction
29
+ Unified mouse, mouse wheel & multi-touch event stream abstraction. This is a support package for [@thi.ng/rstream](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream).
30
30
 
31
31
  ## Status
32
32
 
@@ -1,18 +1,16 @@
1
1
  import type { GestureStream, GestureStreamOpts } from "./api.js";
2
2
  /**
3
- * Attaches mouse & touch event listeners to given DOM element and
4
- * returns a stream of {@link GestureEvent}s and their
5
- * {@link GestureInfo} details.
3
+ * Attaches mouse & touch event listeners to given DOM element and returns a
4
+ * stream of {@link GestureEvent}s and their {@link GestureInfo} details.
6
5
  *
7
- * In multi-touch environments, a `GestureEvent` can contain multiple
8
- * such `GestureInfo` objects (one per active touch). In general, the
9
- * `click` and `delta` values are only present if the abstracted event
10
- * `type == "drag"`. Both (and `pos` too) are 2-element arrays
11
- * of `[x,y]` coordinates.
6
+ * In multi-touch environments, a `GestureEvent` can contain multiple such
7
+ * `GestureInfo` objects (one per active touch). In general, the `click` and
8
+ * `delta` values are only present if the abstracted event `type == "drag"`.
9
+ * Both (and `pos` too) are 2-element arrays of `[x,y]` coordinates.
12
10
  *
13
- * The `zoom` value is always present, but is only updated with wheel
14
- * events. The value will be constrained to `minZoom` ... `maxZoom`
15
- * interval (provided via options object).
11
+ * The `zoom` value is always present, but is only updated with wheel events.
12
+ * The value will be constrained to `minZoom` ... `maxZoom` interval (provided
13
+ * via options object).
16
14
  *
17
15
  * Note: If using `preventDefault` and attaching the event stream to
18
16
  * `document.body`, the following event listener options SHOULD be used:
@@ -22,7 +20,7 @@ import type { GestureStream, GestureStreamOpts } from "./api.js";
22
20
  * eventOpts: { passive: false }
23
21
  * ```
24
22
  *
25
- * {@link https://www.chromestatus.com/features/5093566007214080 }
23
+ * https://www.chromestatus.com/features/5093566007214080
26
24
  *
27
25
  * @param el -
28
26
  * @param opts -
package/gesture-stream.js CHANGED
@@ -21,19 +21,17 @@ const EVENT_GESTURETYPES = {
21
21
  wheel: "zoom",
22
22
  };
23
23
  /**
24
- * Attaches mouse & touch event listeners to given DOM element and
25
- * returns a stream of {@link GestureEvent}s and their
26
- * {@link GestureInfo} details.
24
+ * Attaches mouse & touch event listeners to given DOM element and returns a
25
+ * stream of {@link GestureEvent}s and their {@link GestureInfo} details.
27
26
  *
28
- * In multi-touch environments, a `GestureEvent` can contain multiple
29
- * such `GestureInfo` objects (one per active touch). In general, the
30
- * `click` and `delta` values are only present if the abstracted event
31
- * `type == "drag"`. Both (and `pos` too) are 2-element arrays
32
- * of `[x,y]` coordinates.
27
+ * In multi-touch environments, a `GestureEvent` can contain multiple such
28
+ * `GestureInfo` objects (one per active touch). In general, the `click` and
29
+ * `delta` values are only present if the abstracted event `type == "drag"`.
30
+ * Both (and `pos` too) are 2-element arrays of `[x,y]` coordinates.
33
31
  *
34
- * The `zoom` value is always present, but is only updated with wheel
35
- * events. The value will be constrained to `minZoom` ... `maxZoom`
36
- * interval (provided via options object).
32
+ * The `zoom` value is always present, but is only updated with wheel events.
33
+ * The value will be constrained to `minZoom` ... `maxZoom` interval (provided
34
+ * via options object).
37
35
  *
38
36
  * Note: If using `preventDefault` and attaching the event stream to
39
37
  * `document.body`, the following event listener options SHOULD be used:
@@ -43,7 +41,7 @@ const EVENT_GESTURETYPES = {
43
41
  * eventOpts: { passive: false }
44
42
  * ```
45
43
  *
46
- * {@link https://www.chromestatus.com/features/5093566007214080 }
44
+ * https://www.chromestatus.com/features/5093566007214080
47
45
  *
48
46
  * @param el -
49
47
  * @param opts -
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rstream-gestures",
3
- "version": "4.1.33",
3
+ "version": "4.1.35",
4
4
  "description": "Unified mouse, mouse wheel & multi-touch event stream abstraction",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -38,15 +38,15 @@
38
38
  "test": "testament test"
39
39
  },
40
40
  "dependencies": {
41
- "@thi.ng/api": "^8.6.0",
42
- "@thi.ng/checks": "^3.3.5",
43
- "@thi.ng/math": "^5.3.16",
44
- "@thi.ng/rstream": "^7.2.31",
45
- "@thi.ng/transducers": "^8.3.26"
41
+ "@thi.ng/api": "^8.6.2",
42
+ "@thi.ng/checks": "^3.3.6",
43
+ "@thi.ng/math": "^5.3.18",
44
+ "@thi.ng/rstream": "^7.2.33",
45
+ "@thi.ng/transducers": "^8.3.28"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@microsoft/api-extractor": "^7.33.7",
49
- "@thi.ng/testament": "^0.3.7",
49
+ "@thi.ng/testament": "^0.3.8",
50
50
  "rimraf": "^3.0.2",
51
51
  "tools": "^0.0.1",
52
52
  "typedoc": "^0.23.22",
@@ -95,5 +95,5 @@
95
95
  ],
96
96
  "year": 2018
97
97
  },
98
- "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
98
+ "gitHead": "bc6f7f5e2765bb96fe64db804eaf4b2443b47fc6\n"
99
99
  }