Do not show invisible objects on bitmap

main
Boris Sekachev 6 years ago
parent 4da951a812
commit 80a07e593e

@ -916,6 +916,7 @@ export class CanvasViewImpl implements CanvasView, Listener {
ctx.fillStyle = 'black'; ctx.fillStyle = 'black';
ctx.fillRect(0, 0, width, height); ctx.fillRect(0, 0, width, height);
for (const state of states) { for (const state of states) {
if (state.hidden || state.outside) continue;
ctx.fillStyle = 'white'; ctx.fillStyle = 'white';
if (['rectangle', 'polygon'].includes(state.shapeType)) { if (['rectangle', 'polygon'].includes(state.shapeType)) {
const points = state.shapeType === 'rectangle' ? [ const points = state.shapeType === 'rectangle' ? [

Loading…
Cancel
Save