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:
Jed Fox 2020-03-09 16:01:29 -04:00 committed by GitHub
parent 5dadbcdcd5
commit 30903fbe04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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);