Skip to content

Commit b736444

Browse files
author
angusforbes
committed
Cleans up the code a bit where words + tags are calculated and drawn.
1 parent 45260e5 commit b736444

File tree

2 files changed

+85
-170
lines changed

2 files changed

+85
-170
lines changed

index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888
var wordpadding = 4; //x padding between the rects containing words
8989
//var topMargin = 0;
9090
var edgepadding = 10; //padding between left side of svg canvas and where first word can be placed, and padding between right side of svg canvas and where last word on a row can fit (before popping over to next row)
91+
var rowpadding = 30;
92+
9193
var hideLinkLinesPercentage = 3.0; //percentage at which links and arrows are hidden
9294
var hideLinkTextPercentage = 7.0; //percentage at which words are link words are hidden
9395

@@ -135,10 +137,10 @@
135137

136138

137139
// 1. create Words and Links objects (in utils.js) */
138-
var wordObjs = createTestWords(20, 1, 15);
140+
var wordObjs = createTestWords(10, 1, 15);
139141

140142
//var linkObjs = createTestLinks(1,1,0);
141-
var linkObjs = createTestLinks(4,4,4);
143+
var linkObjs = createTestLinks(2,2,2);
142144

143145
// 2. draw words and boxes around words
144146
drawWords(wordObjs);

0 commit comments

Comments
 (0)