publ-echo 0.0.79 → 0.0.81
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.
|
@@ -60,6 +60,7 @@ var GridItem = function (_a) {
|
|
|
60
60
|
};
|
|
61
61
|
}, []);
|
|
62
62
|
useEffect(function () {
|
|
63
|
+
// NOTE: 표현길이 높이맞춤
|
|
63
64
|
if (isDragging || isResizing) {
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
@@ -90,6 +91,9 @@ var GridItem = function (_a) {
|
|
|
90
91
|
}
|
|
91
92
|
;
|
|
92
93
|
var _d = calcWH(getPositionParams(), { width: newClientWidth, height: newClientHeight }, x, y, 'se', props.w, props.h), w = _d.w, h = _d.h;
|
|
94
|
+
if (props.w === w && props.h === h) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
93
97
|
props.onContentSizeChange(props.i, { x: x, y: y, w: w, h: h });
|
|
94
98
|
});
|
|
95
99
|
observer.observe(target, { box: 'border-box' });
|
|
@@ -279,7 +279,7 @@ var ReactGridLayout = function (_a) {
|
|
|
279
279
|
return;
|
|
280
280
|
}
|
|
281
281
|
setLayout(newLayout);
|
|
282
|
-
props.
|
|
282
|
+
props.onAutoResizedToFit && props.onAutoResizedToFit(newLayout);
|
|
283
283
|
};
|
|
284
284
|
var onResizeHandler = function (i, w, h, _a, x, y) {
|
|
285
285
|
var e = _a.e, node = _a.node;
|
|
@@ -57,6 +57,7 @@ export type ReactGridLayoutProps = {
|
|
|
57
57
|
resizeHandle?: ResizeHandleType;
|
|
58
58
|
allowOverlap?: boolean;
|
|
59
59
|
onLayoutChange?: (layout: Layout) => void;
|
|
60
|
+
onAutoResizedToFit?: (layout: Layout) => void;
|
|
60
61
|
onDrag?: EventCallback;
|
|
61
62
|
onDragStart?: EventCallback;
|
|
62
63
|
onDragStop?: EventCallback;
|