paytonshaltis / freighter

🚂 Freighter is a highly-customizable HTML carousel library featuring a number of dynamic properties affecting carousel items and transitions. Most prominently, it gives complete control over the resizing method (for responsive layouts) as well as the wrapping method (for content display).
https://paytonshaltis.github.io/freighter
MIT License
1 stars 0 forks source link

Review code and possibly refactor / streamline. #54

Closed paytonshaltis closed 1 year ago

paytonshaltis commented 1 year ago

The code in Carousel.ts is starting to get quite long and even a little messy. Should really go ahead and look through the entire file and organize what can be organized, potentially moving some lesser-used and larger methods out into some utility folder. Variable names, method calls, and comments need to be more consistent in order to increase the longevity of the project.

For example, many of the styling and configuration methods can likely be moved into their own designated files. This removes the one-time methods from clogging up most of the class's implementation file.