Test a complex sequence diagram

This commit is contained in:
Tyler Long
2018-03-13 10:54:39 +08:00
parent 37076d3d1f
commit 8a20a71906
3 changed files with 9 additions and 8 deletions

11
dist/index.html vendored
View File

@@ -22,10 +22,13 @@ click B testClick "click test"
<div class="mermaid">
sequenceDiagram
loop every day
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
end
Alice ->> Bob: Hello Bob, how are you?
Bob-->>John: How about you John?
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!
Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.
Bob-->Alice: Checking with John...
Alice->John: Yes... John, how are you?
</div>
<hr/>

View File

@@ -180,7 +180,7 @@ const drawNote = function (elem, startx, verticalPos, msg, forceWidth) {
let textElem = svgDraw.drawText(g, textObj, rect.width - conf.noteMargin)
let textHeight = textElem[0][0].getBBox().height
let textHeight = (textElem._groups || textElem)[0][0].getBBox().height
if (!forceWidth && textHeight > conf.width) {
textElem.remove()
g = elem.append('g')

View File

@@ -3,7 +3,5 @@
- Create a desktop client
- Flowchart `interpolate` is useless because there is no rendering code using it
- Each type of diagram should have its own set of CSS.
- Support customization of gantt diagram xAxis format
- https://github.com/d3/d3-time-format#api-reference
- https://bl.ocks.org/wboykinm/34627426d84f3242e0e6ecb2339e9065
- Support customization of gantt diagram xAxis format using diagram code
- Some one created a great PR: https://github.com/knsv/mermaid/pull/624