@remotion/shapes
Advanced tools
Comparing version 3.3.36 to 3.3.37
export { Circle, CircleProps } from './components/circle'; | ||
export { Ellipse, EllipseProps } from './components/ellipse'; | ||
export { Rect, RectProps } from './components/rect'; | ||
export { Star, StarProps } from './components/star'; | ||
export { Triangle, TriangleProps } from './components/triangle'; | ||
@@ -9,2 +10,3 @@ export { Instruction } from './utils/instructions'; | ||
export { makeRect, MakeRectOptions } from './utils/make-rect'; | ||
export { makeStar, MakeStarProps } from './utils/make-star'; | ||
export { makeTriangle, MakeTriangleProps } from './utils/make-triangle'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.makeTriangle = exports.makeRect = exports.makeEllipse = exports.makeCircle = exports.Triangle = exports.Rect = exports.Ellipse = exports.Circle = void 0; | ||
exports.makeTriangle = exports.makeStar = exports.makeRect = exports.makeEllipse = exports.makeCircle = exports.Triangle = exports.Star = exports.Rect = exports.Ellipse = exports.Circle = void 0; | ||
var circle_1 = require("./components/circle"); | ||
@@ -10,2 +10,4 @@ Object.defineProperty(exports, "Circle", { enumerable: true, get: function () { return circle_1.Circle; } }); | ||
Object.defineProperty(exports, "Rect", { enumerable: true, get: function () { return rect_1.Rect; } }); | ||
var star_1 = require("./components/star"); | ||
Object.defineProperty(exports, "Star", { enumerable: true, get: function () { return star_1.Star; } }); | ||
var triangle_1 = require("./components/triangle"); | ||
@@ -19,3 +21,5 @@ Object.defineProperty(exports, "Triangle", { enumerable: true, get: function () { return triangle_1.Triangle; } }); | ||
Object.defineProperty(exports, "makeRect", { enumerable: true, get: function () { return make_rect_1.makeRect; } }); | ||
var make_star_1 = require("./utils/make-star"); | ||
Object.defineProperty(exports, "makeStar", { enumerable: true, get: function () { return make_star_1.makeStar; } }); | ||
var make_triangle_1 = require("./utils/make-triangle"); | ||
Object.defineProperty(exports, "makeTriangle", { enumerable: true, get: function () { return make_triangle_1.makeTriangle; } }); |
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": "3.3.37", | ||
"description": "Utility functions and components for SVG shapes", | ||
@@ -47,3 +47,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "623bf1e883e7b26b9d02458037c930ccbe8857e4" | ||
"gitHead": "ead6bdacc14a9953cae738159c49bf3daf09e9b0" | ||
} |
51720
97
1219