@thi.ng/rstream-gestures 4.1.32 → 4.1.33
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 +1 -1
- package/README.md +9 -19
- package/api.d.ts +4 -4
- package/package.json +16 -12
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/rstream-gestures)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -22,13 +22,11 @@ This project is part of the
|
|
|
22
22
|
- [GestureStreamOpts](#gesturestreamopts)
|
|
23
23
|
- [Basic usage](#basic-usage)
|
|
24
24
|
- [Authors](#authors)
|
|
25
|
-
- [Maintainer](#maintainer)
|
|
26
|
-
- [Contributors](#contributors)
|
|
27
25
|
- [License](#license)
|
|
28
26
|
|
|
29
27
|
## About
|
|
30
28
|
|
|
31
|
-
Unified mouse, mouse wheel & multi-touch event stream abstraction
|
|
29
|
+
Unified mouse, mouse wheel & multi-touch event stream abstraction
|
|
32
30
|
|
|
33
31
|
## Status
|
|
34
32
|
|
|
@@ -62,11 +60,8 @@ ES module import:
|
|
|
62
60
|
|
|
63
61
|
For Node.js REPL:
|
|
64
62
|
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
node --experimental-repl-await
|
|
68
|
-
|
|
69
|
-
> const rstreamGestures = await import("@thi.ng/rstream-gestures");
|
|
63
|
+
```js
|
|
64
|
+
const rstreamGestures = await import("@thi.ng/rstream-gestures");
|
|
70
65
|
```
|
|
71
66
|
|
|
72
67
|
Package sizes (brotli'd, pre-treeshake): ESM: 1.07 KB
|
|
@@ -193,14 +188,9 @@ gestures.subscribe(
|
|
|
193
188
|
|
|
194
189
|
## Authors
|
|
195
190
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
-
|
|
199
|
-
|
|
200
|
-
### Contributors
|
|
201
|
-
|
|
202
|
-
- Arthur Carabott ([@acarabott](https://github.com/acarabott))
|
|
203
|
-
- Matei Adriel ([@Mateiadrielrafael](https://github.com/Mateiadrielrafael))
|
|
191
|
+
- [Karsten Schmidt](https://thi.ng) (Main author)
|
|
192
|
+
- [Arthur Carabott](https://github.com/acarabott)
|
|
193
|
+
- [Matei Adriel](https://github.com/Mateiadrielrafael)
|
|
204
194
|
|
|
205
195
|
If this project contributes to an academic publication, please cite it as:
|
|
206
196
|
|
|
@@ -215,4 +205,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
215
205
|
|
|
216
206
|
## License
|
|
217
207
|
|
|
218
|
-
© 2018 - 2022 Karsten Schmidt // Apache
|
|
208
|
+
© 2018 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { IID } from "@thi.ng/api";
|
|
2
2
|
import type { StreamMerge } from "@thi.ng/rstream";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
3
|
+
export type GestureStream = StreamMerge<UIEvent, GestureEvent>;
|
|
4
|
+
export type UIEvent = MouseEvent | TouchEvent | WheelEvent;
|
|
5
|
+
export type UIEventID = "mousedown" | "mousemove" | "mouseup" | "touchstart" | "touchmove" | "touchend" | "touchcancel" | "wheel";
|
|
6
|
+
export type GestureType = "move" | "start" | "drag" | "end" | "zoom";
|
|
7
7
|
export interface GestureInfo {
|
|
8
8
|
/**
|
|
9
9
|
* Touch/cursor ID. For mouse cursors this always is zero.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rstream-gestures",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.33",
|
|
4
4
|
"description": "Unified mouse, mouse wheel & multi-touch event stream abstraction",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,7 +21,11 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
|
+
"contributors": [
|
|
26
|
+
"Arthur Carabott (https://github.com/acarabott)",
|
|
27
|
+
"Matei Adriel (https://github.com/Mateiadrielrafael)"
|
|
28
|
+
],
|
|
25
29
|
"license": "Apache-2.0",
|
|
26
30
|
"scripts": {
|
|
27
31
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,19 +38,19 @@
|
|
|
34
38
|
"test": "testament test"
|
|
35
39
|
},
|
|
36
40
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/math": "^5.3.
|
|
40
|
-
"@thi.ng/rstream": "^7.2.
|
|
41
|
-
"@thi.ng/transducers": "^8.3.
|
|
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"
|
|
42
46
|
},
|
|
43
47
|
"devDependencies": {
|
|
44
|
-
"@microsoft/api-extractor": "^7.33.
|
|
45
|
-
"@thi.ng/testament": "^0.3.
|
|
48
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
49
|
+
"@thi.ng/testament": "^0.3.7",
|
|
46
50
|
"rimraf": "^3.0.2",
|
|
47
51
|
"tools": "^0.0.1",
|
|
48
|
-
"typedoc": "^0.23.
|
|
49
|
-
"typescript": "^4.
|
|
52
|
+
"typedoc": "^0.23.22",
|
|
53
|
+
"typescript": "^4.9.4"
|
|
50
54
|
},
|
|
51
55
|
"keywords": [
|
|
52
56
|
"animation",
|
|
@@ -91,5 +95,5 @@
|
|
|
91
95
|
],
|
|
92
96
|
"year": 2018
|
|
93
97
|
},
|
|
94
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
95
99
|
}
|