基于viewerjs@1.9.1二次封装。
npm install @ttfn/viewerjs基于viewerjs的二次封装,下面只列出扩展的 api。
``html`
src="http://1812.img.pp.sohu.com.cn/images/blog/2009/11/18/18/8/125b6560a6ag214.jpg"
/>
src="http://1812.img.pp.sohu.com.cn/images/blog/2009/11/18/18/8/125b6560a6ag214.jpg"
/>
src="http://1812.img.pp.sohu.com.cn/images/blog/2009/11/18/18/8/125b6560a6ag214.jpg"
/>
bash
npm i @ttfn/viewerjs -S
`API
| 属性 | 描述 | 类型 | 默认值 |
| ---------------- | ------------ | ---------- | ------ |
| renderCanvas | 渲染画布 |
function | - |
| renderNavbar | 渲染导航 | function | - |
| afterRenderImage | 渲染图片之后 | function | - |
| playFilter | 幻灯片过滤器 | function` | - |