# @types/jquery-cropper

> TypeScript definitions for jquery-cropper

Latest version **1.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/jquery-cropper
pnpm add @types/jquery-cropper
yarn add @types/jquery-cropper
bun add @types/jquery-cropper
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-11-07 |
| First published | 2020-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51431 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/jquery-cropper
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-cropper
- npm.io page: https://npm.io/package/@types/jquery-cropper

## Dependencies (1)

- [@types/jquery](https://npm.io/package/@types/jquery.md) *

## Recent versions

- 1.0.4 (latest) — 2023-11-07
- 1.0.2 (ts3.6) — 2021-07-08
- 1.0.1 (ts2.8) — 2020-03-31
- 1.0.3 — 2023-10-18
- 1.0.0 — 2020-03-12

## README

# Installation
> `npm install --save @types/jquery-cropper`

# Summary
This package contains type definitions for jquery-cropper (https://github.com/fengyuanchen/jquery-cropper).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-cropper.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-cropper/index.d.ts)
````ts
/// <reference types="jquery"/>

interface CropperOptions {
    viewMode?: number | undefined;
    dragMode?: string | undefined;
    initialAspectRatio?: number | undefined;
    aspectRatio?: number | undefined;
    data?: any;
    preview?: any;
    responsive?: boolean | undefined;
    restore?: boolean | undefined;
    checkCrossOrigin?: boolean | undefined;
    checkOrientation?: string | undefined;
    modal?: boolean | undefined;
    guides?: boolean | undefined;
    center?: boolean | undefined;
    highlight?: boolean | undefined;
    background?: boolean | undefined;
    autoCrop?: boolean | undefined;
    autoCropArea?: number | undefined;
    movable?: boolean | undefined;
    rotatable?: boolean | undefined;
    scalable?: boolean | undefined;
    zoomable?: boolean | undefined;
    zoomOnTouch?: boolean | undefined;
    zoomOnWheel?: boolean | undefined;
    wheelZoomRatio?: number | undefined;
    cropBoxMovable?: number | undefined;
    cropBoxResizable?: number | undefined;
    toggleDragModeOnDblclick?: number | undefined;
    minContainerWidth?: number | undefined;
    minContainerHeight?: number | undefined;
    minCanvasWidth?: number | undefined;
    minCanvasHeight?: number | undefined;
    minCropBoxWidth?: number | undefined;
    minCropBoxHeight?: number | undefined;
    ready?(): any;
    cropstart?(): any;
    cropmove?(): any;
    cropend?(): any;
    crop?(data?: any): void;
    zoom?(): any;
}

interface JQuery {
    cropper(options?: CropperOptions): JQuery;
    cropper(method: string, ...arguments: any[]): JQuery;
    selector: JQuery;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery)

# Credits
These definitions were written by [Mustafa Salaheldin](https://github.com/mustafasalahuldin).

---
_Source: https://npm.io/package/@types/jquery-cropper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
