@remotion/cli 3.1.10 → 3.1.11
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/bundle-on-cli.d.ts +2 -0
- package/dist/bundle-on-cli.js +41 -0
- package/dist/bundle.d.ts +1 -0
- package/dist/bundle.js +31 -0
- package/dist/chalk/symbols.d.ts +111 -0
- package/dist/chalk/symbols.js +75 -0
- package/dist/chalk/utilities.d.ts +2 -0
- package/dist/chalk/utilities.js +37 -0
- package/dist/editor/components/CompositionManager.d.ts +4 -0
- package/dist/editor/components/CompositionManager.js +60 -0
- package/dist/editor/components/LoadingIndicator.d.ts +0 -1
- package/dist/editor/components/LoadingIndicator.js +1 -2
- package/dist/editor/components/Timeline/TimelineScrollable.js +1 -1
- package/dist/editor/components/Timeline/TimelineZoomControls.js +2 -18
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -40
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +1 -203
- package/dist/editor/state/timeline-zoom.d.ts +1 -1
- package/dist/editor/state/timeline-zoom.js +1 -15
- package/dist/prepare-entry-point.d.ts +11 -0
- package/dist/prepare-entry-point.js +36 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +9 -2
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +5 -1
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +24 -0
- package/dist/preview-server/fast-refresh/helpers.d.ts +39 -0
- package/dist/preview-server/fast-refresh/helpers.js +145 -0
- package/dist/preview-server/fast-refresh/index.d.ts +30 -0
- package/dist/preview-server/fast-refresh/index.js +86 -0
- package/dist/preview-server/fast-refresh/loader.d.ts +35 -0
- package/dist/preview-server/fast-refresh/loader.js +81 -0
- package/dist/preview-server/fast-refresh/runtime.d.ts +35 -0
- package/dist/preview-server/fast-refresh/runtime.js +32 -0
- package/dist/preview-server/static-preview.d.ts +1 -0
- package/dist/preview-server/static-preview.js +40 -0
- package/dist/preview-server/webpack-cache.d.ts +12 -0
- package/dist/preview-server/webpack-cache.js +66 -0
- package/package.json +7 -7
- package/dist/ansi/ansi-diff.d.ts.map +0 -1
- package/dist/ansi/ansi-diff.js.map +0 -1
- package/dist/ansi/ansi-regex.d.ts.map +0 -1
- package/dist/ansi/ansi-regex.js.map +0 -1
- package/dist/ansi/ansi-split.d.ts.map +0 -1
- package/dist/ansi/ansi-split.js.map +0 -1
- package/dist/check-version.d.ts.map +0 -1
- package/dist/check-version.js.map +0 -1
- package/dist/code-frame.d.ts.map +0 -1
- package/dist/code-frame.js.map +0 -1
- package/dist/compositions.d.ts.map +0 -1
- package/dist/compositions.js.map +0 -1
- package/dist/editor/components/AudioWaveform.d.ts.map +0 -1
- package/dist/editor/components/AudioWaveform.js.map +0 -1
- package/dist/editor/components/AudioWaveformBar.d.ts.map +0 -1
- package/dist/editor/components/AudioWaveformBar.js.map +0 -1
- package/dist/editor/components/Canvas.d.ts.map +0 -1
- package/dist/editor/components/Canvas.js.map +0 -1
- package/dist/editor/components/CheckboardToggle.d.ts.map +0 -1
- package/dist/editor/components/CheckboardToggle.js.map +0 -1
- package/dist/editor/components/ClipboardIcon.d.ts.map +0 -1
- package/dist/editor/components/ClipboardIcon.js.map +0 -1
- package/dist/editor/components/CompositionSelector.d.ts.map +0 -1
- package/dist/editor/components/CompositionSelector.js.map +0 -1
- package/dist/editor/components/CompositionSelectorItem.d.ts.map +0 -1
- package/dist/editor/components/CompositionSelectorItem.js.map +0 -1
- package/dist/editor/components/ControlButton.d.ts.map +0 -1
- package/dist/editor/components/ControlButton.js.map +0 -1
- package/dist/editor/components/CopyButton.d.ts.map +0 -1
- package/dist/editor/components/CopyButton.js.map +0 -1
- package/dist/editor/components/CurrentComposition.d.ts.map +0 -1
- package/dist/editor/components/CurrentComposition.js.map +0 -1
- package/dist/editor/components/Editor.d.ts.map +0 -1
- package/dist/editor/components/Editor.js.map +0 -1
- package/dist/editor/components/EditorContent.d.ts.map +0 -1
- package/dist/editor/components/EditorContent.js.map +0 -1
- package/dist/editor/components/FpsCounter.d.ts.map +0 -1
- package/dist/editor/components/FpsCounter.js.map +0 -1
- package/dist/editor/components/FramePersistor.d.ts.map +0 -1
- package/dist/editor/components/FramePersistor.js.map +0 -1
- package/dist/editor/components/GlobalKeybindings.d.ts.map +0 -1
- package/dist/editor/components/GlobalKeybindings.js.map +0 -1
- package/dist/editor/components/KeyboardShortcutsModal.d.ts.map +0 -1
- package/dist/editor/components/KeyboardShortcutsModal.js.map +0 -1
- package/dist/editor/components/LoadingIndicator.d.ts.map +0 -1
- package/dist/editor/components/LoadingIndicator.js.map +0 -1
- package/dist/editor/components/LoopToggle.d.ts.map +0 -1
- package/dist/editor/components/LoopToggle.js.map +0 -1
- package/dist/editor/components/Menu/MenuDivider.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuDivider.js.map +0 -1
- package/dist/editor/components/Menu/MenuItem.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuItem.js.map +0 -1
- package/dist/editor/components/Menu/MenuSubItem.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuSubItem.js.map +0 -1
- package/dist/editor/components/Menu/SubMenu.d.ts.map +0 -1
- package/dist/editor/components/Menu/SubMenu.js.map +0 -1
- package/dist/editor/components/Menu/portals.d.ts.map +0 -1
- package/dist/editor/components/Menu/portals.js.map +0 -1
- package/dist/editor/components/Menu/styles.d.ts.map +0 -1
- package/dist/editor/components/Menu/styles.js.map +0 -1
- package/dist/editor/components/MenuToolbar.d.ts.map +0 -1
- package/dist/editor/components/MenuToolbar.js.map +0 -1
- package/dist/editor/components/ModalContainer.d.ts.map +0 -1
- package/dist/editor/components/ModalContainer.js.map +0 -1
- package/dist/editor/components/ModalHeader.d.ts.map +0 -1
- package/dist/editor/components/ModalHeader.js.map +0 -1
- package/dist/editor/components/MuteToggle.d.ts.map +0 -1
- package/dist/editor/components/MuteToggle.js.map +0 -1
- package/dist/editor/components/NewComposition/CancelButton.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/CancelButton.js.map +0 -1
- package/dist/editor/components/NewComposition/ComboBox.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ComboBox.js.map +0 -1
- package/dist/editor/components/NewComposition/CopyHint.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/CopyHint.js.map +0 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/InputDragger.js.map +0 -1
- package/dist/editor/components/NewComposition/MenuContent.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/MenuContent.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompCode.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompCode.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompDuration.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompDuration.js.map +0 -1
- package/dist/editor/components/NewComposition/NewComposition.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewComposition.js.map +0 -1
- package/dist/editor/components/NewComposition/RemInput.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/RemInput.js.map +0 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js.map +0 -1
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ValidationMessage.js.map +0 -1
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/new-comp-layout.js.map +0 -1
- package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/render-aspect-ratio.js.map +0 -1
- package/dist/editor/components/PlayPause.d.ts.map +0 -1
- package/dist/editor/components/PlayPause.js.map +0 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts.map +0 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js.map +0 -1
- package/dist/editor/components/PlaybackRatePersistor.d.ts.map +0 -1
- package/dist/editor/components/PlaybackRatePersistor.js.map +0 -1
- package/dist/editor/components/PlaybackRateSelector.d.ts.map +0 -1
- package/dist/editor/components/PlaybackRateSelector.js.map +0 -1
- package/dist/editor/components/Preview.d.ts.map +0 -1
- package/dist/editor/components/Preview.js.map +0 -1
- package/dist/editor/components/PreviewToolbar.d.ts.map +0 -1
- package/dist/editor/components/PreviewToolbar.js.map +0 -1
- package/dist/editor/components/RichTimelineToggle.d.ts.map +0 -1
- package/dist/editor/components/RichTimelineToggle.js.map +0 -1
- package/dist/editor/components/SizeSelector.d.ts.map +0 -1
- package/dist/editor/components/SizeSelector.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterContainer.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterContainer.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterContext.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterContext.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterElement.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterElement.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterHandle.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterHandle.js.map +0 -1
- package/dist/editor/components/Thumbnail.d.ts.map +0 -1
- package/dist/editor/components/Thumbnail.js.map +0 -1
- package/dist/editor/components/TimeValue.d.ts.map +0 -1
- package/dist/editor/components/TimeValue.js.map +0 -1
- package/dist/editor/components/Timeline/LoopedIndicator.d.ts.map +0 -1
- package/dist/editor/components/Timeline/LoopedIndicator.js.map +0 -1
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts.map +0 -1
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js.map +0 -1
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts.map +0 -1
- package/dist/editor/components/Timeline/MaxTimelineTracks.js.map +0 -1
- package/dist/editor/components/Timeline/Timeline.d.ts.map +0 -1
- package/dist/editor/components/Timeline/Timeline.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineDragHandler.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineDragHandler.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineList.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineList.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineListItem.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineListItem.js.map +0 -1
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +0 -2
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +0 -75
- package/dist/editor/components/Timeline/TimelineSequence.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequence.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSlider.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSlider.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSliderHandle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +0 -5
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +0 -79
- package/dist/editor/components/Timeline/TimelineTracks.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineTracks.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineVideoInfo.js.map +0 -1
- package/dist/editor/components/Timeline/imperative-state.d.ts +0 -9
- package/dist/editor/components/Timeline/imperative-state.js +0 -30
- package/dist/editor/components/Timeline/is-collapsed.d.ts.map +0 -1
- package/dist/editor/components/Timeline/is-collapsed.js.map +0 -1
- package/dist/editor/components/Timeline/timeline-refs.d.ts.map +0 -1
- package/dist/editor/components/Timeline/timeline-refs.js.map +0 -1
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts.map +0 -1
- package/dist/editor/components/Timeline/timeline-state-reducer.js.map +0 -1
- package/dist/editor/components/TimelineInOutToggle.d.ts.map +0 -1
- package/dist/editor/components/TimelineInOutToggle.js.map +0 -1
- package/dist/editor/components/TopPanel.d.ts.map +0 -1
- package/dist/editor/components/TopPanel.js.map +0 -1
- package/dist/editor/components/UpdateCheck.d.ts.map +0 -1
- package/dist/editor/components/UpdateCheck.js.map +0 -1
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts.map +0 -1
- package/dist/editor/components/UpdateModal/UpdateModal.js.map +0 -1
- package/dist/editor/components/ZoomPersistor.d.ts +0 -4
- package/dist/editor/components/ZoomPersistor.js +0 -37
- package/dist/editor/components/layout.d.ts.map +0 -1
- package/dist/editor/components/layout.js.map +0 -1
- package/dist/editor/helpers/calculate-timeline.d.ts.map +0 -1
- package/dist/editor/helpers/calculate-timeline.js.map +0 -1
- package/dist/editor/helpers/checkerboard-background.d.ts.map +0 -1
- package/dist/editor/helpers/checkerboard-background.js.map +0 -1
- package/dist/editor/helpers/colors.d.ts.map +0 -1
- package/dist/editor/helpers/colors.js.map +0 -1
- package/dist/editor/helpers/copy-text.d.ts.map +0 -1
- package/dist/editor/helpers/copy-text.js.map +0 -1
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts.map +0 -1
- package/dist/editor/helpers/get-left-of-timeline-slider.js.map +0 -1
- package/dist/editor/helpers/get-sequence-visible-range.d.ts.map +0 -1
- package/dist/editor/helpers/get-sequence-visible-range.js.map +0 -1
- package/dist/editor/helpers/get-timeline-nestedness.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-nestedness.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.js.map +0 -1
- package/dist/editor/helpers/is-composition-still.d.ts.map +0 -1
- package/dist/editor/helpers/is-composition-still.js.map +0 -1
- package/dist/editor/helpers/is-current-selected-still.d.ts.map +0 -1
- package/dist/editor/helpers/is-current-selected-still.js.map +0 -1
- package/dist/editor/helpers/noop.d.ts.map +0 -1
- package/dist/editor/helpers/noop.js.map +0 -1
- package/dist/editor/helpers/timeline-layout.d.ts.map +0 -1
- package/dist/editor/helpers/timeline-layout.js.map +0 -1
- package/dist/editor/helpers/use-keybinding.d.ts.map +0 -1
- package/dist/editor/helpers/use-keybinding.js.map +0 -1
- package/dist/editor/helpers/validate-new-comp-data.d.ts.map +0 -1
- package/dist/editor/helpers/validate-new-comp-data.js.map +0 -1
- package/dist/editor/icons/Checkmark.d.ts.map +0 -1
- package/dist/editor/icons/Checkmark.js.map +0 -1
- package/dist/editor/icons/caret.d.ts.map +0 -1
- package/dist/editor/icons/caret.js.map +0 -1
- package/dist/editor/icons/film.d.ts.map +0 -1
- package/dist/editor/icons/film.js.map +0 -1
- package/dist/editor/icons/keys.d.ts.map +0 -1
- package/dist/editor/icons/keys.js.map +0 -1
- package/dist/editor/icons/lock.d.ts.map +0 -1
- package/dist/editor/icons/lock.js.map +0 -1
- package/dist/editor/icons/media-volume.d.ts.map +0 -1
- package/dist/editor/icons/media-volume.js.map +0 -1
- package/dist/editor/icons/minus.d.ts +0 -3
- package/dist/editor/icons/minus.js +0 -8
- package/dist/editor/icons/pause.d.ts.map +0 -1
- package/dist/editor/icons/pause.js.map +0 -1
- package/dist/editor/icons/play.d.ts.map +0 -1
- package/dist/editor/icons/play.js.map +0 -1
- package/dist/editor/icons/plus.d.ts +0 -3
- package/dist/editor/icons/plus.js +0 -8
- package/dist/editor/icons/step-back.d.ts.map +0 -1
- package/dist/editor/icons/step-back.js.map +0 -1
- package/dist/editor/icons/step-forward.d.ts.map +0 -1
- package/dist/editor/icons/step-forward.js.map +0 -1
- package/dist/editor/icons/still.d.ts.map +0 -1
- package/dist/editor/icons/still.js.map +0 -1
- package/dist/editor/icons/timeline.d.ts.map +0 -1
- package/dist/editor/icons/timeline.js.map +0 -1
- package/dist/editor/icons/timelineInOutPointer.d.ts.map +0 -1
- package/dist/editor/icons/timelineInOutPointer.js.map +0 -1
- package/dist/editor/state/aspect-ratio-locked.d.ts.map +0 -1
- package/dist/editor/state/aspect-ratio-locked.js.map +0 -1
- package/dist/editor/state/checkerboard.d.ts.map +0 -1
- package/dist/editor/state/checkerboard.js.map +0 -1
- package/dist/editor/state/highest-z-index.d.ts.map +0 -1
- package/dist/editor/state/highest-z-index.js.map +0 -1
- package/dist/editor/state/input-dragger-click-lock.d.ts.map +0 -1
- package/dist/editor/state/input-dragger-click-lock.js.map +0 -1
- package/dist/editor/state/keybindings.d.ts.map +0 -1
- package/dist/editor/state/keybindings.js.map +0 -1
- package/dist/editor/state/loop.d.ts.map +0 -1
- package/dist/editor/state/loop.js.map +0 -1
- package/dist/editor/state/marks.d.ts.map +0 -1
- package/dist/editor/state/marks.js.map +0 -1
- package/dist/editor/state/modals.d.ts.map +0 -1
- package/dist/editor/state/modals.js.map +0 -1
- package/dist/editor/state/mute.d.ts.map +0 -1
- package/dist/editor/state/mute.js.map +0 -1
- package/dist/editor/state/playbackrate.d.ts.map +0 -1
- package/dist/editor/state/playbackrate.js.map +0 -1
- package/dist/editor/state/preview-size.d.ts.map +0 -1
- package/dist/editor/state/preview-size.js.map +0 -1
- package/dist/editor/state/render-frame.d.ts.map +0 -1
- package/dist/editor/state/render-frame.js.map +0 -1
- package/dist/editor/state/rich-timeline.d.ts.map +0 -1
- package/dist/editor/state/rich-timeline.js.map +0 -1
- package/dist/editor/state/timeline-ref.d.ts.map +0 -1
- package/dist/editor/state/timeline-ref.js.map +0 -1
- package/dist/editor/state/timeline.d.ts.map +0 -1
- package/dist/editor/state/timeline.js.map +0 -1
- package/dist/editor/state/z-index.d.ts.map +0 -1
- package/dist/editor/state/z-index.js.map +0 -1
- package/dist/get-cli-options.d.ts.map +0 -1
- package/dist/get-cli-options.js.map +0 -1
- package/dist/get-composition-id.d.ts.map +0 -1
- package/dist/get-composition-id.js.map +0 -1
- package/dist/get-config-file-name.d.ts.map +0 -1
- package/dist/get-config-file-name.js.map +0 -1
- package/dist/get-env.d.ts.map +0 -1
- package/dist/get-env.js.map +0 -1
- package/dist/get-filename.d.ts.map +0 -1
- package/dist/get-filename.js.map +0 -1
- package/dist/get-input-props.d.ts.map +0 -1
- package/dist/get-input-props.js.map +0 -1
- package/dist/handle-common-errors.d.ts.map +0 -1
- package/dist/handle-common-errors.js.map +0 -1
- package/dist/image-formats.d.ts.map +0 -1
- package/dist/image-formats.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/initialize-render-cli.d.ts.map +0 -1
- package/dist/initialize-render-cli.js.map +0 -1
- package/dist/is-javascript.d.ts.map +0 -1
- package/dist/is-javascript.js.map +0 -1
- package/dist/lambda-command.d.ts.map +0 -1
- package/dist/lambda-command.js.map +0 -1
- package/dist/load-config.d.ts.map +0 -1
- package/dist/load-config.js.map +0 -1
- package/dist/log.d.ts.map +0 -1
- package/dist/log.js.map +0 -1
- package/dist/parse-command-line.d.ts.map +0 -1
- package/dist/parse-command-line.js.map +0 -1
- package/dist/preview.d.ts.map +0 -1
- package/dist/preview.js.map +0 -1
- package/dist/previewEntry.d.ts.map +0 -1
- package/dist/previewEntry.js.map +0 -1
- package/dist/print-error.d.ts.map +0 -1
- package/dist/print-error.js.map +0 -1
- package/dist/print-help.d.ts.map +0 -1
- package/dist/print-help.js.map +0 -1
- package/dist/progress-bar.d.ts.map +0 -1
- package/dist/progress-bar.js.map +0 -1
- package/dist/render.d.ts.map +0 -1
- package/dist/render.js.map +0 -1
- package/dist/resolve-from.d.ts.map +0 -1
- package/dist/resolve-from.js.map +0 -1
- package/dist/setup-cache.d.ts.map +0 -1
- package/dist/setup-cache.js.map +0 -1
- package/dist/step.d.ts.map +0 -1
- package/dist/step.js.map +0 -1
- package/dist/still.d.ts.map +0 -1
- package/dist/still.js.map +0 -1
- package/dist/upgrade.d.ts.map +0 -1
- package/dist/upgrade.js.map +0 -1
- package/dist/user-passed-output-location.d.ts.map +0 -1
- package/dist/user-passed-output-location.js.map +0 -1
- package/dist/validate-ffmpeg-version.d.ts.map +0 -1
- package/dist/validate-ffmpeg-version.js.map +0 -1
- package/dist/versions.d.ts.map +0 -1
- package/dist/versions.js.map +0 -1
- package/dist/warn-about-ffmpeg-version.d.ts.map +0 -1
- package/dist/warn-about-ffmpeg-version.js.map +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bundleOnCli = void 0;
|
|
4
|
+
const bundler_1 = require("@remotion/bundler");
|
|
5
|
+
const remotion_1 = require("remotion");
|
|
6
|
+
const log_1 = require("./log");
|
|
7
|
+
const parse_command_line_1 = require("./parse-command-line");
|
|
8
|
+
const progress_bar_1 = require("./progress-bar");
|
|
9
|
+
const bundleOnCli = async (fullPath, steps) => {
|
|
10
|
+
var _a;
|
|
11
|
+
const shouldCache = remotion_1.Internals.getWebpackCaching();
|
|
12
|
+
const cacheExistedBefore = bundler_1.BundlerInternals.cacheExists('production', null);
|
|
13
|
+
if (cacheExistedBefore && !shouldCache) {
|
|
14
|
+
log_1.Log.info('🧹 Cache disabled but found. Deleting... ');
|
|
15
|
+
await bundler_1.BundlerInternals.clearCache('production', null);
|
|
16
|
+
}
|
|
17
|
+
const bundleStartTime = Date.now();
|
|
18
|
+
const bundlingProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
|
|
19
|
+
const bundled = await (0, bundler_1.bundle)(fullPath, (progress) => {
|
|
20
|
+
bundlingProgress.update((0, progress_bar_1.makeBundlingProgress)({
|
|
21
|
+
progress: progress / 100,
|
|
22
|
+
steps,
|
|
23
|
+
doneIn: null,
|
|
24
|
+
}));
|
|
25
|
+
}, {
|
|
26
|
+
enableCaching: shouldCache,
|
|
27
|
+
webpackOverride: (_a = remotion_1.Internals.getWebpackOverrideFn()) !== null && _a !== void 0 ? _a : remotion_1.Internals.defaultOverrideFunction,
|
|
28
|
+
});
|
|
29
|
+
bundlingProgress.update((0, progress_bar_1.makeBundlingProgress)({
|
|
30
|
+
progress: 1,
|
|
31
|
+
steps,
|
|
32
|
+
doneIn: Date.now() - bundleStartTime,
|
|
33
|
+
}) + '\n');
|
|
34
|
+
log_1.Log.verbose('Bundled under', bundled);
|
|
35
|
+
const cacheExistedAfter = bundler_1.BundlerInternals.cacheExists('production', null);
|
|
36
|
+
if (cacheExistedAfter && !cacheExistedBefore) {
|
|
37
|
+
log_1.Log.info('⚡️ Cached bundle. Subsequent renders will be faster.');
|
|
38
|
+
}
|
|
39
|
+
return bundled;
|
|
40
|
+
};
|
|
41
|
+
exports.bundleOnCli = bundleOnCli;
|
package/dist/bundle.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const bundleCommand: () => Promise<void>;
|
package/dist/bundle.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bundleCommand = void 0;
|
|
4
|
+
const get_cli_options_1 = require("./get-cli-options");
|
|
5
|
+
const initialize_render_cli_1 = require("./initialize-render-cli");
|
|
6
|
+
const log_1 = require("./log");
|
|
7
|
+
const parse_command_line_1 = require("./parse-command-line");
|
|
8
|
+
const prepare_entry_point_1 = require("./prepare-entry-point");
|
|
9
|
+
const bundleCommand = async () => {
|
|
10
|
+
const file = parse_command_line_1.parsedCli._[1];
|
|
11
|
+
if (!file) {
|
|
12
|
+
log_1.Log.error('No entry point specified. Pass more arguments:');
|
|
13
|
+
log_1.Log.error(' npx remotion bundle [entry-point]');
|
|
14
|
+
log_1.Log.error('Documentation: https://www.remotion.dev/docs/render');
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
await (0, initialize_render_cli_1.initializeRenderCli)('bundle');
|
|
18
|
+
const { publicPath, bundleOutDir } = await (0, get_cli_options_1.getCliOptions)({
|
|
19
|
+
isLambda: false,
|
|
20
|
+
type: 'get-compositions-or-bundle',
|
|
21
|
+
});
|
|
22
|
+
const { urlOrBundle } = await (0, prepare_entry_point_1.prepareEntryPoint)({
|
|
23
|
+
file,
|
|
24
|
+
otherSteps: [],
|
|
25
|
+
outDir: bundleOutDir,
|
|
26
|
+
publicPath,
|
|
27
|
+
});
|
|
28
|
+
log_1.Log.info();
|
|
29
|
+
log_1.Log.info(urlOrBundle);
|
|
30
|
+
};
|
|
31
|
+
exports.bundleCommand = bundleCommand;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
declare const isHyper: boolean;
|
|
2
|
+
declare const isWindows: boolean;
|
|
3
|
+
declare const isLinux: boolean;
|
|
4
|
+
declare const common: {
|
|
5
|
+
ballotDisabled: string;
|
|
6
|
+
ballotOff: string;
|
|
7
|
+
ballotOn: string;
|
|
8
|
+
bullet: string;
|
|
9
|
+
bulletWhite: string;
|
|
10
|
+
fullBlock: string;
|
|
11
|
+
heart: string;
|
|
12
|
+
identicalTo: string;
|
|
13
|
+
line: string;
|
|
14
|
+
mark: string;
|
|
15
|
+
middot: string;
|
|
16
|
+
minus: string;
|
|
17
|
+
multiplication: string;
|
|
18
|
+
obelus: string;
|
|
19
|
+
pencilDownRight: string;
|
|
20
|
+
pencilRight: string;
|
|
21
|
+
pencilUpRight: string;
|
|
22
|
+
percent: string;
|
|
23
|
+
pilcrow2: string;
|
|
24
|
+
pilcrow: string;
|
|
25
|
+
plusMinus: string;
|
|
26
|
+
question: string;
|
|
27
|
+
section: string;
|
|
28
|
+
starsOff: string;
|
|
29
|
+
starsOn: string;
|
|
30
|
+
upDownArrow: string;
|
|
31
|
+
};
|
|
32
|
+
declare const windows: {
|
|
33
|
+
check: string;
|
|
34
|
+
cross: string;
|
|
35
|
+
ellipsisLarge: string;
|
|
36
|
+
ellipsis: string;
|
|
37
|
+
info: string;
|
|
38
|
+
questionSmall: string;
|
|
39
|
+
pointer: string;
|
|
40
|
+
pointerSmall: string;
|
|
41
|
+
radioOff: string;
|
|
42
|
+
radioOn: string;
|
|
43
|
+
warning: string;
|
|
44
|
+
ballotDisabled: string;
|
|
45
|
+
ballotOff: string;
|
|
46
|
+
ballotOn: string;
|
|
47
|
+
bullet: string;
|
|
48
|
+
bulletWhite: string;
|
|
49
|
+
fullBlock: string;
|
|
50
|
+
heart: string;
|
|
51
|
+
identicalTo: string;
|
|
52
|
+
line: string;
|
|
53
|
+
mark: string;
|
|
54
|
+
middot: string;
|
|
55
|
+
minus: string;
|
|
56
|
+
multiplication: string;
|
|
57
|
+
obelus: string;
|
|
58
|
+
pencilDownRight: string;
|
|
59
|
+
pencilRight: string;
|
|
60
|
+
pencilUpRight: string;
|
|
61
|
+
percent: string;
|
|
62
|
+
pilcrow2: string;
|
|
63
|
+
pilcrow: string;
|
|
64
|
+
plusMinus: string;
|
|
65
|
+
question: string;
|
|
66
|
+
section: string;
|
|
67
|
+
starsOff: string;
|
|
68
|
+
starsOn: string;
|
|
69
|
+
upDownArrow: string;
|
|
70
|
+
};
|
|
71
|
+
declare const other: {
|
|
72
|
+
ballotCross: string;
|
|
73
|
+
check: string;
|
|
74
|
+
cross: string;
|
|
75
|
+
ellipsisLarge: string;
|
|
76
|
+
ellipsis: string;
|
|
77
|
+
info: string;
|
|
78
|
+
questionFull: string;
|
|
79
|
+
questionSmall: string;
|
|
80
|
+
pointer: string;
|
|
81
|
+
pointerSmall: string;
|
|
82
|
+
radioOff: string;
|
|
83
|
+
radioOn: string;
|
|
84
|
+
warning: string;
|
|
85
|
+
ballotDisabled: string;
|
|
86
|
+
ballotOff: string;
|
|
87
|
+
ballotOn: string;
|
|
88
|
+
bullet: string;
|
|
89
|
+
bulletWhite: string;
|
|
90
|
+
fullBlock: string;
|
|
91
|
+
heart: string;
|
|
92
|
+
identicalTo: string;
|
|
93
|
+
line: string;
|
|
94
|
+
mark: string;
|
|
95
|
+
middot: string;
|
|
96
|
+
minus: string;
|
|
97
|
+
multiplication: string;
|
|
98
|
+
obelus: string;
|
|
99
|
+
pencilDownRight: string;
|
|
100
|
+
pencilRight: string;
|
|
101
|
+
pencilUpRight: string;
|
|
102
|
+
percent: string;
|
|
103
|
+
pilcrow2: string;
|
|
104
|
+
pilcrow: string;
|
|
105
|
+
plusMinus: string;
|
|
106
|
+
question: string;
|
|
107
|
+
section: string;
|
|
108
|
+
starsOff: string;
|
|
109
|
+
starsOn: string;
|
|
110
|
+
upDownArrow: string;
|
|
111
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const isHyper = typeof process !== 'undefined' && process.env.TERM_PROGRAM === 'Hyper';
|
|
3
|
+
const isWindows = typeof process !== 'undefined' && process.platform === 'win32';
|
|
4
|
+
const isLinux = typeof process !== 'undefined' && process.platform === 'linux';
|
|
5
|
+
const common = {
|
|
6
|
+
ballotDisabled: '☒',
|
|
7
|
+
ballotOff: '☐',
|
|
8
|
+
ballotOn: '☑',
|
|
9
|
+
bullet: '•',
|
|
10
|
+
bulletWhite: '◦',
|
|
11
|
+
fullBlock: '█',
|
|
12
|
+
heart: '❤',
|
|
13
|
+
identicalTo: '≡',
|
|
14
|
+
line: '─',
|
|
15
|
+
mark: '※',
|
|
16
|
+
middot: '·',
|
|
17
|
+
minus: '-',
|
|
18
|
+
multiplication: '×',
|
|
19
|
+
obelus: '÷',
|
|
20
|
+
pencilDownRight: '✎',
|
|
21
|
+
pencilRight: '✏',
|
|
22
|
+
pencilUpRight: '✐',
|
|
23
|
+
percent: '%',
|
|
24
|
+
pilcrow2: '❡',
|
|
25
|
+
pilcrow: '¶',
|
|
26
|
+
plusMinus: '±',
|
|
27
|
+
question: '?',
|
|
28
|
+
section: '§',
|
|
29
|
+
starsOff: '☆',
|
|
30
|
+
starsOn: '★',
|
|
31
|
+
upDownArrow: '↕',
|
|
32
|
+
};
|
|
33
|
+
const windows = {
|
|
34
|
+
...common,
|
|
35
|
+
check: '√',
|
|
36
|
+
cross: '×',
|
|
37
|
+
ellipsisLarge: '...',
|
|
38
|
+
ellipsis: '...',
|
|
39
|
+
info: 'i',
|
|
40
|
+
questionSmall: '?',
|
|
41
|
+
pointer: '>',
|
|
42
|
+
pointerSmall: '»',
|
|
43
|
+
radioOff: '( )',
|
|
44
|
+
radioOn: '(*)',
|
|
45
|
+
warning: '‼',
|
|
46
|
+
};
|
|
47
|
+
const other = {
|
|
48
|
+
...common,
|
|
49
|
+
ballotCross: '✘',
|
|
50
|
+
check: '✔',
|
|
51
|
+
cross: '✖',
|
|
52
|
+
ellipsisLarge: '⋯',
|
|
53
|
+
ellipsis: '…',
|
|
54
|
+
info: 'ℹ',
|
|
55
|
+
questionFull: '?',
|
|
56
|
+
questionSmall: '﹖',
|
|
57
|
+
pointer: isLinux ? '▸' : '❯',
|
|
58
|
+
pointerSmall: isLinux ? '‣' : '›',
|
|
59
|
+
radioOff: '◯',
|
|
60
|
+
radioOn: '◉',
|
|
61
|
+
warning: '⚠',
|
|
62
|
+
};
|
|
63
|
+
module.exports = isWindows && !isHyper ? windows : other;
|
|
64
|
+
Reflect.defineProperty(module.exports, 'common', {
|
|
65
|
+
enumerable: false,
|
|
66
|
+
value: common,
|
|
67
|
+
});
|
|
68
|
+
Reflect.defineProperty(module.exports, 'windows', {
|
|
69
|
+
enumerable: false,
|
|
70
|
+
value: windows,
|
|
71
|
+
});
|
|
72
|
+
Reflect.defineProperty(module.exports, 'other', {
|
|
73
|
+
enumerable: false,
|
|
74
|
+
value: other,
|
|
75
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stringEncaseCRLFWithFirstIndex = exports.stringReplaceAll = void 0;
|
|
4
|
+
function stringReplaceAll(string, substring, replacer) {
|
|
5
|
+
let index = string.indexOf(substring);
|
|
6
|
+
if (index === -1) {
|
|
7
|
+
return string;
|
|
8
|
+
}
|
|
9
|
+
const substringLength = substring.length;
|
|
10
|
+
let endIndex = 0;
|
|
11
|
+
let returnValue = '';
|
|
12
|
+
do {
|
|
13
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
14
|
+
endIndex = index + substringLength;
|
|
15
|
+
index = string.indexOf(substring, endIndex);
|
|
16
|
+
} while (index !== -1);
|
|
17
|
+
returnValue += string.slice(endIndex);
|
|
18
|
+
return returnValue;
|
|
19
|
+
}
|
|
20
|
+
exports.stringReplaceAll = stringReplaceAll;
|
|
21
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
22
|
+
let endIndex = 0;
|
|
23
|
+
let returnValue = '';
|
|
24
|
+
do {
|
|
25
|
+
const gotCR = string[index - 1] === '\r';
|
|
26
|
+
returnValue +=
|
|
27
|
+
string.slice(endIndex, gotCR ? index - 1 : index) +
|
|
28
|
+
prefix +
|
|
29
|
+
(gotCR ? '\r\n' : '\n') +
|
|
30
|
+
postfix;
|
|
31
|
+
endIndex = index + 1;
|
|
32
|
+
index = string.indexOf('\n', endIndex);
|
|
33
|
+
} while (index !== -1);
|
|
34
|
+
returnValue += string.slice(endIndex);
|
|
35
|
+
return returnValue;
|
|
36
|
+
}
|
|
37
|
+
exports.stringEncaseCRLFWithFirstIndex = stringEncaseCRLFWithFirstIndex;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InitialCompositionLoader = exports.useSelectComposition = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const remotion_1 = require("remotion");
|
|
6
|
+
const folders_1 = require("../state/folders");
|
|
7
|
+
const marks_1 = require("../state/marks");
|
|
8
|
+
const CompositionSelector_1 = require("./CompositionSelector");
|
|
9
|
+
const FramePersistor_1 = require("./FramePersistor");
|
|
10
|
+
const TimelineInOutToggle_1 = require("./TimelineInOutToggle");
|
|
11
|
+
const useSelectComposition = () => {
|
|
12
|
+
const setCurrentFrame = remotion_1.Internals.Timeline.useTimelineSetFrame();
|
|
13
|
+
const { setCurrentComposition } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
14
|
+
const { setFoldersExpanded } = (0, react_1.useContext)(folders_1.FolderContext);
|
|
15
|
+
return (c) => {
|
|
16
|
+
var _a;
|
|
17
|
+
(_a = TimelineInOutToggle_1.inOutHandles.current) === null || _a === void 0 ? void 0 : _a.setMarks((0, marks_1.loadMarks)(c.id, c.durationInFrames));
|
|
18
|
+
window.history.pushState({}, 'Preview', `/${c.id}`);
|
|
19
|
+
const frame = (0, FramePersistor_1.getFrameForComposition)(c.id);
|
|
20
|
+
const frameInBounds = Math.min(c.durationInFrames - 1, frame);
|
|
21
|
+
setCurrentFrame(frameInBounds);
|
|
22
|
+
setCurrentComposition(c.id);
|
|
23
|
+
const { folderName, parentFolderName } = c;
|
|
24
|
+
if (folderName !== null) {
|
|
25
|
+
setFoldersExpanded((ex) => {
|
|
26
|
+
const keysToExpand = (0, CompositionSelector_1.getKeysToExpand)(folderName, parentFolderName);
|
|
27
|
+
const newState = {
|
|
28
|
+
...ex,
|
|
29
|
+
};
|
|
30
|
+
for (const key of keysToExpand) {
|
|
31
|
+
newState[key] = true;
|
|
32
|
+
}
|
|
33
|
+
return newState;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
exports.useSelectComposition = useSelectComposition;
|
|
39
|
+
const InitialCompositionLoader = () => {
|
|
40
|
+
const { compositions, currentComposition } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
41
|
+
const selectComposition = (0, exports.useSelectComposition)();
|
|
42
|
+
(0, react_1.useEffect)(() => {
|
|
43
|
+
if (currentComposition) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const compositionFromUrl = (0, FramePersistor_1.getCurrentCompositionFromUrl)();
|
|
47
|
+
if (compositionFromUrl) {
|
|
48
|
+
const exists = compositions.find((c) => c.id === compositionFromUrl);
|
|
49
|
+
if (exists) {
|
|
50
|
+
selectComposition(exists);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (compositions.length > 0) {
|
|
55
|
+
selectComposition(compositions[0]);
|
|
56
|
+
}
|
|
57
|
+
}, [compositions, currentComposition, selectComposition]);
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
exports.InitialCompositionLoader = InitialCompositionLoader;
|
|
@@ -30,7 +30,6 @@ const Loading = () => {
|
|
|
30
30
|
animation: anim 2s;
|
|
31
31
|
animation-fill-mode: forwards;
|
|
32
32
|
}
|
|
33
|
-
` }
|
|
33
|
+
` }), (0, jsx_runtime_1.jsx)("svg", { width: ICON_SIZE, height: ICON_SIZE, viewBox: "-100 -100 400 400", style: rotate, children: (0, jsx_runtime_1.jsx)("path", { fill: "#555", stroke: "#555", strokeWidth: "100", strokeLinejoin: "round", d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z" }) }), (0, jsx_runtime_1.jsx)("p", { style: label, children: "Loading..." })] }));
|
|
34
34
|
};
|
|
35
35
|
exports.Loading = Loading;
|
|
36
|
-
//# sourceMappingURL=LoadingIndicator.js.map
|
|
@@ -15,7 +15,7 @@ const TimelineScrollable = ({ children }) => {
|
|
|
15
15
|
const containerStyle = (0, react_1.useMemo)(() => {
|
|
16
16
|
return {
|
|
17
17
|
width: '100%',
|
|
18
|
-
|
|
18
|
+
height: '100%',
|
|
19
19
|
};
|
|
20
20
|
}, []);
|
|
21
21
|
return ((0, jsx_runtime_1.jsx)("div", { ref: timeline_refs_1.scrollableRef, style: outer, children: (0, jsx_runtime_1.jsx)("div", { style: containerStyle, children: children }) }));
|
|
@@ -3,12 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TimelineZoomControls = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const is_current_selected_still_1 = require("../../helpers/is-current-selected-still");
|
|
7
|
-
const minus_1 = require("../../icons/minus");
|
|
8
|
-
const plus_1 = require("../../icons/plus");
|
|
9
6
|
const timeline_zoom_1 = require("../../state/timeline-zoom");
|
|
10
7
|
const ControlButton_1 = require("../ControlButton");
|
|
11
|
-
const layout_1 = require("../layout");
|
|
12
8
|
const container = {
|
|
13
9
|
color: 'black',
|
|
14
10
|
flexDirection: 'row',
|
|
@@ -17,14 +13,6 @@ const container = {
|
|
|
17
13
|
const buttonStyle = {
|
|
18
14
|
fontSize: 24,
|
|
19
15
|
};
|
|
20
|
-
const iconStyle = {
|
|
21
|
-
color: 'white',
|
|
22
|
-
width: 14,
|
|
23
|
-
};
|
|
24
|
-
const slider = {
|
|
25
|
-
width: 60,
|
|
26
|
-
accentColor: 'var(--blue)',
|
|
27
|
-
};
|
|
28
16
|
const TimelineZoomControls = () => {
|
|
29
17
|
const { setZoom, zoom } = (0, react_1.useContext)(timeline_zoom_1.TimelineZoomCtx);
|
|
30
18
|
const onMinusClicked = (0, react_1.useCallback)(() => {
|
|
@@ -34,12 +22,8 @@ const TimelineZoomControls = () => {
|
|
|
34
22
|
setZoom((z) => Math.min(timeline_zoom_1.TIMELINE_MAX_ZOOM, z + 0.2));
|
|
35
23
|
}, [setZoom]);
|
|
36
24
|
const onChange = (0, react_1.useCallback)((e) => {
|
|
37
|
-
setZoom(
|
|
25
|
+
setZoom(Number(e.target.value));
|
|
38
26
|
}, [setZoom]);
|
|
39
|
-
|
|
40
|
-
if (isStill) {
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onMinusClicked, style: buttonStyle, title: "Zoom out timeline", role: 'ControlButton', type: "button", children: (0, jsx_runtime_1.jsx)(minus_1.Minus, { style: iconStyle }) }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)("input", { title: `Timeline zoom (${zoom}x)`, alt: `Timeline zoom (${zoom}x)`, type: 'range', min: timeline_zoom_1.TIMELINE_MIN_ZOOM, step: 0.1, value: zoom, max: timeline_zoom_1.TIMELINE_MAX_ZOOM, onChange: onChange, style: slider }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onPlusClicked, style: buttonStyle, title: "Zoom in timeline", role: 'button', type: "button", children: (0, jsx_runtime_1.jsx)(plus_1.Plus, { style: iconStyle }) })] }));
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onMinusClicked, style: buttonStyle, title: "Zoom out timeline", role: 'ControlButton', type: "button", children: "-" }), (0, jsx_runtime_1.jsx)("input", { type: 'range', min: timeline_zoom_1.TIMELINE_MIN_ZOOM, step: 0.1, value: zoom, max: timeline_zoom_1.TIMELINE_MAX_ZOOM, onChange: onChange }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onPlusClicked, style: buttonStyle, title: "Zoom in timeline", role: 'button', type: "button", children: "+" })] }));
|
|
44
28
|
};
|
|
45
29
|
exports.TimelineZoomControls = TimelineZoomControls;
|
|
@@ -2,43 +2,3 @@ export declare const canScrollTimelineIntoDirection: () => {
|
|
|
2
2
|
canScrollRight: boolean;
|
|
3
3
|
canScrollLeft: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const SCROLL_INCREMENT = 200;
|
|
6
|
-
export declare const getFrameWhileScrollingLeft: ({ durationInFrames, width, }: {
|
|
7
|
-
durationInFrames: number;
|
|
8
|
-
width: number;
|
|
9
|
-
}) => number;
|
|
10
|
-
export declare const isCursorInViewport: ({ frame, durationInFrames, }: {
|
|
11
|
-
frame: number;
|
|
12
|
-
durationInFrames: number;
|
|
13
|
-
}) => boolean;
|
|
14
|
-
export declare const ensureFrameIsInViewport: ({ direction, durationInFrames, frame, }: {
|
|
15
|
-
direction: 'fit-left' | 'fit-right' | 'page-right' | 'page-left' | 'center';
|
|
16
|
-
durationInFrames: number;
|
|
17
|
-
frame: number;
|
|
18
|
-
}) => void;
|
|
19
|
-
export declare const scrollToTimelineXOffset: (scrollPos: number) => void;
|
|
20
|
-
export declare const getScrollPositionForCursorOnLeftEdge: ({ nextFrame, durationInFrames, }: {
|
|
21
|
-
nextFrame: number;
|
|
22
|
-
durationInFrames: number;
|
|
23
|
-
}) => number;
|
|
24
|
-
export declare const getScrollPositionForCursorOnRightEdge: ({ nextFrame, durationInFrames, }: {
|
|
25
|
-
nextFrame: number;
|
|
26
|
-
durationInFrames: number;
|
|
27
|
-
}) => number;
|
|
28
|
-
export declare const getFrameIncrement: (durationInFrames: number) => number;
|
|
29
|
-
export declare const getFrameWhileScrollingRight: ({ durationInFrames, width, }: {
|
|
30
|
-
durationInFrames: number;
|
|
31
|
-
width: number;
|
|
32
|
-
}) => number;
|
|
33
|
-
export declare const getFrameFromX: ({ clientX, durationInFrames, width, extrapolate, }: {
|
|
34
|
-
clientX: number;
|
|
35
|
-
durationInFrames: number;
|
|
36
|
-
width: number;
|
|
37
|
-
extrapolate: 'clamp' | 'extend';
|
|
38
|
-
}) => number;
|
|
39
|
-
export declare const zoomAndPreserveCursor: ({ oldZoom, newZoom, currentFrame, currentDurationInFrames, }: {
|
|
40
|
-
oldZoom: number;
|
|
41
|
-
newZoom: number;
|
|
42
|
-
currentFrame: number;
|
|
43
|
-
currentDurationInFrames: number;
|
|
44
|
-
}) => void;
|