Store navigation metadata in network

This commit is contained in:
Adam
2024-09-03 21:13:52 -07:00
parent bc62fd2dea
commit d2d451dd6f
12 changed files with 309 additions and 371 deletions

View File

@@ -42,7 +42,7 @@ impl ClickTarget {
self.bounding_box
}
pub fn bounding_box_with_transform(&self, transform: DAffine2) -> Option<[DVec2; 2]> {
pub fn bounding_box_with_transform(&self, transform: &DAffine2) -> Option<[DVec2; 2]> {
self.bounding_box.map(|[a, b]| [transform.transform_point2(a), transform.transform_point2(b)])
}