chore: fix some lints automatically (#8788)
* chore: fix some lints automatically Fixed lints that were automatically fixable with `eslint --fix`. * fix type * workaround for empty interface lint
This commit is contained in:
@ -96,11 +96,11 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function calcCircleScale(boxW, boxH, circleCenterX, circleCenterY) {
|
||||
const origin = {x: circleCenterX, y: circleCenterY};
|
||||
const dist1 = distance({x: 0, y: 0}, origin);
|
||||
const dist2 = distance({x: boxW, y: 0}, origin);
|
||||
const dist3 = distance({x: 0, y: boxH}, origin);
|
||||
const dist4 = distance({x: boxW, y: boxH }, origin);
|
||||
const origin = { x: circleCenterX, y: circleCenterY };
|
||||
const dist1 = distance({ x: 0, y: 0 }, origin);
|
||||
const dist2 = distance({ x: boxW, y: 0 }, origin);
|
||||
const dist3 = distance({ x: 0, y: boxH }, origin);
|
||||
const dist4 = distance({ x: boxW, y: boxH }, origin);
|
||||
return Math.max(dist1, dist2, dist3, dist4) * 2;
|
||||
}
|
||||
|
||||
|
@ -234,7 +234,7 @@ onMounted(() => {
|
||||
}
|
||||
fixed.value = (type.value === 'drawer') || (getFixedContainer(props.src) != null);
|
||||
|
||||
await nextTick()
|
||||
await nextTick();
|
||||
|
||||
align();
|
||||
}, { immediate: true, });
|
||||
|
@ -63,7 +63,7 @@ const setPosition = () => {
|
||||
}
|
||||
|
||||
return [left, top];
|
||||
}
|
||||
};
|
||||
|
||||
const calcPosWhenBottom = () => {
|
||||
let left: number;
|
||||
@ -84,7 +84,7 @@ const setPosition = () => {
|
||||
}
|
||||
|
||||
return [left, top];
|
||||
}
|
||||
};
|
||||
|
||||
const calcPosWhenLeft = () => {
|
||||
let left: number;
|
||||
@ -105,7 +105,7 @@ const setPosition = () => {
|
||||
}
|
||||
|
||||
return [left, top];
|
||||
}
|
||||
};
|
||||
|
||||
const calcPosWhenRight = () => {
|
||||
let left: number;
|
||||
@ -126,7 +126,7 @@ const setPosition = () => {
|
||||
}
|
||||
|
||||
return [left, top];
|
||||
}
|
||||
};
|
||||
|
||||
const calc = (): {
|
||||
left: number;
|
||||
@ -172,7 +172,7 @@ const setPosition = () => {
|
||||
}
|
||||
|
||||
return null as never;
|
||||
}
|
||||
};
|
||||
|
||||
const { left, top, transformOrigin } = calc();
|
||||
el.value.style.transformOrigin = transformOrigin;
|
||||
|
Reference in New Issue
Block a user