mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Update button.vue (#5331)
This commit is contained in:
parent
ba83fa86f3
commit
8546a1ca67
1 changed files with 1 additions and 2 deletions
|
@ -64,8 +64,7 @@ export default Vue.extend({
|
||||||
methods: {
|
methods: {
|
||||||
onMousedown(e: MouseEvent) {
|
onMousedown(e: MouseEvent) {
|
||||||
function distance(p, q) {
|
function distance(p, q) {
|
||||||
const sqrt = Math.sqrt, pow = Math.pow;
|
return Math.hypot(p.x - q.x, p.y - q.y);
|
||||||
return sqrt(pow(p.x - q.x, 2) + pow(p.y - q.y, 2));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function calcCircleScale(boxW, boxH, circleCenterX, circleCenterY) {
|
function calcCircleScale(boxW, boxH, circleCenterX, circleCenterY) {
|
||||||
|
|
Loading…
Reference in a new issue