[
{ name: 'rotate', type: 'rotate', x: 0, y: 0, z: 1, a: 0.872… },
{ name: 'translateY', type: 'translate', x: 0, y: 50 },
{ name: 'rotate', type: 'rotate', x: 0, y: 0, z: 1, a: -1.308… },
{ name: 'translateY', type: 'translate', x, y: -60 },
{ name: 'rotate', type: 'rotate', x: 0, y: 0, z: 1, a: 0.523… },
{ name: 'scale', type: 'scale', x: 0.5, y: 0.5 }
]
Make it more clear in code exactly how the architecture of the transform visualiser works.
From what I understand it runs through several 'passes'.
Here is how it currently works:
rotate(50deg) translateY(50%) rotate(-75deg) translateY(-60%) rotate(30deg) scale(0.5)=Array.map(…)against parsed transform array to interpret it to the local layout and simplifying it into more crude primitives for easy forward kinematicsArray.forEachof the Array returned by the first pass