all nodes animated

This commit is contained in:
libretech committed 2018-08-15 18:12:39 +02:00
1 parent 6f21849c85
commit 2e15897b8b
6 files changed
+70 -42

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ export class GraphService {
}
}
public shiftPoint(point: Point, radians: number, spacing: number) {
public shiftPoint(point: Point, radians: number, spacing: number): Point {
return {
x: Math.sin(radians * Math.PI) * spacing + point.x,
y: Math.cos(radians * Math.PI) * spacing + point.y