@remotion/shapes
Advanced tools
Comparing version 3.3.38 to 3.3.39
export declare type MakeCircleProps = { | ||
cx?: number | string; | ||
cy?: number | string; | ||
radius?: number | string; | ||
radius: number; | ||
}; | ||
export declare const makeCircle: ({ cx, cy, radius, }: MakeCircleProps) => string; | ||
export declare const makeCircle: ({ radius }: MakeCircleProps) => string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.makeCircle = void 0; | ||
const makeCircle = ({ cx = 50, cy = 50, radius = 50, }) => { | ||
const makeCircle = ({ radius }) => { | ||
const cx = radius; | ||
const cy = radius; | ||
return `M ${cx} ${cy} m -${radius} 0 a ${radius} ${radius} 0 1 0 ${radius * 2} 0 ${radius} ${radius} 0 1 0 ${-radius * 2} 0`; | ||
}; | ||
exports.makeCircle = makeCircle; |
export declare type MakeEllipseOptions = { | ||
rx?: number | string; | ||
ry?: number | string; | ||
rx: number; | ||
ry: number; | ||
}; | ||
export declare const makeEllipse: ({ rx, ry }: MakeEllipseOptions) => string; |
export declare type MakeRectOptions = { | ||
x?: number; | ||
y?: number; | ||
width: number; | ||
height: number; | ||
}; | ||
export declare const makeRect: ({ x, y, width, height }: MakeRectOptions) => string; | ||
export declare const makeRect: ({ width, height }: MakeRectOptions) => string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.makeRect = void 0; | ||
const makeRect = ({ x = 0, y = 0, width, height }) => { | ||
const makeRect = ({ width, height }) => { | ||
const x = 0; | ||
const y = 0; | ||
return `M ${x} ${y} l ${width} 0 l 0 ${height} l ${-width} 0 Z`; | ||
}; | ||
exports.makeRect = makeRect; |
{ | ||
"name": "@remotion/shapes", | ||
"version": "3.3.38", | ||
"version": "3.3.39", | ||
"description": "Utility functions and components for SVG shapes", | ||
@@ -47,3 +47,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "ac58695e452e58deb5c010f09bcc94d036930e6c" | ||
"gitHead": "5a07260074fe3a6db2cdba0001503c665951414d" | ||
} |
57204
101
1393