From b4e915d1ea23a1ec1c45078543a125fb6f16020a Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Sun, 5 Aug 2018 18:38:53 +0200 Subject: [PATCH] removed console logs --- src/app/components/graphs.component.ts | 13 ++----------- src/app/directives/guilloche.directive.ts | 11 +++++------ 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/app/components/graphs.component.ts b/src/app/components/graphs.component.ts index e5630cf..1b60f54 100644 --- a/src/app/components/graphs.component.ts +++ b/src/app/components/graphs.component.ts @@ -14,7 +14,7 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { ViewChildren, QueryList, Component, AfterViewInit, ViewChild, Input, SimpleChanges, OnChanges, HostListener } from '@angular/core'; +import { ViewChildren, QueryList, Component, ViewChild, Input, SimpleChanges, OnChanges, HostListener } from '@angular/core'; import * as Selection from 'd3-selection'; import * as Shape from 'd3-shape'; import * as Random from 'd3-random'; @@ -31,7 +31,7 @@ import { Point } from '../models/point.model'; templateUrl: './graphs.component.html', styleUrls: ['./graphs.component.scss'] }) -export class GraphsComponent implements AfterViewInit, OnChanges { +export class GraphsComponent implements OnChanges { public graphs: Graph[]; public canvas: any | null; @@ -56,17 +56,9 @@ export class GraphsComponent implements AfterViewInit, OnChanges { } ngOnChanges(changes: SimpleChanges) { - console.log('graph component (changes:config)', changes.config.currentValue); this.init(); } - /** - * @todo Will deprecate if there won't be any use for this - */ - ngAfterViewInit() { - console.log('graph component (afterView:children)', this.guillocheViewChildren.toArray()); - } - private init() { this.updateCanvas(); this.updateMatrix(); @@ -91,7 +83,6 @@ export class GraphsComponent implements AfterViewInit, OnChanges { ]; this.graphs = curveList.map(curve => this.adjustGraph(curve)); - console.log('graphs component (updateGraphs):', this.graphs); } private adjustGraph(curve) { diff --git a/src/app/directives/guilloche.directive.ts b/src/app/directives/guilloche.directive.ts index 8a453dc..014d1a1 100644 --- a/src/app/directives/guilloche.directive.ts +++ b/src/app/directives/guilloche.directive.ts @@ -48,11 +48,12 @@ export class GuillocheDirective implements OnChanges { } ngOnChanges(changes: SimpleChanges) { - const points = [this.graph.start.point, ...this.graph.nodes, this.graph.end.point]; - + const points = [ + this.graph.start.point, + ...this.graph.nodes, + this.graph.end.point + ]; this.spreadLines(points); - - console.log('guilloche directive (changes)', changes.graph.currentValue); } private drawGraph(points: Point[]): void { @@ -68,8 +69,6 @@ export class GuillocheDirective implements OnChanges { if (!env.production) { this.showGrid(); } - - console.log('guilloche directive(drawGraph)', this.graph); } private spreadLines(points: Point[]) {