mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fill the resize handles with white so they are visible on dark b… (#894)
* Fill the resize handles with white so they are visible on dark backgrounds * revert package-lock.json Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
5dadbcdcd5
commit
30903fbe04
1 changed files with 2 additions and 0 deletions
|
@ -162,10 +162,12 @@ export function renderScene(
|
|||
if (selectedElements.length === 1 && selectedElements[0].type !== "text") {
|
||||
applyZoom(context);
|
||||
context.translate(sceneState.scrollX, sceneState.scrollY);
|
||||
context.fillStyle = "#fff";
|
||||
const handlers = handlerRectangles(selectedElements[0], sceneState.zoom);
|
||||
Object.values(handlers)
|
||||
.filter(handler => handler !== undefined)
|
||||
.forEach(handler => {
|
||||
context.fillRect(handler[0], handler[1], handler[2], handler[3]);
|
||||
context.strokeRect(handler[0], handler[1], handler[2], handler[3]);
|
||||
});
|
||||
resetZoom(context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue