2
0

added new config param for snapping graphs to top and bottom line

This commit is contained in:
2018-09-02 20:14:41 +02:00
parent 3ad2c950e6
commit eceb23542d
3 changed files with 4 additions and 7 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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();