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

Adding ability to pass in shape options as a paramater to further configure the size and shape of individual particles, even passing in images! #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Larkenx
Copy link

@Larkenx Larkenx commented Sep 21, 2018

The only issue I've had so far is when I build the project, it appears to throw an UglifyJS error. I'm guessing maybe the spread operator isn't supported? Here's an example using the new options prop:

<vue-particles 
    shapeType="image" 
    :shapeOptions="{
          image: {
            src: 'static/heart.png',
            width: 40,
            height: 40
          }
        }"
    color="#d33838" :lineLinked="false"/>

image

…figure the size and shape of individual particles, even passing in images!
@Larkenx
Copy link
Author

Larkenx commented Sep 21, 2018

We may want to see if these changes can be integrated into #32

@blabut
Copy link

blabut commented Jan 1, 2020

Hi, I would love to use the custom shape option, is there any plan to integrate it? Thank you for the awesome work!

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

Successfully merging this pull request may close these issues.

2 participants