From eceb23542d3b9df093ba5dc70cb8851a1d215d5d Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Sun, 2 Sep 2018 20:14:41 +0200 Subject: [PATCH] added new config param for snapping graphs to top and bottom line --- package.json | 2 +- projects/nls-guilloche/package.json | 2 +- .../nls-guilloche/src/nls/components/graphs.component.ts | 7 ++----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 6f91798..a7d678a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nls-guilloche-generator", - "version": "1.0.0-rc.5", + "version": "1.0.0-rc.6", "repository": { "type": "git", "url": "https://github.com/nextlevelshit/nls-guilloche-generator" diff --git a/projects/nls-guilloche/package.json b/projects/nls-guilloche/package.json index 93f80c0..38499e1 100644 --- a/projects/nls-guilloche/package.json +++ b/projects/nls-guilloche/package.json @@ -1,6 +1,6 @@ { "name": "nls-guilloche", - "version": "1.0.0-rc.5", + "version": "1.0.0-rc.6", "repository": { "type": "git", "url": "https://github.com/nextlevelshit/nls-guilloche-generator" diff --git a/projects/nls-guilloche/src/nls/components/graphs.component.ts b/projects/nls-guilloche/src/nls/components/graphs.component.ts index ddd47c4..156c17e 100644 --- a/projects/nls-guilloche/src/nls/components/graphs.component.ts +++ b/projects/nls-guilloche/src/nls/components/graphs.component.ts @@ -14,7 +14,7 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { ViewChild, Component, Input, Output, SimpleChanges, OnChanges, EventEmitter, OnInit, HostListener } from '@angular/core'; +import { ViewChild, Component, Input, Output, SimpleChanges, OnChanges, EventEmitter, HostListener } from '@angular/core'; import { Observable, interval, Subscription } from 'rxjs'; import * as Selection from 'd3-selection'; import * as Shape from 'd3-shape'; @@ -35,7 +35,7 @@ import { NlsGraphService } from './../services/graph.service'; templateUrl: './graphs.component.html', styleUrls: ['./graphs.component.scss'] }) -export class NlsGraphsComponent implements OnChanges, OnInit { +export class NlsGraphsComponent implements OnChanges { public canvas: any | null; public matrix: any | null; @@ -68,9 +68,6 @@ export class NlsGraphsComponent implements OnChanges, OnInit { this.genLoadedAllGraphs = this.countLoadedGraphs(); } - ngOnInit() { - } - ngOnChanges(changes: SimpleChanges) { this.config.autoHeight = true; this.updateCanvas();