Set a pixel offset applied after anchor projection. Positive x moves the overlay right; positive y moves it up.
(mut self, anchor_offset: [f32; 2])
| 48 | /// |
| 49 | /// Positive x moves the overlay right; positive y moves it up. |
| 50 | pub fn with_anchor_offset(mut self, anchor_offset: [f32; 2]) -> Self { |
| 51 | self.anchor_offset = anchor_offset; |
| 52 | self |
| 53 | } |
| 54 | |
| 55 | /// Set how the overlay anchor position is transformed before placement. |
| 56 | pub fn with_transform(mut self, transform: PositionTransform) -> Self { |