hunkim98 / dotting

Dotting is a pixel art editor component library for react
https://hunkim98.github.io/dotting/
MIT License
43 stars 12 forks source link

Create an importable utilities file for separating internal functions and external functions #82

Open hunkim98 opened 1 year ago

hunkim98 commented 1 year ago

Recently, during the PR conversation in #79, @Lee-Si-Yoon has suggested that we create an importable utilities file where we store external functions that do not particularly pertain to using Dotting as an editor. An example of such external function would be downloadImage. Instead of putting that downloadImage as a innate function inside Dotting that should be imported through connecting a hook, we could change this to allow users to simple import that downloadImage function and call it on DottingData.

Currently it seems that downloadImage is the only external function we need to care about.

This issue has to do with refactoring rather than implementing a logic. If there is anyone who would like to try this, please feel free to contact me.