@deveco-test/deveco-cli-common 1.3.11-Test.6 → 1.3.12-Test.1

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/README.md CHANGED
@@ -157,6 +157,7 @@ devecocli init --path D:\work\ARKTS\NewData
157
157
  | `devecocli emulator list` | 查看本地模拟器实例 |
158
158
  | `devecocli ui layout` | 导出设备屏幕上的 UI 节点树(布局、坐标、节点 ID) |
159
159
  | `devecocli ui window list` | 查看设备窗口列表(为 `ui layout` / `ui click` 等提供窗口 ID) |
160
+ | `devecocli ui display list` | 查看设备显示器列表,输出显示器 ID 与分辨率(为 `ui screenshot --display` 等提供 display ID) |
160
161
  | `devecocli ui screenshot` | 对真机或模拟器执行 UI 截图 |
161
162
  | `devecocli ui click` | 点击指定坐标、节点 ID 或 Selector 定位的元素 |
162
163
  | `devecocli ui swipe` | 自定义滑动(坐标模式或 `--start`/`--end` 元素模式) |
@@ -2060,6 +2061,40 @@ devecocli ui window list --all
2060
2061
  - 聚焦窗口在 `default` 格式下高亮显示。
2061
2062
  - 缺省时仅列出应用窗口;加 `--all` 可查看系统窗口,用于排查多窗口场景。
2062
2063
 
2064
+ ### `ui display list`
2065
+
2066
+ 查看设备上的显示器列表,输出显示器 ID、宽度和高度(单位 px)。为 `ui screenshot --display` 等命令提供 display ID,也用于确认多屏(投屏/扩展)场景下的各显示器分辨率。
2067
+
2068
+ **命令格式:**
2069
+
2070
+ ```bash
2071
+ devecocli ui display list --device <name|serial> --format <fmt> --all
2072
+ ```
2073
+
2074
+ **参数:**
2075
+
2076
+ | 参数名 | 说明 |
2077
+ | --- | --- |
2078
+ | --device \<name\|serial> | 目标设备,多设备时必填 |
2079
+ | --format | 输出格式,`default` 或 `json`,默认 `default` |
2080
+ | --all | 显示扩展信息:所属物理屏 ID、刷新率、虚拟像素比(VPR)、旋转角度 |
2081
+
2082
+ **示例:**
2083
+
2084
+ ```bash
2085
+ devecocli ui display list
2086
+ devecocli ui display list --device Phone
2087
+ devecocli ui display list --format json
2088
+ devecocli ui display list --all
2089
+ ```
2090
+
2091
+ **说明:**
2092
+
2093
+ - 数据来自 `hidumper -s DisplayManagerService -a -a`。
2094
+ - 缺省输出三列:Id、Width、Height;加 `--all` 追加 ScreenId、RefreshRate、Vpr、Rotation 列。
2095
+ - 扩展信息优先取 display 段内的 Client Screen Infos,段内未包含时回退到所属物理屏(Screen)会话;Rotation 为屏幕已应用的旋转角度(0/90/180/270,顺时针,与旋转后的宽高配套),不是设备传感器的原始姿态。
2096
+ - 扩展字段设备未上报时,表格显示 `-`,`--format json --all` 输出 `null`。
2097
+
2063
2098
  ### `run`
2064
2099
 
2065
2100
  构建应用后,将应用安装到真机设备或模拟器上,并启动执行
@@ -3,8 +3,8 @@ https://www.npmjs.com/package/generate-license-file
3
3
 
4
4
  The following npm packages may be included in this product:
5
5
 
6
- - @deveco-test/deveco-cli-knowledgebase@1.3.11-Test.6
7
- - @deveco-test/deveco-cli@1.3.11-Test.6
6
+ - @deveco-test/deveco-cli-knowledgebase@1.3.12-Test.1
7
+ - @deveco-test/deveco-cli@1.3.12-Test.1
8
8
 
9
9
  These packages each contain the following license:
10
10
 
@@ -44,7 +44,7 @@ SOFTWARE.
44
44
 
45
45
  The following npm package may be included in this product:
46
46
 
47
- - @deveco-test/deveco-cli-common@1.3.11-Test.6
47
+ - @deveco-test/deveco-cli-common@1.3.12-Test.1
48
48
 
49
49
  This package contains the following license:
50
50