You call Element.translate or Element.transform for which you don't
have to worry about a transformation matrix. Presumably Raphaël will
combine that translation effect into its transformation matrix but
that's mostly¹ an internal thing.
¹ I wrote "mostly" because you seem to be able to get an element's
matrix via its "matrix" property but I can't see any documentation for
that.
PS: thanks for your work with the FreeTransform plugin...I've been referencing it to figure out the implementation of this tshirt designer.
I'm guessing you haven't come across someone trying to do this before.
You appear to be a forum regular, so I thought I'd ask. Plus, I'm
guessing some users of FreeTransform plugin will want to transform
custom text...so the problem could come up eventually.