2
0
Files
guilloche-generator/src/app/app.component.ts
2018-05-17 21:13:21 -04:00

40 lines
790 B
TypeScript

import { Component, OnInit } from '@angular/core';
// import { FormsModule } from '@angular/forms';
import { Param } from './models/param.model';
import { Config } from './models/config.model';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
public canvasConfig: Config;
public canvasParam: Param;
public test: number;
constructor() {
this.canvasParam = {
colors: {
start: '#cc0045',
end: '#0067cc'
},
points: 3,
margin: {
x: 0.2,
y: 0.4
},
stroke: {
width: 2
},
spread: 80,
showGrid: true
};
}
public updateCanvasConfig(config): void {
this.canvasConfig = config;
}
}