@sepveneto/free-dom 0.14.5 → 0.14.6
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/index.css +1 -1
- package/dist/index.js +9 -5
- package/dist/index.mjs +9 -5
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -56752,8 +56752,8 @@ function useDraggableData(props) {
|
|
|
56752
56752
|
props.dragStartFn(evt, data);
|
|
56753
56753
|
};
|
|
56754
56754
|
const handleDrag = (evt, data) => {
|
|
56755
|
-
x.value =
|
|
56756
|
-
y.value =
|
|
56755
|
+
x.value = data.x;
|
|
56756
|
+
y.value = data.y;
|
|
56757
56757
|
deltaX.value = data.deltaX;
|
|
56758
56758
|
deltaY.value = data.deltaY;
|
|
56759
56759
|
props.dragFn(evt, data);
|
|
@@ -58278,9 +58278,13 @@ var freeDom = (0, import_vue_demi17.defineComponent)({
|
|
|
58278
58278
|
}
|
|
58279
58279
|
handleDragStop(evt, coreData);
|
|
58280
58280
|
sceneContext.emit("moveup");
|
|
58281
|
-
|
|
58282
|
-
|
|
58283
|
-
|
|
58281
|
+
const roundX = Math.round(x.value);
|
|
58282
|
+
const roundY = Math.round(y.value);
|
|
58283
|
+
const roundW = Math.round(width.value || 0);
|
|
58284
|
+
const roundH = Math.round(height.value || 0);
|
|
58285
|
+
emit("update:x", roundX);
|
|
58286
|
+
emit("update:y", roundY);
|
|
58287
|
+
emit("update:modelValue", { x: roundX, y: roundY, w: roundW, h: roundH });
|
|
58284
58288
|
sceneContext.history?.push({ type: "move-end" });
|
|
58285
58289
|
};
|
|
58286
58290
|
const onDragStart = (evt, coreData) => {
|
package/dist/index.mjs
CHANGED
|
@@ -56752,8 +56752,8 @@ function useDraggableData(props) {
|
|
|
56752
56752
|
props.dragStartFn(evt, data);
|
|
56753
56753
|
};
|
|
56754
56754
|
const handleDrag = (evt, data) => {
|
|
56755
|
-
x.value =
|
|
56756
|
-
y.value =
|
|
56755
|
+
x.value = data.x;
|
|
56756
|
+
y.value = data.y;
|
|
56757
56757
|
deltaX.value = data.deltaX;
|
|
56758
56758
|
deltaY.value = data.deltaY;
|
|
56759
56759
|
props.dragFn(evt, data);
|
|
@@ -58278,9 +58278,13 @@ var freeDom = defineComponent5({
|
|
|
58278
58278
|
}
|
|
58279
58279
|
handleDragStop(evt, coreData);
|
|
58280
58280
|
sceneContext.emit("moveup");
|
|
58281
|
-
|
|
58282
|
-
|
|
58283
|
-
|
|
58281
|
+
const roundX = Math.round(x.value);
|
|
58282
|
+
const roundY = Math.round(y.value);
|
|
58283
|
+
const roundW = Math.round(width.value || 0);
|
|
58284
|
+
const roundH = Math.round(height.value || 0);
|
|
58285
|
+
emit("update:x", roundX);
|
|
58286
|
+
emit("update:y", roundY);
|
|
58287
|
+
emit("update:modelValue", { x: roundX, y: roundY, w: roundW, h: roundH });
|
|
58284
58288
|
sceneContext.history?.push({ type: "move-end" });
|
|
58285
58289
|
};
|
|
58286
58290
|
const onDragStart = (evt, coreData) => {
|