improved single responsibility of graphs

This commit is contained in:
libretech committed 2018-09-02 15:32:38 +02:00
1 parent 04b049f39f
commit 13c9b1018b
10 files changed
+67 -34

No files matched your search

@@ -15,6 +15,7 @@
*/
import { Point } from './point.model';
import { Config } from './config.model';
export interface Graph {
id: string;
@@ -29,6 +30,10 @@ export interface Graph {
direction?: Point;
vector: number; // degree between 0 and 360
};
spread: {
amount: number;
spacing: number
};
stroke: number; // stroke width
nodes?: Point[]; // orientation points
}