Skip to content

Commit 2e1628d

Browse files
Louis KuczykowskiLouis Kuczykowski
authored andcommitted
Started the flowBuilder file
1 parent 1b86337 commit 2e1628d

File tree

3 files changed

+25
-8
lines changed

3 files changed

+25
-8
lines changed

extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function activate(context) {
2222
const tree = new Parser(fileArray[0].path);
2323
tree.parse();
2424
const data = tree.getTree();
25-
// console.log('Data sent back: ', data);
25+
console.log('Data sent back: \n', data);
2626
createPanel(context, data);
2727
});
2828
context.subscriptions.push(disposable, result);

src/webview/flowBuilder.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from "react";
2+
import { MarkerType } from "reactflow";
3+
4+
class FlowBuilder {
5+
constructor(data){
6+
this.parsedData = data;
7+
}
8+
buildNodesArray(){
9+
10+
}
11+
BuildedgesArray(){
12+
13+
}
14+
15+
16+
17+
}

src/webview/initial.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const nodes = [
1212
</>
1313
)
1414
},
15-
position: { x: 250, y: 0 }
15+
// position: { x: 250, y: 0 }
1616
},
1717
{
1818
id: "2",
@@ -23,7 +23,7 @@ export const nodes = [
2323
</>
2424
)
2525
},
26-
position: { x: 100, y: 100 }
26+
// position: { x: 100, y: 100 }
2727
},
2828
{
2929
id: "3",
@@ -34,7 +34,7 @@ export const nodes = [
3434
</>
3535
)
3636
},
37-
position: { x: 400, y: 100 },
37+
// position: { x: 400, y: 100 },
3838
style: {
3939
background: "#D6D5E6",
4040
color: "#333",
@@ -44,7 +44,7 @@ export const nodes = [
4444
},
4545
{
4646
id: "4",
47-
position: { x: 250, y: 200 },
47+
// position: { x: 250, y: 200 },
4848
data: {
4949
label: "Another default node"
5050
}
@@ -54,7 +54,7 @@ export const nodes = [
5454
data: {
5555
label: "Node id: 5"
5656
},
57-
position: { x: 250, y: 325 }
57+
// position: { x: 250, y: 325 }
5858
},
5959
{
6060
id: "6",
@@ -66,13 +66,13 @@ export const nodes = [
6666
</>
6767
)
6868
},
69-
position: { x: 100, y: 480 }
69+
// position: { x: 100, y: 480 }
7070
},
7171
{
7272
id: "7",
7373
type: "output",
7474
data: { label: "Another output node" },
75-
position: { x: 400, y: 450 }
75+
// position: { x: 400, y: 450 }
7676
}
7777
];
7878

0 commit comments

Comments
 (0)