Skip to content
Snippets Groups Projects
Commit 15f9bd3f authored by Tadeusz Miesiąc's avatar Tadeusz Miesiąc
Browse files

fix(removed todo.txt): file delete

parent cbaaed64
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!78Resolve MIN-189 "/display general overlays"
Pipeline #83391 passed
/* eslint-disable no-magic-numbers */
import { convertDecimalToHex } from './convertDecimalToHex';
describe('convertDecimalToHex - util', () => {
import { convertDecimalToHexColor } from './convertDecimalToHex';
describe('convertDecimalToHexColor - util', () => {
it('should convert small decimal', () => {
expect(convertDecimalToHex(57)).toEqual('#000039');
expect(convertDecimalToHex(0)).toEqual('#000000');
expect(convertDecimalToHexColor(57)).toEqual('#000039');
expect(convertDecimalToHexColor(0)).toEqual('#000000');
});
it('should convert negative decimal', () => {
expect(convertDecimalToHex(-3342388)).toEqual('#ccffcc');
expect(convertDecimalToHex(-750)).toBe('#fffd12');
expect(convertDecimalToHexColor(-3342388)).toEqual('#ccffcc');
expect(convertDecimalToHexColor(-750)).toBe('#fffd12');
});
});
......@@ -2,7 +2,7 @@ const HEX_BASE_NUMBER = 16;
const WHITE_HEX = 0xffffff;
const EXPECTED_HEX_CHARS_NUMBER = 6;
export const convertDecimalToHex = (value: number): string => {
export const convertDecimalToHexColor = (value: number): string => {
// eslint-disable-next-line no-bitwise
const trimmedValue = value & WHITE_HEX;
let colorStr = trimmedValue.toString(HEX_BASE_NUMBER);
......
- poinformować zespół ze w czw się spóźnię
- Check adrian PRs
- ADD ALPHA to hex color
- render many squares
- include case with rgb and value fields
- create store, add dummy data
- on button click display dummy data
- exclude rendering reaction for it
- push PR
- Fetch data, organise structure for many overlays and turning on and off
- add few overlays for element
- push PR
- add reaction overlays
- push PR
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment