askbot-dragon 1.4.97 → 1.4.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.4.97",
3
+ "version": "1.4.99",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -304,6 +304,7 @@ export default {
304
304
  if (findPage) {
305
305
  let AllLines = findPage.allLines
306
306
  // setTimeout(() => {
307
+ console.log(findPage,'findPage');
307
308
  if (AllLines.length > 0) {
308
309
  for (let j = 0; j < AllLines.length; j++) {
309
310
  let lines = AllLines[j].lines
@@ -327,9 +328,9 @@ export default {
327
328
  div.classList.add('lineHeight')
328
329
  rectdom.appendChild(div)
329
330
  if(index == 0 && j == 0) {
330
- rectdomTop = postionArr[1]
331
+ rectdomTop = (postionArr[1] + postionArr[3] / 9) * this.scale
331
332
  if(this.isPC) {
332
- rectdomTop = rectdomTop + 50
333
+ rectdomTop = rectdomTop - 50 < 0 ? 0 : rectdomTop - 50
333
334
  }
334
335
  }
335
336
  }
@@ -384,6 +385,7 @@ export default {
384
385
  }
385
386
 
386
387
  if (this.$refs.pdfView.scrollTop == Math.floor((pageNo - 1) * pageoffsetHeight)) {
388
+ this.$refs.pdfView.scrollTop = rectdomTop * this.transformSalce
387
389
  this.fisrtLoad = false
388
390
  } else {
389
391
  this.$refs.pdfView.scrollTop = `${((pageNo - 1) * pageoffsetHeight) + rectdomTop - this.PAGE_INTVERVAL}`
@@ -566,6 +568,7 @@ export default {
566
568
  if(this.preViewType !== 'pdf') {
567
569
  return
568
570
  }
571
+
569
572
  let pdfResloute = this.cachePdf[currentPage]
570
573
  this.identifyTextPostion.extractInfo = pdfResloute.extractInfo
571
574
  this.identifyTextPostion.left = pdfResloute.extractInfo.location[0]