benhowell/react-grid-gallery

specifying an x, y value for Image

Opened this issue · 0 comments

Expected behaviour

I want to be able to do something like

        images.push({
           key: asset.id,
           src: asset.signed_asset,
           width: asset.vehicle_bbox_width,
           height: asset.vehicle_bbox_height,
           x: asset.vehicle_bbox_x,
           y: asset.vehicle_bbox_y,
           isSelected: false,
       });

for each tile image. So that instead of the original large image being displayed, only the specified crop is displaying in the grid.