Skip to content

Commit

Permalink
Merge branch 'main' of github.com:le5le-com/meta2d.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ananzhusen committed Sep 20, 2024
2 parents 6e301fb + 575700d commit cd17b9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/canvas/canvasTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ export class CanvasTemplate {
if (background) {
ctx.save();
ctx.fillStyle = background;
ctx.globalAlpha = this.store.data.globalAlpha ?? this.store.options.globalAlpha;
if (width && height) {
ctx.globalAlpha =
this.store.data.globalAlpha ?? this.store.options.globalAlpha;
ctx.shadowOffsetX = this.store.options.shadowOffsetX;
ctx.shadowOffsetY = this.store.options.shadowOffsetY;
ctx.shadowBlur = this.store.options.shadowBlur;
Expand Down

0 comments on commit cd17b9f

Please sign in to comment.