dist/modules/extras/labels/factories.js
/**
     * Create a boundbox from extreme ends
     * @param topLeft top left point of the box
     * @param bottomRight bottom right point of the box
     */
Create a boundbox from extreme ends
@param topLeft top left point of the box
@param bottomRight bottom right point of the box
Create a boundbox from extreme ends @param topLeft top left point of the box @param bottomRight bottom right point of the box
static fromEnds(topLeft, bottomRight) {
        return {
            type: labels_1.DEFAULT_LABEL_TYPES.boundbox,
            props: {
                xmin: topLeft.x,
                ymin: topLeft.y,
                xmax: bottomRight.x,
                ymax: bottomRight.y
            }
        };
    }
static fromEnds ( topLeft , bottomRight ) { return { type : labels_1 . DEFAULT_LABEL_TYPES . boundbox , props : { xmin : topLeft . x , ymin : topLeft . y , xmax : bottomRight . x , ymax : bottomRight . y } } ; }
Create a boundbox from extreme ends
 @param topLeft top left point of the box
 @param bottomRight bottom right point of the box
Create a boundbox from extreme ends @param topLeft top left point of the box @param bottomRight bottom right point of the box