@midscene/visualizer 1.0.1-beta-20251028021317.0 → 1.0.1-beta-20251028065320.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.
|
@@ -160,9 +160,9 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
|
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
} else if ('Insight' === task.type && 'Locate' === task.subType) {
|
|
163
|
-
var
|
|
164
|
-
const
|
|
165
|
-
const resultElement = null == (
|
|
163
|
+
var _serviceTask_output;
|
|
164
|
+
const serviceTask = task;
|
|
165
|
+
const resultElement = null == (_serviceTask_output = serviceTask.output) ? void 0 : _serviceTask_output.element;
|
|
166
166
|
const title = typeStr(task);
|
|
167
167
|
const subTitle = paramStr(task);
|
|
168
168
|
if (null == resultElement ? void 0 : resultElement.rect) insightCameraState = {
|
|
@@ -170,10 +170,10 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
|
|
|
170
170
|
pointerLeft: resultElement.center[0],
|
|
171
171
|
pointerTop: resultElement.center[1]
|
|
172
172
|
};
|
|
173
|
-
const context =
|
|
173
|
+
const context = serviceTask.uiContext;
|
|
174
174
|
if (null == context ? void 0 : context.screenshotBase64) {
|
|
175
|
-
var
|
|
176
|
-
const insightDump =
|
|
175
|
+
var _serviceTask_output1, _insightDump_taskInfo, _context_size, _context_size1;
|
|
176
|
+
const insightDump = serviceTask.log;
|
|
177
177
|
const insightContentLength = 0;
|
|
178
178
|
if (context.screenshotBase64) {
|
|
179
179
|
var _context_size2, _context_size3;
|
|
@@ -194,7 +194,7 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
|
|
|
194
194
|
img: context.screenshotBase64,
|
|
195
195
|
context: context,
|
|
196
196
|
camera: cameraState,
|
|
197
|
-
highlightElement: (null == (
|
|
197
|
+
highlightElement: (null == (_serviceTask_output1 = serviceTask.output) ? void 0 : _serviceTask_output1.element) || void 0,
|
|
198
198
|
searchArea: null == insightDump ? void 0 : null == (_insightDump_taskInfo = insightDump.taskInfo) ? void 0 : _insightDump_taskInfo.searchArea,
|
|
199
199
|
duration: insightContentLength > 20 ? locateDuration : 0.5 * locateDuration,
|
|
200
200
|
insightCameraDuration: locateDuration,
|
|
@@ -191,9 +191,9 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
|
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
} else if ('Insight' === task.type && 'Locate' === task.subType) {
|
|
194
|
-
var
|
|
195
|
-
const
|
|
196
|
-
const resultElement = null == (
|
|
194
|
+
var _serviceTask_output;
|
|
195
|
+
const serviceTask = task;
|
|
196
|
+
const resultElement = null == (_serviceTask_output = serviceTask.output) ? void 0 : _serviceTask_output.element;
|
|
197
197
|
const title = (0, agent_namespaceObject.typeStr)(task);
|
|
198
198
|
const subTitle = (0, agent_namespaceObject.paramStr)(task);
|
|
199
199
|
if (null == resultElement ? void 0 : resultElement.rect) insightCameraState = {
|
|
@@ -201,10 +201,10 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
|
|
|
201
201
|
pointerLeft: resultElement.center[0],
|
|
202
202
|
pointerTop: resultElement.center[1]
|
|
203
203
|
};
|
|
204
|
-
const context =
|
|
204
|
+
const context = serviceTask.uiContext;
|
|
205
205
|
if (null == context ? void 0 : context.screenshotBase64) {
|
|
206
|
-
var
|
|
207
|
-
const insightDump =
|
|
206
|
+
var _serviceTask_output1, _insightDump_taskInfo, _context_size, _context_size1;
|
|
207
|
+
const insightDump = serviceTask.log;
|
|
208
208
|
const insightContentLength = 0;
|
|
209
209
|
if (context.screenshotBase64) {
|
|
210
210
|
var _context_size2, _context_size3;
|
|
@@ -225,7 +225,7 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
|
|
|
225
225
|
img: context.screenshotBase64,
|
|
226
226
|
context: context,
|
|
227
227
|
camera: cameraState,
|
|
228
|
-
highlightElement: (null == (
|
|
228
|
+
highlightElement: (null == (_serviceTask_output1 = serviceTask.output) ? void 0 : _serviceTask_output1.element) || void 0,
|
|
229
229
|
searchArea: null == insightDump ? void 0 : null == (_insightDump_taskInfo = insightDump.taskInfo) ? void 0 : _insightDump_taskInfo.searchArea,
|
|
230
230
|
duration: insightContentLength > 20 ? locateDuration : 0.5 * locateDuration,
|
|
231
231
|
insightCameraDuration: locateDuration,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/visualizer",
|
|
3
|
-
"version": "1.0.1-beta-
|
|
3
|
+
"version": "1.0.1-beta-20251028065320.0",
|
|
4
4
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
5
5
|
"homepage": "https://midscenejs.com/",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"antd": "^5.21.6",
|
|
61
61
|
"buffer": "6.0.3",
|
|
62
62
|
"dayjs": "^1.11.11",
|
|
63
|
-
"@midscene/
|
|
64
|
-
"@midscene/
|
|
65
|
-
"@midscene/
|
|
66
|
-
"@midscene/shared": "1.0.1-beta-
|
|
63
|
+
"@midscene/playground": "1.0.1-beta-20251028065320.0",
|
|
64
|
+
"@midscene/web": "1.0.1-beta-20251028065320.0",
|
|
65
|
+
"@midscene/core": "1.0.1-beta-20251028065320.0",
|
|
66
|
+
"@midscene/shared": "1.0.1-beta-20251028065320.0"
|
|
67
67
|
},
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"scripts": {
|