@googleforcreators/units
Version:
A collection of utility functions as well as a React context provider for dealing with "data" and "editor" pixels in the Web Stories editor.
3 lines (2 loc) • 353 B
JavaScript
var r=require("./getCorner.js"),e=require("./types.js");module.exports=function(t,o,n,s,i){const u=o+.5*s,C=n+.5*i,p=t*Math.PI/180,c=r(u,C,o,n,p),f=r(u,C,o+s,n,p),g=r(u,C,o+s,n+i,p),h=r(u,C,o,n+i,p);return{[e.Corner.TopLeft]:c,[e.Corner.TopRight]:f,[e.Corner.BottomRight]:g,[e.Corner.BottomLeft]:h}};
//# sourceMappingURL=getCorners.js.map
;