@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 CHANGED
@@ -1,4 +1,4 @@
1
- /* ../../../../../../../tmp/tmp-2007-pV5QZ04PRQu3/core/src/style/index.css */
1
+ /* ../../../../../../../tmp/tmp-2010-fxwWsKC9UXF9/core/src/style/index.css */
2
2
  :root {
3
3
  --vv-free-dom--theme: rgb(64, 137, 239);
4
4
  --vv-free-dom--line: var(--vv-free-dom--theme);
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 = Math.round(data.x);
56756
- y.value = Math.round(data.y);
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
- emit("update:x", x.value);
58282
- emit("update:y", y.value);
58283
- emit("update:modelValue", { x: x.value, y: y.value, w: width.value, h: height.value });
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 = Math.round(data.x);
56756
- y.value = Math.round(data.y);
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
- emit("update:x", x.value);
58282
- emit("update:y", y.value);
58283
- emit("update:modelValue", { x: x.value, y: y.value, w: width.value, h: height.value });
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sepveneto/free-dom",
3
- "version": "0.14.5",
3
+ "version": "0.14.6",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",