mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-29 02:21:41 +00:00
* Rebrand UI and increase responsiveness * Fix typo in PipelineViews and SettingsViews directory name * Inset FPS indicator in stream preview * Rebrand favicon
55 lines
1.1 KiB
Vue
55 lines
1.1 KiB
Vue
<template>
|
|
<div>
|
|
<v-row
|
|
align="center"
|
|
justify="start"
|
|
>
|
|
<v-col
|
|
style="padding-right:0"
|
|
:cols="3"
|
|
>
|
|
<v-btn
|
|
small
|
|
color="#ffd843"
|
|
@click="takePoint"
|
|
>
|
|
Take Point
|
|
</v-btn>
|
|
</v-col>
|
|
<v-col>
|
|
<v-btn
|
|
small
|
|
color="yellow darken-3"
|
|
@click="clearPoint"
|
|
>
|
|
Clear Point
|
|
</v-btn>
|
|
</v-col>
|
|
</v-row>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "SingleCalibration",
|
|
props: ['rawPoint'],
|
|
methods: {
|
|
clearPoint() {
|
|
this.handleInput('point', []);
|
|
this.$emit('update');
|
|
},
|
|
takePoint() {
|
|
if (this.rawPoint[0] && this.rawPoint[1]) {
|
|
this.handleInput('point', this.rawPoint);
|
|
this.$emit('update');
|
|
} else {
|
|
this.$emit('snackbar', "No target found");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style> |