Skip to content

Commit 186e997

Browse files
author
angusforbes
committed
Updates - I forgot to check in a while back...
1 parent 3d77bb8 commit 186e997

File tree

5 files changed

+1073
-448
lines changed

5 files changed

+1073
-448
lines changed

index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,19 @@
130130
var attachmentMargin = 0.1; //percentage value
131131

132132
var word2word_strategy = strategies.FARTHEST;
133-
var word2link_strategy = strategies.FARTHEST;
133+
var word2link_strategy = strategies.CLOSEST;
134134
var link2link_strategy = strategies.FARTHEST; //CLOSEST sometimes causes overlaps - need to be a bit more rigorous when assigning slots - don't assign any slots that have the potential to overlap (when dragged manually)? - or let the buyer beware that this could happen - they can always move out of the way - right now it won't automatically overlap, but won't prevent a user from doing it.
135135

136136
var rows = []; //list of Row object, each of those has a list of Word objects
137137

138138

139139
// 1. create Words and Links objects (in utils.js) */
140-
var wordObjs = createTestWords(10, 1, 15);
140+
var wordObjs = createTestWords(4, 10, 10);
141+
142+
//var linkObjs = createTestLinks(3,3,3);
143+
//var linkObjs = createTestLinks(1,0,0);
144+
var linkObjs = createTestMultiLinks(1);
141145

142-
//var linkObjs = createTestLinks(1,1,0);
143-
var linkObjs = createTestLinks(2,2,2);
144146

145147
// 2. draw words and boxes around words
146148
drawWords(wordObjs);

0 commit comments

Comments
 (0)