@sepveneto/free-dom 0.11.4 → 0.11.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 -8
- package/dist/index.mjs +9 -8
- package/package.json +1 -1
package/dist/index.css
CHANGED
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;
|
|
@@ -1594,16 +1594,17 @@ var resizeDomCore = (0, import_vue_demi16.defineComponent)({
|
|
|
1594
1594
|
return [width, height];
|
|
1595
1595
|
if (lockAspectRatio) {
|
|
1596
1596
|
const ratio = props.width / props.height;
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
if (Math.abs(deltaW) > Math.abs(deltaH * ratio)) {
|
|
1600
|
-
height = width / ratio;
|
|
1601
|
-
} else {
|
|
1597
|
+
if (ratio > 1) {
|
|
1598
|
+
height = Math.max(height, props.minHeight);
|
|
1602
1599
|
width = height * ratio;
|
|
1600
|
+
} else {
|
|
1601
|
+
width = Math.max(width, props.minWidth);
|
|
1602
|
+
height = width / ratio;
|
|
1603
1603
|
}
|
|
1604
|
+
} else {
|
|
1605
|
+
width = Math.max(width, props.minWidth);
|
|
1606
|
+
height = Math.max(height, props.minHeight);
|
|
1604
1607
|
}
|
|
1605
|
-
width = Math.max(width, props.minWidth);
|
|
1606
|
-
height = Math.max(height, props.minHeight);
|
|
1607
1608
|
return [width, height];
|
|
1608
1609
|
}
|
|
1609
1610
|
function handleResize(handleName, axis) {
|
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;
|
|
@@ -1573,16 +1573,17 @@ var resizeDomCore = defineComponent4({
|
|
|
1573
1573
|
return [width, height];
|
|
1574
1574
|
if (lockAspectRatio) {
|
|
1575
1575
|
const ratio = props.width / props.height;
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
if (Math.abs(deltaW) > Math.abs(deltaH * ratio)) {
|
|
1579
|
-
height = width / ratio;
|
|
1580
|
-
} else {
|
|
1576
|
+
if (ratio > 1) {
|
|
1577
|
+
height = Math.max(height, props.minHeight);
|
|
1581
1578
|
width = height * ratio;
|
|
1579
|
+
} else {
|
|
1580
|
+
width = Math.max(width, props.minWidth);
|
|
1581
|
+
height = width / ratio;
|
|
1582
1582
|
}
|
|
1583
|
+
} else {
|
|
1584
|
+
width = Math.max(width, props.minWidth);
|
|
1585
|
+
height = Math.max(height, props.minHeight);
|
|
1583
1586
|
}
|
|
1584
|
-
width = Math.max(width, props.minWidth);
|
|
1585
|
-
height = Math.max(height, props.minHeight);
|
|
1586
1587
|
return [width, height];
|
|
1587
1588
|
}
|
|
1588
1589
|
function handleResize(handleName, axis) {
|