@remotion/cli 4.0.0-prefetch.10 → 4.0.0-prefetch.12

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.
Files changed (610) hide show
  1. package/LICENSE.md +7 -7
  2. package/dist/ansi/ansi-diff.d.ts +0 -0
  3. package/dist/ansi/ansi-diff.js +0 -0
  4. package/dist/ansi/ansi-regex.d.ts +0 -0
  5. package/dist/ansi/ansi-regex.js +0 -0
  6. package/dist/ansi/ansi-split.d.ts +0 -0
  7. package/dist/ansi/ansi-split.js +0 -0
  8. package/dist/benchmark.d.ts +1 -0
  9. package/dist/benchmark.js +180 -0
  10. package/dist/chalk/index.d.ts +0 -0
  11. package/dist/chalk/index.js +0 -0
  12. package/dist/check-version.d.ts +0 -0
  13. package/dist/check-version.js +0 -0
  14. package/dist/code-frame.d.ts +0 -0
  15. package/dist/code-frame.js +0 -0
  16. package/dist/compositions.d.ts +0 -0
  17. package/dist/compositions.js +2 -1
  18. package/dist/config/bitrate.d.ts +4 -0
  19. package/dist/config/bitrate.js +21 -0
  20. package/dist/config/browser-executable.d.ts +0 -0
  21. package/dist/config/browser-executable.js +0 -0
  22. package/dist/config/browser.d.ts +0 -0
  23. package/dist/config/browser.js +0 -0
  24. package/dist/config/chromium-flags.d.ts +0 -0
  25. package/dist/config/chromium-flags.js +0 -0
  26. package/dist/config/codec.d.ts +0 -0
  27. package/dist/config/codec.js +0 -0
  28. package/dist/config/concurrency.d.ts +0 -0
  29. package/dist/config/concurrency.js +0 -0
  30. package/dist/config/crf.d.ts +1 -2
  31. package/dist/config/crf.js +1 -9
  32. package/dist/config/enforce-audio-track.d.ts +0 -0
  33. package/dist/config/enforce-audio-track.js +0 -0
  34. package/dist/config/env-file.d.ts +0 -0
  35. package/dist/config/env-file.js +0 -0
  36. package/dist/config/every-nth-frame.d.ts +0 -0
  37. package/dist/config/every-nth-frame.js +0 -0
  38. package/dist/config/ffmpeg-executable.d.ts +0 -0
  39. package/dist/config/ffmpeg-executable.js +0 -0
  40. package/dist/config/ffmpeg-override.d.ts +3 -0
  41. package/dist/config/ffmpeg-override.js +12 -0
  42. package/dist/config/frame-range.d.ts +0 -0
  43. package/dist/config/frame-range.js +0 -0
  44. package/dist/config/image-format.d.ts +0 -0
  45. package/dist/config/image-format.js +8 -1
  46. package/dist/config/image-sequence.d.ts +0 -0
  47. package/dist/config/image-sequence.js +0 -0
  48. package/dist/config/index.d.ts +7 -2
  49. package/dist/config/index.js +11 -4
  50. package/dist/config/keyboard-shortcuts.d.ts +0 -0
  51. package/dist/config/keyboard-shortcuts.js +0 -0
  52. package/dist/config/log.d.ts +0 -0
  53. package/dist/config/log.js +0 -0
  54. package/dist/config/max-timeline-tracks.d.ts +0 -0
  55. package/dist/config/max-timeline-tracks.js +0 -0
  56. package/dist/config/muted.d.ts +0 -0
  57. package/dist/config/muted.js +0 -0
  58. package/dist/config/number-of-gif-loops.d.ts +0 -0
  59. package/dist/config/number-of-gif-loops.js +0 -0
  60. package/dist/config/output-location.d.ts +0 -0
  61. package/dist/config/output-location.js +0 -0
  62. package/dist/config/override-webpack.d.ts +0 -0
  63. package/dist/config/override-webpack.js +0 -0
  64. package/dist/config/overwrite.d.ts +3 -1
  65. package/dist/config/overwrite.js +2 -3
  66. package/dist/config/pixel-format.d.ts +0 -0
  67. package/dist/config/pixel-format.js +0 -0
  68. package/dist/config/preview-server.d.ts +0 -0
  69. package/dist/config/preview-server.js +0 -0
  70. package/dist/config/prores-profile.d.ts +0 -0
  71. package/dist/config/prores-profile.js +0 -0
  72. package/dist/config/public-dir.d.ts +0 -0
  73. package/dist/config/public-dir.js +0 -0
  74. package/dist/config/quality.d.ts +0 -0
  75. package/dist/config/quality.js +0 -0
  76. package/dist/config/scale.d.ts +0 -0
  77. package/dist/config/scale.js +0 -0
  78. package/dist/config/still-frame.d.ts +0 -0
  79. package/dist/config/still-frame.js +0 -0
  80. package/dist/config/timeout.d.ts +0 -0
  81. package/dist/config/timeout.js +0 -0
  82. package/dist/config/webpack-caching.d.ts +0 -0
  83. package/dist/config/webpack-caching.js +0 -0
  84. package/dist/determine-image-format.d.ts +11 -0
  85. package/dist/determine-image-format.js +48 -0
  86. package/dist/download-progress.d.ts +0 -0
  87. package/dist/download-progress.js +0 -0
  88. package/dist/editor/components/AudioWaveform.d.ts +0 -0
  89. package/dist/editor/components/AudioWaveform.js +0 -0
  90. package/dist/editor/components/AudioWaveformBar.d.ts +0 -0
  91. package/dist/editor/components/AudioWaveformBar.js +0 -0
  92. package/dist/editor/components/Canvas.d.ts +0 -0
  93. package/dist/editor/components/Canvas.js +6 -2
  94. package/dist/editor/components/CheckboardToggle.d.ts +0 -0
  95. package/dist/editor/components/CheckboardToggle.js +0 -0
  96. package/dist/editor/components/ClipboardIcon.d.ts +0 -0
  97. package/dist/editor/components/ClipboardIcon.js +0 -0
  98. package/dist/editor/components/CollapsedCompositionSelector.d.ts +0 -0
  99. package/dist/editor/components/CollapsedCompositionSelector.js +0 -0
  100. package/dist/editor/components/CompositionSelector.d.ts +0 -0
  101. package/dist/editor/components/CompositionSelector.js +0 -0
  102. package/dist/editor/components/CompositionSelectorItem.d.ts +0 -0
  103. package/dist/editor/components/CompositionSelectorItem.js +0 -0
  104. package/dist/editor/components/ControlButton.d.ts +0 -0
  105. package/dist/editor/components/ControlButton.js +0 -0
  106. package/dist/editor/components/CopyButton.d.ts +0 -0
  107. package/dist/editor/components/CopyButton.js +0 -0
  108. package/dist/editor/components/CurrentComposition.d.ts +0 -0
  109. package/dist/editor/components/CurrentComposition.js +0 -0
  110. package/dist/editor/components/Editor.d.ts +0 -0
  111. package/dist/editor/components/Editor.js +0 -0
  112. package/dist/editor/components/EditorContent.d.ts +0 -0
  113. package/dist/editor/components/EditorContent.js +0 -0
  114. package/dist/editor/components/EditorContexts.d.ts +0 -0
  115. package/dist/editor/components/EditorContexts.js +0 -0
  116. package/dist/editor/components/FpsCounter.d.ts +0 -0
  117. package/dist/editor/components/FpsCounter.js +0 -0
  118. package/dist/editor/components/FramePersistor.d.ts +0 -0
  119. package/dist/editor/components/FramePersistor.js +0 -0
  120. package/dist/editor/components/GlobalKeybindings.d.ts +0 -0
  121. package/dist/editor/components/GlobalKeybindings.js +0 -0
  122. package/dist/editor/components/InitialCompositionLoader.d.ts +0 -0
  123. package/dist/editor/components/InitialCompositionLoader.js +0 -0
  124. package/dist/editor/components/KeyboardShortcutsModal.d.ts +0 -0
  125. package/dist/editor/components/KeyboardShortcutsModal.js +0 -0
  126. package/dist/editor/components/LoopToggle.d.ts +0 -0
  127. package/dist/editor/components/LoopToggle.js +0 -0
  128. package/dist/editor/components/Menu/MenuDivider.d.ts +0 -0
  129. package/dist/editor/components/Menu/MenuDivider.js +0 -0
  130. package/dist/editor/components/Menu/MenuItem.d.ts +0 -0
  131. package/dist/editor/components/Menu/MenuItem.js +0 -0
  132. package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -0
  133. package/dist/editor/components/Menu/MenuSubItem.js +0 -0
  134. package/dist/editor/components/Menu/SubMenu.d.ts +0 -0
  135. package/dist/editor/components/Menu/SubMenu.js +0 -0
  136. package/dist/editor/components/Menu/portals.d.ts +0 -0
  137. package/dist/editor/components/Menu/portals.js +0 -0
  138. package/dist/editor/components/Menu/styles.d.ts +0 -0
  139. package/dist/editor/components/Menu/styles.js +0 -0
  140. package/dist/editor/components/MenuBuildIndicator.d.ts +0 -0
  141. package/dist/editor/components/MenuBuildIndicator.js +0 -0
  142. package/dist/editor/components/MenuToolbar.d.ts +0 -0
  143. package/dist/editor/components/MenuToolbar.js +0 -0
  144. package/dist/editor/components/ModalContainer.d.ts +0 -0
  145. package/dist/editor/components/ModalContainer.js +0 -0
  146. package/dist/editor/components/ModalHeader.d.ts +0 -0
  147. package/dist/editor/components/ModalHeader.js +0 -0
  148. package/dist/editor/components/MuteToggle.d.ts +0 -0
  149. package/dist/editor/components/MuteToggle.js +0 -0
  150. package/dist/editor/components/NewComposition/CancelButton.d.ts +0 -0
  151. package/dist/editor/components/NewComposition/CancelButton.js +0 -0
  152. package/dist/editor/components/NewComposition/ComboBox.d.ts +0 -0
  153. package/dist/editor/components/NewComposition/ComboBox.js +0 -0
  154. package/dist/editor/components/NewComposition/CopyHint.d.ts +0 -0
  155. package/dist/editor/components/NewComposition/CopyHint.js +0 -0
  156. package/dist/editor/components/NewComposition/InputDragger.d.ts +0 -0
  157. package/dist/editor/components/NewComposition/InputDragger.js +0 -0
  158. package/dist/editor/components/NewComposition/MenuContent.d.ts +0 -0
  159. package/dist/editor/components/NewComposition/MenuContent.js +0 -0
  160. package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts +0 -0
  161. package/dist/editor/components/NewComposition/NewCompAspectRatio.js +0 -0
  162. package/dist/editor/components/NewComposition/NewCompCode.d.ts +0 -0
  163. package/dist/editor/components/NewComposition/NewCompCode.js +0 -0
  164. package/dist/editor/components/NewComposition/NewCompDuration.d.ts +0 -0
  165. package/dist/editor/components/NewComposition/NewCompDuration.js +0 -0
  166. package/dist/editor/components/NewComposition/NewComposition.d.ts +0 -0
  167. package/dist/editor/components/NewComposition/NewComposition.js +0 -0
  168. package/dist/editor/components/NewComposition/RemInput.d.ts +0 -0
  169. package/dist/editor/components/NewComposition/RemInput.js +1 -1
  170. package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts +0 -0
  171. package/dist/editor/components/NewComposition/ToggleAspectRatio.js +0 -0
  172. package/dist/editor/components/NewComposition/ValidationMessage.d.ts +0 -0
  173. package/dist/editor/components/NewComposition/ValidationMessage.js +0 -0
  174. package/dist/editor/components/NewComposition/new-comp-layout.d.ts +0 -0
  175. package/dist/editor/components/NewComposition/new-comp-layout.js +0 -0
  176. package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +0 -0
  177. package/dist/editor/components/NewComposition/render-aspect-ratio.js +0 -0
  178. package/dist/editor/components/NoRegisterRoot.d.ts +0 -0
  179. package/dist/editor/components/NoRegisterRoot.js +0 -0
  180. package/dist/editor/components/Notifications/ColorDot.d.ts +0 -0
  181. package/dist/editor/components/Notifications/ColorDot.js +0 -0
  182. package/dist/editor/components/Notifications/Notification.d.ts +0 -0
  183. package/dist/editor/components/Notifications/Notification.js +0 -0
  184. package/dist/editor/components/Notifications/NotificationCenter.d.ts +0 -0
  185. package/dist/editor/components/Notifications/NotificationCenter.js +1 -1
  186. package/dist/editor/components/Notifications/ServerDisconnected.d.ts +0 -0
  187. package/dist/editor/components/Notifications/ServerDisconnected.js +0 -0
  188. package/dist/editor/components/PlayPause.d.ts +0 -0
  189. package/dist/editor/components/PlayPause.js +0 -0
  190. package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +0 -0
  191. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +0 -0
  192. package/dist/editor/components/PlaybackRatePersistor.d.ts +0 -0
  193. package/dist/editor/components/PlaybackRatePersistor.js +0 -0
  194. package/dist/editor/components/PlaybackRateSelector.d.ts +0 -0
  195. package/dist/editor/components/PlaybackRateSelector.js +0 -0
  196. package/dist/editor/components/Preview.d.ts +0 -0
  197. package/dist/editor/components/Preview.js +0 -0
  198. package/dist/editor/components/PreviewToolbar.d.ts +0 -0
  199. package/dist/editor/components/PreviewToolbar.js +0 -0
  200. package/dist/editor/components/RichTimelineToggle.d.ts +0 -0
  201. package/dist/editor/components/RichTimelineToggle.js +0 -0
  202. package/dist/editor/components/SizeSelector.d.ts +0 -0
  203. package/dist/editor/components/SizeSelector.js +1 -1
  204. package/dist/editor/components/Splitter/SplitterContainer.d.ts +0 -0
  205. package/dist/editor/components/Splitter/SplitterContainer.js +0 -0
  206. package/dist/editor/components/Splitter/SplitterContext.d.ts +0 -0
  207. package/dist/editor/components/Splitter/SplitterContext.js +0 -0
  208. package/dist/editor/components/Splitter/SplitterElement.d.ts +0 -0
  209. package/dist/editor/components/Splitter/SplitterElement.js +0 -0
  210. package/dist/editor/components/Splitter/SplitterHandle.d.ts +0 -0
  211. package/dist/editor/components/Splitter/SplitterHandle.js +0 -0
  212. package/dist/editor/components/Thumbnail.d.ts +0 -0
  213. package/dist/editor/components/Thumbnail.js +0 -0
  214. package/dist/editor/components/TimeValue.d.ts +0 -0
  215. package/dist/editor/components/TimeValue.js +0 -0
  216. package/dist/editor/components/Timeline/LoopedIndicator.d.ts +0 -0
  217. package/dist/editor/components/Timeline/LoopedIndicator.js +0 -0
  218. package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts +0 -0
  219. package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +0 -0
  220. package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +0 -0
  221. package/dist/editor/components/Timeline/MaxTimelineTracks.js +0 -0
  222. package/dist/editor/components/Timeline/Timeline.d.ts +0 -0
  223. package/dist/editor/components/Timeline/Timeline.js +1 -1
  224. package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +0 -0
  225. package/dist/editor/components/Timeline/TimelineCollapseToggle.js +0 -0
  226. package/dist/editor/components/Timeline/TimelineDragHandler.d.ts +0 -0
  227. package/dist/editor/components/Timeline/TimelineDragHandler.js +0 -0
  228. package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +0 -0
  229. package/dist/editor/components/Timeline/TimelineInOutPointer.js +0 -0
  230. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +0 -0
  231. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +0 -0
  232. package/dist/editor/components/Timeline/TimelineList.d.ts +0 -0
  233. package/dist/editor/components/Timeline/TimelineList.js +0 -0
  234. package/dist/editor/components/Timeline/TimelineListItem.d.ts +0 -0
  235. package/dist/editor/components/Timeline/TimelineListItem.js +0 -0
  236. package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +0 -0
  237. package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +0 -0
  238. package/dist/editor/components/Timeline/TimelineScrollable.d.ts +0 -0
  239. package/dist/editor/components/Timeline/TimelineScrollable.js +0 -0
  240. package/dist/editor/components/Timeline/TimelineSequence.d.ts +0 -0
  241. package/dist/editor/components/Timeline/TimelineSequence.js +0 -0
  242. package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts +0 -0
  243. package/dist/editor/components/Timeline/TimelineSequenceFrame.js +0 -0
  244. package/dist/editor/components/Timeline/TimelineSlider.d.ts +0 -0
  245. package/dist/editor/components/Timeline/TimelineSlider.js +1 -1
  246. package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +0 -0
  247. package/dist/editor/components/Timeline/TimelineSliderHandle.js +0 -0
  248. package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +0 -0
  249. package/dist/editor/components/Timeline/TimelineTimeIndicators.js +0 -0
  250. package/dist/editor/components/Timeline/TimelineTracks.d.ts +0 -0
  251. package/dist/editor/components/Timeline/TimelineTracks.js +0 -0
  252. package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts +0 -0
  253. package/dist/editor/components/Timeline/TimelineVideoInfo.js +0 -0
  254. package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +0 -0
  255. package/dist/editor/components/Timeline/TimelineZoomControls.js +0 -0
  256. package/dist/editor/components/Timeline/imperative-state.d.ts +0 -0
  257. package/dist/editor/components/Timeline/imperative-state.js +0 -0
  258. package/dist/editor/components/Timeline/is-collapsed.d.ts +0 -0
  259. package/dist/editor/components/Timeline/is-collapsed.js +0 -0
  260. package/dist/editor/components/Timeline/timeline-refs.d.ts +0 -0
  261. package/dist/editor/components/Timeline/timeline-refs.js +0 -0
  262. package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -0
  263. package/dist/editor/components/Timeline/timeline-scroll-logic.js +0 -0
  264. package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +0 -0
  265. package/dist/editor/components/Timeline/timeline-state-reducer.js +0 -0
  266. package/dist/editor/components/TimelineInOutToggle.d.ts +0 -0
  267. package/dist/editor/components/TimelineInOutToggle.js +1 -1
  268. package/dist/editor/components/TopPanel.d.ts +0 -0
  269. package/dist/editor/components/TopPanel.js +0 -0
  270. package/dist/editor/components/UpdateCheck.d.ts +0 -0
  271. package/dist/editor/components/UpdateCheck.js +0 -0
  272. package/dist/editor/components/UpdateModal/UpdateModal.d.ts +0 -0
  273. package/dist/editor/components/UpdateModal/UpdateModal.js +0 -0
  274. package/dist/editor/components/ZoomPersistor.d.ts +0 -0
  275. package/dist/editor/components/ZoomPersistor.js +0 -0
  276. package/dist/editor/components/layout.d.ts +0 -0
  277. package/dist/editor/components/layout.js +0 -0
  278. package/dist/editor/helpers/calculate-timeline.d.ts +0 -0
  279. package/dist/editor/helpers/calculate-timeline.js +0 -0
  280. package/dist/editor/helpers/checkerboard-background.d.ts +0 -0
  281. package/dist/editor/helpers/checkerboard-background.js +0 -0
  282. package/dist/editor/helpers/colors.d.ts +0 -0
  283. package/dist/editor/helpers/colors.js +0 -0
  284. package/dist/editor/helpers/copy-text.d.ts +0 -0
  285. package/dist/editor/helpers/copy-text.js +0 -0
  286. package/dist/editor/helpers/create-folder-tree.d.ts +0 -0
  287. package/dist/editor/helpers/create-folder-tree.js +0 -0
  288. package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +0 -0
  289. package/dist/editor/helpers/get-left-of-timeline-slider.js +0 -0
  290. package/dist/editor/helpers/get-sequence-visible-range.d.ts +0 -0
  291. package/dist/editor/helpers/get-sequence-visible-range.js +0 -0
  292. package/dist/editor/helpers/get-timeline-nestedness.d.ts +0 -0
  293. package/dist/editor/helpers/get-timeline-nestedness.js +0 -0
  294. package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +0 -0
  295. package/dist/editor/helpers/get-timeline-sequence-hash.js +0 -0
  296. package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +0 -0
  297. package/dist/editor/helpers/get-timeline-sequence-layout.js +0 -0
  298. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +0 -0
  299. package/dist/editor/helpers/get-timeline-sequence-sort-key.js +0 -0
  300. package/dist/editor/helpers/is-composition-still.d.ts +0 -0
  301. package/dist/editor/helpers/is-composition-still.js +0 -0
  302. package/dist/editor/helpers/is-current-selected-still.d.ts +0 -0
  303. package/dist/editor/helpers/is-current-selected-still.js +0 -0
  304. package/dist/editor/helpers/noop.d.ts +0 -0
  305. package/dist/editor/helpers/noop.js +0 -0
  306. package/dist/editor/helpers/persist-open-folders.d.ts +0 -0
  307. package/dist/editor/helpers/persist-open-folders.js +0 -0
  308. package/dist/editor/helpers/pick-color.d.ts +0 -0
  309. package/dist/editor/helpers/pick-color.js +0 -0
  310. package/dist/editor/helpers/timeline-layout.d.ts +0 -0
  311. package/dist/editor/helpers/timeline-layout.js +0 -0
  312. package/dist/editor/helpers/use-compact-ui.d.ts +0 -0
  313. package/dist/editor/helpers/use-compact-ui.js +0 -0
  314. package/dist/editor/helpers/use-keybinding.d.ts +0 -0
  315. package/dist/editor/helpers/use-keybinding.js +0 -0
  316. package/dist/editor/helpers/validate-new-comp-data.d.ts +0 -0
  317. package/dist/editor/helpers/validate-new-comp-data.js +0 -0
  318. package/dist/editor/icons/Checkmark.d.ts +0 -0
  319. package/dist/editor/icons/Checkmark.js +0 -0
  320. package/dist/editor/icons/caret.d.ts +0 -0
  321. package/dist/editor/icons/caret.js +0 -0
  322. package/dist/editor/icons/film.d.ts +0 -0
  323. package/dist/editor/icons/film.js +0 -0
  324. package/dist/editor/icons/folder.d.ts +0 -0
  325. package/dist/editor/icons/folder.js +0 -0
  326. package/dist/editor/icons/jump-to-start.d.ts +0 -0
  327. package/dist/editor/icons/jump-to-start.js +0 -0
  328. package/dist/editor/icons/keys.d.ts +0 -0
  329. package/dist/editor/icons/keys.js +0 -0
  330. package/dist/editor/icons/lock.d.ts +0 -0
  331. package/dist/editor/icons/lock.js +0 -0
  332. package/dist/editor/icons/media-volume.d.ts +0 -0
  333. package/dist/editor/icons/media-volume.js +0 -0
  334. package/dist/editor/icons/minus.d.ts +0 -0
  335. package/dist/editor/icons/minus.js +0 -0
  336. package/dist/editor/icons/pause.d.ts +0 -0
  337. package/dist/editor/icons/pause.js +0 -0
  338. package/dist/editor/icons/play.d.ts +0 -0
  339. package/dist/editor/icons/play.js +0 -0
  340. package/dist/editor/icons/plus.d.ts +0 -0
  341. package/dist/editor/icons/plus.js +0 -0
  342. package/dist/editor/icons/step-back.d.ts +0 -0
  343. package/dist/editor/icons/step-back.js +0 -0
  344. package/dist/editor/icons/step-forward.d.ts +0 -0
  345. package/dist/editor/icons/step-forward.js +0 -0
  346. package/dist/editor/icons/still.d.ts +0 -0
  347. package/dist/editor/icons/still.js +0 -0
  348. package/dist/editor/icons/timeline.d.ts +0 -0
  349. package/dist/editor/icons/timeline.js +0 -0
  350. package/dist/editor/icons/timelineInOutPointer.d.ts +0 -0
  351. package/dist/editor/icons/timelineInOutPointer.js +0 -0
  352. package/dist/editor/state/aspect-ratio-locked.d.ts +0 -0
  353. package/dist/editor/state/aspect-ratio-locked.js +0 -0
  354. package/dist/editor/state/checkerboard.d.ts +0 -0
  355. package/dist/editor/state/checkerboard.js +0 -0
  356. package/dist/editor/state/folders.d.ts +0 -0
  357. package/dist/editor/state/folders.js +0 -0
  358. package/dist/editor/state/highest-z-index.d.ts +0 -0
  359. package/dist/editor/state/highest-z-index.js +0 -0
  360. package/dist/editor/state/in-out.d.ts +0 -0
  361. package/dist/editor/state/in-out.js +0 -0
  362. package/dist/editor/state/input-dragger-click-lock.d.ts +0 -0
  363. package/dist/editor/state/input-dragger-click-lock.js +0 -0
  364. package/dist/editor/state/keybindings.d.ts +0 -0
  365. package/dist/editor/state/keybindings.js +0 -0
  366. package/dist/editor/state/loop.d.ts +0 -0
  367. package/dist/editor/state/loop.js +0 -0
  368. package/dist/editor/state/marks.d.ts +0 -0
  369. package/dist/editor/state/marks.js +0 -0
  370. package/dist/editor/state/modals.d.ts +0 -0
  371. package/dist/editor/state/modals.js +0 -0
  372. package/dist/editor/state/mute.d.ts +0 -0
  373. package/dist/editor/state/mute.js +0 -0
  374. package/dist/editor/state/playbackrate.d.ts +0 -0
  375. package/dist/editor/state/playbackrate.js +0 -0
  376. package/dist/editor/state/preview-size.d.ts +0 -0
  377. package/dist/editor/state/preview-size.js +0 -0
  378. package/dist/editor/state/render-frame.d.ts +0 -0
  379. package/dist/editor/state/render-frame.js +0 -0
  380. package/dist/editor/state/rich-timeline.d.ts +0 -0
  381. package/dist/editor/state/rich-timeline.js +0 -0
  382. package/dist/editor/state/sidebar.d.ts +0 -0
  383. package/dist/editor/state/sidebar.js +0 -0
  384. package/dist/editor/state/timeline-ref.d.ts +0 -0
  385. package/dist/editor/state/timeline-ref.js +0 -0
  386. package/dist/editor/state/timeline-zoom.d.ts +0 -0
  387. package/dist/editor/state/timeline-zoom.js +0 -0
  388. package/dist/editor/state/timeline.d.ts +0 -0
  389. package/dist/editor/state/timeline.js +0 -0
  390. package/dist/editor/state/z-index.d.ts +0 -0
  391. package/dist/editor/state/z-index.js +0 -0
  392. package/dist/event-source-events.d.ts +3 -0
  393. package/dist/event-source-events.js +0 -0
  394. package/dist/event-source.d.ts +0 -0
  395. package/dist/event-source.js +12 -10
  396. package/dist/find-closest-package-json.d.ts +0 -0
  397. package/dist/find-closest-package-json.js +0 -0
  398. package/dist/format-bytes.d.ts +0 -0
  399. package/dist/format-bytes.js +0 -0
  400. package/dist/get-cli-options.d.ts +15 -5
  401. package/dist/get-cli-options.js +40 -40
  402. package/dist/get-composition-id.d.ts +0 -0
  403. package/dist/get-composition-id.js +0 -0
  404. package/dist/get-config-file-name.d.ts +0 -0
  405. package/dist/get-config-file-name.js +0 -0
  406. package/dist/get-env.d.ts +1 -1
  407. package/dist/get-env.js +58 -6
  408. package/dist/get-filename.d.ts +0 -0
  409. package/dist/get-filename.js +0 -0
  410. package/dist/get-final-output-codec.d.ts +9 -5
  411. package/dist/get-final-output-codec.js +51 -48
  412. package/dist/get-input-props.d.ts +0 -0
  413. package/dist/get-input-props.js +0 -0
  414. package/dist/get-latest-remotion-version.d.ts +0 -0
  415. package/dist/get-latest-remotion-version.js +0 -0
  416. package/dist/get-network-address.d.ts +1 -0
  417. package/dist/get-network-address.js +16 -0
  418. package/dist/get-render-media-options.d.ts +7 -0
  419. package/dist/get-render-media-options.js +46 -0
  420. package/dist/handle-common-errors.d.ts +0 -0
  421. package/dist/handle-common-errors.js +0 -0
  422. package/dist/image-formats.d.ts +0 -0
  423. package/dist/image-formats.js +0 -0
  424. package/dist/index.d.ts +28 -8
  425. package/dist/index.js +19 -7
  426. package/dist/initialize-cli.d.ts +1 -0
  427. package/dist/{initialize-render-cli.js → initialize-cli.js} +4 -4
  428. package/dist/is-javascript.d.ts +0 -0
  429. package/dist/is-javascript.js +0 -0
  430. package/dist/lambda-command.d.ts +0 -0
  431. package/dist/lambda-command.js +1 -3
  432. package/dist/list-of-remotion-packages.d.ts +0 -0
  433. package/dist/list-of-remotion-packages.js +2 -0
  434. package/dist/load-config.d.ts +0 -0
  435. package/dist/load-config.js +0 -0
  436. package/dist/log.d.ts +0 -0
  437. package/dist/log.js +0 -0
  438. package/dist/make-progress-bar.d.ts +0 -0
  439. package/dist/make-progress-bar.js +0 -0
  440. package/dist/parse-command-line.d.ts +2 -1
  441. package/dist/parse-command-line.js +7 -12
  442. package/dist/preview-server/dev-middleware/compatible-api.d.ts +0 -0
  443. package/dist/preview-server/dev-middleware/compatible-api.js +0 -0
  444. package/dist/preview-server/dev-middleware/get-paths.d.ts +0 -0
  445. package/dist/preview-server/dev-middleware/get-paths.js +0 -0
  446. package/dist/preview-server/dev-middleware/index.d.ts +0 -0
  447. package/dist/preview-server/dev-middleware/index.js +0 -0
  448. package/dist/preview-server/dev-middleware/is-color-supported.d.ts +0 -0
  449. package/dist/preview-server/dev-middleware/is-color-supported.js +0 -0
  450. package/dist/preview-server/dev-middleware/middleware.d.ts +0 -0
  451. package/dist/preview-server/dev-middleware/middleware.js +0 -0
  452. package/dist/preview-server/dev-middleware/range-parser.d.ts +1 -1
  453. package/dist/preview-server/dev-middleware/range-parser.js +0 -0
  454. package/dist/preview-server/dev-middleware/ready.d.ts +0 -0
  455. package/dist/preview-server/dev-middleware/ready.js +0 -0
  456. package/dist/preview-server/dev-middleware/setup-hooks.d.ts +0 -0
  457. package/dist/preview-server/dev-middleware/setup-hooks.js +15 -4
  458. package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +0 -0
  459. package/dist/preview-server/dev-middleware/setup-output-filesystem.js +0 -0
  460. package/dist/preview-server/dev-middleware/types.d.ts +0 -0
  461. package/dist/preview-server/dev-middleware/types.js +0 -0
  462. package/dist/preview-server/error-overlay/entry-basic.d.ts +0 -0
  463. package/dist/preview-server/error-overlay/entry-basic.js +0 -0
  464. package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +0 -0
  465. package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +0 -0
  466. package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +0 -0
  467. package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +0 -0
  468. package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +0 -0
  469. package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +0 -0
  470. package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +0 -0
  471. package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +0 -0
  472. package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +0 -0
  473. package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +0 -0
  474. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +0 -0
  475. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +0 -0
  476. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +0 -0
  477. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +0 -0
  478. package/dist/preview-server/error-overlay/react-overlay/index.d.ts +0 -0
  479. package/dist/preview-server/error-overlay/react-overlay/index.js +0 -0
  480. package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +0 -0
  481. package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +0 -0
  482. package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +0 -0
  483. package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +0 -0
  484. package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +0 -0
  485. package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +0 -0
  486. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -0
  487. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +0 -0
  488. package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +0 -0
  489. package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +0 -0
  490. package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +0 -0
  491. package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +0 -0
  492. package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +0 -0
  493. package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +0 -0
  494. package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +0 -0
  495. package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +0 -0
  496. package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +0 -0
  497. package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +0 -0
  498. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +0 -0
  499. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +0 -0
  500. package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +0 -0
  501. package/dist/preview-server/error-overlay/remotion-overlay/Button.js +0 -0
  502. package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +0 -0
  503. package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +0 -0
  504. package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +0 -0
  505. package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +0 -0
  506. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +0 -0
  507. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +0 -0
  508. package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +0 -0
  509. package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +0 -0
  510. package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +0 -0
  511. package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +0 -0
  512. package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +0 -0
  513. package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +0 -0
  514. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +0 -0
  515. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +0 -0
  516. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +0 -0
  517. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +0 -0
  518. package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +0 -0
  519. package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +0 -0
  520. package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +0 -0
  521. package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +0 -0
  522. package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +0 -0
  523. package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +0 -0
  524. package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +0 -0
  525. package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +0 -0
  526. package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +0 -0
  527. package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +0 -0
  528. package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +0 -0
  529. package/dist/preview-server/error-overlay/remotion-overlay/carets.js +0 -0
  530. package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +0 -0
  531. package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +0 -0
  532. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +0 -0
  533. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +0 -0
  534. package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +0 -0
  535. package/dist/preview-server/error-overlay/remotion-overlay/index.js +0 -0
  536. package/dist/preview-server/get-package-manager.d.ts +1 -1
  537. package/dist/preview-server/get-package-manager.js +10 -1
  538. package/dist/preview-server/hot-middleware/client.d.ts +0 -0
  539. package/dist/preview-server/hot-middleware/client.js +0 -0
  540. package/dist/preview-server/hot-middleware/index.d.ts +0 -0
  541. package/dist/preview-server/hot-middleware/index.js +1 -2
  542. package/dist/preview-server/hot-middleware/process-update.d.ts +0 -0
  543. package/dist/preview-server/hot-middleware/process-update.js +0 -0
  544. package/dist/preview-server/hot-middleware/strip-ansi.d.ts +0 -0
  545. package/dist/preview-server/hot-middleware/strip-ansi.js +0 -0
  546. package/dist/preview-server/hot-middleware/types.d.ts +0 -0
  547. package/dist/preview-server/hot-middleware/types.js +0 -0
  548. package/dist/preview-server/live-events.d.ts +0 -0
  549. package/dist/preview-server/live-events.js +0 -0
  550. package/dist/preview-server/project-info.d.ts +0 -0
  551. package/dist/preview-server/project-info.js +0 -0
  552. package/dist/preview-server/routes.d.ts +2 -1
  553. package/dist/preview-server/routes.js +5 -3
  554. package/dist/preview-server/serve-static.d.ts +0 -0
  555. package/dist/preview-server/serve-static.js +0 -0
  556. package/dist/preview-server/start-server.d.ts +1 -1
  557. package/dist/preview-server/start-server.js +4 -1
  558. package/dist/preview-server/update-available.d.ts +0 -0
  559. package/dist/preview-server/update-available.js +2 -2
  560. package/dist/preview.d.ts +0 -0
  561. package/dist/preview.js +19 -5
  562. package/dist/previewEntry.d.ts +0 -0
  563. package/dist/previewEntry.js +0 -0
  564. package/dist/print-error.d.ts +0 -0
  565. package/dist/print-error.js +0 -0
  566. package/dist/print-help.d.ts +0 -0
  567. package/dist/print-help.js +14 -3
  568. package/dist/progress-bar.d.ts +0 -0
  569. package/dist/progress-bar.js +3 -1
  570. package/dist/render.d.ts +0 -0
  571. package/dist/render.js +34 -35
  572. package/dist/resolve-from.d.ts +0 -0
  573. package/dist/resolve-from.js +0 -0
  574. package/dist/setup-cache.d.ts +0 -0
  575. package/dist/setup-cache.js +12 -8
  576. package/dist/step.d.ts +0 -0
  577. package/dist/step.js +0 -0
  578. package/dist/still.d.ts +0 -0
  579. package/dist/still.js +15 -25
  580. package/dist/truthy.d.ts +0 -0
  581. package/dist/truthy.js +0 -0
  582. package/dist/upgrade.d.ts +1 -1
  583. package/dist/upgrade.js +2 -2
  584. package/dist/user-passed-output-location.d.ts +0 -0
  585. package/dist/user-passed-output-location.js +0 -0
  586. package/dist/validate-ffmpeg-version.d.ts +0 -0
  587. package/dist/validate-ffmpeg-version.js +0 -0
  588. package/dist/versions.d.ts +0 -0
  589. package/dist/versions.js +1 -1
  590. package/dist/warn-about-ffmpeg-version.d.ts +0 -0
  591. package/dist/warn-about-ffmpeg-version.js +0 -0
  592. package/package.json +10 -11
  593. package/dist/bundle.d.ts +0 -1
  594. package/dist/bundle.js +0 -32
  595. package/dist/config/bundle-out-dir.d.ts +0 -2
  596. package/dist/config/bundle-out-dir.js +0 -12
  597. package/dist/config/get-public-path.d.ts +0 -2
  598. package/dist/config/get-public-path.js +0 -12
  599. package/dist/editor/components/Button.d.ts +0 -4
  600. package/dist/editor/components/Button.js +0 -24
  601. package/dist/editor/components/PreviewZoomControls.d.ts +0 -2
  602. package/dist/editor/components/PreviewZoomControls.js +0 -67
  603. package/dist/editor/helpers/normalize-wheel.d.ts +0 -5
  604. package/dist/editor/helpers/normalize-wheel.js +0 -20
  605. package/dist/editor/helpers/normalize-zoom.d.ts +0 -1
  606. package/dist/editor/helpers/normalize-zoom.js +0 -16
  607. package/dist/initialize-render-cli.d.ts +0 -1
  608. package/dist/prepare-entry-point.d.ts +0 -12
  609. package/dist/prepare-entry-point.js +0 -37
  610. package/vitest.config.ts +0 -9
