Skip to content

Commit

Permalink
fix: πŸ› added default filterSize, fixes the drop shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
afsalz committed Sep 15, 2023
1 parent c11c205 commit 0f14446
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/common/src/dotlottie-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ export class DotLottiePlayer {
this._activeStateId = options.activeStateId;
}

const { rendererSettings, ...optionsReset } = options || {};

this._animationConfig = {
loop: false,
autoplay: false,
Expand All @@ -235,8 +237,15 @@ export class DotLottiePlayer {
clearCanvas: true,
progressiveLoad: true,
hideOnTransparent: true,
filterSize: {
width: '200%',
height: '200%',
x: '-50%',
y: '-50%',
},
...rendererSettings,
},
...(options || {}),
...optionsReset,
};

if (options?.light) {
Expand Down

0 comments on commit 0f14446

Please sign in to comment.