The code of whiteboard.js is quite messy – some stuff could and should be extracted into components & there’s some unused code lying around which should either be completed & used (like automatically setting canvas width on resize) or removed. Constants should also be extracted into an enum/settings/data component. Actually, it might be smart to do this for the whole app – WindowManager is way too long as well.
The code of whiteboard.js is quite messy – some stuff could and should be extracted into components & there’s some unused code lying around which should either be completed & used (like automatically setting canvas width on resize) or removed. Constants should also be extracted into an enum/settings/data component. Actually, it might be smart to do this for the whole app – WindowManager is way too long as well.