An open API service indexing awesome lists of open source software.

https://github.com/mairfarooq21/canvaslab

Canvas Lab is an interactive application that allows users to create sketches and diagrams on a digital canvas.
https://github.com/mairfarooq21/canvaslab

css reactjs roughjs

Last synced: 5 months ago
JSON representation

Canvas Lab is an interactive application that allows users to create sketches and diagrams on a digital canvas.

Awesome Lists containing this project

README

        

## CanvasLab

CanvasLab is a drawing application using React and TypeScript, incorporating Rough.js to achieve a sketchy, hand-drawn aesthetic. This side project was created for learning purposes, and while the app is not responsive, I concentrated on enhancing its functionalities, as I already have numerous responsive projects in my portfolio.

## Technologies

- React.js
- CSS
- TypeScript
- Rough.js

## Features

**Choose a Tool**: You have pencils, lines, rectangles, and text tools. Pick one and start creating.

**Draw and Move**: Click and drag on the canvas to draw. To move something, select it and drag it to a new spot. Also, resize elements by dragging the corners. Resizing only works on rectangles or lines.

**Edit Text**: Click on the canvas and start typing to add text to your drawings. You can also edit existing text.

**Zoom**: Use Ctrl + Scroll or click on the buttons to zoom in for detail or out to see the whole picture.

**Pan**: Hold the Space bar and drag or use the middle mouse button to move around the whiteboard canvas.

## Running the Project

To run the project in your local environment, follow these steps:

1. Clone the repository to your local machine.
2. Run `npm install` or `yarn` in the project directory to install the required dependencies.
3. Run `npm run start` or `yarn start` to get the project started.
4. Open [http://localhost:5173](http://localhost:5173) (or the address shown in your console) in your web browser to view the app.