Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d4debeba

Přidáno uživatelem Ondřej Váně před téměř 5 roky(ů)

Re #7912: Ořezávání obrázků

- oprava vykreslování textWord, textLines a textRegion
- přidání logů při vyznačování slov atd.

Zobrazit rozdíly:

fe/fulltextsearch/src/app/services/drawer/drawer.service.ts
23 23
            if (textWord !== null) {
24 24
              // print words
25 25
              this.draw(textWord.wordCoords.points, canvasContext);
26
              this.LOGGER.info('printing words');
26
              this.LOGGER.info('Printing word: ' + textWord.wordText);
27 27
            }
28 28
          }
29
          return;
30 29
        } else {
31 30
          // print lines
32 31
          this.draw(textLine.lineCoords.points, canvasContext);
33
          this.LOGGER.info('Print lines');
32
          this.LOGGER.info('Printing line: ' + textLine.lineText);
34 33
        }
35 34
      }
36
      return;
37 35
    } else {
38 36
      // all region
39 37
      this.draw(textRegion.regionCoords.points, canvasContext);
40
      this.LOGGER.info('Print region');
38
      this.LOGGER.info('Printing region: ' + textRegion.regionText);
41 39
    }
42 40
  }
43 41

  

Také k dispozici: Unified diff