(type: string)
| 101 | } |
| 102 | |
| 103 | function fixWidth(type: string): number { |
| 104 | switch (type) { |
| 105 | case 'bubble': |
| 106 | return 300; |
| 107 | case 'icon': |
| 108 | return 50; |
| 109 | case 'avatar': |
| 110 | return 300; |
| 111 | case 'tag': |
| 112 | return 100; |
| 113 | case 'text': |
| 114 | return 150; |
| 115 | case 'table': |
| 116 | return 700; |
| 117 | case 'imgCard': |
| 118 | return 400; |
| 119 | case 'listAnimation': |
| 120 | return 1800; |
| 121 | case 'listAndDetailsAnimation': |
| 122 | return 1700; |
| 123 | default: |
| 124 | return 400; |
| 125 | } |
| 126 | } |
| 127 | function fixHeight(type: string): number { |
| 128 | switch (type) { |
| 129 | case 'bubble': |