About
How to use
// js
import { cropImage } from '@zhiguang/crop-image';
cropImage( imageContainer:HTMLElement, onLoad:Function, onError:Function );
// html
.image-container
img.cri-placeholder(src="...")
.cri-frame
img.cri-image(src="...")
// js
import { cropImage } from '@zhiguang/crop-image';
cropImage( imageContainer:HTMLElement, onLoad:Function, onError:Function );
// html
.image-container
img.cri-placeholder(src="...")
.cri-frame
img.cri-image(src="...")
npm i @zhiguang/crop-image
6
0.2.6
ISC
14.9 kB
7