@@ -34,7 +34,9 @@ const makeBundlingProgress = ({ progress, steps, doneIn, }) => [
34
34
  doneIn === null
35
35
  ? (progress * 100).toFixed(0) + '%'
36
36
  : chalk_1.chalk.gray(`${doneIn}ms`),
37
- ].join(' ');
37
+ ]
38
+ .filter(truthy_1.truthy)
39
+ .join(' ');
38
40
  exports.makeBundlingProgress = makeBundlingProgress;
39
41
  const makeRenderingProgress = ({ frames, totalFrames, steps, concurrency, doneIn, }) => {
40
42
  const progress = frames / totalFrames;
package/dist/render.d.ts CHANGED
File without changes
package/dist/render.js CHANGED
@@ -15,12 +15,12 @@ const config_1 = require("./config");
15
15
  const get_cli_options_1 = require("./get-cli-options");
16
16
  const get_composition_id_1 = require("./get-composition-id");
17
17
  const get_filename_1 = require("./get-filename");
18
- const initialize_render_cli_1 = require("./initialize-render-cli");
18
+ const get_render_media_options_1 = require("./get-render-media-options");
19
19
  const log_1 = require("./log");
20
20
  const parse_command_line_1 = require("./parse-command-line");
21
21
  const progress_bar_1 = require("./progress-bar");
22
22
  const setup_cache_1 = require("./setup-cache");
23
- const validate_ffmpeg_version_1 = require("./validate-ffmpeg-version");
23
+ const user_passed_output_location_1 = require("./user-passed-output-location");
24
24
  const render = async (remotionRoot) => {
25
25
  const startTime = Date.now();
26
26
  const file = parse_command_line_1.parsedCli._[1];
@@ -34,11 +34,20 @@ const render = async (remotionRoot) => {
34
34
  ? file
35
35
  : path_1.default.join(process.cwd(), file);
36
36
  const downloadMap = renderer_1.RenderInternals.makeDownloadMap();
37
- await (0, initialize_render_cli_1.initializeRenderCli)(remotionRoot, 'sequence');
37
+ if (parse_command_line_1.parsedCli.frame) {
38
+ log_1.Log.error('--frame flag was passed to the `render` command. This flag only works with the `still` command. Did you mean `--frames`? See reference: https://www.remotion.dev/docs/cli/');
39
+ process.exit(1);
40
+ }
38
41
  log_1.Log.verbose('Asset dirs', downloadMap.assetDir);
39
- const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, numberOfGifLoops, everyNthFrame, puppeteerTimeout, muted, enforceAudioTrack, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
42
+ const { codec, reason: codecReason } = (0, get_cli_options_1.getFinalCodec)({
43
+ downloadName: null,
44
+ outName: (0, user_passed_output_location_1.getUserPassedOutputLocation)(),
45
+ });
46
+ (0, get_cli_options_1.validateFfmpegCanUseCodec)(codec);
47
+ const { concurrency, frameRange, shouldOutputImageSequence, overwrite, inputProps, envVariables, quality, browser, imageFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, everyNthFrame, puppeteerTimeout, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
40
48
  isLambda: false,
41
49
  type: 'series',
50
+ codec,
42
51
  });
43
52
  const relativeOutputLocation = (0, get_filename_1.getOutputFilename)({
44
53
  codec,
@@ -48,11 +57,12 @@ const render = async (remotionRoot) => {
48
57
  });
49
58
  const absoluteOutputFile = (0, get_cli_options_1.getAndValidateAbsoluteOutputFile)(relativeOutputLocation, overwrite);
50
59
  const compositionId = (0, get_composition_id_1.getCompositionId)();
51
- log_1.Log.info(chalk_1.chalk.gray(`Composition = ${compositionId}, Codec = ${codec}, Output = ${relativeOutputLocation}`));
52
- log_1.Log.verbose('Browser executable: ', browserExecutable);
53
- await (0, validate_ffmpeg_version_1.checkAndValidateFfmpegVersion)({
60
+ log_1.Log.info(chalk_1.chalk.gray(`Composition = ${compositionId}, Codec = ${codec} (${codecReason}), Output = ${relativeOutputLocation}`));
61
+ const ffmpegVersion = await renderer_1.RenderInternals.getFfmpegVersion({
54
62
  ffmpegExecutable,
55
63
  });
64
+ log_1.Log.verbose('FFMPEG Version:', ffmpegVersion ? ffmpegVersion.join('.') : 'Built from source');
65
+ log_1.Log.verbose('Browser executable: ', browserExecutable);
56
66
  const browserInstance = (0, renderer_1.openBrowser)(browser, {
57
67
  browserExecutable,
58
68
  shouldDumpIo: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
@@ -93,10 +103,11 @@ const render = async (remotionRoot) => {
93
103
  inputProps,
94
104
  puppeteerInstance,
95
105
  envVariables,
96
- timeoutInMilliseconds: config_1.ConfigInternals.getCurrentPuppeteerTimeout(),
106
+ timeoutInMilliseconds: puppeteerTimeout,
97
107
  chromiumOptions,
98
108
  browserExecutable,
99
109
  downloadMap,
110
+ port,
100
111
  });
101
112
  const config = comps.find((c) => c.id === compositionId);
102
113
  if (!config) {
@@ -129,7 +140,7 @@ const render = async (remotionRoot) => {
129
140
  rendering: {
130
141
  frames: renderedFrames,
131
142
  totalFrames: totalFrames.length,
132
- concurrency: renderer_1.RenderInternals.getActualConcurrency(parallelism),
143
+ concurrency: renderer_1.RenderInternals.getActualConcurrency(concurrency),
133
144
  doneIn: renderedDoneIn,
134
145
  steps,
135
146
  },
@@ -178,7 +189,7 @@ const render = async (remotionRoot) => {
178
189
  everyNthFrame,
179
190
  envVariables,
180
191
  frameRange,
181
- parallelism,
192
+ concurrency,
182
193
  puppeteerInstance,
183
194
  quality,
184
195
  timeoutInMilliseconds: puppeteerTimeout,
@@ -197,17 +208,14 @@ const render = async (remotionRoot) => {
197
208
  log_1.Log.info(chalk_1.chalk.green('\nYour image sequence is ready!'));
198
209
  return;
199
210
  }
200
- await (0, renderer_1.renderMedia)({
211
+ const options = await (0, get_render_media_options_1.getRenderMediaOptions)({
212
+ config,
201
213
  outputLocation: absoluteOutputFile,
214
+ serveUrl: urlOrBundle,
202
215
  codec,
203
- composition: config,
204
- crf,
205
- envVariables,
206
- ffmpegExecutable,
207
- ffprobeExecutable,
208
- frameRange,
209
- imageFormat,
210
- inputProps,
216
+ });
217
+ await (0, renderer_1.renderMedia)({
218
+ ...options,
211
219
  onProgress: (update) => {
212
220
  encodedDoneIn = update.encodedDoneIn;
213
221
  encodedFrames = update.encodedFrames;
@@ -217,24 +225,15 @@ const render = async (remotionRoot) => {
217
225
  updateRenderProgress();
218
226
  },
219
227
  puppeteerInstance,
220
- overwrite,
221
- parallelism,
222
- pixelFormat,
223
- proResProfile,
224
- quality,
225
- serveUrl: urlOrBundle,
226
228
  onDownload,
227
- dumpBrowserLogs: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
228
- chromiumOptions,
229
- timeoutInMilliseconds: config_1.ConfigInternals.getCurrentPuppeteerTimeout(),
230
- scale,
231
- port,
232
- numberOfGifLoops,
233
- everyNthFrame,
234
- verbose: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
235
229
  downloadMap,
236
- muted,
237
- enforceAudioTrack,
230
+ onSlowestFrames: (slowestFrames) => {
231
+ log_1.Log.verbose();
232
+ log_1.Log.verbose(`Slowest frames:`);
233
+ slowestFrames.forEach(({ frame, time }) => {
234
+ log_1.Log.verbose(`Frame ${frame} (${time.toFixed(3)}ms)`);
235
+ });
236
+ },
238
237
  });
239
238
  log_1.Log.info();
240
239
  log_1.Log.info();
File without changes
File without changes
File without changes
@@ -40,7 +40,7 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
40
40
  const [hash] = bundler_1.BundlerInternals.getConfig({
41
41
  outDir: '',
42
42
  entryPoint: fullPath,
43
- onProgressUpdate: onProgress,
43
+ onProgress,
44
44
  options,
45
45
  resolvedRemotionRoot: remotionRoot,
46
46
  });
@@ -55,13 +55,17 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
55
55
  }
56
56
  const bundleStartTime = Date.now();
57
57
  const bundlingProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
58
- const bundled = await (0, bundler_1.bundle)(fullPath, (progress) => {
59
- bundlingProgress.update((0, progress_bar_1.makeBundlingProgress)({
60
- progress: progress / 100,
61
- steps,
62
- doneIn: null,
63
- }));
64
- }, options);
58
+ const bundled = await (0, bundler_1.bundle)({
59
+ entryPoint: fullPath,
60
+ onProgress: (progress) => {
61
+ bundlingProgress.update((0, progress_bar_1.makeBundlingProgress)({
62
+ progress: progress / 100,
63
+ steps,
64
+ doneIn: null,
65
+ }));
66
+ },
67
+ ...options,
68
+ });
65
69
  bundlingProgress.update((0, progress_bar_1.makeBundlingProgress)({
66
70
  progress: 1,
67
71
  steps,
package/dist/step.d.ts CHANGED
File without changes
package/dist/step.js CHANGED
File without changes
package/dist/still.d.ts CHANGED
File without changes
package/dist/still.js CHANGED
@@ -9,9 +9,9 @@ const fs_1 = require("fs");
9
9
  const path_1 = __importDefault(require("path"));
10
10
  const chalk_1 = require("./chalk");
11
11
  const config_1 = require("./config");
12
+ const determine_image_format_1 = require("./determine-image-format");
12
13
  const get_cli_options_1 = require("./get-cli-options");
13
14
  const get_composition_id_1 = require("./get-composition-id");
14
- const initialize_render_cli_1 = require("./initialize-render-cli");
15
15
  const log_1 = require("./log");
16
16
  const parse_command_line_1 = require("./parse-command-line");
17
17
  const progress_bar_1 = require("./progress-bar");
@@ -19,46 +19,36 @@ const setup_cache_1 = require("./setup-cache");
19
19
  const truthy_1 = require("./truthy");
20
20
  const user_passed_output_location_1 = require("./user-passed-output-location");
21
21
  const still = async (remotionRoot) => {
22
+ var _a, _b;
22
23
  const startTime = Date.now();
23
24
  const file = parse_command_line_1.parsedCli._[1];
24
25
  const fullPath = renderer_1.RenderInternals.isServeUrl(file)
25
26
  ? file
26
27
  : path_1.default.join(process.cwd(), file);
27
- await (0, initialize_render_cli_1.initializeRenderCli)(remotionRoot, 'still');
28
- const userPassedOutput = (0, user_passed_output_location_1.getUserPassedOutputLocation)();
29
- if ((userPassedOutput === null || userPassedOutput === void 0 ? void 0 : userPassedOutput.endsWith('.jpeg')) ||
30
- (userPassedOutput === null || userPassedOutput === void 0 ? void 0 : userPassedOutput.endsWith('.jpg'))) {
31
- log_1.Log.verbose('Output file has a JPEG extension, setting the image format to JPEG.');
32
- config_1.Config.Rendering.setImageFormat('jpeg');
33
- }
34
- if (userPassedOutput === null || userPassedOutput === void 0 ? void 0 : userPassedOutput.endsWith('.png')) {
35
- log_1.Log.verbose('Output file has a PNG extension, setting the image format to PNG.');
36
- config_1.Config.Rendering.setImageFormat('png');
28
+ if (parse_command_line_1.parsedCli.frames) {
29
+ log_1.Log.error('--frames flag was passed to the `still` command. This flag only works with the `render` command. Did you mean `--frame`? See reference: https://www.remotion.dev/docs/cli/');
30
+ process.exit(1);
37
31
  }
38
- const { inputProps, envVariables, quality, browser, imageFormat, stillFrame, browserExecutable, chromiumOptions, scale, ffmpegExecutable, ffprobeExecutable, overwrite, puppeteerTimeout, port, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
32
+ const { inputProps, envVariables, quality, browser, stillFrame, browserExecutable, chromiumOptions, scale, ffmpegExecutable, ffprobeExecutable, overwrite, puppeteerTimeout, port, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
39
33
  isLambda: false,
40
34
  type: 'still',
35
+ codec: 'h264',
41
36
  });
42
37
  log_1.Log.verbose('Browser executable: ', browserExecutable);
43
38
  const compositionId = (0, get_composition_id_1.getCompositionId)();
39
+ const { format: imageFormat, source } = (0, determine_image_format_1.determineFinalImageFormat)({
40
+ cliFlag: (_a = parse_command_line_1.parsedCli['image-format']) !== null && _a !== void 0 ? _a : null,
41
+ configImageFormat: (_b = config_1.ConfigInternals.getUserPreferredImageFormat()) !== null && _b !== void 0 ? _b : null,
42
+ downloadName: null,
43
+ outName: (0, user_passed_output_location_1.getUserPassedOutputLocation)(),
44
+ isLambda: false,
45
+ });
44
46
  const relativeOutputLocation = (0, user_passed_output_location_1.getOutputLocation)({
45
47
  compositionId,
46
48
  defaultExtension: imageFormat,
47
49
  });
48
50
  const absoluteOutputLocation = (0, get_cli_options_1.getAndValidateAbsoluteOutputFile)(relativeOutputLocation, overwrite);
49
- log_1.Log.info(chalk_1.chalk.gray(`Output = ${relativeOutputLocation}, Format = ${imageFormat}, Composition = ${compositionId}`));
50
- if (imageFormat === 'none') {
51
- log_1.Log.error('No image format was selected - this is probably an error in Remotion - please post your command on Github Issues for help.');
52
- process.exit(1);
53
- }
54
- if (imageFormat === 'png' && !absoluteOutputLocation.endsWith('.png')) {
55
- log_1.Log.warn(`Rendering a PNG, expected a .png extension but got ${absoluteOutputLocation}`);
56
- }
57
- if (imageFormat === 'jpeg' &&
58
- !absoluteOutputLocation.endsWith('.jpg') &&
59
- !absoluteOutputLocation.endsWith('.jpeg')) {
60
- log_1.Log.warn(`Rendering a JPEG, expected a .jpg or .jpeg extension but got ${absoluteOutputLocation}`);
61
- }
51
+ log_1.Log.info(chalk_1.chalk.gray(`Output = ${relativeOutputLocation}, Format = ${imageFormat} (${source}), Composition = ${compositionId}`));
62
52
  const browserInstance = (0, renderer_1.openBrowser)(browser, {
63
53
  browserExecutable,
64
54
  chromiumOptions,
package/dist/truthy.d.ts CHANGED
File without changes
package/dist/truthy.js CHANGED
File without changes
package/dist/upgrade.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const upgrade: (remotionRoot: string) => Promise<void>;
1
+ export declare const upgrade: (remotionRoot: string, packageManager: string | undefined) => Promise<void>;
package/dist/upgrade.js CHANGED
@@ -20,13 +20,13 @@ const getUpgradeCommand = ({ manager, packages, version, }) => {
20
20
  };
21
21
  return commands[manager];
22
22
  };
23
- const upgrade = async (remotionRoot) => {
23
+ const upgrade = async (remotionRoot, packageManager) => {
24
24
  var _a;
25
25
  const packageJsonFilePath = path_1.default.join(remotionRoot, 'package.json');
26
26
  const packageJson = require(packageJsonFilePath);
27
27
  const dependencies = Object.keys(packageJson.dependencies);
28
28
  const latestRemotionVersion = await (0, get_latest_remotion_version_1.getLatestRemotionVersion)();
29
- const manager = (0, get_package_manager_1.getPackageManager)(remotionRoot);
29
+ const manager = (0, get_package_manager_1.getPackageManager)(remotionRoot, packageManager);
30
30
  if (manager === 'unknown') {
31
31
  throw new Error(`No lockfile was found in your project (one of ${get_package_manager_1.lockFilePaths
32
32
  .map((p) => p.path)
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/versions.js CHANGED
@@ -68,7 +68,7 @@ const validateVersionsBeforeCommand = async (remotionRoot) => {
68
68
  };
69
69
  exports.validateVersionsBeforeCommand = validateVersionsBeforeCommand;
70
70
  const versionsCommand = async (remotionRoot) => {
71
- (0, parse_command_line_1.parseCommandLine)('versions');
71
+ (0, parse_command_line_1.parseCommandLine)();
72
72
  const versions = await getAllVersions(remotionRoot);
73
73
  const grouped = groupBy(versions);
74
74
  const installedVersions = Object.keys(grouped);
File without changes
File without changes
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "4.0.0-prefetch.10+cf59c29c7",
3
+ "version": "4.0.0-prefetch.12+c7eb5bd76",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
7
7
  "bin": {
8
8
  "remotion": "remotion-cli.js"
9
9
  },
10
- "module": "true",
11
10
  "scripts": {
12
11
  "lint": "eslint src --ext ts,tsx",
13
12
  "test": "vitest --run",
@@ -23,15 +22,15 @@
23
22
  "author": "Jonny Burger <jonny@remotion.dev>",
24
23
  "license": "SEE LICENSE IN LICENSE.md",
25
24
  "dependencies": {
26
- "@remotion/bundler": "4.0.0-prefetch.10+cf59c29c7",
27
- "@remotion/media-utils": "4.0.0-prefetch.10+cf59c29c7",
28
- "@remotion/player": "4.0.0-prefetch.10+cf59c29c7",
29
- "@remotion/renderer": "4.0.0-prefetch.10+cf59c29c7",
25
+ "@remotion/bundler": "4.0.0-prefetch.12+c7eb5bd76",
26
+ "@remotion/media-utils": "4.0.0-prefetch.12+c7eb5bd76",
27
+ "@remotion/player": "4.0.0-prefetch.12+c7eb5bd76",
28
+ "@remotion/renderer": "4.0.0-prefetch.12+c7eb5bd76",
30
29
  "better-opn": "2.1.1",
31
30
  "dotenv": "9.0.2",
32
31
  "memfs": "3.4.3",
33
32
  "minimist": "1.2.6",
34
- "remotion": "4.0.0-prefetch.10+cf59c29c7",
33
+ "remotion": "4.0.0-prefetch.12+c7eb5bd76",
35
34
  "semver": "7.3.5",
36
35
  "source-map": "0.6.1"
37
36
  },
@@ -49,16 +48,16 @@
49
48
  "@types/webpack-env": "^1.16.0",
50
49
  "@typescript-eslint/eslint-plugin": "5.18.0",
51
50
  "@typescript-eslint/parser": "5.18.0",
52
- "eslint": "8.13.0",
51
+ "eslint": "8.25.0",
53
52
  "eslint-plugin-10x": "1.5.2",
54
53
  "eslint-plugin-react": "7.29.4",
55
54
  "eslint-plugin-react-hooks": "4.4.0",
56
- "prettier": "^2.0.5",
55
+ "prettier": "^2.7.1",
57
56
  "prettier-plugin-organize-imports": "^2.3.4",
58
57
  "react": "^18.0.0",
59
58
  "react-dom": "^18.0.0",
60
59
  "typescript": "^4.7.0",
61
- "vitest": "^0.18.0"
60
+ "vitest": "0.24.3"
62
61
  },
63
62
  "keywords": [
64
63
  "remotion",
@@ -71,5 +70,5 @@
71
70
  "publishConfig": {
72
71
  "access": "public"
73
72
  },
74
- "gitHead": "cf59c29c7b500377b7157afb761754159156d25f"
73
+ "gitHead": "c7eb5bd76f2f89677f007a54e1bc5d3e3403094f"
75
74
  }
package/dist/bundle.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const bundleCommand: (remotionRoot: string) => Promise<void>;
package/dist/bundle.js DELETED
@@ -1,32 +0,0 @@
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 (remotionRoot) => {
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)(remotionRoot, '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
- remotionRoot,
28
- });
29
- log_1.Log.info();
30
- log_1.Log.info(urlOrBundle);
31
- };
32
- exports.bundleCommand = bundleCommand;
@@ -1,2 +0,0 @@
1
- export declare const getBundleOutDir: () => string | null;
2
- export declare const setBundleOutDir: (path: string) => void;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setBundleOutDir = exports.getBundleOutDir = void 0;
4
- let bundleOutDir = null;
5
- const getBundleOutDir = () => {
6
- return bundleOutDir;
7
- };
8
- exports.getBundleOutDir = getBundleOutDir;
9
- const setBundleOutDir = (path) => {
10
- bundleOutDir = path;
11
- };
12
- exports.setBundleOutDir = setBundleOutDir;
@@ -1,2 +0,0 @@
1
- export declare const getPublicPath: () => string | null;
2
- export declare const setPublicPath: (path: string) => void;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setPublicPath = exports.getPublicPath = void 0;
4
- let publicPath = null;
5
- const getPublicPath = () => {
6
- return publicPath;
7
- };
8
- exports.getPublicPath = getPublicPath;
9
- const setPublicPath = (path) => {
10
- publicPath = path;
11
- };
12
- exports.setPublicPath = setPublicPath;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const Button: React.FC<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {
3
- children: React.ReactNode;
4
- }>;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Button = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const colors_1 = require("../helpers/colors");
6
- const layout_1 = require("./layout");
7
- const container = {
8
- padding: 10,
9
- cursor: 'pointer',
10
- fontSize: 14,
11
- };
12
- const button = {
13
- border: `1px solid ${colors_1.INPUT_BORDER_COLOR_UNHOVERED}`,
14
- borderRadius: 4,
15
- backgroundColor: colors_1.INPUT_BACKGROUND,
16
- appearance: 'none',
17
- fontFamily: 'inherit',
18
- fontSize: 14,
19
- color: 'white',
20
- };
21
- const Button = ({ children, ...props }) => {
22
- return ((0, jsx_runtime_1.jsx)("button", { ...props, style: button, type: "button", children: (0, jsx_runtime_1.jsx)(layout_1.Row, { style: container, children: children }) }));
23
- };
24
- exports.Button = Button;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const PreviewZoomControls: React.FC;
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PreviewZoomControls = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const minus_1 = require("../icons/minus");
7
- const plus_1 = require("../icons/plus");
8
- const preview_size_1 = require("../state/preview-size");
9
- const ControlButton_1 = require("./ControlButton");
10
- const layout_1 = require("./layout");
11
- const container = {
12
- color: 'black',
13
- flexDirection: 'row',
14
- display: 'flex',
15
- };
16
- const buttonStyle = {
17
- fontSize: 24,
18
- };
19
- const iconStyle = {
20
- color: 'white',
21
- width: 14,
22
- };
23
- const slider = {
24
- width: 120,
25
- accentColor: 'var(--blue)',
26
- };
27
- const PreviewZoomControls = () => {
28
- const { size, setSize } = (0, react_1.useContext)(preview_size_1.PreviewSizeContext);
29
- const onZoomOutClicked = (0, react_1.useCallback)(() => {
30
- setSize((z) => {
31
- if (z === 'auto')
32
- return 1 - preview_size_1.ZOOM_BUTTON_STEP;
33
- const newSize = Number((Number(z) - preview_size_1.ZOOM_BUTTON_STEP).toFixed(2));
34
- return Math.max(preview_size_1.PREVIEW_MIN_ZOOM, newSize);
35
- });
36
- }, [setSize]);
37
- const onZoomInClicked = (0, react_1.useCallback)(() => {
38
- setSize((z) => {
39
- if (z === 'auto')
40
- return 1 + preview_size_1.ZOOM_BUTTON_STEP;
41
- const newSize = Number((Number(z) + preview_size_1.ZOOM_BUTTON_STEP).toFixed(2));
42
- return Math.min(preview_size_1.PREVIEW_MAX_ZOOM, newSize);
43
- });
44
- }, [setSize]);
45
- const onChange = (0, react_1.useCallback)((e) => {
46
- setSize(() => Number(e.target.value));
47
- }, [setSize]);
48
- const onWheel = (0, react_1.useCallback)((e) => {
49
- setSize((z) => {
50
- if (e.deltaY > 0) {
51
- if (z === 'auto')
52
- return 1 - preview_size_1.ZOOM_SLIDER_STEP;
53
- const newSize = Number((Number(z) - preview_size_1.ZOOM_SLIDER_STEP).toFixed(2));
54
- return Math.max(preview_size_1.PREVIEW_MIN_ZOOM, newSize);
55
- }
56
- if (e.deltaY < 0) {
57
- if (z === 'auto')
58
- return 1 + preview_size_1.ZOOM_SLIDER_STEP;
59
- const newSize = Number((Number(z) + preview_size_1.ZOOM_SLIDER_STEP).toFixed(2));
60
- return Math.min(preview_size_1.PREVIEW_MAX_ZOOM, newSize);
61
- }
62
- return z;
63
- });
64
- }, [setSize]);
65
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onZoomOutClicked, style: buttonStyle, title: "Zoom out preview", role: 'ControlButton', type: "button", disabled: preview_size_1.PREVIEW_MIN_ZOOM === size, 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: `Preview size (${size}x)`, alt: `Preview size (${size}x)`, type: 'range', min: preview_size_1.PREVIEW_MIN_ZOOM, step: preview_size_1.ZOOM_SLIDER_STEP, value: size, max: preview_size_1.PREVIEW_MAX_ZOOM, onChange: onChange, onWheel: onWheel, style: slider }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onZoomInClicked, style: buttonStyle, title: "Zoom in preview", role: 'button', type: "button", disabled: preview_size_1.PREVIEW_MAX_ZOOM === size, children: (0, jsx_runtime_1.jsx)(plus_1.Plus, { style: iconStyle }) })] }));
66
- };
67
- exports.PreviewZoomControls = PreviewZoomControls;
@@ -1,5 +0,0 @@
1
- export declare function normalizeWheel(event: WheelEvent): {
2
- deltaX: number;
3
- deltaY: number;
4
- deltaZ: number;
5
- };
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.normalizeWheel = void 0;
4
- // Taken from https://github.com/tldraw/tldraw/blob/254dfdfd77c4abde53240f7d8ca3558e08688493/packages/core/src/hooks/useZoomEvents.ts which is adapted from https://stackoverflow.com/a/13650579
5
- const MAX_ZOOM_STEP = 10;
6
- function normalizeWheel(event) {
7
- const { deltaY, deltaX } = event;
8
- let deltaZ = 0;
9
- if (event.ctrlKey || event.metaKey) {
10
- const signY = Math.sign(event.deltaY);
11
- const absDeltaY = Math.abs(event.deltaY);
12
- let dy = deltaY;
13
- if (absDeltaY > MAX_ZOOM_STEP) {
14
- dy = MAX_ZOOM_STEP * signY;
15
- }
16
- deltaZ = dy;
17
- }
18
- return { deltaX, deltaY, deltaZ };
19
- }
20
- exports.normalizeWheel = normalizeWheel;
@@ -1 +0,0 @@
1
- declare function normalizeWheel(event: WheelEvent): number[];
@@ -1,16 +0,0 @@
1
- "use strict";
2
- // Adapted from https://stackoverflow.com/a/13650579
3
- function normalizeWheel(event) {
4
- const { deltaY, deltaX } = event;
5
- let deltaZ = 0;
6
- if (event.ctrlKey || event.metaKey) {
7
- const signY = Math.sign(event.deltaY);
8
- const absDeltaY = Math.abs(event.deltaY);
9
- let dy = deltaY;
10
- if (absDeltaY > MAX_ZOOM_STEP) {
11
- dy = MAX_ZOOM_STEP * signY;
12
- }
13
- deltaZ = dy;
14
- }
15
- return [deltaX, deltaY, deltaZ];
16
- }
@@ -1 +0,0 @@
1
- export declare const initializeRenderCli: (remotionRoot: string, type: 'still' | 'sequence' | 'lambda' | 'preview') => Promise<void>;
@@ -1,12 +0,0 @@
1
- import type { RenderStep } from './step';
2
- export declare const prepareEntryPoint: ({ file, otherSteps, publicPath, outDir, remotionRoot, }: {
3
- file: string;
4
- otherSteps: RenderStep[];
5
- outDir: string | null;
6
- publicPath: string | null;
7
- remotionRoot: string;
8
- }) => Promise<{
9
- urlOrBundle: string;
10
- steps: RenderStep[];
11
- shouldDelete: boolean;
12
- }>;