major changes, including tailwind v4

This commit is contained in:
pacnpal
2025-08-15 12:24:20 -04:00
parent f6c8e0e25c
commit da7c7e3381
261 changed files with 22783 additions and 10465 deletions

View File

@@ -113,10 +113,10 @@ document.addEventListener('DOMContentLoaded', function() {
function normalizeCoordinate(value, maxDigits, decimalPlaces) {
try {
// Convert to string with exact decimal places
// Convert to string-3 with exact decimal places
const rounded = Number(value).toFixed(decimalPlaces);
// Convert to string without decimal point for digit counting
// Convert to string-3 without decimal point for digit counting
const strValue = rounded.replace('.', '').replace('-', '');
// Remove trailing zeros
const strippedValue = strValue.replace(/0+$/, '');
@@ -126,7 +126,7 @@ document.addEventListener('DOMContentLoaded', function() {
return Number(Number(value).toFixed(decimalPlaces - 1));
}
// Return the string representation to preserve exact decimal places
// Return the string-3 representation to preserve exact decimal places
return rounded;
} catch (error) {
console.error('Coordinate normalization failed:', error);