Hi, I have found a situation where the getAlignMatrix function behaves in an unexpected way for me. In the example, the red rectangle should move to the centre and then to the top of the screen and remain half visible.
move(0.5, 0.5, 0.5, 0.5) // Move to center. Works OK.
move(0.5, 0.5, 0.5, 0) // Move to top and remain half visible. Works OK.
move(0.5, 0.5, 0.5, 0) // It should be in the same position, but it moves out of the scene :(
So far I've discovered that, if I change the id="to" from the svg tag to the black-stroked rect it works perfect! In my application I have multiple svg's nested, so it's not always going to be possible to do that...
PS: Thank you for this library. I've been using it for a few weeks now and I love it!