2
0
Files
guilloche-generator/dist/nls-guilloche/nls/components/graphs.component.d.ts

61 lines
2.4 KiB
TypeScript

/**
* Copyright (C) 2018 Michael Czechowski <mail@dailysh.it>
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; version 2.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import { SimpleChanges, OnChanges, EventEmitter } from '@angular/core';
import { Graph } from './../models/graph.model';
import { Config } from './../models/config.model';
import { NlsCanvasService } from './../services/canvas.service';
import { NlsHistoryService } from './../services/history.service';
import { NlsMathService } from './../services/math.service';
import { NlsGraphService } from './../services/graph.service';
export declare class NlsGraphsComponent implements OnChanges {
private canvasService;
private historyService;
private math;
private graphService;
canvas: any | null;
matrix: any | null;
graphs: Graph[];
windowHeight: number | null;
windowWidth: number | null;
private genShiftPoint;
private genLoadedAllGraphs;
private hash;
private resizingWindow;
config: Config;
restoredHistory: any;
animation: boolean;
svgChange: EventEmitter<{}>;
graphChange: EventEmitter<{}>;
svgElementRef: any;
onResize(event: any): void;
constructor(canvasService: NlsCanvasService, historyService: NlsHistoryService, math: NlsMathService, graphService: NlsGraphService);
ngOnChanges(changes: SimpleChanges): void;
private restoreGraph();
private saveHistory();
private saveGraph();
private updateGraphs();
private adjustGraph(curve);
private genRandomPoints(num);
private flipflop(x);
private adjustCanvas();
private calcMatrix();
private genVectorPoint(point, vector);
private shiftPoint(point, vector, startPositive?);
private shiftNumber(space, vector, startPositive?);
prepareGuillocheExport(guillocheElement: any): void;
private countLoadedGraphs();
}