Returns the transform defined directly on this node, or the identity transform, without taking into account transforms on ancestors.
(&self)
| 272 | /// Returns the transform defined directly on this node, or the identity |
| 273 | /// transform, without taking into account transforms on ancestors. |
| 274 | pub fn direct_transform(&self) -> Affine { |
| 275 | self.data() |
| 276 | .transform() |
| 277 | .map_or(Affine::IDENTITY, |value| *value) |
| 278 | } |
| 279 | |
| 280 | /// Returns the combined affine transform of this node and its ancestors, |
| 281 | /// up to and including the root of this node's tree. |
no test coverage detected