You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<div class="home">
|
|
|
|
<img alt="Vue logo" src="../assets/logo.png">
|
|
|
|
<graph ref="graph" />
|
|
|
|
|
|
|
|
<div id="controls">
|
|
|
|
<div>
|
|
|
|
Hold <pre>ctrl</pre> to label patterns <br/>
|
|
|
|
Holde key <pre>D</pre> to delete patterns
|
|
|
|
</div>
|
|
|
|
<analytic-status />
|
|
|
|
|
|
|
|
<button @click="clearOrLabeling"> clear all labeling </button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue';
|
|
|
|
import Graph from '@/components/Graph.vue';
|
|
|
|
import AnalyticStatus from '@/components/AnlyticsStatus.vue';
|
|
|
|
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
name: 'Home',
|
|
|
|
components: {
|
|
|
|
Graph,
|
|
|
|
AnalyticStatus
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
clearOrLabeling() {
|
|
|
|
this.$refs.graph.rerender();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
pre {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
</style>
|