BoundingBox
interface BoundingBox { left: number; top: number; width: number; height: number; }
function convertToDocumentCoordinates( bbox: BoundingBox, segment: Segment ): BoundingBox { return { left: bbox.left + segment.bbox.left, top: bbox.top + segment.bbox.top, width: bbox.width, height: bbox.height, }; }