UNPKG

geoiq-frontend-ui-kit

Version:

This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.

13 lines (12 loc) 375 B
const d = (n, o, a) => { if (o.bgRotation === 0) return n; const e = a.width / 2, c = a.height / 2, t = -o.bgRotation * (Math.PI / 180), r = n.x - e, s = n.y - c, h = r * Math.cos(t) - s * Math.sin(t), i = r * Math.sin(t) + s * Math.cos(t); return { x: h + e, y: i + c }; }; export { d as getRotatedPointerPosition }; //# sourceMappingURL=index.es95.js.map