openseadragon-fabricjsoverlay-react
v1.0.0
Published
This guide explains how to integrate the `Openseadragon-FabricjsOverlay-react` with `fabric` and `openseadragon` in a React application.
Downloads
3
Readme
Openseadragon-FabricjsOverlay-react Integration
This guide explains how to integrate the Openseadragon-FabricjsOverlay-react
with fabric
and openseadragon
in a React application.
Prerequisites
Before you begin, make sure you have either npm or Yarn installed on your system.
Installation
To get started, install the required packages using npm or Yarn:
With npm:
npm install fabric openseadragon
With Yarn:
yarn add fabric openseadragon
# Usage
First, import OpenSeadragon from the openseadragon package:
import OpenSeadragon from 'openseadragon';
Next, import the fabricOverLay function from the OpenseadragonFabricjsOverlay-react package:
import { fabricOverLay } from 'OpenseadragonFabricjsOverlay-react';
After importing, initialize the fabricOverLay with OpenSeadragon:
fabricOverLay(OpenSeadragon);