@midscene/visualizer 1.0.1-beta-20251113033118.0 → 1.0.1-beta-20251118021215.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.
|
@@ -158,11 +158,13 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
|
|
|
158
158
|
'start',
|
|
159
159
|
'end'
|
|
160
160
|
];
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
161
|
+
if (action.param) {
|
|
162
|
+
knownFields.forEach((field)=>{
|
|
163
|
+
if (action.param[field] && 'object' == typeof action.param[field] && 'center' in (action.param[field] || {})) locateElements.push(action.param[field]);
|
|
164
|
+
});
|
|
165
|
+
for(const key in action.param)if (!knownFields.includes(key)) {
|
|
166
|
+
if ('object' == typeof action.param[key] && 'center' in (action.param[key] || {})) locateElements.push(action.param[key]);
|
|
167
|
+
}
|
|
166
168
|
}
|
|
167
169
|
}
|
|
168
170
|
} else if ('Locate' === task.subType && (null == (_task_output = task.output) ? void 0 : _task_output.element)) {
|
|
@@ -189,11 +189,13 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
|
|
|
189
189
|
'start',
|
|
190
190
|
'end'
|
|
191
191
|
];
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
192
|
+
if (action.param) {
|
|
193
|
+
knownFields.forEach((field)=>{
|
|
194
|
+
if (action.param[field] && 'object' == typeof action.param[field] && 'center' in (action.param[field] || {})) locateElements.push(action.param[field]);
|
|
195
|
+
});
|
|
196
|
+
for(const key in action.param)if (!knownFields.includes(key)) {
|
|
197
|
+
if ('object' == typeof action.param[key] && 'center' in (action.param[key] || {})) locateElements.push(action.param[key]);
|
|
198
|
+
}
|
|
197
199
|
}
|
|
198
200
|
}
|
|
199
201
|
} else if ('Locate' === task.subType && (null == (_task_output = task.output) ? void 0 : _task_output.element)) {
|
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-20251118021215.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/core": "1.0.1-beta-
|
|
64
|
-
"@midscene/
|
|
65
|
-
"@midscene/
|
|
66
|
-
"@midscene/web": "1.0.1-beta-
|
|
63
|
+
"@midscene/core": "1.0.1-beta-20251118021215.0",
|
|
64
|
+
"@midscene/shared": "1.0.1-beta-20251118021215.0",
|
|
65
|
+
"@midscene/playground": "1.0.1-beta-20251118021215.0",
|
|
66
|
+
"@midscene/web": "1.0.1-beta-20251118021215.0"
|
|
67
67
|
},
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"scripts": {
|