Merge remote-tracking branch 'origin/main' into fix/1280

# Conflicts:
#	docs/CURRENT-STATE.md
#	src/layers/alpr/records.js
This commit is contained in:
Said Turksever committed 2026-10-23 12:09:46 +01:00
commit 445af0875b
325 files changed
+20500 -1424

No files matched your search

+3 -3
View File
@@ -1,12 +1,12 @@
import { normalizeDisplayText } from '../../data/displayText.js';
import { QUERY_LIMIT, QUERY_SNAP_DEGREES } from './policy.js';
export function textTag(value) {
function textTag(value) {
const t = normalizeDisplayText(value);
return t || null;
}
export function numTag(value) {
function numTag(value) {
// `Number('')` and `Number(' ')` are 0, not NaN — a blank or whitespace-only
// tag value must read as missing, never as a due-north bearing.
if (value == null) return null;
@@ -103,7 +103,7 @@ export function normalizeAlprNode(el) {
};
}
export function normalizeDirection(value) {
function normalizeDirection(value) {
const degrees = numTag(value);
return degrees != null && degrees >= 0 && degrees <= 360
? degrees % 360