Skip to content

Commit

Permalink
fix: Fix that keepRatio want to behave like sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Oct 1, 2019
1 parent 28572c3 commit c9366a4
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 21 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/preact-moveable/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion packages/react-moveable/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
16 changes: 8 additions & 8 deletions src/Moveable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";
Expand All @@ -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";
Expand All @@ -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";
Expand All @@ -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";
Expand All @@ -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";
Expand All @@ -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";
Expand All @@ -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";
Expand Down

0 comments on commit c9366a4

Please sign in to comment.