Feature/macos screenshot - #18
Merged
Merged
Conversation
- 新增 macOS 截图完整实现(Swift):选区/窗口吸附、编辑标注、马赛克、
长截图、圆角导出、保存对话框,行为与 Windows 版对齐
- 截图模块重构为 src/screenshot/{windows,macos,algo} 三层目录,
长截图拼接算法独立为平台无关的 algo 模块
- setClipboardFiles 支持 macOS;ScreenCapture.start 返回选区坐标与
错误信息,base64 结果带 data URL 前缀;长截图取消帧数上限
- 同步更新 binding.gyp、build-swift.sh、CI 构建流程与 README/DEPLOY 文档
PMv2 捕获线程下 GetSystemMetrics 已返回物理像素,dpiScale = physVw/vw 恒为 1,工具栏/面板界面尺寸乘它导致高分屏下保持 96 DPI 尺寸(过小)。 新增 LongCaptureContext.uiScale(GetDpiForSystem/96,与编辑态 CalcToolbarMetrics 同源):工具栏窗口/布局/图标/tooltip 与面板窗口/ 内边距/圆角等界面 chrome 一律改用 uiScale;内容几何换算(rows/ds 标签、物理采样偏移、预览显示尺寸)保持 dpiScale 不变。 macOS 端 UI 以 point 布局、系统按 backing scale 自动渲染,无此问题。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
截图功能同步mac端实现,并修复了win端高分屏下长截图工具栏UI尺寸问题