aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/graph/graph.component.html
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/app/_elements/graph/graph.component.html')
-rw-r--r--frontend/src/app/_elements/graph/graph.component.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/frontend/src/app/_elements/graph/graph.component.html b/frontend/src/app/_elements/graph/graph.component.html
index 1c21fb6c..19e5c14a 100644
--- a/frontend/src/app/_elements/graph/graph.component.html
+++ b/frontend/src/app/_elements/graph/graph.component.html
@@ -1,3 +1,8 @@
-<div #graphWrapper class="w-100" style="height: 16rem;">
- <canvas #graphCanvas class="border"></canvas>
-</div> \ No newline at end of file
+<div #graphWrapper class="w-100 position-relative" style="height: 14rem;">
+ <ng-container *ngFor="let layer of layers; let i = index">
+ <div class="node-text" *ngFor="let node of layer; let j = index" [style.left.%]="node.x * 99.4" [style.top.%]="node.y * 100">
+ {{ i == 0 ? (inputColumns ? inputColumns[j] : 'nepoznato') : (i > 0 && i
+ < layers.length - 1 ? model!.layers[i-1].activationFunction : (i==layers.length - 1 ? 'out' : '')) }} </div>
+ </ng-container>
+ <canvas #graphCanvas></canvas>
+ </div> \ No newline at end of file