Closed echolove38 closed 1 year ago
Please ask these types of questions on Stack Overflow...
But to answer your question :
Note: Groups do not have a geometry of their own, it's inherited from their content. Therefore groups do not listen to x, y, width and height attributes. If that is what you are looking for, use a nested() svg instead.
I make a demo here https://codepen.io/echolove38/pen/jOxoQpK I want to the rect rotate and move together, like a car tire. but the rotate center don't change.