svelthree icon indicating copy to clipboard operation
svelthree copied to clipboard

Move more component logic into modules

Open vatro opened this issue 3 years ago • 0 comments

During refactoring of the Mesh component, certain parts / blocks of logic became much larger, breaking 1.100 lines of code, that's too much / frustrating to review.

Currently, I'm generating the code of most of the components (except Canvas, WebGLRenderer and SvelthreeInteraction). While this made things much better concerning development speed / maintenance, the generator (private repo) already got too complicated / big with all the logic managed / generated via conditional string literals etc. A lot of functionality already lives inside utilities etc., still, the amount of generated code, logic / functionality in modules and the resulting components' bodies code amount is currently out of balance.

vatro avatar Jun 22 '22 10:06 vatro