svelte-dnd-action
Advanced tools
Comparing version 0.6.29 to 0.6.30
@@ -43,3 +43,3 @@ { | ||
"description": "*An awesome drag and drop library for Svelte 3 (not using the browser's built-in dnd, thanks god): Rich animations, nested containers, touch support and more *", | ||
"version": "0.6.29", | ||
"version": "0.6.30", | ||
"repository": { | ||
@@ -46,0 +46,0 @@ "type": "git", |
@@ -73,3 +73,3 @@ import {SHADOW_ELEMENT_ATTRIBUTE_NAME} from "../constants"; | ||
/// other properties | ||
copyStylesRecursively(copyFromEl, draggedEl); | ||
copyStylesFromTo(copyFromEl, draggedEl); | ||
transformDraggedElement(); | ||
@@ -104,17 +104,2 @@ } | ||
/** | ||
* @param {HTMLElement} copyFromEl | ||
* @param {HTMLElement} copyToEl | ||
*/ | ||
function copyStylesRecursively(copyFromEl, copyToEl) { | ||
copyStylesFromTo(copyFromEl, copyToEl); | ||
if ((copyFromEl.children || []).length !== (copyToEl.children || []).length) { | ||
throw new Error("got corrupted dragged element"); | ||
} | ||
if (!copyFromEl.children) return; | ||
for (let i = 0; i < copyFromEl.children.length; i++) { | ||
copyStylesRecursively(copyFromEl.children[i], copyToEl.children[i]); | ||
} | ||
} | ||
/** | ||
* makes the element compatible with being draggable | ||
@@ -121,0 +106,0 @@ * @param {HTMLElement} draggableEl |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
241673
5682