MCPcopy
hub / github.com/react-designer/react-designer / getTransformMatrix

Method getTransformMatrix

src/objects/Vector.js:26–32  ·  view source on GitHub ↗
({rotate, x, y, width, height})

Source from the content-addressed store, hash-verified

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;

Callers 1

getObjectAttributesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected