mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-09-22 19:46:39 +00:00
Remove crop area info
This commit is contained in:
parent
163422407e
commit
0bd7e779ee
@ -124,13 +124,6 @@ const CropSettings = ({ parameters, disabled = false }: CropSettingsProps) => {
|
||||
}
|
||||
};
|
||||
|
||||
// Calculate crop percentage
|
||||
const cropPercentage = useMemo(() => {
|
||||
if (!pdfBounds) return 100;
|
||||
const totalArea = pdfBounds.actualWidth * pdfBounds.actualHeight;
|
||||
const cropAreaSize = cropArea.width * cropArea.height;
|
||||
return Math.round((cropAreaSize / totalArea) * 100);
|
||||
}, [cropArea, pdfBounds]);
|
||||
|
||||
if (!selectedStub || !pdfBounds) {
|
||||
return (
|
||||
@ -197,12 +190,6 @@ const CropSettings = ({ parameters, disabled = false }: CropSettingsProps) => {
|
||||
</Box>
|
||||
</Center>
|
||||
|
||||
{/* Crop Info */}
|
||||
<Group justify="center" gap="lg">
|
||||
<Text size="xs" color="dimmed">
|
||||
{t("crop.info.percentage", "Area: {{percentage}}%", { percentage: cropPercentage })}
|
||||
</Text>
|
||||
</Group>
|
||||
</Stack>
|
||||
|
||||
{/* Manual Coordinate Input */}
|
||||
|
Loading…
x
Reference in New Issue
Block a user