updated data type
This commit is contained in:
1 parent
7127c3c0b9
commit
9b50f73b62
26 files changed
+590
-927
No files matched your search
@@ -1,5 +1,5 @@
|
||||
|
||||
import { Automation } from "../../automation/types";
|
||||
import { AutomationData } from "../../automations/types";
|
||||
import { GRAPH_HEIGHT, GRAPH_WIDTH, NODE_HEIGHT, NODE_WIDTH } from "./constants";
|
||||
import {DAG, Node, Point, NormalizedDag} from "./types";
|
||||
|
||||
@@ -22,7 +22,7 @@ export const normalizeDAG = (dag: DAG): NormalizedDag => {
|
||||
edges: dag.edges,
|
||||
}
|
||||
}
|
||||
export const computeDAG = (automation: Automation) : DAG => {
|
||||
export const computeDAG = (automation: AutomationData) : DAG => {
|
||||
const nodes: DAG['nodes'] = {};
|
||||
const edges: DAG['edges'] = [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user