@solazah/solazah-runtime 0.0.195 → 0.1.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/package.json +1 -1
- package/types/SystemScreen.d.ts +3 -2
package/package.json
CHANGED
package/types/SystemScreen.d.ts
CHANGED
|
@@ -6,9 +6,10 @@ export default class SystemScreen {
|
|
|
6
6
|
/**
|
|
7
7
|
* 冻结光标所在显示器的截图底图,收集该屏上的窗口分数矩形与光标 CSS 坐标,打包为采集场景数据。
|
|
8
8
|
* 纯数据通道,不显示浮层;插件拿到数据后自行渲染全屏浮层,底图中不会包含浮层自身。
|
|
9
|
+
* 底图冻结在宿主侧,不随本方法返回 —— 浮层挂载后用 screen.captureSource 取一次。
|
|
9
10
|
* 若当前已有进行中的采集会话且存在已冻结场景,直接复用上次场景(避免把当前浮层抓进新底图)。
|
|
10
11
|
*
|
|
11
|
-
* @returns 采集场景数据 `
|
|
12
|
+
* @returns 采集场景数据 `CaptureScene`,含屏幕边界 (`bounds`)、
|
|
12
13
|
* 窗口分数矩形列表 (`windows`,各矩形以屏幕宽高归一化为 0~1 浮点数)、
|
|
13
14
|
* 光标在该屏内的 CSS 坐标 (`cursor`);截图失败时返回 null。
|
|
14
15
|
*/
|
|
@@ -18,7 +19,7 @@ export default class SystemScreen {
|
|
|
18
19
|
* 截图尺寸按物理像素(display.size × scaleFactor),保证 retina/高分屏清晰度。
|
|
19
20
|
*
|
|
20
21
|
* @param displayId 目标显示器 id;省略则截取光标当前所在的显示器。
|
|
21
|
-
* @returns 截图的
|
|
22
|
+
* @returns 截图的 PNG Data URL;未找到显示器或截图源时返回 null。
|
|
22
23
|
*/
|
|
23
24
|
captureDisplay: (displayId?: number) => Promise<any>;
|
|
24
25
|
/**
|