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
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@
84
84
85
85
varlevelpadding=16;
86
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
-
vartextpaddingY=4;//texts.wordText.maxHeight / 2; //padding above and below text, between text and rectangle it's inside of
87
+
vartextpaddingY=6;//texts.wordText.maxHeight / 2; //padding above and below text, between text and rectangle it's inside of
88
88
varwordpadding=4;//x padding between the rects containing words
89
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)
this.percPos=0.0;//this is used to indicate where along the row the word is positioned, used when resizing the browser's width, or when popping open a right panel.
150
141
151
-
this.type="WORD";
152
-
153
142
this.isSelected=false;
154
143
this.isHovered=false;
155
144
this.isDragging=false;
156
145
157
146
//variables created in first render...
158
-
//this.row; //this is a row object, for num do: this.row.idx
147
+
//this.row; //this is a row object, for row num do: this.row.idx
159
148
this.rectSVG=null;//the actual svg element
160
149
this.rect=null;//the bbox of the svg element
161
150
this.underneathRect=null;//not clickable, but solid rect on which other word parts are placed (text, handles, clickable rect)
162
151
this.text=null;//the svg text
152
+
this.tagtext=null;//the svg text for a tag
153
+
154
+
this.maxtextw=null;//either the word text width, or the tag text with, whichever is wider
155
+
163
156
this.leftHandle=null;//the left draggable handle to resize word
164
157
this.rightHandle=null;//the right draggable handle to resize word
//TODO - make these match original position - the Y pos for text is off for tags and words - why isn't the text descent needed here?? ny and w.wy should be (and is!) the same - but the text y pos is a few pixels off!
772
+
//Looks like the entire row size jumps one pixel when adding a new row... think this may cause the 1 px differentce
0 commit comments