MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / bounding_box

Method bounding_box

src/lib.rs:1063–1065  ·  view source on GitHub ↗

Returns the bounding box of the element with the given ID, if it exists.

(&self, id: impl Into<Id>)

Source from the content-addressed store, hash-verified

1061
1062 /// Returns the bounding box of the element with the given ID, if it exists.
1063 pub fn bounding_box(&self, id: impl Into<Id>) -> Option<math::BoundingBox> {
1064 self.context.get_element_data(id.into())
1065 }
1066
1067 /// Returns scroll container state for the element with the given ID, if it is a scroll container.
1068 pub fn scroll_container_data(&self, id: impl Into<Id>) -> Option<engine::ScrollContainerData> {

Callers

nothing calls this directly

Calls 1

get_element_dataMethod · 0.80

Tested by

no test coverage detected