diff --git a/src/app/Utils.ts b/src/app/Utils.ts index 8e1189f4..661f66c0 100644 --- a/src/app/Utils.ts +++ b/src/app/Utils.ts @@ -52,16 +52,16 @@ export function generateColor() { } function intToUnsigned(n: number) { - n |= 0; // Force to signed 32-bit integer - return n < 0 ? n + 0x100000000 : n; + n |= 0 // Force to signed 32-bit integer + return n < 0 ? n + 0x100000000 : n } export function intToHexRgb(c: number | undefined) { - return c ? '#' + (c & 0xFFFFFF).toString(16).padStart(6, '0') : '#000000'; + return c ? '#' + (c & 0xFFFFFF).toString(16).padStart(6, '0') : '#000000' } export function intToDisplayHexRgb(c: number | undefined) { - return c ? '#' + intToUnsigned(c).toString(16).toUpperCase().padStart(6, '0') : '#000000'; + return c ? '#' + intToUnsigned(c).toString(16).toUpperCase().padStart(6, '0') : '#000000' } export function htmlEncode(str: string) {