aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/graph/graph.component.ts
diff options
context:
space:
mode:
authorSonja Galovic <galovicsonja@gmail.com>2022-06-06 04:21:57 +0200
committerSonja Galovic <galovicsonja@gmail.com>2022-06-06 04:21:57 +0200
commita5dedce9016f75de00954f02cdaf865a66454220 (patch)
tree9f8c4dd85c367fdd63af75dfb34b1a7a9e1ba5db /frontend/src/app/_elements/graph/graph.component.ts
parent2b5200bc9d3c55ca2d3f44c7dda23568125540ff (diff)
parent67151f6cc5fcb9a66fc08a181eb8e1a6acaca733 (diff)
Merge branch 'redesign' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into redesign
Diffstat (limited to 'frontend/src/app/_elements/graph/graph.component.ts')
-rw-r--r--frontend/src/app/_elements/graph/graph.component.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/app/_elements/graph/graph.component.ts b/frontend/src/app/_elements/graph/graph.component.ts
index 04be9f04..f14e54e7 100644
--- a/frontend/src/app/_elements/graph/graph.component.ts
+++ b/frontend/src/app/_elements/graph/graph.component.ts
@@ -28,7 +28,8 @@ export class GraphComponent implements AfterViewInit {
@Input() outputNodeColor: string = '#dfd7d7';
private ctx!: CanvasRenderingContext2D;
- @Input() inputColumns?: string[];
+ @Input() inputColumns?: string[]=[];
+ @Input() outputColumn?:string="";
constructor() { }
@@ -81,7 +82,7 @@ export class GraphComponent implements AfterViewInit {
this.layers.push([new Node(outX, outY, this.outputNodeColor)])
this.draw();
}
-
+
draw() {
this.ctx.clearRect(0, 0, this.canvas.nativeElement.width, this.canvas.nativeElement.height);