This commit is contained in:
Timo 2020-11-25 10:58:49 +02:00
parent acf882e081
commit 59472b8014

View File

@ -27,14 +27,13 @@ export class AnnotationDrawService {
annotationManager.drawAnnotationsFromList(annotations);
this._redactionLogControllerService.getSectionGrid(this._appStateService.activeFileId).subscribe((sectionGrid) => {
console.log(sectionGrid);
this.drawSections(activeViewer, sectionGrid);
});
}
public drawSections(activeViewer: WebViewerInstance, sectionGrid: SectionGrid) {
const sections = [];
for (let page of Object.keys(sectionGrid.rectanglesPerPage)) {
for (const page of Object.keys(sectionGrid.rectanglesPerPage)) {
const sectionRectangles: SectionRectangle[] = sectionGrid.rectanglesPerPage[page];
sectionRectangles.forEach((sectionRectangle) => {
sections.push(this.computeSection(activeViewer, parseInt(page, 10), sectionRectangle));