@remotion/shapes
Advanced tools
Comparing version 3.3.36 to 4.0.0-esm.17
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.36", | ||
"version": "4.0.0-esm.17+da08690d2", | ||
"description": "Utility functions and components for SVG shapes", | ||
@@ -47,3 +47,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "623bf1e883e7b26b9d02458037c930ccbe8857e4" | ||
"gitHead": "da08690d241e1f5d6dde8a8d89f3379a54ec7681" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
51276
97
1213
2
1