New API for absolute transforms #397
Labels
a-2d
Relates to the 2d package
b-enhancement
New feature or request
c-discussion
The issue is being discussed
Description
The current way of accessing absolute transform is a bit verbose.
Additionally, there's no easy way to get the transform of a node relative to another node.
Proposed solution
The current way of retrieving absolute positions/rotations/scales of nodes could be improved to accommodate this:
Here,
abs
would be a separate entity (a signal-like function with a context), similar tofilters
, which would reduce the complexity of theNode
andLayout
classes.Considered alternatives
You can multiply the matrices of two nodes manually but it's verbose and tedious.
Additional context
Related to #391
The text was updated successfully, but these errors were encountered: