From b89a1cf2ff7c45e44490655a14b752a85f5fee36 Mon Sep 17 00:00:00 2001 From: gkchic Date: Wed, 7 Jan 2015 23:15:19 +0100 Subject: [PATCH 1/2] Grammar changes to content Update content to clarify instructions --- docs/sequenceDiagram.md | 95 ++--------------------------------------- 1 file changed, 4 insertions(+), 91 deletions(-) diff --git a/docs/sequenceDiagram.md b/docs/sequenceDiagram.md index 9a035415be..bce1b48ea1 100644 --- a/docs/sequenceDiagram.md +++ b/docs/sequenceDiagram.md @@ -26,10 +26,10 @@ sequenceDiagram ### Participants -The participants can be defined implicitly as in the first example on this page. The participants or actors are +The participants can be defined as in the first example on this page. The participants or actors are rendered in order of appearance in the diagram source text. Sometimes you might want to show the participants in a -different order then when the first message from when the actor appears. Then it is possible to introduce the actor -explicitly in by doing this decing the order of appearance. +different order than how they appear in the first message. It is possible to introduce the actor's +order of appearance by doing the following: ``` %% Example of sequence diagram @@ -197,91 +197,4 @@ labelText | Styles for the text in label for loops. loopText | Styles for the text in the loop box. loopLine | Defines styles for the lines in the loop box. note | Styles for the note box. -noteText | Styles for the text on in the note boxes. - -### Sample stylesheet - - -``` - -body { - background: white; -} - -.actor { - stroke: #CCCCFF; - fill: #ECECFF; -} -text.actor { - fill:black; - stroke:none; - font-family: Helvetica; -} - -.actor-line { - stroke:grey; -} - -.messageLine0 { - stroke-width:1.5; - stroke-dasharray: "2 2"; - marker-end:"url(#arrowhead)"; - stroke:black; -} - -.messageLine1 { - stroke-width:1.5; - stroke-dasharray: "2 2"; - stroke:black; -} - -#arrowhead { - fill:black; - -} - -.messageText { - fill:black; - stroke:none; - font-family: 'trebuchet ms', verdana, arial; - font-size:14px; -} - -.labelBox { - stroke: #CCCCFF; - fill: #ECECFF; -} - -.labelText { - fill:black; - stroke:none; - font-family: 'trebuchet ms', verdana, arial; -} - -.loopText { - fill:black; - stroke:none; - font-family: 'trebuchet ms', verdana, arial; -} - -.loopLine { - stroke-width:2; - stroke-dasharray: "2 2"; - marker-end:"url(#arrowhead)"; - stroke: #CCCCFF; -} - -.note { - stroke: #decc93; - stroke: #CCCCFF; - fill: #fff5ad; -} - -.noteText { - fill:black; - stroke:none; - font-family: 'trebuchet ms', verdana, arial; - font-size:14px; -} - -``` \ No newline at end of file +noteText | Styles f \ No newline at end of file From 362d661a137f27c585010e018dec8576c178e207 Mon Sep 17 00:00:00 2001 From: gkchic Date: Wed, 7 Jan 2015 23:27:53 +0100 Subject: [PATCH 2/2] Grammar changes Update content with modified text in the participants section. --- docs/sequenceDiagram.md | 95 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 91 insertions(+), 4 deletions(-) mode change 100644 => 100755 docs/sequenceDiagram.md diff --git a/docs/sequenceDiagram.md b/docs/sequenceDiagram.md old mode 100644 new mode 100755 index bce1b48ea1..76f2aa2ee9 --- a/docs/sequenceDiagram.md +++ b/docs/sequenceDiagram.md @@ -26,10 +26,10 @@ sequenceDiagram ### Participants -The participants can be defined as in the first example on this page. The participants or actors are +The participants can be defined implicitly as in the first example on this page. The participants or actors are rendered in order of appearance in the diagram source text. Sometimes you might want to show the participants in a -different order than how they appear in the first message. It is possible to introduce the actor's -order of appearance by doing the following: +different order than how they appear in the first message. It is possible to specify the actor's order of +appearance by doing the following: ``` %% Example of sequence diagram @@ -197,4 +197,91 @@ labelText | Styles for the text in label for loops. loopText | Styles for the text in the loop box. loopLine | Defines styles for the lines in the loop box. note | Styles for the note box. -noteText | Styles f \ No newline at end of file +noteText | Styles for the text on in the note boxes. + +### Sample stylesheet + + +``` + +body { + background: white; +} + +.actor { + stroke: #CCCCFF; + fill: #ECECFF; +} +text.actor { + fill:black; + stroke:none; + font-family: Helvetica; +} + +.actor-line { + stroke:grey; +} + +.messageLine0 { + stroke-width:1.5; + stroke-dasharray: "2 2"; + marker-end:"url(#arrowhead)"; + stroke:black; +} + +.messageLine1 { + stroke-width:1.5; + stroke-dasharray: "2 2"; + stroke:black; +} + +#arrowhead { + fill:black; + +} + +.messageText { + fill:black; + stroke:none; + font-family: 'trebuchet ms', verdana, arial; + font-size:14px; +} + +.labelBox { + stroke: #CCCCFF; + fill: #ECECFF; +} + +.labelText { + fill:black; + stroke:none; + font-family: 'trebuchet ms', verdana, arial; +} + +.loopText { + fill:black; + stroke:none; + font-family: 'trebuchet ms', verdana, arial; +} + +.loopLine { + stroke-width:2; + stroke-dasharray: "2 2"; + marker-end:"url(#arrowhead)"; + stroke: #CCCCFF; +} + +.note { + stroke: #decc93; + stroke: #CCCCFF; + fill: #fff5ad; +} + +.noteText { + fill:black; + stroke:none; + font-family: 'trebuchet ms', verdana, arial; + font-size:14px; +} + +``` \ No newline at end of file