(rgbaColor)
| 285 | * @return {string} |
| 286 | */ |
| 287 | export function removeAlphaFromColor(rgbaColor) { |
| 288 | return rgbaColor.replace( |
| 289 | /\(([^,]+),([^,]+),([^,)]+),[^)]+\)/g, |
| 290 | '($1,$2,$3, 1)' |
| 291 | ); |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * Gets the computed style of the element. The helper is necessary to enforce |