File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,16 @@ export function generateColor() {
52
52
}
53
53
54
54
function intToUnsigned ( n : number ) {
55
- n |= 0 ; // Force to signed 32-bit integer
56
- return n < 0 ? n + 0x100000000 : n ;
55
+ n |= 0 // Force to signed 32-bit integer
56
+ return n < 0 ? n + 0x100000000 : n
57
57
}
58
58
59
59
export function intToHexRgb ( c : number | undefined ) {
60
- return c ? '#' + ( c & 0xFFFFFF ) . toString ( 16 ) . padStart ( 6 , '0' ) : '#000000' ;
60
+ return c ? '#' + ( c & 0xFFFFFF ) . toString ( 16 ) . padStart ( 6 , '0' ) : '#000000'
61
61
}
62
62
63
63
export function intToDisplayHexRgb ( c : number | undefined ) {
64
- return c ? '#' + intToUnsigned ( c ) . toString ( 16 ) . toUpperCase ( ) . padStart ( 6 , '0' ) : '#000000' ;
64
+ return c ? '#' + intToUnsigned ( c ) . toString ( 16 ) . toUpperCase ( ) . padStart ( 6 , '0' ) : '#000000'
65
65
}
66
66
67
67
export function htmlEncode ( str : string ) {
You can’t perform that action at this time.
0 commit comments