* ReactGridLayout - Legacy wrapper component * * Converts v1 flat props to v2 composable interfaces for backwards compatibility.
(props: LegacyReactGridLayoutProps)
| 115 | * Converts v1 flat props to v2 composable interfaces for backwards compatibility. |
| 116 | */ |
| 117 | function ReactGridLayout(props: LegacyReactGridLayoutProps) { |
| 118 | const { |
| 119 | // Required |
| 120 | children, |
| 121 | width, |
| 122 | |
| 123 | // Grid measurement |
| 124 | cols = 12, |
| 125 | rowHeight = 150, |
| 126 | maxRows = Infinity, |
| 127 | margin = [10, 10], |
| 128 | containerPadding = null, |
| 129 | |
| 130 | // Layout data |
| 131 | layout, |
| 132 | droppingItem, |
| 133 | |
| 134 | // Compaction |
| 135 | compactType: compactTypeProp, |
| 136 | preventCollision = false, |
| 137 | allowOverlap = false, |
| 138 | verticalCompact, |
| 139 | |
| 140 | // Drag behavior |
| 141 | isDraggable = true, |
| 142 | isBounded = false, |
| 143 | draggableHandle, |
| 144 | draggableCancel, |
| 145 | |
| 146 | // Resize behavior |
| 147 | isResizable = true, |
| 148 | resizeHandles = ["se"], |
| 149 | resizeHandle, |
| 150 | |
| 151 | // Drop behavior |
| 152 | isDroppable = false, |
| 153 | |
| 154 | // Position |
| 155 | useCSSTransforms = true, |
| 156 | transformScale = 1, |
| 157 | |
| 158 | // Container props |
| 159 | autoSize, |
| 160 | className, |
| 161 | style, |
| 162 | innerRef, |
| 163 | |
| 164 | // Callbacks |
| 165 | onLayoutChange, |
| 166 | onDragStart, |
| 167 | onDrag, |
| 168 | onDragStop, |
| 169 | onResizeStart, |
| 170 | onResize, |
| 171 | onResizeStop, |
| 172 | onDrop, |
| 173 | onDropDragOver |
| 174 | } = props; |
nothing calls this directly
no test coverage detected
searching dependent graphs…