Static Functions
16 Dec 20251 minute to read
Root static functions of Pdfviewer Component
updateColorWithOpacity
Updates the alpha component of an RGBA color string to the specified opacity.
| Parameter | Type | Description |
|---|---|---|
| color | string |
The RGBA color string to modify, formatted as ‘rgba(r, g, b, a)’. |
| opacity | number |
The new opacity level to apply to the color, a number between 0 and 1. |
Returns string