2
0

improved single responsibility of graphs

This commit is contained in:
2018-09-02 14:20:17 +02:00
parent 04b049f39f
commit 13c9b1018b
10 changed files with 67 additions and 34 deletions

View File

@@ -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
}