@lvce-editor/test-worker 10.6.0 → 10.7.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/api.d.ts +5 -0
- package/dist/testWorkerMain.js +10 -0
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -88,6 +88,10 @@ interface ClipBoard {
|
|
|
88
88
|
readonly writeText: (text: string) => Promise<void>;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
interface ColorPicker {
|
|
92
|
+
readonly setRelativeX: (x: number) => Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
|
|
91
95
|
interface Command {
|
|
92
96
|
readonly execute: (id: string, ...args: readonly any[]) => Promise<any>;
|
|
93
97
|
}
|
|
@@ -547,6 +551,7 @@ export interface TestApi {
|
|
|
547
551
|
readonly ActivityBar: ActivityBar
|
|
548
552
|
readonly BaseUrl: BaseUrl
|
|
549
553
|
readonly ClipBoard: ClipBoard
|
|
554
|
+
readonly ColorPicker: ColorPicker
|
|
550
555
|
readonly Command: Command
|
|
551
556
|
readonly ContextMenu: ContextMenu
|
|
552
557
|
readonly Developer: Developer
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1679,6 +1679,15 @@ const ClipBoard = {
|
|
|
1679
1679
|
writeText
|
|
1680
1680
|
};
|
|
1681
1681
|
|
|
1682
|
+
const setRelativeX = async x => {
|
|
1683
|
+
await invoke$1('ColorPicker.setRelativeX', x);
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
const ColorPicker = {
|
|
1687
|
+
__proto__: null,
|
|
1688
|
+
setRelativeX
|
|
1689
|
+
};
|
|
1690
|
+
|
|
1682
1691
|
const execute$1 = async (id, ...args) => {
|
|
1683
1692
|
// @ts-ignore
|
|
1684
1693
|
return invoke$1(id, ...args);
|
|
@@ -3798,6 +3807,7 @@ const createApi = (platform, assetDir) => {
|
|
|
3798
3807
|
}
|
|
3799
3808
|
},
|
|
3800
3809
|
ClipBoard,
|
|
3810
|
+
ColorPicker,
|
|
3801
3811
|
Command,
|
|
3802
3812
|
ContextMenu,
|
|
3803
3813
|
Developer,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/test-worker",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.7.0",
|
|
4
4
|
"description": "Test Worker",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"main": "dist/testWorkerMain.js",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@lvce-editor/constants": "^1.
|
|
14
|
+
"@lvce-editor/constants": "^1.38.0"
|
|
15
15
|
},
|
|
16
16
|
"types": "dist/api.d.ts"
|
|
17
17
|
}
|