diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-06-06 02:26:11 +0200 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-06-06 02:26:11 +0200 |
commit | bd14a065a0ff288ab13904eb1f6b949b3375d8c4 (patch) | |
tree | d714ceb2ceda022e41a322467ccd0e849992e53a /frontend/src/app/_elements/graph/graph.component.ts | |
parent | 542acf92fd69fea61afbef34f12cd6147f919bc8 (diff) |
Dodate labele za neurone na pravljenju konfiguracije neuronske mreze.Labele neurona ulaznog i skrivenih slojeva su na hover,a labela izlaznog neuronom se stalno prikazuje.
Diffstat (limited to 'frontend/src/app/_elements/graph/graph.component.ts')
-rw-r--r-- | frontend/src/app/_elements/graph/graph.component.ts | 5 |
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); |