Repository navigation
新增墨迹文件打开位置选择,支持完整内容追加与整组撤销 - #800
Open
Huoxing-Rusty wants to merge 8 commits into
Open
Huoxing-Rusty wants to merge 8 commits into
Huoxing-Rusty wants to merge 8 commits into
Conversation
Huoxing-Rusty
marked this pull request as ready for review
November 20, 2026 16:18
Huoxing-Rusty
marked this pull request as draft
November 21, 2026 14:08
Huoxing-Rusty
marked this pull request as ready for review
November 29, 2026 04:49
格式与读写 - 按 UInk 1.1 规范读写:Header version=11,可读 10–19;有界分帧、两遍式 Canvas 索引, 精确数值与 FILE/SAVE/CANVAS/TYPE 各项校验;损坏尾部与中段可恢复。 - 事务保存:备份恢复、资源并集、CRC 校验,主文件与 .extra 按 EXTRA-12..17 顺序提交; 保存、清理与读取共用跨进程目标锁,保证主文件与 .extra 成对。 - 公共字段优先,ICC 私有信息写入 extra;只保证存储正确,外来文件中 ICC 不支持的显示 按规范回退并提示另存,不新增渲染器。 映射与加载性能 - 页面投影、坐标/DPI/viewport 映射、WPF 笔宽公式、线性撤回历史回放; 单页 100 万点 Release 加载约 0.6–0.8 s(原 6.7 s),分配从约 1.2 GB 降到 236 MB。 - 后台保存队列(书写时推迟、合并定时保存,退出时排空),翻页时后台准备媒体。 内容类型 - 媒体:图片/PDF/音视频按原生布局往返,视频私有布局还原,资源缺失显示占位符。 - 图形:ICC 自产几何写成 Shape(复合图形用 object 组合),导出时校验并可还原为原生笔画; 手写识别字形按实际轮廓写出。 - PPT:按 SlideID 绑定逐页存储,删除的幻灯片作为 Retained 保留;取不到 SlideID 时 按页序绑定并提示。放映结束在 UInk 模式下归档为 slides.uink,缺失时回退 .icstk。 - PPT Agent 合同新增可选的 SlideId/SlideIds,新旧插件与 ICC 双向兼容 (VSTO 插件端仅静态核对,待 x64 机器构建实测)。 默认格式与入口 - 一次性迁移默认格式为 UInk(保留用户主动选择的 XML/整页图片);手动/定时保存、 截图伴随墨迹统一按格式设置;上传与自动清理包含 .extra。 - 打开对话框、命令行与 IPC 均支持 .uink。 测试 - InkCanvas.Calibration.Tests 新增 --uink-fixtures/-roundtrip/-robust/-reader/-bench/-all, 含 17 个官方样例、往返、变异鲁棒性、事务与加载基准;PDF 渲染测试在子进程中运行。
Huoxing-Rusty
marked this pull request as draft
November 29, 2026 16:24
Huoxing-Rusty
marked this pull request as ready for review
November 29, 2026 16:36
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.
双击
.icstk文件时,新增打开位置选择窗口,可将文件内容追加到屏幕批注、白板或展台。冷启动和已运行实例使用同一入口;取消选择不改变当前页面。验证:
dotnet build InkCanvas.Calibration.Tests --no-restore -p:Platform=x64 -v:quiet通过,0 错误;6 条现有 SYSLIB0050 警告。InkCanvas.Calibration.Tests.exe --stroke-file-only:11 项通过,0 失败。git -c core.whitespace=cr-at-eol diff --check upstream/net10 HEAD通过。前两次commit由AI生成,人工调整创建第3次commit,均已审核并核对diff
后由AI处理冲突并迁移,测试各项改动的功能均正常
经人工验证:期望功能完整实现。测试环境: Windows 10 触控板+数位板,手里暂时没有大屏,未进行触屏硬件测试
本次合并冲突由 AI 解决并提交。同步上游 UInk 1.1 后,复核了两种文件的打开路径,并修正打开位置窗口的 ICC 和白板图标资源引用。合并后的
.icstk专项测试 11 项通过。UInk 往返测试的 PDF 缓存访问失败也在同一上游基线复现。