File tree Expand file tree Collapse file tree 6 files changed +19
-21
lines changed
Expand file tree Collapse file tree 6 files changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,24 @@ Random Design Notes
22-------------------
33
44## Supported Browsers
5- IE 9+
6- Safari 5.1+
7- Firefox 3.6+
8- Opera 11.50+
9- Android 4.4+
10- iOS 5.1+
5+ * IE 9+
6+ * Safari 5.1+
7+ * Firefox 3.6+
8+ * Opera 11.50+
9+ * Android 4.4+
10+ * iOS 5.1+
1111
1212## Text Alignment
13- Title: Left aligned
14- Actors: Horz center aligned (TODO) and Vertically center aligned
15- Signals: Center aligned
16- Self Signal: Horz left aligned, Vertically center aligned (TODO)
17- Notes: Left aligned
13+ * Title: Left aligned
14+ * Actors: Horz center aligned (TODO) and Vertically center aligned
15+ * Signals: Center aligned
16+ * Self Signal: Horz left aligned, Vertically center aligned (TODO)
17+ * Notes: Left aligned
1818
1919Whitespace is trimed from the ends of each line
2020
2121## CSS Classes
22- SVG: 'sequence' and the name of the theme e.g. 'simple' or 'hand'
23- Title: 'title'
24- Actor: 'actor'
25- Signal: 'signal'
22+ * SVG: 'sequence' and the name of the theme e.g. 'simple' or 'hand'
23+ * Title: 'title'
24+ * Actor: 'actor'
25+ * Signal: 'signal'
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ JS Sequence Diagrams v2 [ 2012-2017
6+ by [ Andrew Brampton] ( https ://bramp.net) 2012-2017
77
88
99Example
Original file line number Diff line number Diff line change 33 "version" : " 1.0.6" ,
44 "authors" : " Andrew Brampton (bramp.net)" ,
55 "description" : " Generates UML sequence diagrams from simple text" ,
6- "homepage" : " http ://bramp.github.io/js-sequence-diagrams/" ,
6+ "homepage" : " https ://bramp.github.io/js-sequence-diagrams/" ,
77 "main" : " build/sequence-diagram-min.js" ,
88 "namespace" : " Diagram" ,
99 "keywords" : [
Original file line number Diff line number Diff line change @@ -22,4 +22,4 @@ statement ::=
2222message ::= [^\n]+
2323
2424actor ::= [^\->:\n,]+
25- */
25+ */
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ if (typeof Raphael != 'undefined') {
9898 } else {
9999 p = this . paper_ . text ( 0 , 0 , text ) ;
100100 p . attr ( font ) ;
101- //p.attr({"text-anchor": "start"});
102101 }
103102
104103 var bb = p . getBBox ( ) ;
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ _.extend(BaseTheme.prototype, {
180180 var signals = diagram . signals ;
181181
182182 diagram . width = 0 ; // min width
183- diagram . height = 0 ; // min width
183+ diagram . height = 0 ; // min height
184184
185185 // Setup some layout stuff
186186 if ( diagram . title ) {
@@ -202,7 +202,6 @@ _.extend(BaseTheme.prototype, {
202202 var bb = this . textBBox ( a . name , font ) ;
203203 a . textBB = bb ;
204204
205- //var bb = t.attr("text", a.name).getBBox();
206205 a . x = 0 ; a . y = 0 ;
207206 a . width = bb . width + ( ACTOR_PADDING + ACTOR_MARGIN ) * 2 ;
208207 a . height = bb . height + ( ACTOR_PADDING + ACTOR_MARGIN ) * 2 ;
You can’t perform that action at this time.
0 commit comments