Skip to content

Commit

Permalink
resolve the "invalidStateError" from main repo
Browse files Browse the repository at this point in the history
after some research I found this is a bug in Firefox due to
svg images requiring a width/height attribute for canvas drawings

closes simeydotme/sparticles#2
  • Loading branch information
simeydotme committed Sep 26, 2020
1 parent 3ea457a commit 2cb3c01
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions public/img/leaf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/stores/presets.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ export const presets = readable({
maxSize: 42,
style: "fill",
bounce: false,
drift: 5,
drift: 8,
glow: 0,
twinkle: false,
color: ["#eb8065", "#fac5ad", "#52382e"],
shape: "image",
imageUrl: "https://image.flaticon.com/icons/svg/692/692052.svg"
imageUrl: "./img/leaf.svg"
},
"Abyss": {
composition:"source-over",
Expand Down

0 comments on commit 2cb3c01

Please sign in to comment.