File tree 6 files changed +19
-21
lines changed
6 files changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,24 @@ Random Design Notes
2
2
-------------------
3
3
4
4
## 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+
11
11
12
12
## 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
18
18
19
19
Whitespace is trimed from the ends of each line
20
20
21
21
## 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
7
7
8
8
9
9
Example
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.6" ,
4
4
"authors" : " Andrew Brampton (bramp.net)" ,
5
5
"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/" ,
7
7
"main" : " build/sequence-diagram-min.js" ,
8
8
"namespace" : " Diagram" ,
9
9
"keywords" : [
Original file line number Diff line number Diff line change @@ -22,4 +22,4 @@ statement ::=
22
22
message ::= [^\n]+
23
23
24
24
actor ::= [^\->:\n,]+
25
- */
25
+ */
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ if (typeof Raphael != 'undefined') {
98
98
} else {
99
99
p = this . paper_ . text ( 0 , 0 , text ) ;
100
100
p . attr ( font ) ;
101
- //p.attr({"text-anchor": "start"});
102
101
}
103
102
104
103
var bb = p . getBBox ( ) ;
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ _.extend(BaseTheme.prototype, {
180
180
var signals = diagram . signals ;
181
181
182
182
diagram . width = 0 ; // min width
183
- diagram . height = 0 ; // min width
183
+ diagram . height = 0 ; // min height
184
184
185
185
// Setup some layout stuff
186
186
if ( diagram . title ) {
@@ -202,7 +202,6 @@ _.extend(BaseTheme.prototype, {
202
202
var bb = this . textBBox ( a . name , font ) ;
203
203
a . textBB = bb ;
204
204
205
- //var bb = t.attr("text", a.name).getBBox();
206
205
a . x = 0 ; a . y = 0 ;
207
206
a . width = bb . width + ( ACTOR_PADDING + ACTOR_MARGIN ) * 2 ;
208
207
a . height = bb . height + ( ACTOR_PADDING + ACTOR_MARGIN ) * 2 ;
You can’t perform that action at this time.
0 commit comments