Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
This commit is contained in:
@@ -52,7 +52,7 @@ export function AngleSelector({
|
||||
|
||||
return Math.round(angle);
|
||||
},
|
||||
[value]
|
||||
[value],
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -67,7 +67,7 @@ export function AngleSelector({
|
||||
const newAngle = calculateAngle(e.clientX, e.clientY);
|
||||
onChange(newAngle);
|
||||
},
|
||||
[disabled, calculateAngle, onChange]
|
||||
[disabled, calculateAngle, onChange],
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -79,7 +79,7 @@ export function AngleSelector({
|
||||
const newAngle = calculateAngle(e.clientX, e.clientY);
|
||||
onChange(newAngle);
|
||||
},
|
||||
[isDragging, disabled, calculateAngle, onChange]
|
||||
[isDragging, disabled, calculateAngle, onChange],
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -90,7 +90,7 @@ export function AngleSelector({
|
||||
}, []);
|
||||
|
||||
// Calculate line endpoint position
|
||||
const lineLength = (size / 2) - 8;
|
||||
const lineLength = size / 2 - 8;
|
||||
const radians = ((value - 90) * Math.PI) / 180;
|
||||
const lineX = Math.cos(radians) * lineLength;
|
||||
const lineY = Math.sin(radians) * lineLength;
|
||||
@@ -160,7 +160,7 @@ export function AngleSelector({
|
||||
{/* Cardinal direction markers */}
|
||||
{[0, 90, 180, 270].map((deg) => {
|
||||
const markerRadians = ((deg - 90) * Math.PI) / 180;
|
||||
const markerDist = (size / 2) - 3;
|
||||
const markerDist = size / 2 - 3;
|
||||
const markerX = Math.cos(markerRadians) * markerDist;
|
||||
const markerY = Math.sin(markerRadians) * markerDist;
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user