-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
Migrate from single size value to two dimensional values #5211
Conversation
GitHub actions yielded the following error. The command that failed is
Please note that some parts of the logs have been truncated for brevity. This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
GitHub actions yielded the following error. The command that failed is
Please note that some parts of the logs have been truncated for brevity. This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
Description
This PR migrates the tsParticles library from using a single size value for particles to using two dimensional values (width and height). This allows for the creation of irregular shapes like rectangles and ellipses instead of just squares and circles. The changes are made in the Particle class, ParticlesOptions class, collision formulas, and shape drawing methods.
Summary of Changes
Please review and merge this PR into the
dev
branch.Fixes #2261.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: