@revodigital/complex-shapes

A package with some very useful fabricjs complex shapes, like table or other.

Usage no npm install needed!

<script type="module">
  import revodigitalComplexShapes from 'https://cdn.skypack.dev/@revodigital/complex-shapes';
</script>

README

Complex shapes

A set of useful complex shapes to use among with fabric.js

Fabric.js is awesome. It defines a very nice structure for managing a 2d canvas in javascript/typescript. The only problem with it, is that there aren't pre-build composite shapes, like tables. So we decided to solve this problem.

Pre-build composite shapes

complex-shapes comes with a complete set of composite shapes. One of them is the Table.

Fully customizable

All the shapes in this package can be modified according to your personal flavours. They provide lots of properties, useful for changing shape appearence or contents.

Future-ready

This package is written in typescript. It takes advantage of all the useful features of this language. When deploying, it is compiled into javascript and shipped to you. You don't need to install type definitions, they are included by default in this package.

Read-able code

The code inside this package is very read-able, fullfilled of comments and well refactored.