|
1 |
| -import {NativeAdapter} from "./lib/adapter/native.adapter.class"; |
2 |
| -import {VisionAdapter} from "./lib/adapter/vision.adapter.class"; |
3 | 1 | import {AssertClass} from "./lib/assert.class";
|
4 | 2 | import {ClipboardClass} from "./lib/clipboard.class";
|
5 | 3 | import {KeyboardClass} from "./lib/keyboard.class";
|
@@ -37,18 +35,16 @@ export {Region} from "./lib/region.class";
|
37 | 35 | export {Window} from "./lib/window.class";
|
38 | 36 | export {FileType} from "./lib/file-type.enum";
|
39 | 37 |
|
40 |
| -const screenActions = new VisionAdapter(providerRegistry); |
41 |
| -const nativeActions = new NativeAdapter(providerRegistry); |
42 | 38 | const lineHelper = new LineHelper();
|
43 | 39 |
|
44 |
| -const clipboard = new ClipboardClass(nativeActions); |
45 |
| -const keyboard = new KeyboardClass(nativeActions); |
46 |
| -const mouse = new MouseClass(nativeActions); |
47 |
| -const screen = new ScreenClass(screenActions); |
| 40 | +const clipboard = new ClipboardClass(providerRegistry); |
| 41 | +const keyboard = new KeyboardClass(providerRegistry); |
| 42 | +const mouse = new MouseClass(providerRegistry); |
| 43 | +const screen = new ScreenClass(providerRegistry); |
48 | 44 | const assert = new AssertClass(screen);
|
49 | 45 |
|
50 |
| -const {straightTo, up, down, left, right} = createMovementApi(nativeActions, lineHelper); |
51 |
| -const {getWindows, getActiveWindow} = createWindowApi(nativeActions); |
| 46 | +const {straightTo, up, down, left, right} = createMovementApi(providerRegistry, lineHelper); |
| 47 | +const {getWindows, getActiveWindow} = createWindowApi(providerRegistry); |
52 | 48 |
|
53 | 49 | const loadImage = providerRegistry.getImageReader().load;
|
54 | 50 | const saveImage = providerRegistry.getImageWriter().store;
|
|
0 commit comments