Skip to content

Commit 8edeac3

Browse files
committed
Random cleanup.
1 parent 9c505ec commit 8edeac3

File tree

6 files changed

+19
-21
lines changed

6 files changed

+19
-21
lines changed

DESIGN.md

+15-15
Original file line numberDiff line numberDiff 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

1919
Whitespace 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'

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ JS Sequence Diagrams v2 [![Build Status](https://travis-ci.org/bramp/js-sequence
33
**Generates UML sequence diagrams from simple text**
44
<https://bramp.github.io/js-sequence-diagrams/>
55

6-
by [Andrew Brampton](http://bramp.net) 2012-2017
6+
by [Andrew Brampton](https://bramp.net) 2012-2017
77

88

99
Example

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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": [

src/grammar.ebnf

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ statement ::=
2222
message ::= [^\n]+
2323
2424
actor ::= [^\->:\n,]+
25-
*/
25+
*/

src/theme-raphael.js

-1
Original file line numberDiff line numberDiff 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();

src/theme.js

+1-2
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)