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