@sepveneto/free-dom 0.11.5 → 0.11.7

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-1997-wxCDj8wK2ZXD/core/src/style/index.css */
1
+ /* ../../../../../../../tmp/tmp-1879-LbkxzyAvsZ9t/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
@@ -1346,8 +1346,8 @@ function useMask(target, props, nodes) {
1346
1346
  if (lastX.value === startX.value && lastY.value === startY.value) {
1347
1347
  } else {
1348
1348
  history.push({ type: "batch-select" });
1349
- document.removeEventListener("mouseup", handleMouseup);
1350
1349
  }
1350
+ document.removeEventListener("mouseup", handleMouseup);
1351
1351
  lastX.value = 0;
1352
1352
  lastY.value = 0;
1353
1353
  startX.value = 0;
@@ -1623,7 +1623,9 @@ var resizeDomCore = (0, import_vue_demi16.defineComponent)({
1623
1623
  deltaY = -deltaY;
1624
1624
  let width = props.width + (canDragX ? deltaX : 0);
1625
1625
  let height = props.height + (canDragY ? deltaY : 0);
1626
- [width, height] = runConstraints(width, height);
1626
+ if (!evt.shiftKey) {
1627
+ [width, height] = runConstraints(width, height);
1628
+ }
1627
1629
  const sizeChanged = width !== props.width || height !== props.height;
1628
1630
  const fnName = `${handleName}Fn`;
1629
1631
  const cb = typeof props[fnName] === "function" ? props[fnName] : null;
package/dist/index.mjs CHANGED
@@ -1325,8 +1325,8 @@ function useMask(target, props, nodes) {
1325
1325
  if (lastX.value === startX.value && lastY.value === startY.value) {
1326
1326
  } else {
1327
1327
  history.push({ type: "batch-select" });
1328
- document.removeEventListener("mouseup", handleMouseup);
1329
1328
  }
1329
+ document.removeEventListener("mouseup", handleMouseup);
1330
1330
  lastX.value = 0;
1331
1331
  lastY.value = 0;
1332
1332
  startX.value = 0;
@@ -1602,7 +1602,9 @@ var resizeDomCore = defineComponent4({
1602
1602
  deltaY = -deltaY;
1603
1603
  let width = props.width + (canDragX ? deltaX : 0);
1604
1604
  let height = props.height + (canDragY ? deltaY : 0);
1605
- [width, height] = runConstraints(width, height);
1605
+ if (!evt.shiftKey) {
1606
+ [width, height] = runConstraints(width, height);
1607
+ }
1606
1608
  const sizeChanged = width !== props.width || height !== props.height;
1607
1609
  const fnName = `${handleName}Fn`;
1608
1610
  const cb = typeof props[fnName] === "function" ? props[fnName] : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sepveneto/free-dom",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",