高频知识点
viewerjs
viewerjs
用于图片查看器,提供图片的缩放、旋转等操作,适用于需要展示大量图片或进行图片编辑的应用
https://github.com/fengyuanchen/viewerjs
homepage
fengyuanchen.github.io/viewerjs
Viewer.js
JavaScript image viewer.
-
Website
-
jquery-viewer - A jQuery plugin wrapper for Viewer.js.
Table of contents
-
Features
-
Main
-
Getting started
-
Keyboard support
-
Options
-
Methods
-
Events
-
No conflict
-
Browser support
-
Contributing
-
Versioning
-
License
Features
-
Supports 53 options
-
Supports 23 methods
-
Supports 17 events
-
Supports modal and inline modes
-
Supports touch
-
Supports move
-
Supports zoom
-
Supports rotation
-
Supports scale (flip)
-
Supports keyboard
-
Cross-browser support
Main files
|
|
Getting started
Installation
|
|
In browser:
|
|
The cdnjs provides CDN support for Viewer.js’s CSS and JavaScript. You can find the links here.
Usage
Syntax
|
|
-
element
-
Type: HTMLElement
-
The target image or container of images for viewing.
-
-
options (optional)
-
Type: Object
-
The options for viewing. Check out the available options.
-
Example
|
|
|
|