DanielMartinus / Konfetti

Celebrate more with this lightweight confetti particle system 🎊
ISC License
3.19k stars 301 forks source link

Angle, Spread, Position classes are unstable #317

Open Nek-12 opened 1 year ago

Nek-12 commented 1 year ago

Angle, Spread, Position classes are unstable because they are a class family that Compose does not recognize as immutable.

Solution:

  1. Make Spread, Angle objects instead of classes
  2. Mark Position as @Immutable and migrate to sealed interface
  3. Mark Party as @Immutable to prevent future issues with modularization