w-flowchart 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/w-flowchart.umd.js +2 -2
- package/dist/w-flowchart.umd.js.map +1 -1
- package/docs/WFlowchart.mjs.html +3 -3
- package/docs/global.html +3 -3
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/src/WFlowchart.mjs +2 -2
- package/src/p1/gen.mjs +8 -4
- package/src/p10/gen.mjs +8 -7
- package/src/p3/gen.mjs +14 -8
- package/src/p4/gen.mjs +1 -1
- package/src/p5/gen.mjs +2 -2
- package/src/p7/gen.mjs +14 -9
- package/src/p8/gen.mjs +2 -1
- package/test/cases.mjs +82 -1
- package/test/pics/p1/newline-label.png +0 -0
- package/test/pics/p1/newline-lr.png +0 -0
- package/test/pics/p1/newline-multi.png +0 -0
- package/test/pics/p10/cycle.svg +1 -1
- package/test/pics/p10/deep-nest.svg +1 -1
- package/test/pics/p10/dia-1in-1out.svg +1 -1
- package/test/pics/p10/dia-1in-2out.svg +1 -1
- package/test/pics/p10/dia-1in.svg +1 -1
- package/test/pics/p10/dia-1out.svg +1 -1
- package/test/pics/p10/dia-2in-1out.svg +1 -1
- package/test/pics/p10/dia-2in-2out-dd.svg +1 -1
- package/test/pics/p10/dia-2in-2out-ss.svg +1 -1
- package/test/pics/p10/dia-2in.svg +1 -1
- package/test/pics/p10/dia-2out.svg +1 -1
- package/test/pics/p10/diamond.svg +1 -1
- package/test/pics/p10/edges-mix.svg +1 -1
- package/test/pics/p10/english.svg +1 -1
- package/test/pics/p10/flat-tb.svg +1 -1
- package/test/pics/p10/fold-tall.svg +1 -1
- package/test/pics/p10/fold-wide.svg +1 -1
- package/test/pics/p10/group-edge.svg +1 -1
- package/test/pics/p10/items-node.svg +1 -1
- package/test/pics/p10/long-label.svg +1 -1
- package/test/pics/p10/lr-flat.svg +1 -1
- package/test/pics/p10/nested-group.svg +1 -1
- package/test/pics/p10/newline-label.png +0 -0
- package/test/pics/p10/newline-label.svg +5 -0
- package/test/pics/p10/newline-lr.png +0 -0
- package/test/pics/p10/newline-lr.svg +7 -0
- package/test/pics/p10/newline-multi.png +0 -0
- package/test/pics/p10/newline-multi.svg +7 -0
- package/test/pics/p10/no-edges.svg +1 -1
- package/test/pics/p10/title-overflow.svg +1 -1
- package/test/pics/p10/valign.svg +1 -1
- package/test/pics/p10//345/267/245/345/226/256/350/231/225/347/220/206/346/265/201/347/250/213/345/234/226.svg +1 -1
- package/test/pics/p10//345/276/256/346/234/215/345/213/231/345/217/242/351/233/206/346/236/266/346/247/213/345/234/226.svg +1 -1
- package/test/pics/p10//346/234/203/345/223/241/350/250/273/345/206/212/346/265/201/347/250/213/345/234/226.svg +1 -1
- package/test/pics/p10//346/250/241/347/265/204/347/265/204/346/210/220/345/234/226.svg +1 -1
- package/test/pics/p10//346/254/212/351/231/220/350/247/222/350/211/262/351/227/234/350/201/257/345/234/226.svg +1 -1
- package/test/pics/p10//347/211/251/350/201/257/347/266/262/345/271/263/345/217/260/346/236/266/346/247/213/345/234/226.svg +1 -1
- package/test/pics/p10//347/263/273/347/265/261/345/210/206/345/261/244/346/236/266/346/247/213/345/234/226.svg +1 -1
- package/test/pics/p10//350/250/202/345/226/256/350/231/225/347/220/206/346/265/201/347/250/213/345/234/226.svg +1 -1
- package/test/pics/p10//350/263/207/346/226/231/346/265/201/345/220/221/345/234/226.svg +1 -1
- package/test/pics/p10//350/263/207/346/226/231/346/270/205/346/264/227/346/265/201/347/250/213/345/234/226.svg +1 -1
- package/test/pics/p10//351/233/273/345/225/206/345/271/263/345/217/260/346/236/266/346/247/213/345/234/226.svg +1 -1
- package/test/pics/p10//351/240/201/351/235/242/345/260/216/350/246/275/351/227/234/350/201/257/345/234/226.svg +1 -1
- package/test/pics/p2/newline-label.png +0 -0
- package/test/pics/p2/newline-lr.png +0 -0
- package/test/pics/p2/newline-multi.png +0 -0
- package/test/pics/p3/newline-label.png +0 -0
- package/test/pics/p3/newline-lr.png +0 -0
- package/test/pics/p3/newline-multi.png +0 -0
- package/test/pics/p4/newline-label.png +0 -0
- package/test/pics/p4/newline-lr.png +0 -0
- package/test/pics/p4/newline-multi.png +0 -0
- package/test/pics/p5/newline-label.png +0 -0
- package/test/pics/p5/newline-lr.png +0 -0
- package/test/pics/p5/newline-multi.png +0 -0
- package/test/pics/p6/newline-label.png +0 -0
- package/test/pics/p6/newline-lr.png +0 -0
- package/test/pics/p6/newline-multi.png +0 -0
- package/test/pics/p7/newline-label.png +0 -0
- package/test/pics/p7/newline-lr.png +0 -0
- package/test/pics/p7/newline-multi.png +0 -0
- package/test/pics/p8/newline-label.png +0 -0
- package/test/pics/p8/newline-lr.png +0 -0
- package/test/pics/p8/newline-multi.png +0 -0
- package/test/pics/p9/newline-label.png +0 -0
- package/test/pics/p9/newline-lr.png +0 -0
- package/test/pics/p9/newline-multi.png +0 -0
package/README.md
CHANGED
|
@@ -51,3 +51,5 @@ let svg = await WFlowchart(inp, { output: 'svg' }) //輸出 standalone SVG 字
|
|
|
51
51
|
fs.writeFileSync('flowchart.svg', svg)
|
|
52
52
|
// => 產出 flowchart.svg
|
|
53
53
|
```
|
|
54
|
+
|
|
55
|
+
label 換行行為(p10):label 過寬時會依最大寬度自動斷行(中文於字間、英數於空白/標點,不會攔腰斷字);label 內可用 `\n` 強制換行(節點、群組標題、菱形與邊標籤皆支援),其餘空白照常摺疊。其他產線(p1~p9)之換行行為依各引擎而定。
|