You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+9-18Lines changed: 9 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -83,11 +83,14 @@
83
83
varisDragging=false;
84
84
85
85
varlevelpadding=16;
86
-
var/*textpadding */textpaddingX=12;//this is the x-padding within each word rect, between the text and the rectangle it's inside of
86
+
var/*textpadding */textpaddingX=8;//12; //this is the x-padding within each word rect, between the text and the rectangle it's inside of
87
87
vartextpaddingY=4;//texts.wordText.maxHeight / 2; //padding above and below text, between text and rectangle it's inside of
88
-
varwordpadding=5;//x padding between the rects containing words
89
-
vartopMargin=0;
88
+
varwordpadding=4;//x padding between the rects containing words
89
+
//var topMargin = 0;
90
90
varedgepadding=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
+
varhideLinkLinesPercentage=3.0;//percentage at which links and arrows are hidden
92
+
varhideLinkTextPercentage=7.0;//percentage at which words are link words are hidden
//var minWordWidth = 10; //used when dragging handles to shrink or grow word size
106
108
107
109
108
110
varevenRowsColor_selected='#cdcdff';
@@ -125,34 +127,23 @@
125
127
126
128
varattachmentMargin=0.1;//percentage value
127
129
128
-
vararrowColor='#000000';
129
-
vararrowOpacity=1.0;
130
-
131
130
varword2word_strategy=strategies.FARTHEST;
132
-
varword2link_strategy=strategies.FARTHEST;
133
-
varlink2link_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.
131
+
varword2link_strategy=strategies.CLOSEST;
132
+
varlink2link_strategy=strategies.CLOSEST;//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.
134
133
135
134
varrows=[];//list of Row object, each of those has a list of Word objects
136
135
137
136
138
137
// 1. create Words and Links objects (in utils.js) */
0 commit comments