| | |
| | | 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) { |
| | | case 0: |
| | | return '#d1edc4'; |
| | | return '#7AC5CD'; |
| | | case 1: |
| | | return '#E6E6FA'; |
| | | return '#95d475'; |
| | | case -1: |
| | | return '#dedfe0'; |
| | | return '#CDAF95'; |
| | | case 5: |
| | | return '#911005'; |
| | | } |
| | |
| | | function getRectColorb(state) { |
| | | switch (state) { |
| | | case 3: |
| | | return '#f8e3c5'; |
| | | return '#eebe77'; |
| | | case 4: |
| | | return '#F0F8FF'; |
| | | return '#CD6090'; |
| | | case 5: |
| | | return '#911005'; |
| | | } |