Skip to content

Commit

Permalink
[#7] Fixed export image for hidden layer (#8)
Browse files Browse the repository at this point in the history
* [#7] Fixed export image for hidden layer

* updated requested changes
  • Loading branch information
shalu-tulsyan authored Sep 25, 2021
1 parent 4112dfc commit fd5eeb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/base/src/core/layer-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ class LayerManager {
exportCanvas.width = this.dimension;

const ctx = exportCanvas.getContext('2d');
this.layerStack.forEach((layer) => {

this.layerStack.filter((layer)=>!layer.hidden).forEach((layer) => {
ctx?.drawImage(layer.pixelCanvas.canvas, 0, 0, this.dimension, this.dimension);
});

Expand Down

0 comments on commit fd5eeb3

Please sign in to comment.