Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default params always applied #2

Open
ninesalt opened this issue Aug 5, 2017 · 5 comments
Open

Default params always applied #2

ninesalt opened this issue Aug 5, 2017 · 5 comments

Comments

@ninesalt
Copy link

ninesalt commented Aug 5, 2017

I'm trying to overwrite the default params object but nothing I try seems to be working. Even when I change the code sample you have in your example, nothing changes.

        this.myParams = {

                    particles: {
                        number: {
                            value: 2,    //changed to 2 instead of 200
                        },

                        color: {
                            value: '#fff000'  //changed color
                        },
                        shape: {
                            type: 'triangle',
                        },
        	    }
        	};
@sagarkaurav
Copy link

@Swailem95 try this
<particles [params]="myParams" [style]="myStyle" [width]="width" [height]="height"></particles>

@asfo
Copy link

asfo commented Dec 20, 2017

I was able to change it to only particles param, if I try to change the interactivity params doesn't works.

this.particleParams = {
      'particles': {
        'number': {
          'value': 100,
        },
        'color': {
          'value': '#FFF'
        },
        'shape': {
          'type': 'circle',
        },
      },
      'interactivity': {
        'onhover': {
          'enable': true,
          'mode': 'bubble'
        }
      }
    };

@dawn88set
Copy link

in order to fix this you need to overwrite the position css .
try something like this :
/deep/.particles-container {
position: inherit!important;
}

@cloudyape
Copy link

@dawn88set , sorry still the same :-(

@noahch
Copy link

noahch commented Mar 28, 2019

You need to wrap onhover in events. e.g.

interactivity: {
        events: {
          onhover: {
            enable: false
          }
        }
     }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants