@@ -4,28 +4,40 @@ import { Assert } from "./lib/assert.class";
44import { Clipboard } from "./lib/clipboard.class" ;
55import { Keyboard } from "./lib/keyboard.class" ;
66import { Mouse } from "./lib/mouse.class" ;
7- import { Movement } from "./lib/movement.class " ;
7+ import { createMovementApi } from "./lib/movement.function " ;
88import { Screen } from "./lib/screen.class" ;
99import { LineHelper } from "./lib/util/linehelper.class" ;
1010
1111export { jestMatchers } from "./lib/expect/jest.matcher.function" ;
1212export { Image } from "./lib/image.class" ;
1313export { Key } from "./lib/key.enum" ;
14- export { Location } from "./lib/location.class " ;
14+ export { centerOf , randomPointIn } from "./lib/location.function " ;
1515export { 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" ;
1817export { Point } from "./lib/point.class" ;
1918export { Region } from "./lib/region.class" ;
2019
2120const screenActions = new VisionAdapter ( ) ;
2221const nativeActions = new NativeAdapter ( ) ;
22+ const lineHelper = new LineHelper ( ) ;
2323
2424const clipboard = new Clipboard ( nativeActions ) ;
2525const keyboard = new Keyboard ( nativeActions ) ;
2626const mouse = new Mouse ( nativeActions ) ;
27- const movement = new Movement ( nativeActions , new LineHelper ( ) ) ;
2827const screen = new Screen ( screenActions ) ;
2928const assert = new Assert ( screen ) ;
3029
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