Skip to content

Commit

Permalink
fix: fixed issues with links colors and themes, fixes #4841
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobruni committed Dec 4, 2022
1 parent 54a31df commit 34b570d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions demo/vanilla/views/themes.pug
Expand Up @@ -111,6 +111,9 @@ html(lang="en")
},
options: {
particles: {
links: {
color: "#ff0000"
},
shape: {
options: {
images: {
Expand All @@ -127,6 +130,9 @@ html(lang="en")
name: "image2",
options: {
particles: {
links: {
color: "#00ff00"
},
shape: {
options: {
images: {
Expand All @@ -145,6 +151,9 @@ html(lang="en")
},
fpsLimit: 120,
particles: {
links: {
enable: true
},
number: {
value: 30,
density: {
Expand Down
1 change: 1 addition & 0 deletions interactions/particles/links/src/Linker.ts
Expand Up @@ -69,6 +69,7 @@ class Linker extends ParticlesInteractorBase {
}

init(): void {
this.linkContainer.particles.linksColor = undefined;
this.linkContainer.particles.linksColors = new Map<string, IRgb | string | undefined>();
}

Expand Down
Binary file added websites/particles.js.org/images/WhatsApp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions websites/particles.js.org/images/WhatsApp.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 34b570d

Please sign in to comment.