remotion 3.3.54 → 3.3.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AbsoluteFill.d.ts +2 -2
- package/dist/cjs/AbsoluteFill.js +2 -2
- package/dist/cjs/Composition.d.ts +4 -0
- package/dist/cjs/Composition.js +4 -0
- package/dist/cjs/Folder.d.ts +4 -0
- package/dist/cjs/Folder.js +4 -0
- package/dist/cjs/IFrame.d.ts +4 -0
- package/dist/cjs/IFrame.js +4 -0
- package/dist/cjs/Img.d.ts +4 -0
- package/dist/cjs/Img.js +4 -0
- package/dist/cjs/Sequence.d.ts +2 -10
- package/dist/cjs/Sequence.js +6 -6
- package/dist/cjs/SequenceContext.d.ts +9 -0
- package/dist/cjs/SequenceContext.js +5 -0
- package/dist/cjs/Still.d.ts +4 -0
- package/dist/cjs/Still.js +4 -0
- package/dist/cjs/audio/Audio.d.ts +5 -1
- package/dist/cjs/audio/Audio.js +6 -2
- package/dist/cjs/audio/AudioForDevelopment.js +2 -2
- package/dist/cjs/audio/AudioForRendering.js +2 -2
- package/dist/cjs/audio/use-audio-frame.js +2 -2
- package/dist/cjs/cancel-render.d.ts +4 -0
- package/dist/cjs/cancel-render.js +4 -0
- package/dist/cjs/delay-render.d.ts +4 -4
- package/dist/cjs/delay-render.js +4 -4
- package/dist/cjs/easing.d.ts +4 -0
- package/dist/cjs/easing.js +4 -0
- package/dist/cjs/freeze.d.ts +4 -0
- package/dist/cjs/freeze.js +6 -2
- package/dist/cjs/get-static-files.d.ts +4 -0
- package/dist/cjs/get-static-files.js +4 -0
- package/dist/cjs/index.d.ts +17 -8
- package/dist/cjs/index.js +18 -10
- package/dist/cjs/internals.d.ts +6 -6
- package/dist/cjs/internals.js +4 -4
- package/dist/cjs/interpolate-colors.d.ts +4 -0
- package/dist/cjs/interpolate-colors.js +4 -0
- package/dist/cjs/interpolate.js +4 -0
- package/dist/cjs/loop/index.d.ts +4 -0
- package/dist/cjs/loop/index.js +4 -0
- package/dist/cjs/prefetch.d.ts +4 -0
- package/dist/cjs/prefetch.js +4 -0
- package/dist/cjs/random.d.ts +2 -3
- package/dist/cjs/random.js +2 -3
- package/dist/cjs/register-root.d.ts +4 -0
- package/dist/cjs/register-root.js +4 -0
- package/dist/cjs/series/index.d.ts +4 -0
- package/dist/cjs/series/index.js +4 -0
- package/dist/cjs/spring/index.d.ts +2 -2
- package/dist/cjs/spring/index.js +2 -2
- package/dist/cjs/spring/measure-spring.d.ts +4 -0
- package/dist/cjs/spring/measure-spring.js +4 -0
- package/dist/cjs/static-file.d.ts +2 -2
- package/dist/cjs/static-file.js +2 -2
- package/dist/cjs/use-current-frame.d.ts +2 -3
- package/dist/cjs/use-current-frame.js +4 -5
- package/dist/cjs/use-media-in-timeline.js +2 -2
- package/dist/cjs/use-unsafe-video-config.js +2 -2
- package/dist/cjs/use-video-config.d.ts +4 -3
- package/dist/cjs/use-video-config.js +4 -3
- package/dist/cjs/use-video.d.ts +1 -1
- package/dist/cjs/validate-media-props.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video/OffthreadVideo.d.ts +4 -0
- package/dist/cjs/video/OffthreadVideo.js +4 -0
- package/dist/cjs/video/OffthreadVideoForRendering.js +2 -2
- package/dist/cjs/video/Video.d.ts +4 -0
- package/dist/cjs/video/Video.js +6 -2
- package/dist/cjs/video/VideoForDevelopment.js +2 -2
- package/dist/cjs/video/VideoForRendering.js +2 -2
- package/dist/cjs/wrap-remotion-context.d.ts +1 -1
- package/dist/cjs/wrap-remotion-context.js +3 -3
- package/dist/esm/index.mjs +4070 -0
- package/dist/esm/version.mjs +4 -0
- package/dist/tsconfig-esm.tsbuildinfo +1 -0
- package/package.json +11 -9
- package/version.js +2 -0
- package/.prettierrc.js +0 -14
- package/dist/AbsoluteFill.d.ts +0 -6
- package/dist/AbsoluteFill.js +0 -28
- package/dist/CanUseRemotionHooks.d.ts +0 -5
- package/dist/CanUseRemotionHooks.js +0 -10
- package/dist/Clipper.d.ts +0 -7
- package/dist/Clipper.js +0 -24
- package/dist/Composition.d.ts +0 -23
- package/dist/Composition.js +0 -113
- package/dist/CompositionManager.d.ts +0 -82
- package/dist/CompositionManager.js +0 -154
- package/dist/Folder.d.ts +0 -15
- package/dist/Folder.js +0 -33
- package/dist/IFrame.d.ts +0 -2
- package/dist/IFrame.js +0 -24
- package/dist/Img.d.ts +0 -2
- package/dist/Img.js +0 -52
- package/dist/NativeLayers.d.ts +0 -13
- package/dist/NativeLayers.js +0 -29
- package/dist/Null.d.ts +0 -2
- package/dist/Null.js +0 -25
- package/dist/RemotionRoot.d.ts +0 -5
- package/dist/RemotionRoot.js +0 -73
- package/dist/Sequence.d.ts +0 -28
- package/dist/Sequence.js +0 -131
- package/dist/Still.d.ts +0 -2
- package/dist/Still.js +0 -9
- package/dist/absolute-src.d.ts +0 -1
- package/dist/absolute-src.js +0 -7
- package/dist/asset-types.d.ts +0 -50
- package/dist/asset-types.js +0 -1
- package/dist/audio/Audio.d.ts +0 -8
- package/dist/audio/Audio.js +0 -52
- package/dist/audio/AudioForDevelopment.d.ts +0 -11
- package/dist/audio/AudioForDevelopment.js +0 -94
- package/dist/audio/AudioForRendering.d.ts +0 -10
- package/dist/audio/AudioForRendering.js +0 -111
- package/dist/audio/index.d.ts +0 -2
- package/dist/audio/index.js +0 -18
- package/dist/audio/props.d.ts +0 -12
- package/dist/audio/props.js +0 -2
- package/dist/audio/shared-audio-tags.d.ts +0 -37
- package/dist/audio/shared-audio-tags.js +0 -222
- package/dist/audio/use-audio-frame.d.ts +0 -6
- package/dist/audio/use-audio-frame.js +0 -23
- package/dist/bezier.d.ts +0 -1
- package/dist/bezier.js +0 -114
- package/dist/cjs/test/Img.test.d.ts +0 -1
- package/dist/cjs/test/Img.test.js +0 -25
- package/dist/cjs/test/absolute-src.test.d.ts +0 -1
- package/dist/cjs/test/absolute-src.test.js +0 -18
- package/dist/cjs/test/audio-for-rendering.test.d.ts +0 -1
- package/dist/cjs/test/audio-for-rendering.test.js +0 -88
- package/dist/cjs/test/audio.test.d.ts +0 -1
- package/dist/cjs/test/audio.test.js +0 -76
- package/dist/cjs/test/bezier.test.d.ts +0 -1
- package/dist/cjs/test/bezier.test.js +0 -52
- package/dist/cjs/test/composition-rules.test.d.ts +0 -1
- package/dist/cjs/test/composition-rules.test.js +0 -30
- package/dist/cjs/test/composition-validation.test.d.ts +0 -1
- package/dist/cjs/test/composition-validation.test.js +0 -99
- package/dist/cjs/test/easing.test.d.ts +0 -1
- package/dist/cjs/test/easing.test.js +0 -191
- package/dist/cjs/test/expect-to-throw.d.ts +0 -1
- package/dist/cjs/test/expect-to-throw.js +0 -15
- package/dist/cjs/test/freeze.test.d.ts +0 -1
- package/dist/cjs/test/freeze.test.js +0 -65
- package/dist/cjs/test/get-asset-file-name.test.d.ts +0 -1
- package/dist/cjs/test/get-asset-file-name.test.js +0 -14
- package/dist/cjs/test/get-current-time.test.d.ts +0 -1
- package/dist/cjs/test/get-current-time.test.js +0 -74
- package/dist/cjs/test/input-props.test.d.ts +0 -1
- package/dist/cjs/test/input-props.test.js +0 -31
- package/dist/cjs/test/interpolate.test.d.ts +0 -1
- package/dist/cjs/test/interpolate.test.js +0 -138
- package/dist/cjs/test/interpolateColors.test.d.ts +0 -1
- package/dist/cjs/test/interpolateColors.test.js +0 -63
- package/dist/cjs/test/loop-validation.test.d.ts +0 -1
- package/dist/cjs/test/loop-validation.test.js +0 -93
- package/dist/cjs/test/measure-spring.test.d.ts +0 -1
- package/dist/cjs/test/measure-spring.test.js +0 -45
- package/dist/cjs/test/media-validation.test.d.ts +0 -1
- package/dist/cjs/test/media-validation.test.js +0 -47
- package/dist/cjs/test/nested-sequences.test.d.ts +0 -1
- package/dist/cjs/test/nested-sequences.test.js +0 -132
- package/dist/cjs/test/not-all-props-in-media-tags.test.d.ts +0 -1
- package/dist/cjs/test/not-all-props-in-media-tags.test.js +0 -33
- package/dist/cjs/test/random.test.d.ts +0 -1
- package/dist/cjs/test/random.test.js +0 -60
- package/dist/cjs/test/ready-manager.test.d.ts +0 -1
- package/dist/cjs/test/ready-manager.test.js +0 -29
- package/dist/cjs/test/render-hook.d.ts +0 -23
- package/dist/cjs/test/render-hook.js +0 -27
- package/dist/cjs/test/sequence-from-initial-offset.test.d.ts +0 -4
- package/dist/cjs/test/sequence-from-initial-offset.test.js +0 -35
- package/dist/cjs/test/sequence-validation.test.d.ts +0 -1
- package/dist/cjs/test/sequence-validation.test.js +0 -47
- package/dist/cjs/test/series.test.d.ts +0 -1
- package/dist/cjs/test/series.test.js +0 -115
- package/dist/cjs/test/spring.test.d.ts +0 -1
- package/dist/cjs/test/spring.test.js +0 -38
- package/dist/cjs/test/truthy.test.d.ts +0 -1
- package/dist/cjs/test/truthy.test.js +0 -24
- package/dist/cjs/test/use-audio-frame.test.d.ts +0 -1
- package/dist/cjs/test/use-audio-frame.test.js +0 -78
- package/dist/cjs/test/use-media-in-timeline.test.d.ts +0 -1
- package/dist/cjs/test/use-media-in-timeline.test.js +0 -74
- package/dist/cjs/test/use-media-tag-volume.test.d.ts +0 -1
- package/dist/cjs/test/use-media-tag-volume.test.js +0 -49
- package/dist/cjs/test/use-sync-volume-with-media-tag.test.d.ts +0 -1
- package/dist/cjs/test/use-sync-volume-with-media-tag.test.js +0 -55
- package/dist/cjs/test/validate-start-from-props.test.d.ts +0 -1
- package/dist/cjs/test/validate-start-from-props.test.js +0 -39
- package/dist/cjs/test/video.test.d.ts +0 -1
- package/dist/cjs/test/video.test.js +0 -80
- package/dist/cjs/test/volume-prop.test.d.ts +0 -1
- package/dist/cjs/test/volume-prop.test.js +0 -95
- package/dist/cjs/test/wrap-sequence-context.d.ts +0 -6
- package/dist/cjs/test/wrap-sequence-context.js +0 -41
- package/dist/config/input-props.d.ts +0 -1
- package/dist/config/input-props.js +0 -31
- package/dist/config.d.ts +0 -291
- package/dist/config.js +0 -21
- package/dist/default-css.d.ts +0 -3
- package/dist/default-css.js +0 -49
- package/dist/delay-render.d.ts +0 -14
- package/dist/delay-render.js +0 -77
- package/dist/easing.d.ts +0 -19
- package/dist/easing.js +0 -77
- package/dist/esm/AbsoluteFill.d.ts +0 -6
- package/dist/esm/AbsoluteFill.js +0 -25
- package/dist/esm/CanUseRemotionHooks.d.ts +0 -5
- package/dist/esm/CanUseRemotionHooks.js +0 -6
- package/dist/esm/Clipper.d.ts +0 -7
- package/dist/esm/Clipper.js +0 -20
- package/dist/esm/Composition.d.ts +0 -23
- package/dist/esm/Composition.js +0 -108
- package/dist/esm/CompositionManager.d.ts +0 -82
- package/dist/esm/CompositionManager.js +0 -137
- package/dist/esm/Folder.d.ts +0 -15
- package/dist/esm/Folder.js +0 -29
- package/dist/esm/IFrame.d.ts +0 -2
- package/dist/esm/IFrame.js +0 -21
- package/dist/esm/Img.d.ts +0 -2
- package/dist/esm/Img.js +0 -49
- package/dist/esm/NativeLayers.d.ts +0 -13
- package/dist/esm/NativeLayers.js +0 -25
- package/dist/esm/Null.d.ts +0 -2
- package/dist/esm/Null.js +0 -21
- package/dist/esm/RemotionRoot.d.ts +0 -5
- package/dist/esm/RemotionRoot.js +0 -69
- package/dist/esm/Sequence.d.ts +0 -29
- package/dist/esm/Sequence.js +0 -128
- package/dist/esm/Still.d.ts +0 -3
- package/dist/esm/Still.js +0 -5
- package/dist/esm/absolute-src.d.ts +0 -1
- package/dist/esm/absolute-src.js +0 -3
- package/dist/esm/asset-types.d.ts +0 -50
- package/dist/esm/asset-types.js +0 -1
- package/dist/esm/audio/Audio.d.ts +0 -8
- package/dist/esm/audio/Audio.js +0 -49
- package/dist/esm/audio/AudioForDevelopment.d.ts +0 -11
- package/dist/esm/audio/AudioForDevelopment.js +0 -91
- package/dist/esm/audio/AudioForRendering.d.ts +0 -10
- package/dist/esm/audio/AudioForRendering.js +0 -108
- package/dist/esm/audio/index.d.ts +0 -2
- package/dist/esm/audio/index.js +0 -2
- package/dist/esm/audio/props.d.ts +0 -12
- package/dist/esm/audio/props.js +0 -1
- package/dist/esm/audio/shared-audio-tags.d.ts +0 -37
- package/dist/esm/audio/shared-audio-tags.js +0 -194
- package/dist/esm/audio/use-audio-frame.d.ts +0 -6
- package/dist/esm/audio/use-audio-frame.js +0 -18
- package/dist/esm/bezier.d.ts +0 -1
- package/dist/esm/bezier.js +0 -110
- package/dist/esm/cancel-render.d.ts +0 -1
- package/dist/esm/cancel-render.js +0 -39
- package/dist/esm/config/input-props.d.ts +0 -1
- package/dist/esm/config/input-props.js +0 -27
- package/dist/esm/config.d.ts +0 -285
- package/dist/esm/config.js +0 -17
- package/dist/esm/default-css.d.ts +0 -3
- package/dist/esm/default-css.js +0 -44
- package/dist/esm/delay-render.d.ts +0 -14
- package/dist/esm/delay-render.js +0 -72
- package/dist/esm/easing.d.ts +0 -19
- package/dist/esm/easing.js +0 -73
- package/dist/esm/freeze.d.ts +0 -7
- package/dist/esm/freeze.js +0 -30
- package/dist/esm/get-asset-file-name.d.ts +0 -1
- package/dist/esm/get-asset-file-name.js +0 -10
- package/dist/esm/get-environment.d.ts +0 -3
- package/dist/esm/get-environment.js +0 -29
- package/dist/esm/get-preview-dom-element.d.ts +0 -1
- package/dist/esm/get-preview-dom-element.js +0 -3
- package/dist/esm/get-static-files.d.ts +0 -17
- package/dist/esm/get-static-files.js +0 -27
- package/dist/esm/get-timeline-clip-name.d.ts +0 -1
- package/dist/esm/get-timeline-clip-name.js +0 -21
- package/dist/esm/index.d.ts +0 -92
- package/dist/esm/index.js +0 -41
- package/dist/esm/internals.d.ts +0 -99
- package/dist/esm/internals.js +0 -75
- package/dist/esm/interpolate-colors.d.ts +0 -5
- package/dist/esm/interpolate-colors.js +0 -397
- package/dist/esm/interpolate.d.ts +0 -18
- package/dist/esm/interpolate.js +0 -119
- package/dist/esm/is-approximately-the-same.d.ts +0 -1
- package/dist/esm/is-approximately-the-same.js +0 -4
- package/dist/esm/is-player.d.ts +0 -3
- package/dist/esm/is-player.js +0 -9
- package/dist/esm/loading-indicator.d.ts +0 -2
- package/dist/esm/loading-indicator.js +0 -31
- package/dist/esm/loop/index.d.ts +0 -9
- package/dist/esm/loop/index.js +0 -25
- package/dist/esm/multiple-versions-warning.d.ts +0 -1
- package/dist/esm/multiple-versions-warning.js +0 -28
- package/dist/esm/nonce.d.ts +0 -7
- package/dist/esm/nonce.js +0 -13
- package/dist/esm/play-and-handle-not-allowed-error.d.ts +0 -2
- package/dist/esm/play-and-handle-not-allowed-error.js +0 -40
- package/dist/esm/portal-node.d.ts +0 -1
- package/dist/esm/portal-node.js +0 -19
- package/dist/esm/prefetch-state.d.ts +0 -8
- package/dist/esm/prefetch-state.js +0 -22
- package/dist/esm/prefetch.d.ts +0 -9
- package/dist/esm/prefetch.js +0 -103
- package/dist/esm/random.d.ts +0 -7
- package/dist/esm/random.js +0 -38
- package/dist/esm/register-root.d.ts +0 -4
- package/dist/esm/register-root.js +0 -27
- package/dist/esm/series/flatten-children.d.ts +0 -2
- package/dist/esm/series/flatten-children.js +0 -12
- package/dist/esm/series/index.d.ts +0 -13
- package/dist/esm/series/index.js +0 -57
- package/dist/esm/setup-env-variables.d.ts +0 -2
- package/dist/esm/setup-env-variables.js +0 -32
- package/dist/esm/spring/index.d.ts +0 -27
- package/dist/esm/spring/index.js +0 -50
- package/dist/esm/spring/measure-spring.d.ts +0 -8
- package/dist/esm/spring/measure-spring.js +0 -60
- package/dist/esm/spring/spring-utils.d.ts +0 -21
- package/dist/esm/spring/spring-utils.js +0 -99
- package/dist/esm/static-file.d.ts +0 -5
- package/dist/esm/static-file.js +0 -29
- package/dist/esm/test/Img.test.d.ts +0 -1
- package/dist/esm/test/Img.test.js +0 -20
- package/dist/esm/test/absolute-src.test.d.ts +0 -1
- package/dist/esm/test/absolute-src.test.js +0 -16
- package/dist/esm/test/audio-for-rendering.test.d.ts +0 -1
- package/dist/esm/test/audio-for-rendering.test.js +0 -83
- package/dist/esm/test/audio.test.d.ts +0 -1
- package/dist/esm/test/audio.test.js +0 -51
- package/dist/esm/test/bezier.test.d.ts +0 -1
- package/dist/esm/test/bezier.test.js +0 -50
- package/dist/esm/test/composition-rules.test.d.ts +0 -1
- package/dist/esm/test/composition-rules.test.js +0 -28
- package/dist/esm/test/composition-validation.test.d.ts +0 -1
- package/dist/esm/test/composition-validation.test.js +0 -97
- package/dist/esm/test/easing.test.d.ts +0 -1
- package/dist/esm/test/easing.test.js +0 -189
- package/dist/esm/test/expect-to-throw.d.ts +0 -1
- package/dist/esm/test/expect-to-throw.js +0 -11
- package/dist/esm/test/freeze.test.d.ts +0 -1
- package/dist/esm/test/freeze.test.js +0 -63
- package/dist/esm/test/get-asset-file-name.test.d.ts +0 -1
- package/dist/esm/test/get-asset-file-name.test.js +0 -12
- package/dist/esm/test/get-current-time.test.d.ts +0 -1
- package/dist/esm/test/get-current-time.test.js +0 -72
- package/dist/esm/test/input-props.test.d.ts +0 -1
- package/dist/esm/test/input-props.test.js +0 -29
- package/dist/esm/test/interpolate.test.d.ts +0 -1
- package/dist/esm/test/interpolate.test.js +0 -136
- package/dist/esm/test/interpolateColors.test.d.ts +0 -1
- package/dist/esm/test/interpolateColors.test.js +0 -61
- package/dist/esm/test/loop-validation.test.d.ts +0 -1
- package/dist/esm/test/loop-validation.test.js +0 -68
- package/dist/esm/test/measure-spring.test.d.ts +0 -1
- package/dist/esm/test/measure-spring.test.js +0 -43
- package/dist/esm/test/media-validation.test.d.ts +0 -1
- package/dist/esm/test/media-validation.test.js +0 -45
- package/dist/esm/test/nested-sequences.test.d.ts +0 -1
- package/dist/esm/test/nested-sequences.test.js +0 -130
- package/dist/esm/test/not-all-props-in-media-tags.test.d.ts +0 -1
- package/dist/esm/test/not-all-props-in-media-tags.test.js +0 -28
- package/dist/esm/test/random.test.d.ts +0 -1
- package/dist/esm/test/random.test.js +0 -58
- package/dist/esm/test/ready-manager.test.d.ts +0 -1
- package/dist/esm/test/ready-manager.test.js +0 -27
- package/dist/esm/test/render-hook.d.ts +0 -23
- package/dist/esm/test/render-hook.js +0 -20
- package/dist/esm/test/sequence-from-initial-offset.test.d.ts +0 -4
- package/dist/esm/test/sequence-from-initial-offset.test.js +0 -33
- package/dist/esm/test/sequence-validation.test.d.ts +0 -1
- package/dist/esm/test/sequence-validation.test.js +0 -45
- package/dist/esm/test/series.test.d.ts +0 -1
- package/dist/esm/test/series.test.js +0 -113
- package/dist/esm/test/spring.test.d.ts +0 -1
- package/dist/esm/test/spring.test.js +0 -36
- package/dist/esm/test/truthy.test.d.ts +0 -1
- package/dist/esm/test/truthy.test.js +0 -22
- package/dist/esm/test/use-audio-frame.test.d.ts +0 -1
- package/dist/esm/test/use-audio-frame.test.js +0 -53
- package/dist/esm/test/use-media-in-timeline.test.d.ts +0 -1
- package/dist/esm/test/use-media-in-timeline.test.js +0 -49
- package/dist/esm/test/use-media-tag-volume.test.d.ts +0 -1
- package/dist/esm/test/use-media-tag-volume.test.js +0 -44
- package/dist/esm/test/use-sync-volume-with-media-tag.test.d.ts +0 -1
- package/dist/esm/test/use-sync-volume-with-media-tag.test.js +0 -53
- package/dist/esm/test/validate-start-from-props.test.d.ts +0 -1
- package/dist/esm/test/validate-start-from-props.test.js +0 -37
- package/dist/esm/test/video.test.d.ts +0 -1
- package/dist/esm/test/video.test.js +0 -55
- package/dist/esm/test/volume-prop.test.d.ts +0 -1
- package/dist/esm/test/volume-prop.test.js +0 -93
- package/dist/esm/test/wrap-sequence-context.d.ts +0 -6
- package/dist/esm/test/wrap-sequence-context.js +0 -37
- package/dist/esm/timeline-position-state.d.ts +0 -29
- package/dist/esm/timeline-position-state.js +0 -35
- package/dist/esm/truthy.d.ts +0 -3
- package/dist/esm/truthy.js +0 -3
- package/dist/esm/use-current-frame.d.ts +0 -6
- package/dist/esm/use-current-frame.js +0 -24
- package/dist/esm/use-lazy-component.d.ts +0 -7
- package/dist/esm/use-lazy-component.js +0 -22
- package/dist/esm/use-media-in-timeline.d.ts +0 -10
- package/dist/esm/use-media-in-timeline.js +0 -125
- package/dist/esm/use-media-playback.d.ts +0 -10
- package/dist/esm/use-media-playback.js +0 -73
- package/dist/esm/use-media-tag-volume.d.ts +0 -2
- package/dist/esm/use-media-tag-volume.js +0 -27
- package/dist/esm/use-sync-volume-with-media-tag.d.ts +0 -10
- package/dist/esm/use-sync-volume-with-media-tag.js +0 -17
- package/dist/esm/use-unsafe-video-config.d.ts +0 -2
- package/dist/esm/use-unsafe-video-config.js +0 -23
- package/dist/esm/use-video-config.d.ts +0 -7
- package/dist/esm/use-video-config.js +0 -25
- package/dist/esm/use-video.d.ts +0 -13
- package/dist/esm/use-video.js +0 -24
- package/dist/esm/validate-frame.d.ts +0 -1
- package/dist/esm/validate-frame.js +0 -20
- package/dist/esm/validate-media-props.d.ts +0 -4
- package/dist/esm/validate-media-props.js +0 -20
- package/dist/esm/validate-start-from-props.d.ts +0 -1
- package/dist/esm/validate-start-from-props.js +0 -27
- package/dist/esm/validation/validate-composition-id.d.ts +0 -3
- package/dist/esm/validation/validate-composition-id.js +0 -8
- package/dist/esm/validation/validate-dimensions.d.ts +0 -1
- package/dist/esm/validation/validate-dimensions.js +0 -17
- package/dist/esm/validation/validate-duration-in-frames.d.ts +0 -1
- package/dist/esm/validation/validate-duration-in-frames.js +0 -11
- package/dist/esm/validation/validate-folder-name.d.ts +0 -3
- package/dist/esm/validation/validate-folder-name.js +0 -14
- package/dist/esm/validation/validate-fps.d.ts +0 -1
- package/dist/esm/validation/validate-fps.js +0 -17
- package/dist/esm/validation/validate-offthreadvideo-image-format.d.ts +0 -1
- package/dist/esm/validation/validate-offthreadvideo-image-format.js +0 -11
- package/dist/esm/validation/validation-spring-duration.d.ts +0 -1
- package/dist/esm/validation/validation-spring-duration.js +0 -17
- package/dist/esm/version.d.ts +0 -1
- package/dist/esm/version.js +0 -2
- package/dist/esm/video/OffthreadVideo.d.ts +0 -3
- package/dist/esm/video/OffthreadVideo.js +0 -29
- package/dist/esm/video/OffthreadVideoForRendering.d.ts +0 -3
- package/dist/esm/video/OffthreadVideoForRendering.js +0 -100
- package/dist/esm/video/Video.d.ts +0 -8
- package/dist/esm/video/Video.js +0 -47
- package/dist/esm/video/VideoForDevelopment.d.ts +0 -11
- package/dist/esm/video/VideoForDevelopment.js +0 -110
- package/dist/esm/video/VideoForRendering.d.ts +0 -10
- package/dist/esm/video/VideoForRendering.js +0 -200
- package/dist/esm/video/duration-state.d.ts +0 -17
- package/dist/esm/video/duration-state.js +0 -29
- package/dist/esm/video/get-current-time.d.ts +0 -13
- package/dist/esm/video/get-current-time.js +0 -26
- package/dist/esm/video/index.d.ts +0 -3
- package/dist/esm/video/index.js +0 -2
- package/dist/esm/video/props.d.ts +0 -25
- package/dist/esm/video/props.js +0 -1
- package/dist/esm/video/video-fragment.d.ts +0 -12
- package/dist/esm/video/video-fragment.js +0 -55
- package/dist/esm/video-config.d.ts +0 -8
- package/dist/esm/video-config.js +0 -1
- package/dist/esm/volume-position-state.d.ts +0 -19
- package/dist/esm/volume-position-state.js +0 -27
- package/dist/esm/volume-prop.d.ts +0 -7
- package/dist/esm/volume-prop.js +0 -20
- package/dist/esm/warn-about-non-seekable-media.d.ts +0 -1
- package/dist/esm/warn-about-non-seekable-media.js +0 -30
- package/dist/esm/wrap-remotion-context.d.ts +0 -18
- package/dist/esm/wrap-remotion-context.js +0 -45
- package/dist/freeze.d.ts +0 -7
- package/dist/freeze.js +0 -34
- package/dist/get-asset-file-name.d.ts +0 -1
- package/dist/get-asset-file-name.js +0 -14
- package/dist/get-environment.d.ts +0 -3
- package/dist/get-environment.js +0 -34
- package/dist/get-preview-dom-element.d.ts +0 -1
- package/dist/get-preview-dom-element.js +0 -7
- package/dist/get-static-files.d.ts +0 -17
- package/dist/get-static-files.js +0 -31
- package/dist/get-timeline-clip-name.d.ts +0 -1
- package/dist/get-timeline-clip-name.js +0 -25
- package/dist/index.d.ts +0 -89
- package/dist/index.js +0 -69
- package/dist/internals.d.ts +0 -100
- package/dist/internals.js +0 -99
- package/dist/interpolate-colors.d.ts +0 -5
- package/dist/interpolate-colors.js +0 -401
- package/dist/interpolate.d.ts +0 -18
- package/dist/interpolate.js +0 -123
- package/dist/is-approximately-the-same.d.ts +0 -1
- package/dist/is-approximately-the-same.js +0 -8
- package/dist/is-player.d.ts +0 -3
- package/dist/is-player.js +0 -14
- package/dist/loading-indicator.d.ts +0 -2
- package/dist/loading-indicator.js +0 -35
- package/dist/loop/index.d.ts +0 -9
- package/dist/loop/index.js +0 -29
- package/dist/multiple-versions-warning.d.ts +0 -1
- package/dist/multiple-versions-warning.js +0 -32
- package/dist/nonce.d.ts +0 -7
- package/dist/nonce.js +0 -17
- package/dist/play-and-handle-not-allowed-error.d.ts +0 -2
- package/dist/play-and-handle-not-allowed-error.js +0 -44
- package/dist/portal-node.d.ts +0 -1
- package/dist/portal-node.js +0 -23
- package/dist/prefetch-state.d.ts +0 -8
- package/dist/prefetch-state.js +0 -27
- package/dist/prefetch.d.ts +0 -9
- package/dist/prefetch.js +0 -108
- package/dist/random.d.ts +0 -7
- package/dist/random.js +0 -41
- package/dist/register-root.d.ts +0 -4
- package/dist/register-root.js +0 -33
- package/dist/series/flatten-children.d.ts +0 -2
- package/dist/series/flatten-children.js +0 -19
- package/dist/series/index.d.ts +0 -13
- package/dist/series/index.js +0 -57
- package/dist/setup-env-variables.d.ts +0 -2
- package/dist/setup-env-variables.js +0 -36
- package/dist/spring/index.d.ts +0 -27
- package/dist/spring/index.js +0 -51
- package/dist/spring/measure-spring.d.ts +0 -8
- package/dist/spring/measure-spring.js +0 -64
- package/dist/spring/spring-utils.d.ts +0 -21
- package/dist/spring/spring-utils.js +0 -103
- package/dist/static-file.d.ts +0 -5
- package/dist/static-file.js +0 -33
- package/dist/timeline-position-state.d.ts +0 -29
- package/dist/timeline-position-state.js +0 -41
- package/dist/truthy.d.ts +0 -3
- package/dist/truthy.js +0 -7
- package/dist/tsconfig-cjs.tsbuildinfo +0 -1
- package/dist/use-current-frame.d.ts +0 -6
- package/dist/use-current-frame.js +0 -28
- package/dist/use-lazy-component.d.ts +0 -7
- package/dist/use-lazy-component.js +0 -49
- package/dist/use-media-in-timeline.d.ts +0 -10
- package/dist/use-media-in-timeline.js +0 -129
- package/dist/use-media-playback.d.ts +0 -10
- package/dist/use-media-playback.js +0 -77
- package/dist/use-media-tag-volume.d.ts +0 -2
- package/dist/use-media-tag-volume.js +0 -31
- package/dist/use-sync-volume-with-media-tag.d.ts +0 -10
- package/dist/use-sync-volume-with-media-tag.js +0 -21
- package/dist/use-unsafe-video-config.d.ts +0 -2
- package/dist/use-unsafe-video-config.js +0 -27
- package/dist/use-video-config.d.ts +0 -7
- package/dist/use-video-config.js +0 -29
- package/dist/use-video.d.ts +0 -12
- package/dist/use-video.js +0 -28
- package/dist/validate-media-props.d.ts +0 -4
- package/dist/validate-media-props.js +0 -24
- package/dist/validate-start-from-props.d.ts +0 -1
- package/dist/validate-start-from-props.js +0 -31
- package/dist/validation/validate-composition-id.d.ts +0 -3
- package/dist/validation/validate-composition-id.js +0 -13
- package/dist/validation/validate-dimensions.d.ts +0 -1
- package/dist/validation/validate-dimensions.js +0 -21
- package/dist/validation/validate-duration-in-frames.d.ts +0 -1
- package/dist/validation/validate-duration-in-frames.js +0 -15
- package/dist/validation/validate-folder-name.d.ts +0 -3
- package/dist/validation/validate-folder-name.js +0 -19
- package/dist/validation/validate-fps.d.ts +0 -1
- package/dist/validation/validate-fps.js +0 -21
- package/dist/validation/validate-offthreadvideo-image-format.d.ts +0 -1
- package/dist/validation/validate-offthreadvideo-image-format.js +0 -15
- package/dist/validation/validation-spring-duration.d.ts +0 -1
- package/dist/validation/validation-spring-duration.js +0 -21
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -5
- package/dist/video/OffthreadVideo.d.ts +0 -3
- package/dist/video/OffthreadVideo.js +0 -33
- package/dist/video/OffthreadVideoForRendering.d.ts +0 -3
- package/dist/video/OffthreadVideoForRendering.js +0 -104
- package/dist/video/Video.d.ts +0 -8
- package/dist/video/Video.js +0 -50
- package/dist/video/VideoForDevelopment.d.ts +0 -11
- package/dist/video/VideoForDevelopment.js +0 -113
- package/dist/video/VideoForRendering.d.ts +0 -10
- package/dist/video/VideoForRendering.js +0 -203
- package/dist/video/duration-state.d.ts +0 -17
- package/dist/video/duration-state.js +0 -34
- package/dist/video/get-current-time.d.ts +0 -13
- package/dist/video/get-current-time.js +0 -31
- package/dist/video/index.d.ts +0 -3
- package/dist/video/index.js +0 -7
- package/dist/video/props.d.ts +0 -25
- package/dist/video/props.js +0 -2
- package/dist/video/video-fragment.d.ts +0 -12
- package/dist/video/video-fragment.js +0 -60
- package/dist/video-config.d.ts +0 -8
- package/dist/video-config.js +0 -2
- package/dist/volume-position-state.d.ts +0 -19
- package/dist/volume-position-state.js +0 -32
- package/dist/volume-prop.d.ts +0 -7
- package/dist/volume-prop.js +0 -24
- package/dist/warn-about-non-seekable-media.d.ts +0 -1
- package/dist/warn-about-non-seekable-media.js +0 -34
- package/dist/wrap-remotion-context.d.ts +0 -18
- package/dist/wrap-remotion-context.js +0 -73
- package/tsconfig-cjs.json +0 -11
- /package/{tsconfig.json → tsconfig-esm.json} +0 -0
package/dist/internals.d.ts
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import type { Configuration } from 'webpack';
|
|
2
|
-
import type { CompProps } from './Composition';
|
|
3
|
-
import type { CompositionManagerContext, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager';
|
|
4
|
-
import * as CSSUtils from './default-css';
|
|
5
|
-
import type { RemotionEnvironment } from './get-environment';
|
|
6
|
-
import type { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state';
|
|
7
|
-
import * as TimelinePosition from './timeline-position-state';
|
|
8
|
-
import { truthy } from './truthy';
|
|
9
|
-
import type { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state';
|
|
10
|
-
import { useRemotionContexts } from './wrap-remotion-context';
|
|
11
|
-
declare const Timeline: typeof TimelinePosition;
|
|
12
|
-
export declare const Internals: {
|
|
13
|
-
useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
|
|
14
|
-
Timeline: typeof TimelinePosition;
|
|
15
|
-
CompositionManager: import("react").Context<CompositionManagerContext>;
|
|
16
|
-
RemotionRoot: import("react").FC<{
|
|
17
|
-
children: import("react").ReactNode;
|
|
18
|
-
numberOfAudioTags: number;
|
|
19
|
-
}>;
|
|
20
|
-
useVideo: () => {
|
|
21
|
-
height: number;
|
|
22
|
-
width: number;
|
|
23
|
-
fps: number;
|
|
24
|
-
durationInFrames: number;
|
|
25
|
-
defaultProps: unknown;
|
|
26
|
-
id: string;
|
|
27
|
-
folderName: string | null;
|
|
28
|
-
parentFolderName: string | null;
|
|
29
|
-
component: import("react").LazyExoticComponent<import("react").ComponentType<unknown>>;
|
|
30
|
-
nonce: number;
|
|
31
|
-
} | null;
|
|
32
|
-
getRoot: () => import("react").FC<{}> | null;
|
|
33
|
-
useMediaVolumeState: () => readonly [number, (u: number) => void];
|
|
34
|
-
useMediaMutedState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
|
|
35
|
-
useLazyComponent: <T>(compProps: CompProps<T>) => import("react").ExoticComponent<(import("react").PropsWithoutRef<T> & import("react").RefAttributes<import("react").Component<T, any, any>>) | import("react").PropsWithRef<T>> & {
|
|
36
|
-
readonly _result: import("react").ComponentType<T>;
|
|
37
|
-
};
|
|
38
|
-
truthy: typeof truthy;
|
|
39
|
-
SequenceContext: import("react").Context<import("./Sequence").SequenceContextType | null>;
|
|
40
|
-
useRemotionContexts: typeof useRemotionContexts;
|
|
41
|
-
RemotionContextProvider: (props: import("./wrap-remotion-context").RemotionContextProviderProps) => JSX.Element;
|
|
42
|
-
CSSUtils: typeof CSSUtils;
|
|
43
|
-
setupEnvVariables: () => void;
|
|
44
|
-
ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
|
|
45
|
-
MediaVolumeContext: import("react").Context<MediaVolumeContextValue>;
|
|
46
|
-
SetMediaVolumeContext: import("react").Context<SetMediaVolumeContextValue>;
|
|
47
|
-
validateDurationInFrames: (durationInFrames: number, component: string) => void;
|
|
48
|
-
validateFps: (fps: number, location: string, isGif: boolean) => void;
|
|
49
|
-
validateDimension: (amount: number, nameOfProp: string, location: string) => void;
|
|
50
|
-
getRemotionEnvironment: () => RemotionEnvironment;
|
|
51
|
-
SharedAudioContext: import("react").Context<{
|
|
52
|
-
registerAudio: (aud: import("./audio").RemotionAudioProps, audioId: string) => {
|
|
53
|
-
id: number;
|
|
54
|
-
props: import("./audio").RemotionAudioProps;
|
|
55
|
-
el: import("react").RefObject<HTMLAudioElement>;
|
|
56
|
-
audioId: string;
|
|
57
|
-
};
|
|
58
|
-
unregisterAudio: (id: number) => void;
|
|
59
|
-
updateAudio: (options: {
|
|
60
|
-
id: number;
|
|
61
|
-
aud: import("./audio").RemotionAudioProps;
|
|
62
|
-
audioId: string;
|
|
63
|
-
}) => void;
|
|
64
|
-
playAllAudios: () => void;
|
|
65
|
-
numberOfAudioTags: number;
|
|
66
|
-
} | null>;
|
|
67
|
-
SharedAudioContextProvider: import("react").FC<{
|
|
68
|
-
numberOfAudioTags: number;
|
|
69
|
-
children: import("react").ReactNode;
|
|
70
|
-
}>;
|
|
71
|
-
invalidCompositionErrorMessage: string;
|
|
72
|
-
isCompositionIdValid: (id: string) => RegExpMatchArray | null;
|
|
73
|
-
getPreviewDomElement: () => HTMLElement | null;
|
|
74
|
-
compositionsRef: import("react").RefObject<{
|
|
75
|
-
getCompositions: () => TCompMetadata[];
|
|
76
|
-
}>;
|
|
77
|
-
DELAY_RENDER_CALLSTACK_TOKEN: string;
|
|
78
|
-
portalNode: () => HTMLElement;
|
|
79
|
-
waitForRoot: (fn: (comp: import("react").FC<{}>) => void) => () => void;
|
|
80
|
-
validateOffthreadVideoImageFormat: (input: unknown) => void;
|
|
81
|
-
CanUseRemotionHooksProvider: import("react").FC<{
|
|
82
|
-
children: import("react").ReactNode;
|
|
83
|
-
}>;
|
|
84
|
-
CanUseRemotionHooks: import("react").Context<boolean>;
|
|
85
|
-
enableLegacyRemotionConfig: () => void;
|
|
86
|
-
PrefetchProvider: import("react").FC<{
|
|
87
|
-
children: import("react").ReactNode;
|
|
88
|
-
}>;
|
|
89
|
-
DurationsContextProvider: import("react").FC<{
|
|
90
|
-
children: import("react").ReactNode;
|
|
91
|
-
}>;
|
|
92
|
-
IsPlayerContextProvider: import("react").FC<{
|
|
93
|
-
children?: import("react").ReactNode;
|
|
94
|
-
}>;
|
|
95
|
-
useIsPlayer: () => boolean;
|
|
96
|
-
useRemotionEnvironment: () => RemotionEnvironment;
|
|
97
|
-
};
|
|
98
|
-
declare type WebpackConfiguration = Configuration;
|
|
99
|
-
declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
|
|
100
|
-
export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, WebpackConfiguration, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };
|
package/dist/internals.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Internals = void 0;
|
|
27
|
-
const config_1 = require("./config");
|
|
28
|
-
const shared_audio_tags_1 = require("./audio/shared-audio-tags");
|
|
29
|
-
const CanUseRemotionHooks_1 = require("./CanUseRemotionHooks");
|
|
30
|
-
const CompositionManager_1 = require("./CompositionManager");
|
|
31
|
-
const CSSUtils = __importStar(require("./default-css"));
|
|
32
|
-
const delay_render_1 = require("./delay-render");
|
|
33
|
-
const get_environment_1 = require("./get-environment");
|
|
34
|
-
const get_preview_dom_element_1 = require("./get-preview-dom-element");
|
|
35
|
-
const is_player_1 = require("./is-player");
|
|
36
|
-
const portal_node_1 = require("./portal-node");
|
|
37
|
-
const prefetch_state_1 = require("./prefetch-state");
|
|
38
|
-
const register_root_1 = require("./register-root");
|
|
39
|
-
const RemotionRoot_1 = require("./RemotionRoot");
|
|
40
|
-
const Sequence_1 = require("./Sequence");
|
|
41
|
-
const setup_env_variables_1 = require("./setup-env-variables");
|
|
42
|
-
const TimelinePosition = __importStar(require("./timeline-position-state"));
|
|
43
|
-
const truthy_1 = require("./truthy");
|
|
44
|
-
const use_lazy_component_1 = require("./use-lazy-component");
|
|
45
|
-
const use_unsafe_video_config_1 = require("./use-unsafe-video-config");
|
|
46
|
-
const use_video_1 = require("./use-video");
|
|
47
|
-
const validate_composition_id_1 = require("./validation/validate-composition-id");
|
|
48
|
-
const validate_dimensions_1 = require("./validation/validate-dimensions");
|
|
49
|
-
const validate_duration_in_frames_1 = require("./validation/validate-duration-in-frames");
|
|
50
|
-
const validate_fps_1 = require("./validation/validate-fps");
|
|
51
|
-
const validate_offthreadvideo_image_format_1 = require("./validation/validate-offthreadvideo-image-format");
|
|
52
|
-
const duration_state_1 = require("./video/duration-state");
|
|
53
|
-
const volume_position_state_1 = require("./volume-position-state");
|
|
54
|
-
const wrap_remotion_context_1 = require("./wrap-remotion-context");
|
|
55
|
-
const Timeline = TimelinePosition;
|
|
56
|
-
// Mark them as Internals so use don't assume this is public
|
|
57
|
-
// API and are less likely to use it
|
|
58
|
-
exports.Internals = {
|
|
59
|
-
useUnsafeVideoConfig: use_unsafe_video_config_1.useUnsafeVideoConfig,
|
|
60
|
-
Timeline,
|
|
61
|
-
CompositionManager: CompositionManager_1.CompositionManager,
|
|
62
|
-
RemotionRoot: RemotionRoot_1.RemotionRoot,
|
|
63
|
-
useVideo: use_video_1.useVideo,
|
|
64
|
-
getRoot: register_root_1.getRoot,
|
|
65
|
-
useMediaVolumeState: volume_position_state_1.useMediaVolumeState,
|
|
66
|
-
useMediaMutedState: volume_position_state_1.useMediaMutedState,
|
|
67
|
-
useLazyComponent: use_lazy_component_1.useLazyComponent,
|
|
68
|
-
truthy: truthy_1.truthy,
|
|
69
|
-
SequenceContext: Sequence_1.SequenceContext,
|
|
70
|
-
useRemotionContexts: wrap_remotion_context_1.useRemotionContexts,
|
|
71
|
-
RemotionContextProvider: wrap_remotion_context_1.RemotionContextProvider,
|
|
72
|
-
CSSUtils,
|
|
73
|
-
setupEnvVariables: setup_env_variables_1.setupEnvVariables,
|
|
74
|
-
ENV_VARIABLES_ENV_NAME: setup_env_variables_1.ENV_VARIABLES_ENV_NAME,
|
|
75
|
-
MediaVolumeContext: volume_position_state_1.MediaVolumeContext,
|
|
76
|
-
SetMediaVolumeContext: volume_position_state_1.SetMediaVolumeContext,
|
|
77
|
-
validateDurationInFrames: validate_duration_in_frames_1.validateDurationInFrames,
|
|
78
|
-
validateFps: validate_fps_1.validateFps,
|
|
79
|
-
validateDimension: validate_dimensions_1.validateDimension,
|
|
80
|
-
getRemotionEnvironment: get_environment_1.getRemotionEnvironment,
|
|
81
|
-
SharedAudioContext: shared_audio_tags_1.SharedAudioContext,
|
|
82
|
-
SharedAudioContextProvider: shared_audio_tags_1.SharedAudioContextProvider,
|
|
83
|
-
invalidCompositionErrorMessage: validate_composition_id_1.invalidCompositionErrorMessage,
|
|
84
|
-
isCompositionIdValid: validate_composition_id_1.isCompositionIdValid,
|
|
85
|
-
getPreviewDomElement: get_preview_dom_element_1.getPreviewDomElement,
|
|
86
|
-
compositionsRef: CompositionManager_1.compositionsRef,
|
|
87
|
-
DELAY_RENDER_CALLSTACK_TOKEN: delay_render_1.DELAY_RENDER_CALLSTACK_TOKEN,
|
|
88
|
-
portalNode: portal_node_1.portalNode,
|
|
89
|
-
waitForRoot: register_root_1.waitForRoot,
|
|
90
|
-
validateOffthreadVideoImageFormat: validate_offthreadvideo_image_format_1.validateOffthreadVideoImageFormat,
|
|
91
|
-
CanUseRemotionHooksProvider: CanUseRemotionHooks_1.CanUseRemotionHooksProvider,
|
|
92
|
-
CanUseRemotionHooks: CanUseRemotionHooks_1.CanUseRemotionHooks,
|
|
93
|
-
enableLegacyRemotionConfig: config_1.enableLegacyRemotionConfig,
|
|
94
|
-
PrefetchProvider: prefetch_state_1.PrefetchProvider,
|
|
95
|
-
DurationsContextProvider: duration_state_1.DurationsContextProvider,
|
|
96
|
-
IsPlayerContextProvider: is_player_1.IsPlayerContextProvider,
|
|
97
|
-
useIsPlayer: is_player_1.useIsPlayer,
|
|
98
|
-
useRemotionEnvironment: get_environment_1.useRemotionEnvironment,
|
|
99
|
-
};
|
|
@@ -1,401 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copied from:
|
|
4
|
-
* https://github.com/software-mansion/react-native-reanimated/blob/master/src/reanimated2/Colors.ts
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.interpolateColors = void 0;
|
|
8
|
-
/* eslint no-bitwise: 0 */
|
|
9
|
-
const interpolate_1 = require("./interpolate");
|
|
10
|
-
// var INTEGER = '[-+]?\\d+';
|
|
11
|
-
const NUMBER = '[-+]?\\d*\\.?\\d+';
|
|
12
|
-
const PERCENTAGE = NUMBER + '%';
|
|
13
|
-
function call(...args) {
|
|
14
|
-
return '\\(\\s*(' + args.join(')\\s*,\\s*(') + ')\\s*\\)';
|
|
15
|
-
}
|
|
16
|
-
function getMatchers() {
|
|
17
|
-
const cachedMatchers = {
|
|
18
|
-
rgb: undefined,
|
|
19
|
-
rgba: undefined,
|
|
20
|
-
hsl: undefined,
|
|
21
|
-
hsla: undefined,
|
|
22
|
-
hex3: undefined,
|
|
23
|
-
hex4: undefined,
|
|
24
|
-
hex5: undefined,
|
|
25
|
-
hex6: undefined,
|
|
26
|
-
hex8: undefined,
|
|
27
|
-
};
|
|
28
|
-
if (cachedMatchers.rgb === undefined) {
|
|
29
|
-
cachedMatchers.rgb = new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER));
|
|
30
|
-
cachedMatchers.rgba = new RegExp('rgba' + call(NUMBER, NUMBER, NUMBER, NUMBER));
|
|
31
|
-
cachedMatchers.hsl = new RegExp('hsl' + call(NUMBER, PERCENTAGE, PERCENTAGE));
|
|
32
|
-
cachedMatchers.hsla = new RegExp('hsla' + call(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER));
|
|
33
|
-
cachedMatchers.hex3 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
|
|
34
|
-
cachedMatchers.hex4 =
|
|
35
|
-
/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
|
|
36
|
-
cachedMatchers.hex6 = /^#([0-9a-fA-F]{6})$/;
|
|
37
|
-
cachedMatchers.hex8 = /^#([0-9a-fA-F]{8})$/;
|
|
38
|
-
}
|
|
39
|
-
return cachedMatchers;
|
|
40
|
-
}
|
|
41
|
-
function hue2rgb(p, q, t) {
|
|
42
|
-
if (t < 0) {
|
|
43
|
-
t += 1;
|
|
44
|
-
}
|
|
45
|
-
if (t > 1) {
|
|
46
|
-
t -= 1;
|
|
47
|
-
}
|
|
48
|
-
if (t < 1 / 6) {
|
|
49
|
-
return p + (q - p) * 6 * t;
|
|
50
|
-
}
|
|
51
|
-
if (t < 1 / 2) {
|
|
52
|
-
return q;
|
|
53
|
-
}
|
|
54
|
-
if (t < 2 / 3) {
|
|
55
|
-
return p + (q - p) * (2 / 3 - t) * 6;
|
|
56
|
-
}
|
|
57
|
-
return p;
|
|
58
|
-
}
|
|
59
|
-
function hslToRgb(h, s, l) {
|
|
60
|
-
const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
61
|
-
const p = 2 * l - q;
|
|
62
|
-
const r = hue2rgb(p, q, h + 1 / 3);
|
|
63
|
-
const g = hue2rgb(p, q, h);
|
|
64
|
-
const b = hue2rgb(p, q, h - 1 / 3);
|
|
65
|
-
return ((Math.round(r * 255) << 24) |
|
|
66
|
-
(Math.round(g * 255) << 16) |
|
|
67
|
-
(Math.round(b * 255) << 8));
|
|
68
|
-
}
|
|
69
|
-
function parse255(str) {
|
|
70
|
-
const int = Number.parseInt(str, 10);
|
|
71
|
-
if (int < 0) {
|
|
72
|
-
return 0;
|
|
73
|
-
}
|
|
74
|
-
if (int > 255) {
|
|
75
|
-
return 255;
|
|
76
|
-
}
|
|
77
|
-
return int;
|
|
78
|
-
}
|
|
79
|
-
function parse360(str) {
|
|
80
|
-
const int = Number.parseFloat(str);
|
|
81
|
-
return (((int % 360) + 360) % 360) / 360;
|
|
82
|
-
}
|
|
83
|
-
function parse1(str) {
|
|
84
|
-
const num = Number.parseFloat(str);
|
|
85
|
-
if (num < 0) {
|
|
86
|
-
return 0;
|
|
87
|
-
}
|
|
88
|
-
if (num > 1) {
|
|
89
|
-
return 255;
|
|
90
|
-
}
|
|
91
|
-
return Math.round(num * 255);
|
|
92
|
-
}
|
|
93
|
-
function parsePercentage(str) {
|
|
94
|
-
// parseFloat conveniently ignores the final %
|
|
95
|
-
const int = Number.parseFloat(str);
|
|
96
|
-
if (int < 0) {
|
|
97
|
-
return 0;
|
|
98
|
-
}
|
|
99
|
-
if (int > 100) {
|
|
100
|
-
return 1;
|
|
101
|
-
}
|
|
102
|
-
return int / 100;
|
|
103
|
-
}
|
|
104
|
-
const names = {
|
|
105
|
-
transparent: 0x00000000,
|
|
106
|
-
// http://www.w3.org/TR/css3-color/#svg-color
|
|
107
|
-
aliceblue: 0xf0f8ffff,
|
|
108
|
-
antiquewhite: 0xfaebd7ff,
|
|
109
|
-
aqua: 0x00ffffff,
|
|
110
|
-
aquamarine: 0x7fffd4ff,
|
|
111
|
-
azure: 0xf0ffffff,
|
|
112
|
-
beige: 0xf5f5dcff,
|
|
113
|
-
bisque: 0xffe4c4ff,
|
|
114
|
-
black: 0x000000ff,
|
|
115
|
-
blanchedalmond: 0xffebcdff,
|
|
116
|
-
blue: 0x0000ffff,
|
|
117
|
-
blueviolet: 0x8a2be2ff,
|
|
118
|
-
brown: 0xa52a2aff,
|
|
119
|
-
burlywood: 0xdeb887ff,
|
|
120
|
-
burntsienna: 0xea7e5dff,
|
|
121
|
-
cadetblue: 0x5f9ea0ff,
|
|
122
|
-
chartreuse: 0x7fff00ff,
|
|
123
|
-
chocolate: 0xd2691eff,
|
|
124
|
-
coral: 0xff7f50ff,
|
|
125
|
-
cornflowerblue: 0x6495edff,
|
|
126
|
-
cornsilk: 0xfff8dcff,
|
|
127
|
-
crimson: 0xdc143cff,
|
|
128
|
-
cyan: 0x00ffffff,
|
|
129
|
-
darkblue: 0x00008bff,
|
|
130
|
-
darkcyan: 0x008b8bff,
|
|
131
|
-
darkgoldenrod: 0xb8860bff,
|
|
132
|
-
darkgray: 0xa9a9a9ff,
|
|
133
|
-
darkgreen: 0x006400ff,
|
|
134
|
-
darkgrey: 0xa9a9a9ff,
|
|
135
|
-
darkkhaki: 0xbdb76bff,
|
|
136
|
-
darkmagenta: 0x8b008bff,
|
|
137
|
-
darkolivegreen: 0x556b2fff,
|
|
138
|
-
darkorange: 0xff8c00ff,
|
|
139
|
-
darkorchid: 0x9932ccff,
|
|
140
|
-
darkred: 0x8b0000ff,
|
|
141
|
-
darksalmon: 0xe9967aff,
|
|
142
|
-
darkseagreen: 0x8fbc8fff,
|
|
143
|
-
darkslateblue: 0x483d8bff,
|
|
144
|
-
darkslategray: 0x2f4f4fff,
|
|
145
|
-
darkslategrey: 0x2f4f4fff,
|
|
146
|
-
darkturquoise: 0x00ced1ff,
|
|
147
|
-
darkviolet: 0x9400d3ff,
|
|
148
|
-
deeppink: 0xff1493ff,
|
|
149
|
-
deepskyblue: 0x00bfffff,
|
|
150
|
-
dimgray: 0x696969ff,
|
|
151
|
-
dimgrey: 0x696969ff,
|
|
152
|
-
dodgerblue: 0x1e90ffff,
|
|
153
|
-
firebrick: 0xb22222ff,
|
|
154
|
-
floralwhite: 0xfffaf0ff,
|
|
155
|
-
forestgreen: 0x228b22ff,
|
|
156
|
-
fuchsia: 0xff00ffff,
|
|
157
|
-
gainsboro: 0xdcdcdcff,
|
|
158
|
-
ghostwhite: 0xf8f8ffff,
|
|
159
|
-
gold: 0xffd700ff,
|
|
160
|
-
goldenrod: 0xdaa520ff,
|
|
161
|
-
gray: 0x808080ff,
|
|
162
|
-
green: 0x008000ff,
|
|
163
|
-
greenyellow: 0xadff2fff,
|
|
164
|
-
grey: 0x808080ff,
|
|
165
|
-
honeydew: 0xf0fff0ff,
|
|
166
|
-
hotpink: 0xff69b4ff,
|
|
167
|
-
indianred: 0xcd5c5cff,
|
|
168
|
-
indigo: 0x4b0082ff,
|
|
169
|
-
ivory: 0xfffff0ff,
|
|
170
|
-
khaki: 0xf0e68cff,
|
|
171
|
-
lavender: 0xe6e6faff,
|
|
172
|
-
lavenderblush: 0xfff0f5ff,
|
|
173
|
-
lawngreen: 0x7cfc00ff,
|
|
174
|
-
lemonchiffon: 0xfffacdff,
|
|
175
|
-
lightblue: 0xadd8e6ff,
|
|
176
|
-
lightcoral: 0xf08080ff,
|
|
177
|
-
lightcyan: 0xe0ffffff,
|
|
178
|
-
lightgoldenrodyellow: 0xfafad2ff,
|
|
179
|
-
lightgray: 0xd3d3d3ff,
|
|
180
|
-
lightgreen: 0x90ee90ff,
|
|
181
|
-
lightgrey: 0xd3d3d3ff,
|
|
182
|
-
lightpink: 0xffb6c1ff,
|
|
183
|
-
lightsalmon: 0xffa07aff,
|
|
184
|
-
lightseagreen: 0x20b2aaff,
|
|
185
|
-
lightskyblue: 0x87cefaff,
|
|
186
|
-
lightslategray: 0x778899ff,
|
|
187
|
-
lightslategrey: 0x778899ff,
|
|
188
|
-
lightsteelblue: 0xb0c4deff,
|
|
189
|
-
lightyellow: 0xffffe0ff,
|
|
190
|
-
lime: 0x00ff00ff,
|
|
191
|
-
limegreen: 0x32cd32ff,
|
|
192
|
-
linen: 0xfaf0e6ff,
|
|
193
|
-
magenta: 0xff00ffff,
|
|
194
|
-
maroon: 0x800000ff,
|
|
195
|
-
mediumaquamarine: 0x66cdaaff,
|
|
196
|
-
mediumblue: 0x0000cdff,
|
|
197
|
-
mediumorchid: 0xba55d3ff,
|
|
198
|
-
mediumpurple: 0x9370dbff,
|
|
199
|
-
mediumseagreen: 0x3cb371ff,
|
|
200
|
-
mediumslateblue: 0x7b68eeff,
|
|
201
|
-
mediumspringgreen: 0x00fa9aff,
|
|
202
|
-
mediumturquoise: 0x48d1ccff,
|
|
203
|
-
mediumvioletred: 0xc71585ff,
|
|
204
|
-
midnightblue: 0x191970ff,
|
|
205
|
-
mintcream: 0xf5fffaff,
|
|
206
|
-
mistyrose: 0xffe4e1ff,
|
|
207
|
-
moccasin: 0xffe4b5ff,
|
|
208
|
-
navajowhite: 0xffdeadff,
|
|
209
|
-
navy: 0x000080ff,
|
|
210
|
-
oldlace: 0xfdf5e6ff,
|
|
211
|
-
olive: 0x808000ff,
|
|
212
|
-
olivedrab: 0x6b8e23ff,
|
|
213
|
-
orange: 0xffa500ff,
|
|
214
|
-
orangered: 0xff4500ff,
|
|
215
|
-
orchid: 0xda70d6ff,
|
|
216
|
-
palegoldenrod: 0xeee8aaff,
|
|
217
|
-
palegreen: 0x98fb98ff,
|
|
218
|
-
paleturquoise: 0xafeeeeff,
|
|
219
|
-
palevioletred: 0xdb7093ff,
|
|
220
|
-
papayawhip: 0xffefd5ff,
|
|
221
|
-
peachpuff: 0xffdab9ff,
|
|
222
|
-
peru: 0xcd853fff,
|
|
223
|
-
pink: 0xffc0cbff,
|
|
224
|
-
plum: 0xdda0ddff,
|
|
225
|
-
powderblue: 0xb0e0e6ff,
|
|
226
|
-
purple: 0x800080ff,
|
|
227
|
-
rebeccapurple: 0x663399ff,
|
|
228
|
-
red: 0xff0000ff,
|
|
229
|
-
rosybrown: 0xbc8f8fff,
|
|
230
|
-
royalblue: 0x4169e1ff,
|
|
231
|
-
saddlebrown: 0x8b4513ff,
|
|
232
|
-
salmon: 0xfa8072ff,
|
|
233
|
-
sandybrown: 0xf4a460ff,
|
|
234
|
-
seagreen: 0x2e8b57ff,
|
|
235
|
-
seashell: 0xfff5eeff,
|
|
236
|
-
sienna: 0xa0522dff,
|
|
237
|
-
silver: 0xc0c0c0ff,
|
|
238
|
-
skyblue: 0x87ceebff,
|
|
239
|
-
slateblue: 0x6a5acdff,
|
|
240
|
-
slategray: 0x708090ff,
|
|
241
|
-
slategrey: 0x708090ff,
|
|
242
|
-
snow: 0xfffafaff,
|
|
243
|
-
springgreen: 0x00ff7fff,
|
|
244
|
-
steelblue: 0x4682b4ff,
|
|
245
|
-
tan: 0xd2b48cff,
|
|
246
|
-
teal: 0x008080ff,
|
|
247
|
-
thistle: 0xd8bfd8ff,
|
|
248
|
-
tomato: 0xff6347ff,
|
|
249
|
-
turquoise: 0x40e0d0ff,
|
|
250
|
-
violet: 0xee82eeff,
|
|
251
|
-
wheat: 0xf5deb3ff,
|
|
252
|
-
white: 0xffffffff,
|
|
253
|
-
whitesmoke: 0xf5f5f5ff,
|
|
254
|
-
yellow: 0xffff00ff,
|
|
255
|
-
yellowgreen: 0x9acd32ff,
|
|
256
|
-
};
|
|
257
|
-
function normalizeColor(color) {
|
|
258
|
-
const matchers = getMatchers();
|
|
259
|
-
let match;
|
|
260
|
-
// Ordered based on occurrences on Facebook codebase
|
|
261
|
-
if (matchers.hex6) {
|
|
262
|
-
if ((match = matchers.hex6.exec(color))) {
|
|
263
|
-
return Number.parseInt(match[1] + 'ff', 16) >>> 0;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
if (names[color] !== undefined) {
|
|
267
|
-
return names[color];
|
|
268
|
-
}
|
|
269
|
-
if (matchers.rgb) {
|
|
270
|
-
if ((match = matchers.rgb.exec(color))) {
|
|
271
|
-
return (
|
|
272
|
-
// b
|
|
273
|
-
((parse255(match[1]) << 24) | // r
|
|
274
|
-
(parse255(match[2]) << 16) | // g
|
|
275
|
-
(parse255(match[3]) << 8) |
|
|
276
|
-
0x000000ff) >>> // a
|
|
277
|
-
0);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
if (matchers.rgba) {
|
|
281
|
-
if ((match = matchers.rgba.exec(color))) {
|
|
282
|
-
return (
|
|
283
|
-
// b
|
|
284
|
-
((parse255(match[1]) << 24) | // r
|
|
285
|
-
(parse255(match[2]) << 16) | // g
|
|
286
|
-
(parse255(match[3]) << 8) |
|
|
287
|
-
parse1(match[4])) >>> // a
|
|
288
|
-
0);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
if (matchers.hex3) {
|
|
292
|
-
if ((match = matchers.hex3.exec(color))) {
|
|
293
|
-
return (Number.parseInt(match[1] +
|
|
294
|
-
match[1] + // r
|
|
295
|
-
match[2] +
|
|
296
|
-
match[2] + // g
|
|
297
|
-
match[3] +
|
|
298
|
-
match[3] + // b
|
|
299
|
-
'ff', // a
|
|
300
|
-
16) >>> 0);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
// https://drafts.csswg.org/css-color-4/#hex-notation
|
|
304
|
-
if (matchers.hex8) {
|
|
305
|
-
if ((match = matchers.hex8.exec(color))) {
|
|
306
|
-
return Number.parseInt(match[1], 16) >>> 0;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
if (matchers.hex4) {
|
|
310
|
-
if ((match = matchers.hex4.exec(color))) {
|
|
311
|
-
return (Number.parseInt(match[1] +
|
|
312
|
-
match[1] + // r
|
|
313
|
-
match[2] +
|
|
314
|
-
match[2] + // g
|
|
315
|
-
match[3] +
|
|
316
|
-
match[3] + // b
|
|
317
|
-
match[4] +
|
|
318
|
-
match[4], // a
|
|
319
|
-
16) >>> 0);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
if (matchers.hsl) {
|
|
323
|
-
if ((match = matchers.hsl.exec(color))) {
|
|
324
|
-
return ((hslToRgb(parse360(match[1]), // h
|
|
325
|
-
parsePercentage(match[2]), // s
|
|
326
|
-
parsePercentage(match[3]) // l
|
|
327
|
-
) |
|
|
328
|
-
0x000000ff) >>> // a
|
|
329
|
-
0);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
if (matchers.hsla) {
|
|
333
|
-
if ((match = matchers.hsla.exec(color))) {
|
|
334
|
-
return ((hslToRgb(parse360(match[1]), // h
|
|
335
|
-
parsePercentage(match[2]), // s
|
|
336
|
-
parsePercentage(match[3]) // l
|
|
337
|
-
) |
|
|
338
|
-
parse1(match[4])) >>> // a
|
|
339
|
-
0);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
throw new Error(`invalid color string ${color} provided`);
|
|
343
|
-
}
|
|
344
|
-
const opacity = (c) => {
|
|
345
|
-
return ((c >> 24) & 255) / 255;
|
|
346
|
-
};
|
|
347
|
-
const red = (c) => {
|
|
348
|
-
return (c >> 16) & 255;
|
|
349
|
-
};
|
|
350
|
-
const green = (c) => {
|
|
351
|
-
return (c >> 8) & 255;
|
|
352
|
-
};
|
|
353
|
-
const blue = (c) => {
|
|
354
|
-
return c & 255;
|
|
355
|
-
};
|
|
356
|
-
const rgbaColor = (r, g, b, alpha) => {
|
|
357
|
-
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
358
|
-
};
|
|
359
|
-
function processColorInitially(color) {
|
|
360
|
-
let normalizedColor = normalizeColor(color);
|
|
361
|
-
normalizedColor = ((normalizedColor << 24) | (normalizedColor >>> 8)) >>> 0; // argb
|
|
362
|
-
return normalizedColor;
|
|
363
|
-
}
|
|
364
|
-
function processColor(color) {
|
|
365
|
-
const normalizedColor = processColorInitially(color);
|
|
366
|
-
return normalizedColor;
|
|
367
|
-
}
|
|
368
|
-
const interpolateColorsRGB = (value, inputRange, colors) => {
|
|
369
|
-
const [r, g, b, a] = [red, green, blue, opacity].map((f) => {
|
|
370
|
-
const unrounded = (0, interpolate_1.interpolate)(value, inputRange, colors.map((c) => f(c)), {
|
|
371
|
-
extrapolateLeft: 'clamp',
|
|
372
|
-
extrapolateRight: 'clamp',
|
|
373
|
-
});
|
|
374
|
-
if (f === opacity) {
|
|
375
|
-
return Number(unrounded.toFixed(3));
|
|
376
|
-
}
|
|
377
|
-
return Math.round(unrounded);
|
|
378
|
-
});
|
|
379
|
-
return rgbaColor(r, g, b, a);
|
|
380
|
-
};
|
|
381
|
-
const interpolateColors = (input, inputRange, outputRange) => {
|
|
382
|
-
if (typeof input === 'undefined') {
|
|
383
|
-
throw new TypeError('input can not be undefined');
|
|
384
|
-
}
|
|
385
|
-
if (typeof inputRange === 'undefined') {
|
|
386
|
-
throw new TypeError('inputRange can not be undefined');
|
|
387
|
-
}
|
|
388
|
-
if (typeof outputRange === 'undefined') {
|
|
389
|
-
throw new TypeError('outputRange can not be undefined');
|
|
390
|
-
}
|
|
391
|
-
if (inputRange.length !== outputRange.length) {
|
|
392
|
-
throw new TypeError('inputRange (' +
|
|
393
|
-
inputRange.length +
|
|
394
|
-
' values provided) and outputRange (' +
|
|
395
|
-
outputRange.length +
|
|
396
|
-
' values provided) must have the same length');
|
|
397
|
-
}
|
|
398
|
-
const processedOutputRange = outputRange.map((c) => processColor(c));
|
|
399
|
-
return interpolateColorsRGB(input, inputRange, processedOutputRange);
|
|
400
|
-
};
|
|
401
|
-
exports.interpolateColors = interpolateColors;
|
package/dist/interpolate.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare type ExtrapolateType = 'extend' | 'identity' | 'clamp';
|
|
2
|
-
/**
|
|
3
|
-
* Map a value from an input range to an output range.
|
|
4
|
-
* @link https://www.remotion.dev/docs/interpolate
|
|
5
|
-
* @param {!number} input value to interpolate
|
|
6
|
-
* @param {!number[]} inputRange range of values that you expect the input to assume.
|
|
7
|
-
* @param {!number[]} outputRange range of output values that you want the input to map to.
|
|
8
|
-
* @param {?object} options
|
|
9
|
-
* @param {?Function} options.easing easing function which allows you to customize the input, for example to apply a certain easing function. By default, the input is left unmodified, resulting in a pure linear interpolation {@link https://www.remotion.dev/docs/easing}
|
|
10
|
-
* @param {string=} [options.extrapolateLeft="extend"] What should happen if the input value is outside left the input range, default: "extend" {@link https://www.remotion.dev/docs/interpolate#extrapolateleft}
|
|
11
|
-
* @param {string=} [options.extrapolateRight="extend"] Same as extrapolateLeft, except for values outside right the input range {@link https://www.remotion.dev/docs/interpolate#extrapolateright}
|
|
12
|
-
*/
|
|
13
|
-
export declare function interpolate(input: number, inputRange: readonly number[], outputRange: readonly number[], options?: {
|
|
14
|
-
easing?: (input: number) => number;
|
|
15
|
-
extrapolateLeft?: ExtrapolateType;
|
|
16
|
-
extrapolateRight?: ExtrapolateType;
|
|
17
|
-
}): number;
|
|
18
|
-
export {};
|