Skip to content

sprout-ai/annotator

Repository files navigation

Canvas with FabricJS

Experimenting with Fabric.js to manipulate canvas

Available scripts

npm run dev

Runs the app in the development mode Open http://localhost:3000/annotator

npm run build

Builds the app for production to the dist folder.

npm run preview

Builds the app for production and serves the dist folder. Open http://localhost:4173/annotator/

Custom fabric.min.js

http://fabricjs.com/build/

For building a smaller version of fabric.min.js. The following options are selected for only displaying rects in canvas and for interactions:

  • Text
  • Gestures
  • Animation
  • Object straightening
  • Interaction
  • fabric.Rect
  • fabric.Image