fix(resizer): minWidth and mminHeight dynamic props
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
# @reactflow/node-resizer
|
# @reactflow/node-resizer
|
||||||
|
|
||||||
|
## 1.0.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- fix `minWidth` and `minHeight` so that it can be used dynamically
|
||||||
|
|
||||||
|
|
||||||
## 1.0.1
|
## 1.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@reactflow/node-resizer",
|
"name": "@reactflow/node-resizer",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "A helper component for resizing nodes.",
|
"description": "A helper component for resizing nodes.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ function ResizeControl({
|
|||||||
return () => {
|
return () => {
|
||||||
selection.on('.drag', null);
|
selection.on('.drag', null);
|
||||||
};
|
};
|
||||||
}, [id, controlPosition, getPointerPosition]);
|
}, [id, controlPosition, minWidth, minHeight, getPointerPosition]);
|
||||||
|
|
||||||
const positionClassNames = controlPosition.split('-');
|
const positionClassNames = controlPosition.split('-');
|
||||||
const colorStyleProp = variant === ResizeControlVariant.Line ? 'borderColor' : 'backgroundColor';
|
const colorStyleProp = variant === ResizeControlVariant.Line ? 'borderColor' : 'backgroundColor';
|
||||||
|
|||||||
Reference in New Issue
Block a user