UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

13 lines (11 loc) 454 B
/** * Rotates `point` around `origin` with `radians` * @deprecated use the Point.rotate * @param {Point} origin The origin of the rotation * @param {Point} origin The origin of the rotation * @param {TRadian} radians The radians of the angle for the rotation * @return {Point} The new rotated point */ const rotatePoint = (point, origin, radians) => point.rotate(radians, origin); export { rotatePoint }; //# sourceMappingURL=rotatePoint.mjs.map