fix: set link icon opacity based on element opacity (#10693)
* Set global alpha for drawing elements * Adjust opacity calculation for canvas rendering * lint
This commit is contained in:
@@ -221,6 +221,7 @@ const renderLinkIcon = (
|
||||
|
||||
linkCanvasCacheContext.restore();
|
||||
}
|
||||
context.globalAlpha = element.opacity / 100;
|
||||
context.drawImage(linkCanvas, x - centerX, y - centerY, width, height);
|
||||
context.restore();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user