No description
- overlays.css: 弹层定位修复 - responsive.css: 小屏适配调整 - toolbar.css: 工具栏溢出修复 - signature-modal.js: 签名弹窗交互优化 - CLAUDE.md: 项目定位与治理规则 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .codex/skills/yinji | ||
| docs | ||
| public | ||
| src | ||
| tests | ||
| tools/ai | ||
| vendor | ||
| .gitignore | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| index.html | ||
| README.md | ||
| test-fixture.pdf | ||
| test-multi.pdf | ||
| tmp-global-patch-test-a.js | ||
| toolbar-current-2.png | ||
| toolbar-current-3.png | ||
| toolbar-current.png | ||
| toolbar-export-current.png | ||
| yinji-export.png | ||
| yinji-preview.png | ||
| yinji-toolbar-after.png | ||
| yinji-toolbar.png | ||
印迹(Yinji)
印迹是本地运行的 PDF 印章工具。普通章、骑缝章、签名、批量处理都在浏览器里完成,文件不会上传到服务器。
本地运行
cd /home/parallels/Projects/yinji
python3 -m http.server 8123
打开 http://127.0.0.1:8123/index.html。
目录
index.html:页面入口src/main.js:应用入口和装配逻辑src/core/:状态、设置、印章库、批量处理src/modules/:PDF、画布、导出、辅助线等功能src/features/:从入口拆出的业务功能src/ui/:弹窗、通知、加载等界面模块src/style.css:样式入口src/styles/:样式拆分文件tools/ai/:给 AI 或 CLI 用的自动化脚本
常用验证
语法检查:
node --check src/main.js
界面冒烟:
node tools/ai/yinji-cli.mjs smoke --pdf ./test-fixture.pdf
导出当前状态快照:
node tools/ai/yinji-cli.mjs state --pdf ./test-fixture.pdf --seal demo --add-seal
验证手写签名:
node tools/ai/yinji-cli.mjs state --pdf ./test-fixture.pdf --add-signature-demo
验证批量队列:
node tools/ai/yinji-cli.mjs state --tab export --batch-pdf ./test-fixture.pdf --batch-pdf ./test-multi.pdf
验证批量处理界面流程:
node tools/ai/yinji-cli.mjs state --seal demo --tab export --batch-pdf ./test-fixture.pdf --process-batch
截图:
node tools/ai/yinji-cli.mjs capture --pdf ./test-fixture.pdf --seal demo --add-seal --output ./ui-check.png
AI 协作
- 项目规则看
AGENTS.md - 任务流程和验证路径看
docs/AI_RUNBOOK.md - Codex skill 入口在
.codex/skills/yinji/SKILL.md
夹具
test-fixture.pdf:单文件基本流程test-multi.pdf:多页或批量流程
旧文档
docs/README.md 保留旧版对外介绍。当前开发和验证以本文件为准。