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
@ -162,10 +162,12 @@ export function renderScene(
|
|||||||
if (selectedElements.length === 1 && selectedElements[0].type !== "text") {
|
if (selectedElements.length === 1 && selectedElements[0].type !== "text") {
|
||||||
applyZoom(context);
|
applyZoom(context);
|
||||||
context.translate(sceneState.scrollX, sceneState.scrollY);
|
context.translate(sceneState.scrollX, sceneState.scrollY);
|
||||||
|
context.fillStyle = "#fff";
|
||||||
const handlers = handlerRectangles(selectedElements[0], sceneState.zoom);
|
const handlers = handlerRectangles(selectedElements[0], sceneState.zoom);
|
||||||
Object.values(handlers)
|
Object.values(handlers)
|
||||||
.filter(handler => handler !== undefined)
|
.filter(handler => handler !== undefined)
|
||||||
.forEach(handler => {
|
.forEach(handler => {
|
||||||
|
context.fillRect(handler[0], handler[1], handler[2], handler[3]);
|
||||||
context.strokeRect(handler[0], handler[1], handler[2], handler[3]);
|
context.strokeRect(handler[0], handler[1], handler[2], handler[3]);
|
||||||
});
|
});
|
||||||
resetZoom(context);
|
resetZoom(context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user