w-flowchart 1.0.1 → 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.
Files changed (87) hide show
  1. package/README.md +2 -0
  2. package/dist/w-flowchart.umd.js +2 -2
  3. package/dist/w-flowchart.umd.js.map +1 -1
  4. package/docs/WFlowchart.mjs.html +22 -39
  5. package/docs/global.html +4 -4
  6. package/docs/index.html +1 -1
  7. package/package.json +1 -1
  8. package/src/WFlowchart.mjs +20 -37
  9. package/src/p1/gen.mjs +8 -4
  10. package/src/p10/gen.mjs +8 -7
  11. package/src/p3/gen.mjs +14 -8
  12. package/src/p4/gen.mjs +1 -1
  13. package/src/p5/gen.mjs +6 -4
  14. package/src/p7/gen.mjs +14 -9
  15. package/src/p8/gen.mjs +2 -1
  16. package/src/p9/gen.mjs +14 -7
  17. package/test/cases.mjs +82 -1
  18. package/test/pics/p1/newline-label.png +0 -0
  19. package/test/pics/p1/newline-lr.png +0 -0
  20. package/test/pics/p1/newline-multi.png +0 -0
  21. package/test/pics/p10/cycle.svg +1 -1
  22. package/test/pics/p10/deep-nest.svg +1 -1
  23. package/test/pics/p10/dia-1in-1out.svg +1 -1
  24. package/test/pics/p10/dia-1in-2out.svg +1 -1
  25. package/test/pics/p10/dia-1in.svg +1 -1
  26. package/test/pics/p10/dia-1out.svg +1 -1
  27. package/test/pics/p10/dia-2in-1out.svg +1 -1
  28. package/test/pics/p10/dia-2in-2out-dd.svg +1 -1
  29. package/test/pics/p10/dia-2in-2out-ss.svg +1 -1
  30. package/test/pics/p10/dia-2in.svg +1 -1
  31. package/test/pics/p10/dia-2out.svg +1 -1
  32. package/test/pics/p10/diamond.svg +1 -1
  33. package/test/pics/p10/edges-mix.svg +1 -1
  34. package/test/pics/p10/english.svg +1 -1
  35. package/test/pics/p10/flat-tb.svg +1 -1
  36. package/test/pics/p10/fold-tall.svg +1 -1
  37. package/test/pics/p10/fold-wide.svg +1 -1
  38. package/test/pics/p10/group-edge.svg +1 -1
  39. package/test/pics/p10/items-node.svg +1 -1
  40. package/test/pics/p10/long-label.svg +1 -1
  41. package/test/pics/p10/lr-flat.svg +1 -1
  42. package/test/pics/p10/nested-group.svg +1 -1
  43. package/test/pics/p10/newline-label.png +0 -0
  44. package/test/pics/p10/newline-label.svg +5 -0
  45. package/test/pics/p10/newline-lr.png +0 -0
  46. package/test/pics/p10/newline-lr.svg +7 -0
  47. package/test/pics/p10/newline-multi.png +0 -0
  48. package/test/pics/p10/newline-multi.svg +7 -0
  49. package/test/pics/p10/no-edges.svg +1 -1
  50. package/test/pics/p10/title-overflow.svg +1 -1
  51. package/test/pics/p10/valign.svg +1 -1
  52. 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
  53. 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
  54. 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
  55. package/test/pics/p10//346/250/241/347/265/204/347/265/204/346/210/220/345/234/226.svg +1 -1
  56. 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
  57. 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
  58. 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
  59. 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
  60. package/test/pics/p10//350/263/207/346/226/231/346/265/201/345/220/221/345/234/226.svg +1 -1
  61. 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
  62. 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
  63. 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
  64. package/test/pics/p2/newline-label.png +0 -0
  65. package/test/pics/p2/newline-lr.png +0 -0
  66. package/test/pics/p2/newline-multi.png +0 -0
  67. package/test/pics/p3/newline-label.png +0 -0
  68. package/test/pics/p3/newline-lr.png +0 -0
  69. package/test/pics/p3/newline-multi.png +0 -0
  70. package/test/pics/p4/newline-label.png +0 -0
  71. package/test/pics/p4/newline-lr.png +0 -0
  72. package/test/pics/p4/newline-multi.png +0 -0
  73. package/test/pics/p5/newline-label.png +0 -0
  74. package/test/pics/p5/newline-lr.png +0 -0
  75. package/test/pics/p5/newline-multi.png +0 -0
  76. package/test/pics/p6/newline-label.png +0 -0
  77. package/test/pics/p6/newline-lr.png +0 -0
  78. package/test/pics/p6/newline-multi.png +0 -0
  79. package/test/pics/p7/newline-label.png +0 -0
  80. package/test/pics/p7/newline-lr.png +0 -0
  81. package/test/pics/p7/newline-multi.png +0 -0
  82. package/test/pics/p8/newline-label.png +0 -0
  83. package/test/pics/p8/newline-lr.png +0 -0
  84. package/test/pics/p8/newline-multi.png +0 -0
  85. package/test/pics/p9/newline-label.png +0 -0
  86. package/test/pics/p9/newline-lr.png +0 -0
  87. 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)之換行行為依各引擎而定。