Getting started
Installation
Section titled “Installation”Fabric.js can be made available via following approaches as suited by your project
Using from CDN via script tag
Section titled “Using from CDN via script tag”Include a script tag within your HTML page, from any cdn that offers this service like cdnjs, jsdelivr, unpkg
<script src="https://cdn.jsdelivr.net/npm/fabric@latest/dist/index.min.js"></script>
Installing from npm
Section titled “Installing from npm”npm i --save fabric
Browser support
Section titled “Browser support”Following is a table portraying which browsers are supported. In general you can always re-transpile to support older browsers, but some canvas features can’t be transpiled or polyfilled.
Context | Supported Version | Notes |
---|---|---|
Firefox | ✔️ | >= 58 |
Safari | ✔️ | >= 11 |
Opera | ✔️ | chromium based |
Chrome | ✔️ | >= 64 |
Edge | ✔️ | chromium based |
Edge Legacy | ❌ | |
IE11 | ❌ | |
Node.js | ✔️ | >= 18 |