+ @mousedown.prevent
+ @mouseup.prevent="inputMouseUp">
@@ -21,7 +22,7 @@
+ @mousedown.prevent="outputMouseDown">
×
@@ -67,19 +68,11 @@ export default {
type: Object,
default() {
return {
- centerX: 1024,
+ centerX: 0,
scale: 1,
- centerY: 140,
+ centerY: 0,
}
}
- },
- haveInput: {
- type: Boolean,
- default: true
- },
- haveOutput: {
- type: Boolean,
- default: true
}
},
data() {
@@ -98,6 +91,12 @@ export default {
left: this.options.centerX + this.x * this.options.scale + 'px', // remove: this.options.offsetLeft +
transform: `scale(${this.options.scale})`,
}
+ },
+ haveInput() {
+ return this.type !== "ingest"
+ },
+ haveOutput() {
+ return this.type !== "restreamer"
}
},
methods: {
@@ -115,30 +114,28 @@ export default {
handleMouseLeave() {
this.show.delete = false;
},
- outputMouseDown(e) {
+ outputMouseDown() {
this.$emit('linkingStart')
- e.preventDefault();
},
- inputMouseDown(e) {
- e.preventDefault();
- },
- inputMouseUp(e) {
+ inputMouseUp() {
this.$emit('linkingStop')
- e.preventDefault();
},
+ editProperties() {
+ this.$emit('update:data', {"text": "asd"});
+ }
}
}