mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-09-07 05:14:42 +02:00
13 lines
1.5 KiB
Markdown
13 lines
1.5 KiB
Markdown
|
# libfabric
|
|||
|
|
|||
|
This package is a wrapper of the **Fabric.js** library v-4.4.0.
|
|||
|
|
|||
|
|
|||
|
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.
|
|||
|
|
|||
|
## Non-Technical Introduction to Fabric
|
|||
|
Fabric.js allows you to easily create simple shapes like rectangles, circles, triangles and other polygons or more complex shapes made up of many paths, onto the HTML <canvas> element on a webpage using JavaScript. Fabric.js will then allow you to manipulate the size, position and rotation of these objects with a mouse. It’s also possible to change some of the attributes of these objects such as their color, transparency, depth position on the webpage or selecting groups of these objects using the Fabric.js library. Fabric.js will also allow you to convert an SVG image into JavaScript data that can be used for putting it onto the <canvas> element.
|
|||
|
|
|||
|
More information on the library: [https://github.com/fabricjs/fabric.js](https://github.com/fabricjs/fabric.js)
|