svelte-dnd-action 0.9.78 → 0.9.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/helpers/intersection.js +2 -2
package/README.md
CHANGED
|
@@ -310,6 +310,7 @@ Notes:
|
|
|
310
310
|
- [Super basic, single list, with animation](https://svelte.dev/playground/3d544791e5c24fd4aa1eb983d749f776?version=3)
|
|
311
311
|
- [Multiple dndzones, multiple types](https://svelte.dev/playground/4d23eb3b9e184b90b58f0867010ad258?version=3)
|
|
312
312
|
- [Board (nested zones and multiple types), scrolling containers, scrolling page](https://svelte.dev/playground/e2ef044af75c4b16b424b8219fb31fd9?version=3)
|
|
313
|
+
- [Experimental: make an entire board skippable in the Tab order while preserving keyboard drag and drop](https://svelte.dev/playground/14286b9c0f924d8e94d5267d219f8424?version=5.56.8) — a prototype wrapper built using the existing tabindex options; see the example for current limitations.
|
|
313
314
|
- [Selectively enable/disable drag/drop](https://svelte.dev/playground/44c9229556f3456e9883c10fc0aa0ee9?version=3)
|
|
314
315
|
- [Custom active dropzone styling](https://svelte.dev/playground/4ceecc5bae54490b811bd62d4d613e59?version=3)
|
|
315
316
|
- [Customizing the dragged element](https://svelte.dev/playground/438fca28bb1f4eb1b34eff9dc6a728dc?version=3)
|
package/dist/index.js
CHANGED
|
@@ -401,8 +401,8 @@
|
|
|
401
401
|
return rect;
|
|
402
402
|
}
|
|
403
403
|
var to = style.transformOrigin;
|
|
404
|
-
var x = rect.
|
|
405
|
-
var y = rect.
|
|
404
|
+
var x = rect.left - dx - (1 - sx) * parseFloat(to);
|
|
405
|
+
var y = rect.top - dy - (1 - sy) * parseFloat(to.slice(to.indexOf(" ") + 1));
|
|
406
406
|
var w = sx ? rect.width / sx : el.offsetWidth;
|
|
407
407
|
var h = sy ? rect.height / sy : el.offsetHeight;
|
|
408
408
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -395,8 +395,8 @@ function getBoundingRectNoTransforms(el) {
|
|
|
395
395
|
return rect;
|
|
396
396
|
}
|
|
397
397
|
var to = style.transformOrigin;
|
|
398
|
-
var x = rect.
|
|
399
|
-
var y = rect.
|
|
398
|
+
var x = rect.left - dx - (1 - sx) * parseFloat(to);
|
|
399
|
+
var y = rect.top - dy - (1 - sy) * parseFloat(to.slice(to.indexOf(" ") + 1));
|
|
400
400
|
var w = sx ? rect.width / sx : el.offsetWidth;
|
|
401
401
|
var h = sy ? rect.height / sy : el.offsetHeight;
|
|
402
402
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-dnd-action",
|
|
3
3
|
"description": "*An awesome drag and drop library for Svelte 3 and 4 (not using the browser's built-in dnd, thanks god): Rich animations, nested containers, touch support and more *",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.79",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/isaacHagoel/svelte-dnd-action.git"
|
|
@@ -31,8 +31,8 @@ export function getBoundingRectNoTransforms(el, onlyVisible = true) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
const to = style.transformOrigin;
|
|
34
|
-
const x = rect.
|
|
35
|
-
const y = rect.
|
|
34
|
+
const x = rect.left - dx - (1 - sx) * parseFloat(to);
|
|
35
|
+
const y = rect.top - dy - (1 - sy) * parseFloat(to.slice(to.indexOf(" ") + 1));
|
|
36
36
|
const w = sx ? rect.width / sx : el.offsetWidth;
|
|
37
37
|
const h = sy ? rect.height / sy : el.offsetHeight;
|
|
38
38
|
return {
|