0.2.1 • Published 8 months ago

@kaptoai/kapto-hil v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Kapto Document View Plugin for REVO

Install

npm i @kaptoai/kapto-hil

Usage

import Plugin from '@kaptoai/kapto-hil';

<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)).

Static Serve Assets !!!

To make the component work properly some static assets that comes with it needs to be served.

Those assets are located in static folder. (Inside installed package dist folder)

Please make sure to copy them to be served from a static path.

By default, staticPath prop is set to /static, if you want to serve assets from a different path you can specify staticPath prop value.