文件最后提交记录最后更新时间
docs(api): add and update API documentation from Excel (11 APIs) - Add new APIs: BrowserWindow constructor, app.getDeviceInfo, screen.getDisplayId, systemPreferences.fileAccessPersist - Update existing APIs with Demo content and OHOS details - Update module READMEs and global index - API total count: 1290 -> 1294 Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
!20 merge docs/update-api-topic into master docs/update browserwindow doc Created-by: zhangqingnan_codeing Commit-by: zhangqingnan_codeing Merged-by: ohci1 Description: ### 一、内容说明(相关的Issue) 建议测试完成时间:xxxx.xx.xx 投产上线时间:xxxx.xx.xx 提测地址:CI环境/压测环境 测试账号: * 3.1 关联PR列表 * 3.2 数据库和部署说明 1. 常规更新 2. 重启unicorn 3. 重启sidekiq 4. 迁移任务:是否有迁移任务,没有写 "无" 5. rake脚本:bundle exec xxx RAILS_ENV = production;没有写 "无" * 3.4 其他技术优化内容(做了什么,变更了什么) - 重构了 xxxx 代码 - xxxx 算法优化 * 3.5 废弃通知(什么字段、方法弃用?) * 3.6 后向不兼容变更(是否有无法向后兼容的变更?) 自测测试结论: 检查点: | 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 | |------|------------|----------|---------------| | xxx | 否 | 需要 | 不需要 | | | | | | 接口测试: 性能测试: 并发测试: 其他: See merge request: openharmony-sig/electron!20 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
README.md

screen API 列表

本模块包含 13 个 API。

Events(事件)

API 说明 鸿蒙支持
display-added 在新显示器添加时触发。 支持
display-removed 在旧显示器移除时触发。 支持
display-metrics-changed 在某台显示器的一个或多个参数发生变化时触发,changedMetrics 为描述变化内容的字符串数组。 支持

Methods(方法)

API 说明 鸿蒙支持
screen.getCursorScreenPoint() 返回 Point,表示当前鼠标指针的绝对屏幕坐标。 支持
screen.getPrimaryDisplay() 返回 Display,表示主显示器。 支持
screen.getAllDisplays() 返回 Display[],包含当前所有可用的显示器。 支持
screen.getDisplayNearestPoint(point) 返回 Display,表示距离指定点最近的显示器。 支持
screen.getDisplayMatching(rect) 返回 Display,表示与指定矩形区域最匹配的显示器。 支持
screen.screenToDipPoint(point) 返回 Point,将屏幕坐标转换为 DIP 坐标。 不支持
screen.dipToScreenPoint(point) 返回 Point,将 DIP 坐标转换为屏幕坐标。 不支持
screen.screenToDipRect(window, rect) 返回 Rectangle,将屏幕矩形转换为 DIP 矩形。 不支持
screen.dipToScreenRect(window, rect) 返回 Rectangle,将 DIP 矩形转换为屏幕矩形。 不支持
screen.getDisplayId() 查询鼠标光标或触控点所在的屏幕ID(需要鼠标光标或触控点在electron窗口范围内) 支持