Add TrackDescriptor concept

This commit is contained in:
Vanilagy
2026-04-08 12:21:08 +02:00
parent b532714926
commit bee1518100
21 changed files with 1280 additions and 887 deletions
+4 -4
View File
@@ -959,12 +959,12 @@ export const validateRectangle = (rect: Rectangle, propertyPath: string) => {
}
};
export const asc = (value: number | null) => {
return value ?? Infinity; // nulls last
export const asc = (value: number | null | undefined) => {
return value ?? Infinity; // nulls and undefined last
};
export const desc = (value: number | null) => {
return -(value ?? -Infinity); // nulls last
export const desc = (value: number | null | undefined) => {
return -(value ?? -Infinity); // nulls and undefined last
};
export const prefer = (value: boolean) => {