From c9366a409cffa203d46d8a1032c05dc7164dcc5d Mon Sep 17 00:00:00 2001 From: Daybrush Date: Tue, 1 Oct 2019 10:13:23 +0900 Subject: [PATCH] fix: Fix that keepRatio want to behave like sketch --- CHANGELOG.md | 6 ++++++ package-lock.json | 16 ++++++++-------- package.json | 4 ++-- packages/preact-moveable/package.json | 4 ++-- packages/react-moveable/package.json | 2 +- src/Moveable.tsx | 16 ++++++++-------- 6 files changed, 27 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7bdef4bd..24cb7cb8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [0.9.3] - 2019-10-01 +### Fixed +* fix that keepRatio want to behave like sketches and illustrators. #47 +* fix keepRatio default false + + ## [0.9.2] - 2019-10-01 ### Fixed * fix that bounds don't apply when snap diff --git a/package-lock.json b/package-lock.json index 4c953e06c..9f4fc245c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "moveable", - "version": "0.9.2", + "version": "0.9.3", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1011,9 +1011,9 @@ } }, "preact-moveable": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/preact-moveable/-/preact-moveable-0.11.4.tgz", - "integrity": "sha512-66nKCQjekEAz3brwyFwyWptBeGr7bELSczu+O4V4i0SKKXnlgfOIs50Nz4r+/gLlxDiAkf2GJrPXhfIg3tnkiA==", + "version": "0.11.5", + "resolved": "https://registry.npmjs.org/preact-moveable/-/preact-moveable-0.11.5.tgz", + "integrity": "sha512-cQAx64x0KJ2j4uNL32H4ByJLCyiX2olUbjrXEqYBGs8+W0s8AJ5MmZY+0nx6V6RiBu+IF2WVj6kRDM2CcSe+6Q==", "requires": { "@daybrush/drag": "^0.10.1", "@daybrush/utils": "^0.10.1", @@ -1022,7 +1022,7 @@ "framework-utils": "^0.2.1", "preact-compat": "^3.19.0", "preact-css-styler": "^0.4.1", - "react-moveable": "^0.12.3" + "react-moveable": "^0.12.4" }, "dependencies": { "framework-utils": { @@ -1117,9 +1117,9 @@ "integrity": "sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==" }, "react-moveable": { - "version": "0.12.3", - "resolved": "https://registry.npmjs.org/react-moveable/-/react-moveable-0.12.3.tgz", - "integrity": "sha512-rtFxesAg6Ss5c6l9yjZBq2QGwa45O1Cvf+jm8YQnEhv8Zsj9nc5hd2YbEQUjhJVZNoancaSfLr+Yolu5kIvO2Q==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/react-moveable/-/react-moveable-0.12.4.tgz", + "integrity": "sha512-H2DP4rkOH/hVfSqonsyv0Qe+jGUPRkW6bQPYegLRLBsFN8GrznM0cST1htv9Jv75WfweJ5P2ORzQcqT/el6ERg==", "requires": { "@daybrush/drag": "^0.10.1", "@daybrush/utils": "^0.10.0", diff --git a/package.json b/package.json index 0209fac5b..bd0a2ca7e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moveable", - "version": "0.9.2", + "version": "0.9.3", "description": "Moveable is Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable, Groupable, Snappable.", "main": "./dist/moveable.cjs.js", "module": "./dist/moveable.esm.js", @@ -60,7 +60,7 @@ "@egjs/children-differ": "^1.0.0", "@egjs/component": "^2.1.2", "framework-utils": "^0.2.0", - "preact-moveable": "^0.11.4" + "preact-moveable": "^0.11.5" }, "devDependencies": { "@daybrush/builder": "^0.1.1", diff --git a/packages/preact-moveable/package.json b/packages/preact-moveable/package.json index 5f29b899f..8b24ec51e 100644 --- a/packages/preact-moveable/package.json +++ b/packages/preact-moveable/package.json @@ -1,6 +1,6 @@ { "name": "preact-moveable", - "version": "0.11.4", + "version": "0.11.5", "description": "A Preact Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Pinchable, Groupable, Snappable.", "main": "./dist/moveable.cjs.js", "module": "./dist/moveable.esm.js", @@ -67,6 +67,6 @@ "framework-utils": "^0.2.1", "preact-compat": "^3.19.0", "preact-css-styler": "^0.4.1", - "react-moveable": "^0.12.3" + "react-moveable": "^0.12.4" } } diff --git a/packages/react-moveable/package.json b/packages/react-moveable/package.json index cc890282d..11f3688eb 100644 --- a/packages/react-moveable/package.json +++ b/packages/react-moveable/package.json @@ -1,6 +1,6 @@ { "name": "react-moveable", - "version": "0.12.3", + "version": "0.12.4", "description": "A React Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable, Groupable.", "main": "./dist/moveable.cjs.js", "module": "./dist/moveable.esm.js", diff --git a/src/Moveable.tsx b/src/Moveable.tsx index 669af5773..27e479120 100644 --- a/src/Moveable.tsx +++ b/src/Moveable.tsx @@ -172,7 +172,7 @@ class Moveable extends EgComponent { } } /** - * Whether or not the origin controlbox will be visible or not + * Whether or not the origin controlbox will be visible or not (default: true) * @name Moveable#origin * @example * import Moveable from "moveable"; @@ -191,7 +191,7 @@ class Moveable extends EgComponent { * moveable.target = document.querySelector(".target"); */ /** - * Whether or not target can be dragged. + * Whether or not target can be dragged. (default: false) * @name Moveable#draggable * @example * import Moveable from "moveable"; @@ -201,7 +201,7 @@ class Moveable extends EgComponent { * moveable.draggable = true; */ /** - * Whether or not target can be resized. + * Whether or not target can be resized. (default: false) * @name Moveable#resizable * @example * import Moveable from "moveable"; @@ -211,7 +211,7 @@ class Moveable extends EgComponent { * moveable.resizable = true; */ /** - * Whether or not target can scaled. + * Whether or not target can scaled. (default: false) * @name Moveable#scalable * @example * import Moveable from "moveable"; @@ -221,7 +221,7 @@ class Moveable extends EgComponent { * moveable.scalable = true; */ /** - * Whether or not target can be rotated. + * Whether or not target can be rotated. (default: false) * @name Moveable#rotatable * @example * import Moveable from "moveable"; @@ -231,7 +231,7 @@ class Moveable extends EgComponent { * moveable.rotatable = true; */ /** - * Whether or not target can be warped. + * Whether or not target can be warped. (default: false) * @name Moveable#warpable * @example * import Moveable from "moveable"; @@ -241,7 +241,7 @@ class Moveable extends EgComponent { * moveable.warpable = true; */ /** - * Whether or not target can be pinched with draggable, resizable, scalable, rotatable + * Whether or not target can be pinched with draggable, resizable, scalable, rotatable (default: false) * @name Moveable#pinchable * @example * import Moveable from "moveable"; @@ -251,7 +251,7 @@ class Moveable extends EgComponent { * moveable.pinchable = true; */ /** - * When resize or scale, keeps a ratio of the width, height. + * When resize or scale, keeps a ratio of the width, height. (default: false) * @name Moveable#keepRatio * @example * import Moveable from "moveable";