score:-1

Accepted answer

You can do it by requesting transformation matrix of the element:

const matrix = select('g').node().transform.baseVal.consolidate().matrix
const translateX = matrix.e
const translateY = matrix.f
const scale = matrix.d

Here is a more detailed explanation.


Related Query

More Query from same tag