Skip to content
Image viewer component
TypeScript JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src
webpack
.editorconfig
.gitattributes
.gitignore
.npmignore
.prettierrc
README.md
package.json
template.ejs
tsconfig-compile.json
tsconfig-node.json
tsconfig.json
yarn.lock

README.md

Image Viewer Component

npm

for zooming/rotating images.

original: meson-display

Not yet:

  • animations
  • dragging

Usage

import { ImageViewer } from "@jimengio/image-viewer";

<ImageViewer
  visible={visible}
  imageUrl={"http://cache.house.sina.com.cn/citylifehouse/citylife/de/26/20090508_7339__.jpg"}
  onClose={() => {
    setVisible(false);
  }}
  hasLeftOne={false}
  hasRightOne={false}
/>;

Workflow

https://github.com/jimengio/ts-workflow

License

MIT

You can’t perform that action at this time.