Splitting background code from frontend code #226
Replies: 1 comment
-
Yes i think so, but should enhance some key points adding robustness to the code.
Yes i know the problem. I would give an alternative to the developer. But i'm not sure if you can remove all the references.
i agree with you this is one of my goal. |
Beta Was this translation helpful? Give feedback.
-
Hi! :)
well, i've been using jsartoolkit5 for my project.. and jsartoolkit5 is agnostic to any frontend HTML code.. I think arnft should go on that direction too..
I mean i'm developing some code where the ImageData for instances is handled by the upper component, and it needs to be fed to arnft. Also I don't think that is a good approach to references to the DOM in an ecmascript library!
Also a cool solution/idea would be to use dependency injection. For example if we use dependency injection, i could easily replace the CameraViewRenderer with my own class! :)
Beta Was this translation helpful? Give feedback.
All reactions