remotion
Advanced tools
Comparing version 1.0.0-y.79 to 1.0.0-y.80
@@ -15,6 +15,6 @@ import { ComponentType } from 'react'; | ||
name: string; | ||
props?: T; | ||
defaultProps?: T; | ||
} & CompProps<T>; | ||
export declare const Composition: <T>({ width, height, fps, durationInFrames, name, props, ...compProps }: Props<T>) => null; | ||
export declare const Composition: <T>({ width, height, fps, durationInFrames, name, defaultProps: props, ...compProps }: Props<T>) => null; | ||
export {}; | ||
//# sourceMappingURL=Composition.d.ts.map |
@@ -26,3 +26,3 @@ "use strict"; | ||
const register_root_1 = require("./register-root"); | ||
const Composition = ({ width, height, fps, durationInFrames, name, props, ...compProps }) => { | ||
const Composition = ({ width, height, fps, durationInFrames, name, defaultProps: props, ...compProps }) => { | ||
const { registerComposition, unregisterComposition } = react_1.useContext(CompositionManager_1.CompositionManager); | ||
@@ -29,0 +29,0 @@ const lazy = react_1.useMemo(() => { |
@@ -5,5 +5,5 @@ import './asset-types'; | ||
export * from './CompositionManager'; | ||
export * from './defer-ready'; | ||
export * from './easing'; | ||
export * from './interpolate'; | ||
export * from './ready-manager'; | ||
export * from './register-root'; | ||
@@ -10,0 +10,0 @@ export * from './RemotionRoot'; |
@@ -17,5 +17,5 @@ "use strict"; | ||
__exportStar(require("./CompositionManager"), exports); | ||
__exportStar(require("./defer-ready"), exports); | ||
__exportStar(require("./easing"), exports); | ||
__exportStar(require("./interpolate"), exports); | ||
__exportStar(require("./ready-manager"), exports); | ||
__exportStar(require("./register-root"), exports); | ||
@@ -22,0 +22,0 @@ __exportStar(require("./RemotionRoot"), exports); |
@@ -6,3 +6,3 @@ "use strict"; | ||
const react_1 = require("react"); | ||
const defer_ready_1 = require("../defer-ready"); | ||
const ready_manager_1 = require("../ready-manager"); | ||
const use_frame_1 = require("../use-frame"); | ||
@@ -14,3 +14,3 @@ const use_unsafe_video_config_1 = require("../use-unsafe-video-config"); | ||
const [handle] = react_1.useState(() => { | ||
return defer_ready_1.deferRender(); | ||
return ready_manager_1.delayRender(); | ||
}); | ||
@@ -33,3 +33,3 @@ const currentFrame = use_frame_1.useCurrentFrame(); | ||
videoRef.current.addEventListener('seeked', () => { | ||
defer_ready_1.readyToRender(handle); | ||
ready_manager_1.continueRender(handle); | ||
}, { once: true }); | ||
@@ -36,0 +36,0 @@ setInterval(() => { |
{ | ||
"name": "remotion", | ||
"version": "1.0.0-y.79", | ||
"version": "1.0.0-y.80", | ||
"description": "Render videos in React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
Sorry, the diff of this file is not supported yet
100320
129
1310