svelte-movable
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "svelte-movable", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Action to move node on mousedown & mousemove", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -21,4 +21,6 @@ # Svelte Action - `use:movable` | ||
- [Changelog](#changelog) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [Documentation](#documentation) | ||
- [Typescript support](#typescript-support) | ||
- [Contributing](#contributing) | ||
@@ -31,2 +33,12 @@ - [Todos](#todos) | ||
## Installation | ||
```bash | ||
npm install svelte-movable | ||
yarn add svelte-movable | ||
pnpm add svelte-movable | ||
# Note: add to dev dependencies instead if using svelte-kit | ||
``` | ||
## Usage | ||
@@ -55,5 +67,5 @@ | ||
// on:movablestart | ||
onmovablestart?: (event: CustomEvent<HTMLElement>) => void; | ||
onmovablestart?: (event: CustomEvent<import('svelte-movable').MovableEventDetails>) => void; | ||
// on:movableend | ||
onmovableend?: (event: CustomEvent<HTMLElement>) => void; | ||
onmovableend?: (event: CustomEvent<import('svelte-movable').MovableEventDetails>) => void; | ||
} | ||
@@ -60,0 +72,0 @@ } |
35426
130