MCPcopy Create free account
hub / github.com/bytebase/bytebase / convertStoreBoundingBox

Function convertStoreBoundingBox

backend/api/v1/database_converter.go:833–843  ·  view source on GitHub ↗
(bbox *storepb.BoundingBox)

Source from the content-addressed store, hash-verified

831}
832
833func convertStoreBoundingBox(bbox *storepb.BoundingBox) *v1pb.BoundingBox {
834 if bbox == nil {
835 return nil
836 }
837 return &v1pb.BoundingBox{
838 Xmin: bbox.Xmin,
839 Ymin: bbox.Ymin,
840 Xmax: bbox.Xmax,
841 Ymax: bbox.Ymax,
842 }
843}
844
845func convertV1BoundingBox(bbox *v1pb.BoundingBox) *storepb.BoundingBox {
846 if bbox == nil {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected