Skip to content

Commit

Permalink
2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PuruVJ committed Nov 26, 2021
1 parent 2be1ac2 commit 1de5aec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Inspired from the amazing [react-draggable](https://github.com/react-grid-layout

# Features

- 🤏 Tiny - Only [2.1KB](https://bundlephobia.com/package/svelte-drag) min+gzip.
- 🤏 Tiny - Only [2.2KB](https://bundlephobia.com/package/svelte-drag) min+gzip.
- 🐇 Simple - Quite simple to use, and effectively no-config required!
- 🧙‍♀️ Elegant - Svelte Action, to keep the usage simple, elegant and expressive.
- 🗃️ Highly customizable - Offers tons of options that you can modify to get different behavior.
Expand Down Expand Up @@ -375,11 +375,11 @@ The events above are custom events, and hence, not recognized by the TypeScript

```ts
export declare namespace svelte.JSX {
interface HTMLAttributes<T> {
'onsvelte-drag:start'?: (e: CustomEvent<{ offsetX: number; offsetY: number }>) => void;
'onsvelte-drag:end'?: (e: CustomEvent<{ offsetX: number; offsetY: number }>) => void;
'onsvelte-drag'?: (e: CustomEvent<{ offsetX: number; offsetY: number }>) => void;
}
interface HTMLAttributes<T> {
'onsvelte-drag:start'?: (e: CustomEvent<{ offsetX: number; offsetY: number }>) => void;
'onsvelte-drag:end'?: (e: CustomEvent<{ offsetX: number; offsetY: number }>) => void;
'onsvelte-drag'?: (e: CustomEvent<{ offsetX: number; offsetY: number }>) => void;
}
}
```

Expand All @@ -401,17 +401,17 @@ import type { DragAxis, DragBounds, DragBoundsCoords, DragOptions } from 'svelte

```ts
export type DragBoundsCoords = {
/** Number of pixels from left of the window */
left: number;
/** Number of pixels from left of the window */
left: number;

/** Number of pixels from top of the window */
top: number;
/** Number of pixels from top of the window */
top: number;

/** Number of pixels from the right side of window */
right: number;
/** Number of pixels from the right side of window */
right: number;

/** Number of pixels from the bottom of the window */
bottom: number;
/** Number of pixels from the bottom of the window */
bottom: number;
};
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-drag",
"version": "2.3.1",
"version": "2.3.2",
"description": "Svelte Action to add dragging to your apps 😉",
"main": "dist/index.cjs",
"module": "dist/index.js",
Expand Down

0 comments on commit 1de5aec

Please sign in to comment.