-
{{ name }} {{typeName(type)}}
-
+
-
Outputs:
-
-
{{ name }} {{typeName(type)}}
-
+
+ {{node.name}}
+
+
@@ -32,6 +59,14 @@ export default {
Value,
},
props: {
+ selectedInput: {
+ type: Object,
+ default: null
+ },
+ selectedOutput: {
+ type: Object,
+ default: null
+ },
node: {
type: Object,
required: true,
@@ -40,7 +75,73 @@ export default {
methods: {
typeName(type) {
return Array.isArray(type) ? 'Option' : type;
- }
+ },
+ outputPositions() {
+ const outs = {};
+ for (let out in this.node.out.variables) {
+ outs[this.node.out[out].id] = {
+ rect: this.$refs[`out-${out}`][0].getBoundingClientRect(),
+ }
+ }
+ return outs;
+ },
+ inputPositions() {
+ const ins = {};
+ for (let i in this.node.in.variables) {
+ ins[this.node.in[i].id] = {
+ output: this.node.in[i].output,
+ rect: this.$refs[`in-${i}`][0].getBoundingClientRect(),
+ }
+ }
+ return ins;
+ },
}
}
+
diff --git a/ui/Components/Value/Image.vue b/ui/Components/Value/Image.vue
index 9a5199b..84fabd1 100644
--- a/ui/Components/Value/Image.vue
+++ b/ui/Components/Value/Image.vue
@@ -1,11 +1,13 @@
-
+
+
+
+
+
+
+
diff --git a/ui/Components/Value/Select.vue b/ui/Components/Value/Select.vue
index d411b89..9be22f6 100644
--- a/ui/Components/Value/Select.vue
+++ b/ui/Components/Value/Select.vue
@@ -11,7 +11,7 @@
export default {
props: {
type: {
- type: Array,
+ type: null,
required: true,
},
value: {
diff --git a/ui/Components/Value/String.vue b/ui/Components/Value/String.vue
index a0b8acb..94e0b62 100644
--- a/ui/Components/Value/String.vue
+++ b/ui/Components/Value/String.vue
@@ -1,5 +1,12 @@
-
+