aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/graph/graph.component.ts
diff options
context:
space:
mode:
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);