2 Commits 43d5ff4ff8 ... 625fb225bc

Author SHA1 Message Date
  Pavel Zhigalov 625fb225bc ok 1 month ago
  Pavel Zhigalov 43d5ff4ff8 ok 1 month ago
1 changed files with 27 additions and 0 deletions
  1. 27 0
      src/v1/io/dzwf/DzwfData.ts

+ 27 - 0
src/v1/io/dzwf/DzwfData.ts

@@ -0,0 +1,27 @@
+export type DzwfElement = {
+    diagram: {
+        position: { x: number, y: number },
+        size: { width: number, height: number }
+    },
+    outs: unknown[],
+    ins: unknown[],
+    variables: unknown[],
+    stages: unknown[],
+    name: string,
+    type: string,
+    id: string
+}
+
+export type DzwfLink = {
+    sourceId: string,
+    targetId: string,
+    id: string,
+    diagram?: {
+        vertices: { x: number, y: number }[]
+    }
+}
+
+export type DzwfData = object & {
+    elements: DzwfElement[],
+    links: DzwfLink[]
+};