@@ -4,28 +4,40 @@ import { Assert } from "./lib/assert.class";
4
4
import { Clipboard } from "./lib/clipboard.class" ;
5
5
import { Keyboard } from "./lib/keyboard.class" ;
6
6
import { Mouse } from "./lib/mouse.class" ;
7
- import { Movement } from "./lib/movement.class " ;
7
+ import { createMovementApi } from "./lib/movement.function " ;
8
8
import { Screen } from "./lib/screen.class" ;
9
9
import { LineHelper } from "./lib/util/linehelper.class" ;
10
10
11
11
export { jestMatchers } from "./lib/expect/jest.matcher.function" ;
12
12
export { Image } from "./lib/image.class" ;
13
13
export { Key } from "./lib/key.enum" ;
14
- export { Location } from "./lib/location.class " ;
14
+ export { centerOf , randomPointIn } from "./lib/location.function " ;
15
15
export { LocationParameters } from "./lib/locationparameters.class" ;
16
- export { Movement } from "./lib/movement.class" ;
17
- export { MovementType } from "./lib/movementtype.class" ;
16
+ export { linear } from "./lib/movementtype.function" ;
18
17
export { Point } from "./lib/point.class" ;
19
18
export { Region } from "./lib/region.class" ;
20
19
21
20
const screenActions = new VisionAdapter ( ) ;
22
21
const nativeActions = new NativeAdapter ( ) ;
22
+ const lineHelper = new LineHelper ( ) ;
23
23
24
24
const clipboard = new Clipboard ( nativeActions ) ;
25
25
const keyboard = new Keyboard ( nativeActions ) ;
26
26
const mouse = new Mouse ( nativeActions ) ;
27
- const movement = new Movement ( nativeActions , new LineHelper ( ) ) ;
28
27
const screen = new Screen ( screenActions ) ;
29
28
const assert = new Assert ( screen ) ;
30
29
31
- export { clipboard , keyboard , mouse , movement , screen , assert } ;
30
+ const { straightTo, up, down, left, right} = createMovementApi ( nativeActions , lineHelper ) ;
31
+
32
+ export {
33
+ clipboard ,
34
+ keyboard ,
35
+ mouse ,
36
+ screen ,
37
+ assert ,
38
+ straightTo ,
39
+ up ,
40
+ down ,
41
+ left ,
42
+ right ,
43
+ } ;
0 commit comments