publ-echo-test 0.0.355 → 0.0.356
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.
|
@@ -770,10 +770,11 @@ var ReactGridLayout = function (_a) {
|
|
|
770
770
|
var selectedLayoutItem = selectedBlockId
|
|
771
771
|
? getLayoutItem(layout, selectedBlockId)
|
|
772
772
|
: null;
|
|
773
|
-
var
|
|
774
|
-
|
|
775
|
-
|
|
773
|
+
var activeDragItemOrSelectedItem = activeDrag || selectedLayoutItem;
|
|
774
|
+
var activeRows = activeDragItemOrSelectedItem &&
|
|
775
|
+
Array.from({ length: activeDragItemOrSelectedItem.h }, function (_, i) { return activeDragItemOrSelectedItem.y + i; });
|
|
776
|
+
return (_jsxs("div", { ref: innerRef, className: mergedClassName, style: mergedStyle, onDrop: isDroppable ? onDropHandler : noop, onDragLeave: isDroppable ? onDragLeaveHandler : noop, onDragEnter: isDroppable ? onDragEnterHandler : noop, onDragOver: isDroppable ? onDragOverHandler : noop, "data-grid-row-height": rowHeight, "data-grid-cols": cols, "data-section-id": sectionId, children: [currentGroupBlocks.map(function (each) { return processGroup(each); }), React.Children.map(children, function (child) { return processGridItem(child); }), placeholder(), activeDrag && _jsx("div", { className: "grid-guide-line-center" }), activeDragItemOrSelectedItem && (_jsx(GridBackgroundPlaceholder, { backgroundWidth: getBackgroundWidth(), backgroundHeight: getBackgroundHeight(), margin: margin,
|
|
776
777
|
// width={width}
|
|
777
|
-
rowHeight: rowHeight, colWidth: colWidth, activeDrag:
|
|
778
|
+
rowHeight: rowHeight, colWidth: colWidth, activeDrag: activeDragItemOrSelectedItem, selectedBlockId: selectedBlockId, totalCols: cols }))] }));
|
|
778
779
|
};
|
|
779
780
|
export default ReactGridLayout;
|