| | |
| | | adjustedHeight = rect.height * 0.16; |
| | | adjustedWidtha = rect.width; |
| | | adjustedHeighta = rect.height; |
| | | newX = 5190 - (rect.yCoordinate + rect.width); |
| | | // newX = 5190 - (rect.yCoordinate + rect.width); |
| | | } else { |
| | | adjustedWidth = rect.height * 0.24; |
| | | adjustedHeight = rect.width * 0.16; |
| | | adjustedWidtha = rect.height; |
| | | adjustedHeighta = rect.width; |
| | | newX = 5190 - (rect.yCoordinate + rect.height); |
| | | // newX = 5190 - (rect.yCoordinate + rect.height); |
| | | } |
| | | return { |
| | | ...rect, |
| | |
| | | }); |
| | | } |
| | | function getRectColora(state) { |
| | | switch (state) { |
| | | switch (state) { |
| | | case 3: |
| | | return '#f8e3c5'; |
| | | return '#eebe77'; |
| | | case 4: |
| | | return '#F0F8FF'; |
| | | return '#CD6090'; |
| | | case 5: |
| | | return '#911005'; |
| | | } |