Skip to content

Commit b8780fa

Browse files
committed
fix(Background): remove border of BelowLayer(just add extra space to fill in Background)
1 parent d7c5ee0 commit b8780fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/canvas/layers/belowLayer/Background.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export class Background extends Component<TComponentProps, TBackgroundState, TBe
2626
const cameraState = this.context.camera.getCameraState();
2727
this.context.ctx.fillStyle = this.context.colors.canvas.belowLayerBackground;
2828
this.context.ctx.fillRect(
29-
-cameraState.relativeX,
30-
-cameraState.relativeY,
31-
cameraState.relativeWidth,
32-
cameraState.relativeHeight
29+
-cameraState.relativeX - 10,
30+
-cameraState.relativeY - 10,
31+
cameraState.relativeWidth + 20,
32+
cameraState.relativeHeight + 20
3333
);
3434

3535
this.context.ctx.lineWidth = this.context.camera.limitScaleEffect(3, 15);

0 commit comments

Comments
 (0)