WIP: navigate to clicked area

This commit is contained in:
mvdbeek
2023-01-09 17:15:45 +01:00
parent db76227217
commit 4b201dd081
@@ -1,7 +1,7 @@
<template>
<div ref="overview" class="workflow-overview" :style="style" aria-hidden="true">
<div class="workflow-overview-body">
<svg width="100%" height="100%" :viewBox="viewBox">
<svg width="100%" height="100%" :viewBox="viewBox" @click="onClick">
<MinimapNode
class="mini-node"
:node="node"
@@ -130,5 +130,10 @@ export default {
return `${this.bounds.left} ${this.bounds.top} ${this.bounds.right} ${this.bounds.bottom}`;
},
},
methods: {
onClick(e) {
console.log("got click", e);
},
},
};
</script>