# @sabbir1055/drag-drop-puzzle

> drag and drop puzzle game

Latest version **1.0.3** (published 2021-02-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @sabbir1055/drag-drop-puzzle
pnpm add @sabbir1055/drag-drop-puzzle
yarn add @sabbir1055/drag-drop-puzzle
bun add @sabbir1055/drag-drop-puzzle
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-02-22 |
| First published | 2021-02-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 11.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sabbir hosain |
| Maintainers | sabbir1055 |
| Keywords | drand, and, drop, puzzle, react |

## Links

- npm: https://www.npmjs.com/package/@sabbir1055/drag-drop-puzzle
- npm.io page: https://npm.io/package/@sabbir1055/drag-drop-puzzle

## Dependencies (10)

- [react](https://npm.io/package/react.md) ^17.0.1
- [webpack](https://npm.io/package/webpack.md) ^5.23.0
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.1
- [css-loader](https://npm.io/package/css-loader.md) ^5.0.2
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.12.17
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^4.5.0
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.2.2
- [style-loader](https://npm.io/package/style-loader.md) ^2.0.0
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.12.17
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) ^7.12.13

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-02-22
- 1.0.2 — 2021-02-22
- 1.0.1 — 2021-02-22

## README

# Description 
This a funny puzzle game. Only adding one image your can slice it into what ever pieces you want to make it more complex.

# Installation 
>`npm i @sabbir1055/drag-drop-puzzle --save`
## Uses 

```
import React from 'react'
import Puzzle from '@sabbir1055/drag-drop-puzzle'
function App() {

  const finalResult = (data) => {
    console.log(data)
  }

  return (
      <>
        <Puzzle imgUrl = 'https://cdn.jpegmini.com/user/images/slider_puffin_before_mobile.jpg' getResult = {finalResult}/>
      </>
  )
}

export default App;

```

## Options 

drag-drop-puzzle support many options. These are :  

Option name | Description | Data Type | Default
--- | --- |--- | ---
width| _your full canvas width_ | `numeric` | 600
height| _your full canvas height_ | `numeric` | 600
XLength| _How many pieces do yout need for X axis_ | `numeric` | 4
YLength| _How many pieces do yout need for Y axis_ | `numeric` | 4
imgUrl| _Image url that will be splices into_ ` XLength * YLength ` _pieces_ | `string` | ![alt text](https://cdn.britannica.com/68/6268-050-04FB8622/Bangladesh.jpg?raw=true)
parentClass| _Style your outer canvas_  | `string` | `null`
childClass| _Style your inner elements of canvas_  | `string` | `null`
getResult| _callback function that return the result_ | `string` | _return_ `success` or `keep trying`

## Git repository 
If you want to contribute [click](https://github.com/Sabbir1993/draganddroppuzzle.git) here

---
_Source: https://npm.io/package/@sabbir1055/drag-drop-puzzle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
