@kaptoai/revo-ui
v0.2.0
Published
Kapto react component for Revo
Readme
Kapto Document View Plugin for REVO
Install
npm i @kaptoai/revo-uiUsage
import Plugin from '@kaptoai/revo-ui';
<Plugin
documentId="{document id here}"
serviceUri="{service uri here}"
serviceKey="{service key here}"
userId="{user id here}"
tokenId="{token id here}"
/>Props
serviceUri *
URL of the API to load data.
documentId *
ID of the document you want to visualize the data.
serviceKey *
Service key value used by API for further validation.
tokenId *
ID of the token obtained after doing authentication.
userId *
ID of the user obtained after doing authentication.
staticPath
Path to load static assets(in case you have one different from the default one(default is /static)).
workerPath
Path to load PDF worker(in case you have one different from the default one (default is /static/worker/pdf.worker.min.mjs)).
cMapPath
Path to load Characters Maps for PDF (in case you have one different from the default one (default is /static/cmaps)).
