nextjs-whiteboard
v2.1.1
Published
This is a whiteboard for Nextjs. It is a simple whiteboard that allows you to draw on it. It is built using Nextjs.
Downloads
613
Readme
Nextjs Whiteboard
This is a whiteboard for Nextjs. It is a simple whiteboard that allows you to draw on it. It is built using Nextjs.
Why?
Cause I need a whiteboard to draw on website (not at else app or website)and right now using nextjs to develop website. So see not have a whiteboard in nextjs. so I opensource it and share with everyone :D
TOC
How to use?
- npm install nextjs-whiteboard
- import the component to your page
- use the whiteboard component
- enjoy drawing on the whiteboard :D
Features
- [ ] UI
- [ ] make ui docker
- [X] Base Pen
- [x] first Have pen can draw on whiteboard
- [X] change color of pen
- [X] change size of pen
- [X] Earser border are solid
- [X] cursor see the size of pen and color of pen
- [ ] Eraser
- [X] have eraser
- [X] Earser size
- [X] Earser border are dashed
- [ ] Earser like mac shake earser make more bigger
- [X] save the whiteboard
- [X] clear the whiteboard
- [ ] Shapes
- [ ] Line
- [ ] Circle
- [ ] Rectangle
- [ ] Triangle
- [ ] Polygon
- [ ] make modal to check you want to clear the drawing or not
- [ ] Background of whiteboard
- [ ] Background color
- [ ] Background Pattern (like dot, grid)
- [ ] Text
- [ ] Image
- [ ] Zoom
- [ ] Pan
- [ ] Select
- [ ] Cut
- [ ] Copy
- [ ] Paste
- [ ] Undo
- [ ] Redo
You are developer?
If you want build this project, you can follow this step, make this repo in your local and link to your nextjs project, not download from npm.
- clone this project
git clone https://github.com/yomisana/nextjs-whiteboard.git && cd nextjs-whiteboard
npm install && npm link && code .
- nextjs-whiteboard run
npm run dev
and keep this terminal open - create new or exist nextjs project and link nextjs-whiteboard to nextjs project
npm link nextjs-whiteboard
- nextjs project
npm run dev
- enjoy coding :D
when you out of this project
- nextjs-whiteboard run
npm unlink
- nextjs project
npm unlink nextjs-whiteboard
- and you can remove nextjs-whiteboard folder
Any idea?
If you have any idea or feature that you want to add to this whiteboard, feel free to open an issue or pull request. I will be happy to help you :D
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Copyright
© 2024, yomisana. All rights reserved.