Revize 9508f0fa
Přidáno uživatelem Ondřej Váně před asi 4 roky(ů)
fe/fulltextsearch/src/app/components/pages/search/search-paginator/search-paginator.component.ts | ||
---|---|---|
3 | 3 |
import { MatTableDataSource } from '@angular/material/table'; |
4 | 4 |
import { TextRegion } from '../../../../model/parts/TextRegion'; |
5 | 5 |
import { SearchResponse } from '../../../../model/SearchResponse'; |
6 |
import Utils from '../../../../../Utils'; |
|
7 |
import {DrawerService} from '../../../../services/drawer/drawer.service'; |
|
8 |
import {LoggerService} from '../../../../services/logger/logger.service'; |
|
6 | 9 |
|
7 | 10 |
@Component({ |
8 | 11 |
selector: 'app-search-paginator', |
... | ... | |
17 | 20 |
/** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */ |
18 | 21 |
displayedColumns = ['image']; |
19 | 22 |
|
23 |
constructor(private LOGGER: LoggerService, private drawer: DrawerService) {} |
|
24 |
|
|
20 | 25 |
ngOnChanges(changes: SimpleChanges): void { |
21 | 26 |
this.tableDataSource = new MatTableDataSource<TextRegion>(this.inputData.textRegions); |
22 | 27 |
this.tableDataSource.paginator = this.paginator; |
23 | 28 |
} |
24 | 29 |
|
30 |
draw(result: TextRegion, imageId: string, canvasId: string) { |
|
31 |
this.LOGGER.debug('Drawing method'); |
|
32 |
this.drawer.drawResult(result, imageId, canvasId); |
|
33 |
} |
|
25 | 34 |
} |
Také k dispozici: Unified diff
Re #7820: Vykreslení rámečku do výřezu dokumentu
- implementována service pro vykreslení rámečku do obrázku
- vykreslování pomocí html5 tagu canvas
- nutno dopočítat posun oproti původnímu obrázku (velikost bude posílána z BE)