@remotion/player
Advanced tools
Comparing version 2.6.4 to 2.6.5
@@ -1,4 +0,1 @@ | ||
export declare const Loading: React.FC<{ | ||
size: number; | ||
}>; | ||
//# sourceMappingURL=Loading.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Loading = void 0; | ||
const jsx_runtime_1 = require("react/jsx-runtime"); | ||
const Loading = ({ size }) => { | ||
const triangle = (opacity, triangleSize) => ((0, jsx_runtime_1.jsxs)("svg", Object.assign({ xmlnsXlink: "http://www.w3.org/1999/xlink", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 400 400", style: { | ||
opacity, | ||
width: triangleSize, | ||
height: triangleSize, | ||
position: 'absolute', | ||
transform: 'rotate(90deg)', | ||
} }, { children: [(0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsxs)("linearGradient", Object.assign({ id: "gradient" }, { children: [(0, jsx_runtime_1.jsx)("stop", { stopColor: "#42e9f5", stopOpacity: "1", offset: "0" }, void 0), (0, jsx_runtime_1.jsx)("stop", { stopColor: "#4290f5", stopOpacity: "1", offset: "100%" }, void 0)] }), void 0) }, void 0), (0, jsx_runtime_1.jsx)("g", Object.assign({ stroke: 'url("#gradient")', strokeWidth: "100px", strokeLinejoin: "round" }, { children: (0, jsx_runtime_1.jsx)("path", { fill: 'url("#gradient")', d: "M 102 272 a 196 100 0 0 0 195 5 A 196 240 0 0 0 200 102.259 A 196 240 0 0 0 102 272 z", stroke: 'url("#gradient")', strokeWidth: "100px" }, void 0) }), void 0)] }), void 0)); | ||
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
flex: 1, | ||
height: '100%', | ||
width: '100%', | ||
} }, { children: [triangle(0.2, size), triangle(0.4, (size * 9) / 11), triangle(1, (size * 7) / 11)] }), void 0)); | ||
}; | ||
exports.Loading = Loading; | ||
//# sourceMappingURL=Loading.js.map |
@@ -25,2 +25,6 @@ "use strict"; | ||
} | ||
// @ts-expect-error | ||
if (componentProps.defaultProps !== undefined) { | ||
throw new Error('The <Player /> component does not accept `defaultProps`, but some were passed. Use `inputProps` instead.'); | ||
} | ||
const component = remotion_1.Internals.useLazyComponent(componentProps); | ||
@@ -27,0 +31,0 @@ const [frame, setFrame] = (0, react_1.useState)(0); |
{ | ||
"name": "@remotion/player", | ||
"version": "2.6.4", | ||
"version": "2.6.5", | ||
"description": "Remotion Player", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"remotion": "2.6.4" | ||
"remotion": "2.6.5" | ||
}, | ||
@@ -53,3 +53,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "729afee8ec8dd9c59a5aa087d135997e5ccf53b3" | ||
"gitHead": "b363de05bc5c0ef555167cecad664b209384f5c8" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
165813
143
2074
+ Addedremotion@2.6.5(transitive)
- Removedremotion@2.6.4(transitive)
Updatedremotion@2.6.5