@aethervtt/shard-testing 0.0.1 → 0.1.0
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/index.d.ts +5 -0
- package/dist/index.js +8 -0
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ export declare class Game {
|
|
|
28
28
|
release: (name: string) => void;
|
|
29
29
|
/** Press for one frame. */
|
|
30
30
|
press: (name: string) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Plays pointer gestures in CSS pixels (`{ drag }`, `{ pinch }`, `{ wheel }`, `{ tap }`,
|
|
33
|
+
* `{ wait }`) and steps until they're done (0060): camera controls and object drags.
|
|
34
|
+
*/
|
|
35
|
+
gesture: (...gestures: Json[]) => Promise<void>;
|
|
31
36
|
};
|
|
32
37
|
/**
|
|
33
38
|
* Sounds started, stopped, and dropped (audio plugin) from frame `since`, as `audio.log` returns
|
package/dist/index.js
CHANGED
|
@@ -68,6 +68,14 @@ class Game {
|
|
|
68
68
|
this.inject(name, true);
|
|
69
69
|
await this.step(1);
|
|
70
70
|
this.inject(name, false);
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Plays pointer gestures in CSS pixels (`{ drag }`, `{ pinch }`, `{ wheel }`, `{ tap }`,
|
|
74
|
+
* `{ wait }`) and steps until they're done (0060): camera controls and object drags.
|
|
75
|
+
*/
|
|
76
|
+
gesture: async (...gestures) => {
|
|
77
|
+
const { frames } = await this.call("input.simulate", { gestures });
|
|
78
|
+
await this.step(frames);
|
|
71
79
|
}
|
|
72
80
|
};
|
|
73
81
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aethervtt/shard-testing",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@aethervtt/shard-core": "0.0
|
|
20
|
-
"@aethervtt/shard-gpu": "0.0
|
|
21
|
-
"@aethervtt/shard-node": "0.0
|
|
22
|
-
"@aethervtt/shard-protocol": "0.0
|
|
23
|
-
"@aethervtt/shard-runtime": "0.0
|
|
19
|
+
"@aethervtt/shard-core": "0.1.0",
|
|
20
|
+
"@aethervtt/shard-gpu": "0.1.0",
|
|
21
|
+
"@aethervtt/shard-node": "0.1.0",
|
|
22
|
+
"@aethervtt/shard-protocol": "0.1.0",
|
|
23
|
+
"@aethervtt/shard-runtime": "0.1.0",
|
|
24
24
|
"vitest": "^5.0.1",
|
|
25
|
-
"@aethervtt/shard-scene": "0.0
|
|
25
|
+
"@aethervtt/shard-scene": "0.1.0"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"provenance": true
|
|
35
35
|
},
|
|
36
36
|
"shard": {
|
|
37
|
-
"buildSha": "
|
|
37
|
+
"buildSha": "8e14c9896f82a3554b156f1ffdd68f2cc3e7d78a"
|
|
38
38
|
}
|
|
39
39
|
}
|