<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>星辰月光酿大树</name>
    <email>312655375@qq.com</email>
  </author>
  <generator uri="https://hexo.io/">Hexo</generator>
  <icon>https://www.gravatar.com/avatar/dd56a9c400dbbf8648da22e71c7d326a</icon>
  <id>https://057300.xyz/</id>
  <link href="https://057300.xyz/" rel="alternate"/>
  <link href="https://057300.xyz/atom.xml" rel="self"/>
  <rights>All rights reserved 2026, 星辰月光酿大树</rights>
  <subtitle>
    <![CDATA[包装&物流工具箱 —— 免费在线包装与物流工具集：纸盒刀模设计、集装箱装柜计算、在线标签编辑、Markdown 编辑器，打开即用。]]>
  </subtitle>
  <title>
    <![CDATA[包装&物流工具箱]]>
  </title>
  <updated>2026-10-28T01:52:08.106Z</updated>
  <entry>
    <author>
      <name>星辰月光酿大树</name>
      <email>312655375@qq.com</email>
    </author>
    <category term="在线工具" scheme="https://057300.xyz/categories/%E5%9C%A8%E7%BA%BF%E5%B7%A5%E5%85%B7/"/>
    <category term="工具" scheme="https://057300.xyz/tags/%E5%B7%A5%E5%85%B7/"/>
    <category term="标签编辑器" scheme="https://057300.xyz/tags/%E6%A0%87%E7%AD%BE%E7%BC%96%E8%BE%91%E5%99%A8/"/>
    <category term="使用说明" scheme="https://057300.xyz/tags/%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E/"/>
    <content>
      <![CDATA[<section style="background:#ffffff;border-radius:12px;font-family:'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;line-height:1.9;color:#1e293b;padding:12px 16px;max-width:100%;"><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">一个<strong>单文件标签 / 不干胶 / 条码标签</strong>可视化编辑器：在浏览器里拖拽排版文本、形状、图片与矢量条码，所见即所得地设计标签，并导出为 <strong>PDF（矢量）/ PNG</strong> 或批量打印。</p><div style="background:#f0fdfa;border-left:4px solid #14b8a6;padding:12px 16px;margin:14px 0;border-radius:0 8px 8px 0;font-size:14px;color:#115e59;line-height:1.8;">🔗 在线演示：<a href="https://057300.xyz/label-editor/" style="color:#0d9488;text-decoration:none;word-break:break-all;" target="_blank">https://057300.xyz/label-editor/</a></div><p style="text-align:center;margin:16px 0 4px 0;"><img src="/img/label-editor-usage/ui-overview.png" alt="编辑器界面预览" style="max-width:100%;border-radius:8px;display:inline-block;box-shadow:0 1px 6px rgba(0,0,0,.08);"></p><p style="text-align:center;color:#94a3b8;font-size:13px;margin:0 0 18px 0;line-height:1.6;">三栏式编辑器：左侧工具箱 · 中间无限画布 · 右侧属性面板 · 底部数据栏</p><hr style="border:none;border-top:1px solid #e2e8f0;margin:24px 0;"><h2 style="font-size:18px;font-weight:bold;color:#0f766e;margin:30px 0 14px;padding-left:12px;border-left:4px solid #0f766e;line-height:1.5;">✨ 功能特性</h2><div style="overflow-x:auto;margin:14px 0;"><table style="border-collapse:collapse;width:100%;font-size:14px;line-height:1.6;"><thead><tr><th style="border:1px solid #e2e8f0;padding:9px 12px;background:#f0fdfa;color:#0f766e;font-weight:bold;text-align:left;white-space:nowrap;">类别</th><th style="border:1px solid #e2e8f0;padding:9px 12px;background:#f0fdfa;color:#0f766e;font-weight:bold;text-align:left;white-space:nowrap;">能力</th></tr></thead><tbody><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>画布</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">无限画布、CSS 视口缩放、滚轮以光标为中心缩放、中键拖动平移、双击中键「适应画布」</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>对象</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">文本、矩形、椭圆、直线、图片、条码、二维码</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>条码</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">Code128 / Code39 / EAN(EAN-13) / UPC / DataMatrix / QR，<strong>矢量矩形组</strong>渲染（扫码可用），二维码支持容错等级 <strong>L / M / Q / H</strong></td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>素材</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">内置 <strong>2100+</strong> 个矢量线稿图标（Lucide / 自绘包装储运标志 / Twemoji），按分类与关键词检索，插入后可改色与描边粗细</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>数据</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">上传 Excel / CSV，<strong>文本框名称与表头同名即自动绑定整列</strong>，按行预览、批量套打与批量导出</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>多选编排</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">6 种对齐（左/水平居中/右/上/垂直居中/下）、编组 / 解组</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>图层</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">置于顶层 / 置于底层 / 上移一层 / 下移一层</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>模板</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">保存到本地（localStorage）、打开、导入 / 导出 JSON 模板</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>导出</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">导出 PDF（矢量，扫码级精度）、导出 PNG、批量打印 / 批量导出</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>移动端</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">单击选中并编辑、双击弹出属性、底部抽屉式属性面板</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>持久化</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">序列化保存画布（含条码元数据），载入时自动重建矢量条码</td></tr></tbody></table></div><hr style="border:none;border-top:1px solid #e2e8f0;margin:24px 0;"><h2 style="font-size:18px;font-weight:bold;color:#0f766e;margin:30px 0 14px;padding-left:12px;border-left:4px solid #0f766e;line-height:1.5;">🧱 技术栈</h2><ul style="margin:12px 0 16px 0;padding-left:22px;"><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>React 19</strong> + <strong>TypeScript（strict）</strong></li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>Vite 7</strong>（构建 / 开发服务器）</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>fabric.js 5.3</strong> — 画布与对象模型</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>bwip-js</strong> — 条码 / 二维码矢量渲染</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>jsPDF</strong> + 自研 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">vectorExport</code> — 矢量 PDF 导出</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>Tailwind CSS</strong> + <strong>Radix UI / shadcn 风格组件</strong> + <strong>Lucide</strong> 图标</li></ul><hr style="border:none;border-top:1px solid #e2e8f0;margin:24px 0;"><h2 style="font-size:18px;font-weight:bold;color:#0f766e;margin:30px 0 14px;padding-left:12px;border-left:4px solid #0f766e;line-height:1.5;">🚀 快速开始（本地开发）</h2><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">要求 <strong>Node.js ≥ 20.19</strong>（推荐 22 LTS）。</p><pre style="background:#0f172a;color:#e2e8f0;padding:16px 18px;border-radius:8px;overflow-x:auto;font-size:13px;line-height:1.7;margin:14px 0;"><code style="font-family:Consolas,Monaco,monospace;white-space:pre;"># 1. 克隆仓库git clone git@github.com:bbb-pro/label-editor.gitcd label-editor<h1 id="2-安装依赖"><a href="#2-安装依赖" class="headerlink" title="2. 安装依赖"></a>2. 安装依赖</h1><p>npm install</p><h1 id="3-启动开发服务器（默认-http-localhost-5173）"><a href="#3-启动开发服务器（默认-http-localhost-5173）" class="headerlink" title="3. 启动开发服务器（默认 http://localhost:5173）"></a>3. 启动开发服务器（默认 <a href="http://localhost:5173）">http://localhost:5173）</a></h1><p>npm run dev</p><h1 id="4-生产构建（产物在-dist-）"><a href="#4-生产构建（产物在-dist-）" class="headerlink" title="4. 生产构建（产物在 dist&#x2F;）"></a>4. 生产构建（产物在 dist&#x2F;）</h1><p>npm run build</p><h1 id="5-本地预览构建产物"><a href="#5-本地预览构建产物" class="headerlink" title="5. 本地预览构建产物"></a>5. 本地预览构建产物</h1><p>npm run preview</code></pre></p><hr style="border:none;border-top:1px solid #e2e8f0;margin:24px 0;"><h2 style="font-size:18px;font-weight:bold;color:#0f766e;margin:30px 0 14px;padding-left:12px;border-left:4px solid #0f766e;line-height:1.5;">📖 使用说明</h2><h3 style="font-size:16px;font-weight:bold;color:#0f766e;margin:20px 0 10px;">1. 画布与视图</h3><div style="overflow-x:auto;margin:14px 0;"><table style="border-collapse:collapse;width:100%;font-size:14px;line-height:1.6;"><thead><tr><th style="border:1px solid #e2e8f0;padding:9px 12px;background:#f0fdfa;color:#0f766e;font-weight:bold;text-align:left;white-space:nowrap;">操作</th><th style="border:1px solid #e2e8f0;padding:9px 12px;background:#f0fdfa;color:#0f766e;font-weight:bold;text-align:left;white-space:nowrap;">方式</th></tr></thead><tbody><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">缩放</td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">鼠标滚轮，<strong>以光标位置为锚点</strong>缩放</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">平移</td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">按住<strong>鼠标中键</strong>拖动</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">适应画布</td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">双击<strong>鼠标中键</strong>，或点顶部「适应」按钮</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">回到 100%</td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">点顶部「100%」按钮</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">无限画布</td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">拖到边缘时画布自动扩展，永不被截断</td></tr></tbody></table></div><div style="background:#f0fdfa;border-left:4px solid #14b8a6;padding:12px 16px;margin:14px 0;border-radius:0 8px 8px 0;font-size:14px;color:#115e59;line-height:1.8;">首次打开、新建、导入模板均默认 <strong>100%</strong> 视图，刷新浏览器不会跳变。</div><h3 style="font-size:16px;font-weight:bold;color:#0f766e;margin:20px 0 10px;">2. 添加对象</h3><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">左侧工具箱提供：<strong>文本 · 矩形 · 椭圆 · 直线 · 图片 · 条码 · 二维码</strong>，点击即在画布中心创建。</p><ul style="margin:12px 0 16px 0;padding-left:22px;"><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>文本</strong>：双击编辑文字；拉伸文本框只改变框尺寸，<strong>字号不变</strong>。</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>图片</strong>：从本地选择图片文件插入。</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>条码 / 二维码</strong>：在属性面板设置内容与参数（见第 4 节）。</li></ul><h3 style="font-size:16px;font-weight:bold;color:#0f766e;margin:20px 0 10px;">3. 选中与属性编辑</h3><ul style="margin:12px 0 16px 0;padding-left:22px;"><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;">单击对象选中，右侧 <strong>属性面板</strong> 显示可编辑项：</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;">文本：字号、字体、颜色、加粗 / 斜体、对齐</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;">形状：填充色、描边色、描边宽度</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;">条码 / 二维码：码制类型、内容、尺寸（mm）、容错等级</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;">对象可拖到标签<strong>之外</strong>的画布区域临时摆放，仅标签纸范围内的对象参与导出 / 打印。</li></ul><h3 style="font-size:16px;font-weight:bold;color:#0f766e;margin:20px 0 10px;">4. 条码与二维码</h3><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">插入条码后，在属性面板中配置：</p><ul style="margin:12px 0 16px 0;padding-left:22px;"><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>码制类型</strong>：Code128 / Code39 / EAN-13 / UPC / DataMatrix / QR</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>内容</strong>：要编码的文本或数据</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>目标尺寸</strong>：以毫米（mm）设置实际打印大小</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>容错等级（仅 QR）</strong>：<code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">L</code>（低，~7%）/ <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">M</code>（中，~15%）/ <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">Q</code>（较高，~25%）/ <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">H</code>（高，~30%）</li></ul><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">条码以<strong>矢量矩形组</strong>方式渲染（非位图），PDF 导出后仍为矢量，扫码设备可直接识别。</p><p style="text-align:center;margin:16px 0 4px 0;"><img src="/img/label-editor-usage/barcode-panel.png" alt="条码属性面板" style="max-width:100%;border-radius:8px;display:inline-block;box-shadow:0 1px 6px rgba(0,0,0,.08);"></p><p style="text-align:center;color:#94a3b8;font-size:13px;margin:0 0 18px 0;line-height:1.6;">选中条码后，右侧面板可改名称、位置尺寸（mm）、码制类型与人眼可读文字</p><h3 style="font-size:16px;font-weight:bold;color:#0f766e;margin:20px 0 10px;">5. 多选编排</h3><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">框选或按住 Shift 选中 <strong>2 个及以上</strong> 对象后，顶部工具条激活：</p><ul style="margin:12px 0 16px 0;padding-left:22px;"><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>对齐</strong>：左对齐 / 水平居中 / 右对齐 / 顶对齐 / 垂直居中 / 底对齐</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>编组 / 解组</strong>：将多个对象组合为整体统一移动缩放，或拆分还原</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>层次</strong>：置于顶层 / 置于底层 / 上移一层 / 下移一层</li></ul><p style="text-align:center;margin:16px 0 4px 0;"><img src="/img/label-editor-usage/multi-select.png" alt="多选与对齐工具条" style="max-width:100%;border-radius:8px;display:inline-block;box-shadow:0 1px 6px rgba(0,0,0,.08);"></p><p style="text-align:center;color:#94a3b8;font-size:13px;margin:0 0 18px 0;line-height:1.6;">框选或 Shift 多选后，顶部工具条点亮编组 / 解组 / 对齐 / 层次</p><h3 style="font-size:16px;font-weight:bold;color:#0f766e;margin:20px 0 10px;">6. 模板（保存与复用）</h3><ul style="margin:12px 0 16px 0;padding-left:22px;"><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>保存模板</strong>：将当前画布存入浏览器本地（localStorage），下次打开自动恢复。</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>打开模板</strong>：载入已保存的模板。</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;"><strong>导入 / 导出 JSON</strong>：把整个画布序列化为 JSON 文件，便于备份、版本管理或跨设备迁移（条码以元数据形式保存，导入后自动重建矢量条码）。</li></ul><h3 style="font-size:16px;font-weight:bold;color:#0f766e;margin:20px 0 10px;">7. 导出</h3><div style="overflow-x:auto;margin:14px 0;"><table style="border-collapse:collapse;width:100%;font-size:14px;line-height:1.6;"><thead><tr><th style="border:1px solid #e2e8f0;padding:9px 12px;background:#f0fdfa;color:#0f766e;font-weight:bold;text-align:left;white-space:nowrap;">方式</th><th style="border:1px solid #e2e8f0;padding:9px 12px;background:#f0fdfa;color:#0f766e;font-weight:bold;text-align:left;white-space:nowrap;">说明</th></tr></thead><tbody><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>导出 PDF</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">矢量 PDF，条码 / 图形均为矢量，适合印刷</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>导出 PNG</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">位图快照，便于快速分享</td></tr><tr><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;"><strong>批量打印 / 批量导出</strong></td><td style="border:1px solid #e2e8f0;padding:9px 12px;color:#334155;vertical-align:top;">依据模板在单页上按网格重复排布多份标签后打印或导出</td></tr></tbody></table></div><p style="text-align:center;margin:16px 0 4px 0;"><img src="/img/label-editor-usage/batch-print.png" alt="批量打印对话框" style="max-width:100%;border-radius:8px;display:inline-block;box-shadow:0 1px 6px rgba(0,0,0,.08);"></p><p style="text-align:center;color:#94a3b8;font-size:13px;margin:0 0 18px 0;line-height:1.6;">已绑定数据或启用序列号时，打印 / 导出前会询问份数或行数</p><h3 style="font-size:16px;font-weight:bold;color:#0f766e;margin:20px 0 10px;">8. 素材库（内置 2100+ 矢量图标）</h3><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">点击左侧「素材」打开素材库，支持<strong>分类筛选</strong>（储运标志 / 通用 / 计量单位 / 时间日期 / 安全警示）与<strong>关键词搜索</strong>。图标全部为矢量线稿，插入后可在属性面板统一改颜色与描边粗细，导出 PDF 时保持矢量。</p><div style="background:#f0fdfa;border-left:4px solid #14b8a6;padding:12px 16px;margin:14px 0;border-radius:0 8px 8px 0;font-size:14px;color:#115e59;line-height:1.8;">图标来源：Lucide（ISC）· 包装储运标志（自绘，GB/T 191 语义）· Twemoji（CC-BY 4.0）</div><p style="text-align:center;margin:16px 0 4px 0;"><img src="/img/label-editor-usage/assets-library.png" alt="素材库" style="max-width:100%;border-radius:8px;display:inline-block;box-shadow:0 1px 6px rgba(0,0,0,.08);"></p><h3 style="font-size:16px;font-weight:bold;color:#0f766e;margin:20px 0 10px;">9. 数据与批量套打</h3><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">上传 <strong>Excel / CSV</strong> 后，<strong>画布中名称与表头同名的文本/条码会自动绑定整列数据</strong>；点击数据行即可在画布上预览该行效果，<code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">&#123;&#123;字段&#125;&#125;</code> 变量自动替换。</p><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">点击打印 / 导出时，若检测到数据绑定，会先询问要输出的行数，<strong>每行按对应数据生成一张</strong>——这就是 Excel 批量套打的完整闭环。</p><p style="text-align:center;margin:16px 0 4px 0;"><img src="/img/label-editor-usage/data-binding.png" alt="数据绑定与批量套打" style="max-width:100%;border-radius:8px;display:inline-block;box-shadow:0 1px 6px rgba(0,0,0,.08);"></p><p style="text-align:center;color:#94a3b8;font-size:13px;margin:0 0 18px 0;line-height:1.6;">底部数据栏显示已载入的数据表；画布标签按选中行实时替换字段</p><h3 style="font-size:16px;font-weight:bold;color:#0f766e;margin:20px 0 10px;">10. 移动端</h3><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">窄屏下自动切换紧凑布局：工具箱竖向排列、顶部按钮图标化、属性面板改为<strong>底部抽屉式</strong>，支持单击选中、双击编辑，手机上也能完成基本排版。</p><p style="text-align:center;margin:16px 0 4px 0;"><img src="/img/label-editor-usage/mobile.png" alt="移动端布局" style="max-width:100%;border-radius:8px;display:inline-block;box-shadow:0 1px 6px rgba(0,0,0,.08);"></p><hr style="border:none;border-top:1px solid #e2e8f0;margin:24px 0;"><h2 style="font-size:18px;font-weight:bold;color:#0f766e;margin:30px 0 14px;padding-left:12px;border-left:4px solid #0f766e;line-height:1.5;">🌐 部署（GitHub Pages）</h2><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">本项目通过 <strong>GitHub Actions</strong> 实现「推送即部署」：</p><ul style="margin:12px 0 16px 0;padding-left:22px;"><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;">推送（或合并 PR）到 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">main</code> 分支会自动触发工作流 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">.github/workflows/deploy.yml</code>：</li></ul><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">1. <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">npm ci</code> 安装依赖 2. <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">npm run build</code> 构建到 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">dist/</code> 3. 通过 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">peaceiris/actions-gh-pages</code> 将 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">dist/</code> 发布到 <strong><code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">gh-pages</code></strong> 分支</p><ul style="margin:12px 0 16px 0;padding-left:22px;"><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;">GitHub Pages 的发布源已设为 <strong><code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">gh-pages</code> 分支（/ 根目录）</strong>。</li><li style="margin:0 0 8px 0;color:#334155;line-height:1.7;">自定义域名 <strong><code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">057300.xyz</code></strong> 由 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">public/CNAME</code> 与 Actions 中的 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">cname</code> 共同保证。</li></ul><div style="background:#f0fdfa;border-left:4px solid #14b8a6;padding:12px 16px;margin:14px 0;border-radius:0 8px 8px 0;font-size:14px;color:#115e59;line-height:1.8;">开发时只需专注 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">main</code> 分支源码；上线无需手动构建，提交即生效（通常 1 分钟内）。</div><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">手动部署（备用）：本地 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">npm run build</code> 后，把 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">dist/</code> 内容推到 <code style="background:#f1f5f9;color:#0f172a;padding:1px 5px;border-radius:4px;font-size:0.92em;">gh-pages</code> 分支根目录即可。</p><hr style="border:none;border-top:1px solid #e2e8f0;margin:24px 0;"><h2 style="font-size:18px;font-weight:bold;color:#0f766e;margin:30px 0 14px;padding-left:12px;border-left:4px solid #0f766e;line-height:1.5;">📁 项目结构（要点）</h2><pre style="background:#0f172a;color:#e2e8f0;padding:16px 18px;border-radius:8px;overflow-x:auto;font-size:13px;line-height:1.7;margin:14px 0;"><code style="font-family:Consolas,Monaco,monospace;white-space:pre;">src/├─ lib/│  ├─ canvasEngine.ts     # 画布引擎：对象增删改、视图变换、编组/对齐/图层│  ├─ barcode.ts          # 条码/二维码类型与参数│  ├─ assetsLib.ts        # 素材库：SVG 图标检索与渲染│  ├─ spreadsheet.ts      # Excel / CSV 解析与数据绑定│  ├─ export.ts           # PDF / PNG / 批量打印│  └─ vectorExport.ts     # 矢量 PDF 导出（矢量条码）├─ sections/│  ├─ TopBar.tsx          # 顶部工具条（编组/对齐/层次/适应/100%）│  ├─ Toolbox.tsx         # 左侧对象工具箱│  ├─ PropertyPanel.tsx   # 右侧属性面板（含条码面板）│  ├─ AssetsPanel.tsx     # 素材库面板│  └─ DataDock.tsx        # 数据栏（Excel / CSV 与模板）├─ components/editor/      # 编辑器子组件（批量打印对话框等）└─ App.tsx                # 应用入口与编排<p>docs&#x2F;images&#x2F;               # README 截图（由编辑器实跑生成）</code></pre></p><hr style="border:none;border-top:1px solid #e2e8f0;margin:24px 0;"><h2 style="font-size:18px;font-weight:bold;color:#0f766e;margin:30px 0 14px;padding-left:12px;border-left:4px solid #0f766e;line-height:1.5;">📄 License</h2><p style="margin:0 0 16px 0;font-size:15px;color:#334155;line-height:1.9;">MIT © bbb-pro</p></section>]]>
    </content>
    <id>https://057300.xyz/2026/09/12/%E5%9C%A8%E7%BA%BF%E6%A0%87%E7%AD%BE%E7%BC%96%E8%BE%91%E5%99%A8-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E/</id>
    <link href="https://057300.xyz/2026/09/12/%E5%9C%A8%E7%BA%BF%E6%A0%87%E7%AD%BE%E7%BC%96%E8%BE%91%E5%99%A8-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E/"/>
    <published>2026-09-12T04:40:00.000Z</published>
    <summary>在线标签编辑器（Label Editor）完整使用说明：画布与视图、对象添加、条码二维码、多选编排、模板复用、PDF/PNG 导出、Excel 批量套打与移动端操作。</summary>
    <title>在线标签编辑器 · 使用说明</title>
    <updated>2026-10-28T01:52:08.106Z</updated>
  </entry>
  <entry>
    <author>
      <name>星辰月光酿大树</name>
      <email>312655375@qq.com</email>
    </author>
    <category term="项目" scheme="https://057300.xyz/categories/%E9%A1%B9%E7%9B%AE/"/>
    <category term="开源" scheme="https://057300.xyz/tags/%E5%BC%80%E6%BA%90/"/>
    <category term="工具" scheme="https://057300.xyz/tags/%E5%B7%A5%E5%85%B7/"/>
    <category term="Label Editor" scheme="https://057300.xyz/tags/Label-Editor/"/>
    <category term="标签" scheme="https://057300.xyz/tags/%E6%A0%87%E7%AD%BE/"/>
    <category term="条码" scheme="https://057300.xyz/tags/%E6%9D%A1%E7%A0%81/"/>
    <category term="二维码" scheme="https://057300.xyz/tags/%E4%BA%8C%E7%BB%B4%E7%A0%81/"/>
    <content>
      <![CDATA[<p>一个<strong>单文件标签 &#x2F; 不干胶 &#x2F; 条码标签</strong>可视化编辑器：在浏览器里拖拽排版文本、形状、图片与矢量条码，所见即所得地设计标签，并导出为 <strong>PDF（矢量）&#x2F; PNG</strong> 或批量打印。</p><blockquote><p>🔗 在线演示：<a href="https://057300.xyz/label-editor/">https://057300.xyz/label-editor/</a></p></blockquote><hr><h2 id="✨-功能特性"><a href="#✨-功能特性" class="headerlink" title="✨ 功能特性"></a>✨ 功能特性</h2><table><thead><tr><th>类别</th><th>能力</th></tr></thead><tbody><tr><td><strong>画布</strong></td><td>无限画布、CSS 视口缩放、滚轮以光标为中心缩放、中键拖动平移、双击中键「适应画布」</td></tr><tr><td><strong>对象</strong></td><td>文本、矩形、椭圆、直线、图片、条码、二维码</td></tr><tr><td><strong>条码</strong></td><td>Code128 &#x2F; Code39 &#x2F; EAN(EAN-13) &#x2F; UPC &#x2F; DataMatrix &#x2F; QR，<strong>矢量矩形组</strong>渲染（扫码可用），二维码支持容错等级 <strong>L &#x2F; M &#x2F; Q &#x2F; H</strong></td></tr><tr><td><strong>多选编排</strong></td><td>6 种对齐（左&#x2F;水平居中&#x2F;右&#x2F;上&#x2F;垂直居中&#x2F;下）、编组 &#x2F; 解组</td></tr><tr><td><strong>图层</strong></td><td>置于顶层 &#x2F; 置于底层 &#x2F; 上移一层 &#x2F; 下移一层</td></tr><tr><td><strong>模板</strong></td><td>保存到本地（localStorage）、打开、导入 &#x2F; 导出 JSON 模板</td></tr><tr><td><strong>导出</strong></td><td>导出 PDF（矢量，扫码级精度）、导出 PNG、批量打印 &#x2F; 批量导出</td></tr><tr><td><strong>移动端</strong></td><td>单击选中并编辑、双击弹出属性、底部抽屉式属性面板</td></tr><tr><td><strong>持久化</strong></td><td>序列化保存画布（含条码元数据），载入时自动重建矢量条码</td></tr></tbody></table><hr><h2 id="🧱-技术栈"><a href="#🧱-技术栈" class="headerlink" title="🧱 技术栈"></a>🧱 技术栈</h2><ul><li><strong>React 19</strong> + <strong>TypeScript（strict）</strong></li><li><strong>Vite 7</strong>（构建 &#x2F; 开发服务器）</li><li><strong>fabric.js 5.3</strong> — 画布与对象模型</li><li><strong>bwip-js</strong> — 条码 &#x2F; 二维码矢量渲染</li><li><strong>jsPDF</strong> + 自研 <code>vectorExport</code> — 矢量 PDF 导出</li><li><strong>Tailwind CSS</strong> + <strong>Radix UI &#x2F; shadcn 风格组件</strong> + <strong>Lucide</strong> 图标</li></ul><hr><h2 id="🚀-快速开始（本地开发）"><a href="#🚀-快速开始（本地开发）" class="headerlink" title="🚀 快速开始（本地开发）"></a>🚀 快速开始（本地开发）</h2><p>要求 <strong>Node.js ≥ 20.19</strong>（推荐 22 LTS）。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 1. 克隆仓库</span></span><br><span class="line">git <span class="built_in">clone</span> git@github.com:bbb-pro/label-editor.git</span><br><span class="line"><span class="built_in">cd</span> label-editor</span><br><span class="line"></span><br><span class="line"><span class="comment"># 2. 安装依赖</span></span><br><span class="line">npm install</span><br><span class="line"></span><br><span class="line"><span class="comment"># 3. 启动开发服务器（默认 http://localhost:5173）</span></span><br><span class="line">npm run dev</span><br><span class="line"></span><br><span class="line"><span class="comment"># 4. 生产构建（产物在 dist/）</span></span><br><span class="line">npm run build</span><br><span class="line"></span><br><span class="line"><span class="comment"># 5. 本地预览构建产物</span></span><br><span class="line">npm run preview</span><br></pre></td></tr></table></figure><hr><h2 id="📖-使用说明"><a href="#📖-使用说明" class="headerlink" title="📖 使用说明"></a>📖 使用说明</h2><h3 id="1-画布与视图"><a href="#1-画布与视图" class="headerlink" title="1. 画布与视图"></a>1. 画布与视图</h3><table><thead><tr><th>操作</th><th>方式</th></tr></thead><tbody><tr><td>缩放</td><td>鼠标滚轮，<strong>以光标位置为锚点</strong>缩放</td></tr><tr><td>平移</td><td>按住<strong>鼠标中键</strong>拖动</td></tr><tr><td>适应画布</td><td>双击<strong>鼠标中键</strong>，或点顶部「适应」按钮</td></tr><tr><td>回到 100%</td><td>点顶部「100%」按钮</td></tr><tr><td>无限画布</td><td>拖到边缘时画布自动扩展，永不被截断</td></tr></tbody></table><blockquote><p>首次打开、新建、导入模板均默认 <strong>100%</strong> 视图，刷新浏览器不会跳变。</p></blockquote><h3 id="2-添加对象"><a href="#2-添加对象" class="headerlink" title="2. 添加对象"></a>2. 添加对象</h3><p>左侧工具箱提供：<strong>文本 · 矩形 · 椭圆 · 直线 · 图片 · 条码 · 二维码</strong>，点击即在画布中心创建。</p><ul><li><strong>文本</strong>：双击编辑文字；拉伸文本框只改变框尺寸，<strong>字号不变</strong>。</li><li><strong>图片</strong>：从本地选择图片文件插入。</li><li><strong>条码 &#x2F; 二维码</strong>：在属性面板设置内容与参数（见第 4 节）。</li></ul><h3 id="3-选中与属性编辑"><a href="#3-选中与属性编辑" class="headerlink" title="3. 选中与属性编辑"></a>3. 选中与属性编辑</h3><ul><li>单击对象选中，右侧 <strong>属性面板</strong> 显示可编辑项：<ul><li>文本：字号、字体、颜色、加粗 &#x2F; 斜体、对齐</li><li>形状：填充色、描边色、描边宽度</li><li>条码 &#x2F; 二维码：码制类型、内容、尺寸（mm）、容错等级</li></ul></li><li>对象可拖到标签<strong>之外</strong>的画布区域临时摆放，仅标签纸范围内的对象参与导出 &#x2F; 打印。</li></ul><h3 id="4-条码与二维码"><a href="#4-条码与二维码" class="headerlink" title="4. 条码与二维码"></a>4. 条码与二维码</h3><p>插入条码后，在属性面板中配置：</p><ul><li><strong>码制类型</strong>：Code128 &#x2F; Code39 &#x2F; EAN-13 &#x2F; UPC &#x2F; DataMatrix &#x2F; QR</li><li><strong>内容</strong>：要编码的文本或数据</li><li><strong>目标尺寸</strong>：以毫米（mm）设置实际打印大小</li><li><strong>容错等级（仅 QR）</strong>：<code>L</code>（低，<del>7%）&#x2F; <code>M</code>（中，</del>15%）&#x2F; <code>Q</code>（较高，<del>25%）&#x2F; <code>H</code>（高，</del>30%）</li></ul><p>条码以<strong>矢量矩形组</strong>方式渲染（非位图），PDF 导出后仍为矢量，扫码设备可直接识别。</p><h3 id="5-多选编排"><a href="#5-多选编排" class="headerlink" title="5. 多选编排"></a>5. 多选编排</h3><p>框选或按住 Shift 选中 <strong>2 个及以上</strong> 对象后，顶部工具条激活：</p><ul><li><strong>对齐</strong>：左对齐 &#x2F; 水平居中 &#x2F; 右对齐 &#x2F; 顶对齐 &#x2F; 垂直居中 &#x2F; 底对齐</li><li><strong>编组 &#x2F; 解组</strong>：将多个对象组合为整体统一移动缩放，或拆分还原</li><li><strong>层次</strong>：置于顶层 &#x2F; 置于底层 &#x2F; 上移一层 &#x2F; 下移一层</li></ul><h3 id="6-模板（保存与复用）"><a href="#6-模板（保存与复用）" class="headerlink" title="6. 模板（保存与复用）"></a>6. 模板（保存与复用）</h3><ul><li><strong>保存模板</strong>：将当前画布存入浏览器本地（localStorage），下次打开自动恢复。</li><li><strong>打开模板</strong>：载入已保存的模板。</li><li><strong>导入 &#x2F; 导出 JSON</strong>：把整个画布序列化为 JSON 文件，便于备份、版本管理或跨设备迁移（条码以元数据形式保存，导入后自动重建矢量条码）。</li></ul><h3 id="7-导出"><a href="#7-导出" class="headerlink" title="7. 导出"></a>7. 导出</h3><table><thead><tr><th>方式</th><th>说明</th></tr></thead><tbody><tr><td><strong>导出 PDF</strong></td><td>矢量 PDF，条码 &#x2F; 图形均为矢量，适合印刷</td></tr><tr><td><strong>导出 PNG</strong></td><td>位图快照，便于快速分享</td></tr><tr><td><strong>批量打印 &#x2F; 批量导出</strong></td><td>依据模板在单页上按网格重复排布多份标签后打印或导出</td></tr></tbody></table><hr><h2 id="🌐-部署（GitHub-Pages）"><a href="#🌐-部署（GitHub-Pages）" class="headerlink" title="🌐 部署（GitHub Pages）"></a>🌐 部署（GitHub Pages）</h2><p>本项目通过 <strong>GitHub Actions</strong> 实现「推送即部署」：</p><ul><li>推送（或合并 PR）到 <code>main</code> 分支会自动触发工作流 <code>.github/workflows/deploy.yml</code>：<ol><li><code>npm ci</code> 安装依赖</li><li><code>npm run build</code> 构建到 <code>dist/</code></li><li>通过 <code>peaceiris/actions-gh-pages</code> 将 <code>dist/</code> 发布到 <strong><code>gh-pages</code></strong> 分支</li></ol></li><li>GitHub Pages 的发布源已设为 <strong><code>gh-pages</code> 分支（&#x2F; 根目录）</strong>。</li><li>自定义域名 <strong><code>057300.xyz</code></strong> 由 <code>public/CNAME</code> 与 Actions 中的 <code>cname</code> 共同保证。</li></ul><blockquote><p>开发时只需专注 <code>main</code> 分支源码；上线无需手动构建，提交即生效（通常 1 分钟内）。</p></blockquote><p>手动部署（备用）：本地 <code>npm run build</code> 后，把 <code>dist/</code> 内容推到 <code>gh-pages</code> 分支根目录即可。</p><hr><h2 id="📁-项目结构（要点）"><a href="#📁-项目结构（要点）" class="headerlink" title="📁 项目结构（要点）"></a>📁 项目结构（要点）</h2><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">src/</span><br><span class="line">├─ lib/</span><br><span class="line">│  ├─ canvasEngine.ts     # 画布引擎：对象增删改、视图变换、编组/对齐/图层</span><br><span class="line">│  ├─ barcode.ts          # 条码/二维码类型与参数</span><br><span class="line">│  ├─ export.ts           # PDF / PNG / 批量打印</span><br><span class="line">│  └─ vectorExport.ts     # 矢量 PDF 导出（矢量条码）</span><br><span class="line">├─ sections/</span><br><span class="line">│  ├─ TopBar.tsx          # 顶部工具条（编组/对齐/层次/适应/100%）</span><br><span class="line">│  ├─ Toolbox.tsx         # 左侧对象工具箱</span><br><span class="line">│  ├─ PropertyPanel.tsx   # 右侧属性面板（含条码面板）</span><br><span class="line">│  └─ DataDock.tsx        # 模板与数据（localStorage）</span><br><span class="line">├─ components/editor/      # 编辑器子组件（批量打印对话框等）</span><br><span class="line">└─ App.tsx                # 应用入口与编排</span><br></pre></td></tr></table></figure><hr><h2 id="📄-License"><a href="#📄-License" class="headerlink" title="📄 License"></a>📄 License</h2><p>MIT © bbb-pro</p>]]>
    </content>
    <id>https://057300.xyz/2026/09/08/%E5%9C%A8%E7%BA%BF%E6%A0%87%E7%AD%BE%E7%BC%96%E8%BE%91%E5%99%A8-Label-Editor-%E4%BB%8B%E7%BB%8D/</id>
    <link href="https://057300.xyz/2026/09/08/%E5%9C%A8%E7%BA%BF%E6%A0%87%E7%AD%BE%E7%BC%96%E8%BE%91%E5%99%A8-Label-Editor-%E4%BB%8B%E7%BB%8D/"/>
    <published>2026-09-07T16:00:00.000Z</published>
    <summary>
      <![CDATA[<p>一个<strong>单文件标签 &#x2F; 不干胶 &#x2F; 条码标签</strong>可视化编辑器：在浏览器里拖拽排版文本、形状、图片与矢量条码，所见即所得地设计标签，并导出为 <strong>PDF（矢量）&#x2F; PNG</strong> 或批量打印。</p]]>
    </summary>
    <title>在线标签编辑器 Label Editor —— 浏览器里的矢量条码标签设计工具</title>
    <updated>2026-10-28T01:52:03.354Z</updated>
  </entry>
  <entry>
    <author>
      <name>星辰月光酿大树</name>
      <email>312655375@qq.com</email>
    </author>
    <category term="项目" scheme="https://057300.xyz/categories/%E9%A1%B9%E7%9B%AE/"/>
    <category term="开源" scheme="https://057300.xyz/tags/%E5%BC%80%E6%BA%90/"/>
    <category term="工具" scheme="https://057300.xyz/tags/%E5%B7%A5%E5%85%B7/"/>
    <category term="装柜大师" scheme="https://057300.xyz/tags/%E8%A3%85%E6%9F%9C%E5%A4%A7%E5%B8%88/"/>
    <category term="LoaderMaster" scheme="https://057300.xyz/tags/LoaderMaster/"/>
    <category term="集装箱" scheme="https://057300.xyz/tags/%E9%9B%86%E8%A3%85%E7%AE%B1/"/>
    <category term="装柜" scheme="https://057300.xyz/tags/%E8%A3%85%E6%9F%9C/"/>
    <category term="计算工具" scheme="https://057300.xyz/tags/%E8%AE%A1%E7%AE%97%E5%B7%A5%E5%85%B7/"/>
    <content>
      <![CDATA[<blockquote><p>发货前心里没底：这柜子到底能装多少？怎么码最省空间？重心稳不稳？<br><strong>装柜大师（Loader Master）</strong> 是一个单文件、零依赖的浏览器端集装箱装柜计算工具，帮你一键算出「怎么码、能装多少、重心稳不稳」，还能导出 PDF 作业单。</p></blockquote><h2 id="✨-这是什么"><a href="#✨-这是什么" class="headerlink" title="✨ 这是什么"></a>✨ 这是什么</h2><p>装柜大师是一个纯前端的集装箱装载规划工具：<strong>无需后端、无需安装</strong>，双击 HTML 即可在任意现代浏览器运行。它适用于外贸、仓储、物流、拼柜等场景，帮你在发货前快速得到一份可落地的装柜方案。</p><ul><li>🌐 在线使用：<a href="https://057300.xyz/loader-master/">https://057300.xyz/loader-master/</a></li></ul><p><img src="/img/loader-master/step1.svg" alt="装柜大师整体界面与柜型选择"></p><h2 id="🚀-三步上手"><a href="#🚀-三步上手" class="headerlink" title="🚀 三步上手"></a>🚀 三步上手</h2><ol><li><strong>选柜型</strong>：顶部下拉框选目标集装箱（默认 40HQ），内置 20GP &#x2F; 40GP &#x2F; 40HQ &#x2F; 45HQ 四种标准内尺寸与限重。</li><li><strong>加货物</strong>：点「＋ 添加货物」填尺寸、重量、数量，勾选托盘可看实时打托预览。</li><li><strong>算方案</strong>：点「🚀 计算装柜」，立刻得到 3D 装柜图、汇总表、货物明细与告警提示，再一键导出 PDF &#x2F; Excel。</li></ol><h2 id="📖-操作演示"><a href="#📖-操作演示" class="headerlink" title="📖 操作演示"></a>📖 操作演示</h2><h3 id="①-选择柜型"><a href="#①-选择柜型" class="headerlink" title="① 选择柜型"></a>① 选择柜型</h3><p>在顶部「柜型」下拉框选择目标集装箱，默认 <code>40HQ</code>。内置标准集装箱尺寸如下（尺寸单位：米；限重单位：吨）：</p><table><thead><tr><th>柜型</th><th>内容积 (长×宽×高)</th><th>限重</th><th>容积</th></tr></thead><tbody><tr><td>20GP</td><td>5.94 × 2.34 × 2.39</td><td>28.25 t</td><td>33 m³</td></tr><tr><td>40GP</td><td>12.06 × 2.34 × 2.39</td><td>28.8 t</td><td>67 m³</td></tr><tr><td>40HQ</td><td>12.06 × 2.34 × 2.69</td><td>30.2 t</td><td>76 m³</td></tr><tr><td>45HQ</td><td>13.58 × 2.35 × 2.69 *</td><td>27 t *</td><td>— *</td></tr></tbody></table><blockquote><p>*45HQ 暂未提供标准数据源，数值沿用原预设仅供参考；20GP &#x2F; 40GP &#x2F; 40HQ 均采用标准集装箱公开数据。</p></blockquote><h3 id="②-添加并配置货物"><a href="#②-添加并配置货物" class="headerlink" title="② 添加并配置货物"></a>② 添加并配置货物</h3><p>点击「＋ 添加货物」新增卡片，逐项填写名称、长&#x2F;宽&#x2F;高、单重、数量、优先级、分组、最大上层承重等；勾选「托盘」并填托盘尺寸后，卡片底部会实时显示<strong>打托方案俯视图</strong>（SVG），标注「每托 X 箱 &#x2F; Y 层 &#x2F; 整托高 Z mm」。</p><p><img src="/img/loader-master/step2.svg" alt="添加并配置货物，含托盘打托预览"></p><h3 id="③-一键计算，查看-3D-方案"><a href="#③-一键计算，查看-3D-方案" class="headerlink" title="③ 一键计算，查看 3D 方案"></a>③ 一键计算，查看 3D 方案</h3><p>点「🚀 计算装柜」生成方案。左侧生成立体效果，可<strong>拖拽旋转 &#x2F; 滚轮缩放 &#x2F; 右键平移</strong>查看；点击任意箱子弹出底部浮层，可旋转 90° 或删除（删除后算法自动重排）。</p><p><img src="/img/loader-master/step3.svg" alt="3D 装柜结果，可交互查看"></p><h3 id="④-导出-PDF-Excel-作业单"><a href="#④-导出-PDF-Excel-作业单" class="headerlink" title="④ 导出 PDF &#x2F; Excel 作业单"></a>④ 导出 PDF &#x2F; Excel 作业单</h3><p>将计算结果导出为<strong>中文 PDF 作业单</strong>（含汇总表、3D 示意图、货物明细、仓库作业说明，表格自适应字号避免重叠），或导出 Excel 明细；也支持下载导入模板批量录入。</p><p><img src="/img/loader-master/step4.svg" alt="导出 PDF / Excel 作业单"></p><h2 id="🧰-功能特性一览"><a href="#🧰-功能特性一览" class="headerlink" title="🧰 功能特性一览"></a>🧰 功能特性一览</h2><table><thead><tr><th>类别</th><th>说明</th></tr></thead><tbody><tr><td><strong>多柜型支持</strong></td><td>内置 20GP &#x2F; 40GP &#x2F; 40HQ &#x2F; 45HQ 四种标准集装箱内尺寸与限重</td></tr><tr><td><strong>砖砌码盘算法</strong></td><td>同形矩形托盘采用「砖砌式交错」布局，密度贴合人工摆放（40HQ + 1200×1000 托盘可达 22 托&#x2F;层）</td></tr><tr><td><strong>打托方案预览</strong></td><td>勾选托盘后实时生成俯视打托图（SVG），直观核对每托箱数与交错方式</td></tr><tr><td><strong>3D 可视化</strong></td><td>Three.js 渲染装柜结果，可旋转 &#x2F; 缩放 &#x2F; 平移；点击箱子可旋转朝向或删除</td></tr><tr><td><strong>摆放顺序</strong></td><td>支持「从里到外」（柜里端优先）与「从外到里」（柜门端优先）两种策略</td></tr><tr><td><strong>优先级调度</strong></td><td>1&#x2F;2&#x2F;3 级优先级，优先货物置于柜内最里侧底层，靠门货物最后装入</td></tr><tr><td><strong>理论容量估算</strong></td><td>针对当前柜型估算单货最多可放数量与整托高度，发货前快速判断</td></tr><tr><td><strong>Excel 互通</strong></td><td>一键下载导入模板批量导入，结果可导出 Excel 明细</td></tr><tr><td><strong>PDF 作业单</strong></td><td>导出含汇总、3D 示意图、明细、作业说明的中文 PDF</td></tr><tr><td><strong>零依赖离线</strong></td><td>所有依赖通过 CDN importmap 加载，HTML 单文件即可分发，计算全程本地完成</td></tr><tr><td><strong>移动端自适应</strong></td><td>手机端自动切换为「上(设置) &#x2F; 中(3D) &#x2F; 下(结果)」垂直排版</td></tr></tbody></table><h2 id="🧠-算法亮点"><a href="#🧠-算法亮点" class="headerlink" title="🧠 算法亮点"></a>🧠 算法亮点</h2><ul><li><strong>柜级砖砌码盘</strong>：一层内可放多个相同矩形托盘时，相邻行交替 90° 朝向，消除行列对齐空隙，密度与人工贴合摆放一致（典型：40HQ + 1200×1000 托盘 &#x3D; 22 托&#x2F;层）。</li><li><strong>托级打托</strong>：<code>palletLevelLayout()</code> 枚举砖砌行组合求每托每层最大箱数，供理论估算与 3D 渲染共用，保证「理论容量」与「实际渲染」严格一致。</li><li><strong>由内向外推进</strong>：先码第一托底层 → 隔壁交错第二托底层 → 第一托第二层 → 第二托第二层，依次向外推进，符合人工码盘习惯。</li><li><strong>优先级调度</strong>：按优先级排序填充，优先货物置柜里端底层，靠门货物最后装入，便于卸货顺序。</li></ul><blockquote><p>⚠️ 本工具为模拟估算，实际装柜请结合货物特性、捆扎方式、重心与运输要求现场确认。</p></blockquote><h2 id="🛠-技术栈"><a href="#🛠-技术栈" class="headerlink" title="🛠 技术栈"></a>🛠 技术栈</h2><ul><li><strong>前端框架</strong>：原生 HTML + Tailwind CSS（CDN）</li><li><strong>3D 渲染</strong>：Three.js（CDN importmap）</li><li><strong>表格处理</strong>：SheetJS（xlsx 导入导出）</li><li><strong>PDF 生成</strong>：jsPDF + Canvas 栅格化（规避中文字体缺失）</li><li><strong>运行环境</strong>：纯浏览器端，无后端、无构建步骤</li></ul><h2 id="🔗-相关链接"><a href="#🔗-相关链接" class="headerlink" title="🔗 相关链接"></a>🔗 相关链接</h2><ul><li>在线演示：<a href="https://057300.xyz/loader-master/">https://057300.xyz/loader-master/</a></li><li>返回导航：本站顶部菜单「装柜大师」</li></ul><p><em>装柜大师 · 让每一次装柜都心中有数。</em></p>]]>
    </content>
    <id>https://057300.xyz/2026/08/27/%E8%A3%85%E6%9F%9C%E5%A4%A7%E5%B8%88-Loader-Master-%E9%9B%86%E8%A3%85%E7%AE%B1%E8%A3%85%E6%9F%9C%E8%AE%A1%E7%AE%97%E5%B7%A5%E5%85%B7%E4%BB%8B%E7%BB%8D/</id>
    <link href="https://057300.xyz/2026/08/27/%E8%A3%85%E6%9F%9C%E5%A4%A7%E5%B8%88-Loader-Master-%E9%9B%86%E8%A3%85%E7%AE%B1%E8%A3%85%E6%9F%9C%E8%AE%A1%E7%AE%97%E5%B7%A5%E5%85%B7%E4%BB%8B%E7%BB%8D/"/>
    <published>2026-08-27T07:30:00.000Z</published>
    <summary>
      <![CDATA[<blockquote>
<p>发货前心里没底：这柜子到底能装多少？怎么码最省空间？重心稳不稳？<br><strong>装柜大师（Loader Master）</strong> 是一个单文件、零依赖的浏览器端集装箱装柜计算工具，帮你一键算出「怎么码、能装多少、重心稳不稳」，还能导]]>
    </summary>
    <title>装柜大师 Loader Master —— 浏览器里的集装箱装柜计算工具</title>
    <updated>2026-10-28T01:52:11.746Z</updated>
  </entry>
  <entry>
    <author>
      <name>星辰月光酿大树</name>
      <email>312655375@qq.com</email>
    </author>
    <category term="项目" scheme="https://057300.xyz/categories/%E9%A1%B9%E7%9B%AE/"/>
    <category term="DieCut" scheme="https://057300.xyz/tags/DieCut/"/>
    <category term="刀模" scheme="https://057300.xyz/tags/%E5%88%80%E6%A8%A1/"/>
    <category term="纸盒" scheme="https://057300.xyz/tags/%E7%BA%B8%E7%9B%92/"/>
    <category term="开源" scheme="https://057300.xyz/tags/%E5%BC%80%E6%BA%90/"/>
    <category term="工具" scheme="https://057300.xyz/tags/%E5%B7%A5%E5%85%B7/"/>
    <content>
      <![CDATA[<h2 id="项目简介"><a href="#项目简介" class="headerlink" title="项目简介"></a>项目简介</h2><p>DieCut Designer 是一个纯前端（无框架）的刀模设计工具，内置 <strong>1278 种</strong>标准纸盒盒型。用户可以通过改变长 &#x2F; 宽 &#x2F; 高等参数，实时生成对应的刀线（裁切）与压线（折痕）展开图，并一键导出为 SVG &#x2F; DXF &#x2F; PDF 三种格式，直接对接打样、模切与 CAD 流程。</p><p>核心数据流：<strong>参数变化 → 防抖 → 调用 Packmage API 计算几何 → 前端渲染 SVG 刀模图 → 导出。</strong></p><p>线上地址：<a href="http://057300.xyz/diecut/">http://057300.xyz/diecut/</a></p><hr><h2 id="功能特性"><a href="#功能特性" class="headerlink" title="功能特性"></a>功能特性</h2><ul><li><strong>完整盒型库（1278 种）</strong>：覆盖 FEFCO &#x2F; 卡纸盒 &#x2F; 礼盒 &#x2F; 异形盒等，支持关键词与盒型 ID 搜索，按分类浏览。</li><li><strong>参数化实时调整</strong>：修改长（L）、宽（W）、高（D）等参数后，刀模图在 1~2 秒内自动重算并刷新，自动适配视图。</li><li><strong>专业刀模渲染</strong>：<ul><li>刀线（裁切）红色实线，压线（折痕）蓝色虚线，符合印前规范。</li><li>坐标单位为毫米（mm），可直接用于生产。</li><li>支持尺寸标注（Dimensions）、网格（Grid）、部件标签（Labels）独立开关。</li></ul></li><li><strong>画布交互</strong>：滚轮缩放、拖拽平移、双击适配视图，以及 1:1 &#x2F; FIT 快捷按钮，缩放比例实时显示。</li><li><strong>多种导出格式</strong>：<ul><li><strong>SVG</strong>：矢量，分层（cut-lines &#x2F; crease-lines），适合网页与矢量编辑。</li><li><strong>DXF</strong>：R12 格式，CUT &#x2F; CREASE 分层，直接导入 AutoCAD 等 CAD 软件。</li><li><strong>PDF</strong>：矢量 PDF，1mm &#x3D; 2.8346pt，可直接打印或交付。</li></ul></li><li><strong>纸张厚度补偿（Compensation）</strong>：可选 0.3 ~ 3.0mm 厚度，自动修正压线位置（考虑纸板反弹量）。</li><li><strong>3D 折盒预览</strong>：基于 Three.js（WebGL）渲染折叠后的 3D 纸盒，支持鼠标旋转 &#x2F; 缩放；Three.js 不可用时回退到轻量方案。</li><li><strong>派生参数显示</strong>：实时计算并展示表面积、体积等相关数据。</li></ul><hr><h2 id="目录结构"><a href="#目录结构" class="headerlink" title="目录结构"></a>目录结构</h2><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">diecut/</span><br><span class="line">├── index.html              # 主页面</span><br><span class="line">├── style.css               # 样式</span><br><span class="line">├── app.js                  # 主逻辑</span><br><span class="line">├── packme_data.js          # 盒型数据库（1278 种）</span><br><span class="line">├── packme_boxtypes.js      # 盒型参数与 API 逻辑</span><br><span class="line">├── renderer.js             # SVG 渲染引擎</span><br><span class="line">├── preview3d.js            # 3D 预览</span><br><span class="line">├── exporter.js             # 导出（SVG/DXF/PDF）</span><br><span class="line">├── config.js               # 环境配置（API 地址）</span><br><span class="line">├── server.js               # 本地开发服务器 + API 代理</span><br><span class="line">├── worker.js               # Cloudflare Worker（线上 API 代理）</span><br><span class="line">└── wrangler.toml           # Worker 部署配置</span><br></pre></td></tr></table></figure><h3 id="线上访问"><a href="#线上访问" class="headerlink" title="线上访问"></a>线上访问</h3><p>直接打开 <a href="http://057300.xyz/diecut/">http://057300.xyz/diecut/</a> 即可使用（API 经 Cloudflare Worker Route 同源代理，已配置完成）。</p><hr><h2 id="使用指南"><a href="#使用指南" class="headerlink" title="使用指南"></a>使用指南</h2><ol><li><strong>选择盒型</strong>：在左侧 Box Library 搜索或浏览分类，点击任一盒型载入。</li><li><strong>调整参数</strong>：切到 Parameters 标签，拖动 L &#x2F; W &#x2F; D 等滑块，刀模图会实时更新。<ul><li>修改参数后需等待约 1~2 秒（含防抖与 API 计算延迟）。</li><li>点 Reset 可恢复默认参数。</li></ul></li><li><strong>视图操作</strong>：在画布上滚轮缩放、拖拽平移、双击适配；或用右侧 Zoom 控件（+&#x2F;−&#x2F;FIT&#x2F;1:1）。</li><li><strong>显示开关</strong>：Dimensions（尺寸标注）、Grid（网格）、Labels（部件标签）可分别开关。</li><li><strong>厚度补偿</strong>：顶部 Compensation 勾选后选择纸板厚度，压线位置会自动修正。</li><li><strong>导出</strong>：点击顶部 SVG &#x2F; DXF &#x2F; PDF 按钮，浏览器自动下载对应文件。</li></ol><hr><h2 id="导出格式说明"><a href="#导出格式说明" class="headerlink" title="导出格式说明"></a>导出格式说明</h2><table><thead><tr><th>格式</th><th>用途</th><th>图层 &#x2F; 样式</th></tr></thead><tbody><tr><td>SVG</td><td>矢量编辑、网页</td><td>cut-lines（红实线）&#x2F; crease-lines（蓝虚线），单位 mm</td></tr><tr><td>DXF</td><td>CAD（AutoCAD 等）</td><td>CUT 层（实线）&#x2F; CREASE 层（虚线），R12 格式</td></tr><tr><td>PDF</td><td>打印、交付</td><td>矢量，1mm &#x3D; 2.8346pt，红刀线 &#x2F; 蓝压线</td></tr></tbody></table><p>所有导出均为矢量，坐标单位为毫米，刀线与压线分色分图层，便于后续模切与印刷流程。</p><hr><h2 id="部署说明"><a href="#部署说明" class="headerlink" title="部署说明"></a>部署说明</h2><p>项目为纯静态站点，由 GitHub Actions（<code>.github/workflows/deploy.yml</code>）自动部署到 GitHub Pages，并绑定自定义域名 <code>057300.xyz</code>。</p><hr><h2 id="已知约束"><a href="#已知约束" class="headerlink" title="已知约束"></a>已知约束</h2><ul><li>参数需在合理范围内，超出范围时 API 会返回默认几何数据并提示。</li><li>首次访问需加载约 6.7MB 的盒型数据文件，建议保持网络畅通；浏览器会缓存该文件。</li><li>3D 预览依赖 Three.js CDN，弱网环境下可能回退到基础预览。</li></ul>]]>
    </content>
    <id>https://057300.xyz/2026/07/24/DieCut-Designer-%E5%88%80%E6%A8%A1%E8%AE%BE%E8%AE%A1%E5%99%A8%E4%BB%8B%E7%BB%8D/</id>
    <link href="https://057300.xyz/2026/07/24/DieCut-Designer-%E5%88%80%E6%A8%A1%E8%AE%BE%E8%AE%A1%E5%99%A8%E4%BB%8B%E7%BB%8D/"/>
    <published>2026-07-24T05:36:00.000Z</published>
    <summary>在线浏览、参数化调整、实时预览并导出工业级刀模图，内置1278种标准盒型。</summary>
    <title>免费的在线刀版工具发布简介</title>
    <updated>2026-10-28T01:51:56.652Z</updated>
  </entry>
  <entry>
    <author>
      <name>星辰月光酿大树</name>
      <email>312655375@qq.com</email>
    </author>
    <category term="项目" scheme="https://057300.xyz/categories/%E9%A1%B9%E7%9B%AE/"/>
    <category term="开源" scheme="https://057300.xyz/tags/%E5%BC%80%E6%BA%90/"/>
    <category term="工具" scheme="https://057300.xyz/tags/%E5%B7%A5%E5%85%B7/"/>
    <category term="Electron" scheme="https://057300.xyz/tags/Electron/"/>
    <category term="Markdown" scheme="https://057300.xyz/tags/Markdown/"/>
    <content>
      <![CDATA[<h1 id="Lite-MD-Editor-v1-0-0"><a href="#Lite-MD-Editor-v1-0-0" class="headerlink" title="Lite MD Editor v1.0.0"></a>Lite MD Editor v1.0.0</h1><h2 id="🎉-首个正式版本"><a href="#🎉-首个正式版本" class="headerlink" title="🎉 首个正式版本"></a>🎉 首个正式版本</h2><p>轻量化的 Markdown 编辑器，像 Word 一样编辑和阅读 .md 文件，纯本地运行，无需登录和联网。</p><h2 id="✨-功能特性"><a href="#✨-功能特性" class="headerlink" title="✨ 功能特性"></a>✨ 功能特性</h2><ul><li><strong>📝 Markdown 编辑</strong>：完整语法支持，代码块高亮</li><li><strong>👁️ 实时预览</strong>：支持 GitHub Flavored Markdown（表格、任务列表、删除线等）</li><li><strong>🔀 三种模式</strong>：编辑 &#x2F; 分屏（默认）&#x2F; 预览，一键切换</li><li><strong>🗂️ 文件操作</strong>：新建、打开、保存、另存为</li><li><strong>📄 PDF 导出</strong>：一键导出为 PDF（Ctrl+E）</li><li><strong>🎨 Word 风格工具栏</strong>：标题、加粗、斜体、列表、链接、代码块、表格等快捷按钮</li><li><strong>⌨️ 键盘快捷键</strong>：Ctrl+S&#x2F;N&#x2F;O&#x2F;Shift+S&#x2F;B&#x2F;I&#x2F;E</li><li><strong>📊 状态栏</strong>：文件名、保存状态、字数统计（中英文混合）</li><li><strong>🚫 纯本地</strong>：无后端、无登录、无网络请求</li></ul><h2 id="📦-下载"><a href="#📦-下载" class="headerlink" title="📦 下载"></a>📦 下载</h2><table><thead><tr><th>文件</th><th>说明</th><th>适用</th></tr></thead><tbody><tr><td><code>Lite-MD-Editor-Setup-1.0.0.exe</code></td><td>NSIS 安装包（约 78MB）</td><td>推荐普通用户，双击安装</td></tr><tr><td><code>Lite-MD-Editor-Portable-1.0.0.zip</code></td><td>便携版压缩包</td><td>免安装，解压即用</td></tr></tbody></table><h2 id="🖥️-系统要求"><a href="#🖥️-系统要求" class="headerlink" title="🖥️ 系统要求"></a>🖥️ 系统要求</h2><ul><li>Windows 10&#x2F;11 (64-bit)</li><li>无需安装其他运行时环境</li></ul><h2 id="🚀-快速开始"><a href="#🚀-快速开始" class="headerlink" title="🚀 快速开始"></a>🚀 快速开始</h2><h3 id="安装版"><a href="#安装版" class="headerlink" title="安装版"></a>安装版</h3><ol><li>下载 <code>Lite-MD-Editor-Setup-1.0.0.exe</code></li><li>双击运行，按提示安装</li><li>从开始菜单或桌面快捷方式启动</li></ol><h3 id="便携版"><a href="#便携版" class="headerlink" title="便携版"></a>便携版</h3><ol><li>下载 <code>Lite-MD-Editor-Portable-1.0.0.zip</code></li><li>解压到任意目录</li><li>双击 <code>Lite MD Editor.exe</code> 启动</li></ol><h2 id="💻-从源码构建"><a href="#💻-从源码构建" class="headerlink" title="💻 从源码构建"></a>💻 从源码构建</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">git <span class="built_in">clone</span> https://github.com/bbb-pro/lite_MD_editor.git</span><br><span class="line"><span class="built_in">cd</span> lite_MD_editor</span><br><span class="line">npm install</span><br><span class="line">npm run electron:build    <span class="comment"># 打包 EXE</span></span><br><span class="line">npm run electron:dev      <span class="comment"># 开发模式</span></span><br><span class="line">npm run dev               <span class="comment"># Web 开发模式</span></span><br></pre></td></tr></table></figure><h2 id="🌐-在线使用"><a href="#🌐-在线使用" class="headerlink" title="🌐 在线使用"></a>🌐 在线使用</h2><p>访问：<a href="https://057300.xyz/lite_MD_editor/">https://057300.xyz/lite_MD_editor/</a></p><h2 id="📄-License"><a href="#📄-License" class="headerlink" title="📄 License"></a>📄 License</h2><p>MIT</p>]]>
    </content>
    <id>https://057300.xyz/2026/07/22/Lite-MD-Editor-v1.0.0-%E5%8F%91%E5%B8%83%E5%85%AC%E5%91%8A/</id>
    <link href="https://057300.xyz/2026/07/22/Lite-MD-Editor-v1.0.0-%E5%8F%91%E5%B8%83%E5%85%AC%E5%91%8A/"/>
    <published>2026-07-22T00:49:00.000Z</published>
    <summary>轻量化的 Markdown 编辑器，像 Word 一样编辑和阅读 .md 文件，纯本地运行，无需登录和联网。</summary>
    <title>🎉 Lite MD Editor v1.0.0 正式发布</title>
    <updated>2026-10-28T01:52:00.275Z</updated>
  </entry>
</feed>
