Skip to content
This repository was archived by the owner on Oct 18, 2018. It is now read-only.

Commit 762b5f0

Browse files
committed
Typo
1 parent 0153072 commit 762b5f0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/webapp/app.directive.gdxAnnoPage.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
case 'underline':
118118
var start = new ps.Point(event.point);
119119
$rootScope.startRow = getStartRow($rootScope.docInfo, start, attrs);
120-
$rootScope.startText = $rootScope.startRow[0].characterCoordinates.filter(x = > Math.floor(x) > Math.floor(start.x)
120+
$rootScope.startText = $rootScope.startRow[0].characterCoordinates.filter(x => Math.floor(x) > Math.floor(start.x)
121121
)
122122
;
123123
if ($rootScope.startText.length > 1) {
@@ -134,7 +134,7 @@
134134
case 'strikeout':
135135
var start = new ps.Point(event.point);
136136
$rootScope.startRow = getStartRow($rootScope.docInfo, start, attrs);
137-
$rootScope.startText = $rootScope.startRow[0].characterCoordinates.filter(x = > Math.floor(x) > Math.floor(start.x)
137+
$rootScope.startText = $rootScope.startRow[0].characterCoordinates.filter(x => Math.floor(x) > Math.floor(start.x)
138138
)
139139
;
140140
if ($rootScope.startText.length > 1) {
@@ -178,7 +178,7 @@
178178
case 'underline':
179179
if (currentObject) {
180180
var end = new ps.Point(event.point);
181-
var endText = $rootScope.startRow[0].characterCoordinates.filter(x = > Math.floor(x) > Math.floor(end.x)
181+
var endText = $rootScope.startRow[0].characterCoordinates.filter(x => Math.floor(x) > Math.floor(end.x)
182182
)
183183
;
184184
if (endText.length > 1) {
@@ -192,7 +192,7 @@
192192
case 'strikeout':
193193
if (currentObject) {
194194
var end = new ps.Point(event.point);
195-
var endText = $rootScope.startRow[0].characterCoordinates.filter(x = > Math.floor(x) > Math.floor(end.x)
195+
var endText = $rootScope.startRow[0].characterCoordinates.filter(x => Math.floor(x) > Math.floor(end.x)
196196
)
197197
;
198198
if (endText.length > 1) {
@@ -483,15 +483,15 @@
483483
function getStartRow(docInfo, start, attrs) {
484484
var startRow = [];
485485
for (var i = 0; i < 30; i++) {
486-
startRow = docInfo.pages[attrs.number].rows.filter(x = > Math.floor(x.lineTop) == (Math.floor(start.y) - i )
486+
startRow = docInfo.pages[attrs.number].rows.filter(x => Math.floor(x.lineTop) == (Math.floor(start.y) - i )
487487
)
488488
;
489489
if (startRow.length > 0)
490490
return startRow;
491491
}
492492
if (startRow.length == 0)
493493
for (var i = 0; i < 30; i++) {
494-
startRow = docInfo.pages[attrs.number].rows.filter(x = > Math.floor(x.lineTop) == (Math.floor(start.y) + i )
494+
startRow = docInfo.pages[attrs.number].rows.filter(x => Math.floor(x.lineTop) == (Math.floor(start.y) + i )
495495
)
496496
;
497497
if (startRow.length > 0)

0 commit comments

Comments
 (0)