Skip to content

Commit 80bdfba

Browse files
committed
9.1.0
1 parent bb99273 commit 80bdfba

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,12 @@ By default, we add 'user-select:none' attributes to the document body
302302
to prevent ugly text selection during drag. If this is causing problems
303303
for your app, set this to `false`.
304304

305+
#### `scale?: number;`
306+
307+
Specifies the scale of the canvas your are resizing and dragging this element on. This allows
308+
you to, for example, get the correct resize and drag deltas while you are zoomed in or out via
309+
a transform or matrix in the parent of this element.
310+
If omitted, set `1`.
305311

306312
## Callback
307313

@@ -478,6 +484,11 @@ If you have a bug to report, please reproduce the bug in [CodeSandbox](https://c
478484

479485
## Changelog
480486

487+
#### v9.1.0
488+
489+
- Feat: Add `scale` props. #482
490+
- Feat: Upgrade deps.
491+
481492
#### v9.0.4
482493

483494
- Fix: cursor style #469

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-rnd",
3-
"version": "9.0.4",
3+
"version": "9.1.0",
44
"description": "",
55
"title": "react-rnd",
66
"main": "./lib/index.es5.js",

0 commit comments

Comments
 (0)