Skip to content

πŸš€ Create cool graphics with our Tailwind & React βš›οΈ drawing app! Use Three.js 🌐, EaselJS 🎨, Vite ⚑, TypeScript πŸ”§. Easily draw shapes, move them around, and see them in 3D! Great for developers who want to explore their creativity! ✨

Notifications You must be signed in to change notification settings

mustafacagri/react-threejs-easeljs-drawing-app

Repository files navigation

🌟 React - ThreeJS - EaselJS Drawing App 🎨

Welcome to the React-ThreeJS EaselJS Drawing App – a powerful tool for creating 2D and 3D visualizations! This app covers you whether you're looking to draw, manipulate shapes, or view objects in a 3D scene. Let's unleash your creativity! 🌐✨ This is the perfect boilerplate to kickstart your drawing projects with React, ThreeJS, and EaselJS! πŸš€

πŸŽ₯ Demo Video

react.threejs.easeljs.drawing-app.demo.mp4

🌍 Live Demo

https://react-threejs-easeljs.web.app/

🎯 Key Features

  • 🎨 Draw Shapes: Draw rectangles, circles, lines, and custom paths effortlessly with a click-and-drag interface.
  • βœ‹ Shape Manipulation: Move, drag, and delete shapes as needed. Shapes adjust in real time for a smooth experience!
  • 🌐 3D Viewer: Toggle between 2D and view-only 3D mode to see your drawings come to life in a new dimension.
  • 🎨 Random Colors: Each shape you create is assigned a random stroke and fill color.
  • ⚑ Real-Time Updates: Watch your canvas update instantly as you interact with shapes.
  • ⌨️ Keyboard Support: Delete selected shapes using the Delete or Backspace keys for quick editing.

πŸ› οΈ Tech Stack

This project is built using modern technologies:

  • React βš›οΈ
  • Three.js 🌐
  • EaselJS 🎨
  • Vite ⚑
  • Lodash πŸ› οΈ
  • TypeScript πŸ”§
  • Firebase πŸ”₯
  • SonarCloud πŸ§ͺ

πŸ“¦ Dependencies

The project relies on several key libraries:

React: A library for building user interfaces. Three.js: A powerful 3D engine for rendering the 3D view mode. EaselJS: A library for drawing and manipulating 2D shapes. Vite: A fast build tool for modern web development. Lodash: A utility library for working with arrays, objects, and more.

πŸš€ Getting Started

To start the project locally, fork the repo and follow these steps:

1. 🍴 Fork the repository
2. πŸ“₯ Clone your forked repository
3. πŸ› οΈ Run `yarn install` to install dependencies
4. πŸš€ Run `yarn dev` to start the local development server

The app will run on http://localhost:5173.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default tseslint.config({
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname,
    },
  },
})
  • Replace tseslint.configs.recommended to tseslint.configs.recommendedTypeChecked or tseslint.configs.strictTypeChecked
  • Optionally add ...tseslint.configs.stylisticTypeChecked
  • Install eslint-plugin-react and update the config:
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
  // Set the react version
  settings: { react: { version: '18.3' } },
  plugins: {
    // Add the react plugin
    react,
  },
  rules: {
    // other rules...
    // Enable its recommended rules
    ...react.configs.recommended.rules,
    ...react.configs['jsx-runtime'].rules,
  },
})

πŸ‘Ύ How can I contribute?

  • ⭐ Star the repository
  • πŸ› οΈ Submit pull requests, report bugs, or suggest features

πŸ“¬ Get in Touch

Feel free to reach out if you have any questions or need help:

Made with ❀️ in πŸ“ Istanbul, using React βš›οΈ, Three.js 🌐, EaselJS 🎨, TypeScript πŸ”§, Vite ⚑, and Lodash πŸ› οΈ!

About

πŸš€ Create cool graphics with our Tailwind & React βš›οΈ drawing app! Use Three.js 🌐, EaselJS 🎨, Vite ⚑, TypeScript πŸ”§. Easily draw shapes, move them around, and see them in 3D! Great for developers who want to explore their creativity! ✨

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published