Skip to content

onceup/fabricjs-history

Repository files navigation

Fabric.js Drawing Application

A modern drawing application built with Fabric.js, React, and TypeScript. This project provides an example implementation of undo/redo history management for Fabric.js canvas, demonstrating how to track and manage canvas state changes effectively.

Tech Stack

Getting Started

Prerequisites

  • Node.js (LTS version recommended)
  • pnpm (Package manager)

Installation

  1. Clone the repository
  2. Install dependencies:
    pnpm install

Development

Run the development server:

pnpm dev

Build

Create a production build:

pnpm build

Preview the production build:

pnpm preview

Features

  • Canvas-based drawing interface
  • Comprehensive undo/redo history management for canvas operations
  • Brush with support of Perfect Freehand
  • Responsive design
  • Modern UI with Tailwind CSS
  • Type-safe development with TypeScript

Project Structure

  • /src - Source code
    • /components - Reusable React components
    • /features - Feature-specific code
    • /entities - Entity definitions and types
    • /lib - Utility functions and helpers
    • /shared - Shared resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published