@vue-dnd-kit/core 0.0.44-beta → 0.0.45-beta
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/dist/plugin.d.ts +4 -0
- package/dist/vue-dnd-kit-core.es.js +4 -8
- package/package.json +1 -1
package/dist/plugin.d.ts
ADDED
|
@@ -415,10 +415,8 @@ const C = Ie(() => {
|
|
|
415
415
|
};
|
|
416
416
|
}).sort((a, c) => {
|
|
417
417
|
if (!I) {
|
|
418
|
-
if (a.isPointerInElement && c.isPointerInElement)
|
|
419
|
-
|
|
420
|
-
if (a.isPointerInElement !== c.isPointerInElement)
|
|
421
|
-
return a.isPointerInElement ? -1 : 1;
|
|
418
|
+
if (a.isPointerInElement && c.isPointerInElement) return c.depth - a.depth;
|
|
419
|
+
if (a.isPointerInElement !== c.isPointerInElement) return a.isPointerInElement ? -1 : 1;
|
|
422
420
|
}
|
|
423
421
|
return Math.abs(a.overlapPercent - c.overlapPercent) <= 1 ? a.centerDistance - c.centerDistance : c.overlapPercent - a.overlapPercent;
|
|
424
422
|
}), ce = e.zones.value.filter((a) => {
|
|
@@ -441,10 +439,8 @@ const C = Ie(() => {
|
|
|
441
439
|
};
|
|
442
440
|
}).sort((a, c) => {
|
|
443
441
|
if (!I) {
|
|
444
|
-
if (a.isPointerInElement && c.isPointerInElement)
|
|
445
|
-
|
|
446
|
-
if (a.isPointerInElement !== c.isPointerInElement)
|
|
447
|
-
return a.isPointerInElement ? -1 : 1;
|
|
442
|
+
if (a.isPointerInElement && c.isPointerInElement) return c.depth - a.depth;
|
|
443
|
+
if (a.isPointerInElement !== c.isPointerInElement) return a.isPointerInElement ? -1 : 1;
|
|
448
444
|
}
|
|
449
445
|
return Math.abs(a.overlapPercent - c.overlapPercent) <= 1 ? a.centerDistance - c.centerDistance : c.overlapPercent - a.overlapPercent;
|
|
450
446
|
}), z = e.hovered.element.value, R = e.hovered.zone.value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-dnd-kit/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.45-beta",
|
|
4
4
|
"description": "Core functionality for Vue DnD Kit - a lightweight Vue 3 library for building performant and accessible drag and drop interfaces",
|
|
5
5
|
"author": "ZiZIGY",
|
|
6
6
|
"license": "MIT",
|