1 line
8.9 KiB
XML
1 line
8.9 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="650" height="660" viewBox="0 0 650 660" role="img"><title>build-js-workflow</title><metadata><mxGraphModel adaptiveColors="auto" pageWidth="650" pageHeight="660"><root><mxCell id="0" /><mxCell id="1" parent="0" /><mxCell id="ir" value="HtmlDocument&lt;br&gt;章节 HTML 与布局" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d9eee8;strokeColor=#52716b;fontSize=14;" vertex="1" parent="1"><mxGeometry x="40" y="30" width="230" height="80" as="geometry" /></mxCell><mxCell id="assemble" value="DocuBuilder.as_html_page()&lt;br&gt;嵌入图片 · 组装 HTML · PDF 标记" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d9eee8;strokeColor=#52716b;fontSize=14;" vertex="1" parent="1"><mxGeometry x="40" y="160" width="230" height="80" as="geometry" /></mxCell><mxCell id="disabled" value="build_js_script = false&lt;br&gt;直接返回组装 HTML" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff0cf;strokeColor=#52716b;fontSize=14;" vertex="1" parent="1"><mxGeometry x="360" y="160" width="230" height="80" as="geometry" /></mxCell><mxCell id="dom" value="启用脚本:读取文件并解析 DOM&lt;br&gt;注入 html / document / pages / cfg" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e5e4f5;strokeColor=#52716b;fontSize=14;" vertex="1" parent="1"><mxGeometry x="40" y="290" width="230" height="80" as="geometry" /></mxCell><mxCell id="run" value="同步执行 build.js&lt;br&gt;修改 DOM 或显式 return 字符串" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e5e4f5;strokeColor=#52716b;fontSize=14;" vertex="1" parent="1"><mxGeometry x="40" y="420" width="230" height="80" as="geometry" /></mxCell><mxCell id="serialize" value="默认序列化 documentElement&lt;br&gt;无 DOM 时回退 html" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d9eee8;strokeColor=#52716b;fontSize=14;" vertex="1" parent="1"><mxGeometry x="360" y="420" width="230" height="80" as="geometry" /></mxCell><mxCell id="output" value="继续导出 PDF / HTML / MD / TXT&lt;br&gt;EPUB 不经过此钩子" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff0cf;strokeColor=#52716b;fontSize=14;" vertex="1" parent="1"><mxGeometry x="360" y="550" width="230" height="80" as="geometry" /></mxCell><mxCell id="e0" source="ir" target="assemble" edge="1" parent="1" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="e1" source="assemble" target="disabled" edge="1" parent="1" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="e2" source="assemble" target="dom" edge="1" parent="1" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="e3" source="dom" target="run" edge="1" parent="1" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="e4" source="run" target="serialize" edge="1" parent="1" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="e5" source="serialize" target="output" edge="1" parent="1" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="e6" source="disabled" target="output" edge="1" parent="1" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;"><mxGeometry relative="1" as="geometry" /></mxCell></root></mxGraphModel></metadata><defs><marker id="arrow" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto"><path d="M0,0 L9,3 L0,6" fill="#52716b"/></marker></defs><rect width="100%" height="100%" fill="#fafdfb"/><path d="M155,110 V135.0 H155 V160" fill="none" stroke="#52716b" stroke-width="2" marker-end="url(#arrow)"/><path d="M270,200 H315.0 V200 H360" fill="none" stroke="#52716b" stroke-width="2" marker-end="url(#arrow)"/><path d="M155,240 V265.0 H155 V290" fill="none" stroke="#52716b" stroke-width="2" marker-end="url(#arrow)"/><path d="M155,370 V395.0 H155 V420" fill="none" stroke="#52716b" stroke-width="2" marker-end="url(#arrow)"/><path d="M270,460 H315.0 V460 H360" fill="none" stroke="#52716b" stroke-width="2" marker-end="url(#arrow)"/><path d="M475,500 V525.0 H475 V550" fill="none" stroke="#52716b" stroke-width="2" marker-end="url(#arrow)"/><path d="M475,240 V395.0 H475 V550" fill="none" stroke="#52716b" stroke-width="2" marker-end="url(#arrow)"/><rect x="40" y="30" width="230" height="80" rx="12" fill="#d9eee8" stroke="#52716b"/><text x="155" y="59.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">HtmlDocument</text><text x="155" y="81.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">章节 HTML 与布局</text><rect x="40" y="160" width="230" height="80" rx="12" fill="#d9eee8" stroke="#52716b"/><text x="155" y="189.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">DocuBuilder.as_html_page()</text><text x="155" y="211.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">嵌入图片 · 组装 HTML · PDF 标记</text><rect x="360" y="160" width="230" height="80" rx="12" fill="#fff0cf" stroke="#52716b"/><text x="475" y="189.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">build_js_script = false</text><text x="475" y="211.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">直接返回组装 HTML</text><rect x="40" y="290" width="230" height="80" rx="12" fill="#e5e4f5" stroke="#52716b"/><text x="155" y="319.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">启用脚本:读取文件并解析 DOM</text><text x="155" y="341.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">注入 html / document / pages / cfg</text><rect x="40" y="420" width="230" height="80" rx="12" fill="#e5e4f5" stroke="#52716b"/><text x="155" y="449.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">同步执行 build.js</text><text x="155" y="471.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">修改 DOM 或显式 return 字符串</text><rect x="360" y="420" width="230" height="80" rx="12" fill="#d9eee8" stroke="#52716b"/><text x="475" y="449.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">默认序列化 documentElement</text><text x="475" y="471.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">无 DOM 时回退 html</text><rect x="360" y="550" width="230" height="80" rx="12" fill="#fff0cf" stroke="#52716b"/><text x="475" y="579.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">继续导出 PDF / HTML / MD / TXT</text><text x="475" y="601.0" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="14" fill="#18332e">EPUB 不经过此钩子</text></svg> |