({rotate, x, y, width, height})
| 24 | } |
| 25 | |
| 26 | getTransformMatrix({rotate, x, y, width, height}) { |
| 27 | if (rotate) { |
| 28 | let centerX = width / 2 + x; |
| 29 | let centerY = height / 2 + y; |
| 30 | return `rotate(${rotate} ${centerX} ${centerY})`; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | getObjectAttributes() { |
| 35 | let {object, onRender, ...rest} = this.props; |