This repo allows you to select portions of the underlying image.
yarn
yarn start
- Typescript
- Antd: It has the inbuilt popovers and provisions for layout.
- react-region-select
Region-Select library is a mod on React Image Crop. This library fits our use-case perfectly, because it has a customizable select portion. It enables actions on the select portion, has inbuilt handling. Converted this library from js to tsx. Next step would be to push my changes as a pull request to the repo, so a maintainable upstream can be created.
It has 3 main components
Sidebar(ToolBar) ObjectList(Right Sidebar) ImageOverlay(Base Logic)
Since ImageOverlay contains all the underlying logic and binds the rest together. The tree is like the following:
App
|
ImageOverlay
| |
SideBar ObjectList