/** * Copyright (C) 2018 Michael Czechowski * 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 { ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; import { Graph } from './../models/graph.model'; import { NlsCanvasService } from './../services/canvas.service'; import { NlsMathService } from './../services/math.service'; import { NlsGraphService } from '../services/graph.service'; export declare class NlsGuillocheDirective implements OnChanges, OnDestroy { private canvasService; private el; private math; private graphService; private canvas; private group; private bounce; private bounces; private initialNodes; private initialCurve; private animationInterval; private medianPoint; private medianIndex; private pathElements; graph: Graph; animation: boolean; constructor(canvasService: NlsCanvasService, el: ElementRef, math: NlsMathService, graphService: NlsGraphService); ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; private animateGraph(x); private spreadLines(points); private updateGraph(points, index); private drawGraph(points); private debugGraph(points); }