Skip to content

pakholeung37/fabricR

Repository files navigation

FabricR

FabricR is a rewritten repo. Orgin repo: fabric.js.

Fabric.js is a framework that makes it easy to work with HTML5 canvas element. It is an interactive object model on top of canvas element. It is also an SVG-to-canvas parser.

Using Fabric.js, you can create and populate objects on canvas; objects like simple geometrical shapes — rectangles, circles, ellipses, polygons, or more complex shapes consisting of hundreds or thousands of simple paths. You can then scale, move, and rotate these objects with the mouse; modify their properties — color, transparency, z-index, etc. You can also manipulate these objects altogether — grouping them with a simple mouse selection.

Goals

  • modern frontend workflow (rollup + eslint + prettier + babel)
  • migrate to esm
  • tree shaking
  • modern es6+ syntax (especially class)
  • heavy utils external
  • plugin system
  • excellent performance
  • typescript support
  • migrate test framework to jest
  • independent fabric config