l_layer_bbox.Rd
The bounding box of a layer returns the coordinates of the smallest rectangle that encloses all the elements of the layer.
l_layer_bbox(widget, layer = "root")
widget | widget path or layer object of class |
---|---|
layer | layer id. If the widget argument is of class |
Numeric vector of length 4 with (xmin, ymin, xmax, ymax) of the bounding box
#> [1] 2.0 4.3 4.4 7.9#> [1] 0 30 1 31l_layer_bbox(p, 'root')#> [1] 0.0 4.3 4.4 31.0