@readapt/visual-engine
v1.8.4
Published
## Installation
Downloads
92
Keywords
Readme
@readapt/visual-engine
Installation
npm
- Install
@readapt/visual-engine
package:
npm install @readapt/visual-engine
Usage
//import analyse function from text-engine
import { analyse } from "@readapt/text-engine"
// import the builder function
import { buildAdaptHtmlElement } from '@readapt/visual-engine'
// build the adaptHtmlElement function
const adaptHtmlElement: AdaptHtmlElementFn = buildAdaptHtmlElement(analyse)
// pass as param the HTMLElement to be adapted and the user settings
adaptHtmlElement(element, settings)