commit template changes

This commit is contained in:
2026-07-12 19:27:54 +05:30
parent f478ab72fd
commit f28035487f
7 changed files with 226 additions and 22 deletions

View File

@@ -25,9 +25,18 @@
<p>Upload a document to view its extracted layout structure.</p>
</div>
<div *ngFor="let node of layoutNodes" cdkDrag class="layout-node" [ngClass]="node.block_type.toLowerCase()">
<div class="node-type">{{ node.block_type }}</div>
<div class="node-text">{{ node.text_value }}</div>
<div class="document-canvas" [style.aspect-ratio]="pageWidth + ' / ' + pageHeight">
<div *ngFor="let node of layoutNodes"
cdkDrag
class="layout-node"
[ngClass]="node.block_type.toLowerCase()"
[style.left.%]="(node.x_coordinate / node.page_width) * 100"
[style.top.%]="(node.y_coordinate / node.page_height) * 100"
[style.width.%]="(node.width / node.page_width) * 100"
[style.height.%]="(node.height / node.page_height) * 100">
<div class="node-type" *ngIf="node.height > 20">{{ node.block_type }}</div>
<div class="node-text">{{ node.text_value }}</div>
</div>
</div>
</div>
</div>