🎥 Make videos programmatically with React
Docs: Deprecate Starburst and Light Leaks packages (#9725)
Jonny Burgerce5752adbce5
diff --git a/packages/docs/components/demos/StarburstDemo.tsx b/packages/docs/components/demos/StarburstDemo.tsxindex cfae0038ef..b30f7dabcd 100644--- a/packages/docs/components/demos/StarburstDemo.tsx+++ b/packages/docs/components/demos/StarburstDemo.tsx@@ -10,7 +10,7 @@ import {export const StarburstDemoComp: React.FC = () => {const frame = useCurrentFrame();- const {width, height} = useVideoConfig();+ const {width, height, durationInFrames} = useVideoConfig();return (<AbsoluteFill style={{backgroundColor: 'black'}}>@@ -21,9 +21,7 @@ export const StarburstDemoComp: React.FC = () => {starburst({rays: 16,colors: ['#ffdd00', '#ff8800'],- rotation: interpolate(frame, [0, 45, 89], [0, 180, 360]),- smoothness: interpolate(frame, [0, 45, 89], [0, 0.3, 0]),- origin: [0.5, 0.5],+ rotation: interpolate(frame, [0, durationInFrames], [0, 360]),}),]}/>diff --git a/packages/docs/components/demos/types.ts b/packages/docs/components/demos/types.tsindex 60f23166e3..e939117618 100644--- a/packages/docs/components/demos/types.ts+++ b/packages/docs/components/demos/types.ts@@ -1542,7 +1542,7 @@ export const starburstDemo: DemoType = {comp: StarburstDemoComp,compHeight: 720,compWidth: 1280,- durationInFrames: 90,+ durationInFrames: 180,fps: 30,id: 'starburst',autoPlay: true,diff --git a/packages/docs/docs/starburst-guide.mdx b/packages/docs/docs/starburst-guide.mdxindex d647aa0967..ffec845e5e 100644--- a/packages/docs/docs/starburst-guide.mdx+++ b/packages/docs/docs/starburst-guide.mdx@@ -25,7 +25,7 @@ import {export const MyComp: React.FC = () => {const frame = useCurrentFrame();- const {width, height} = useVideoConfig();+ const {width, height, durationInFrames} = useVideoConfig();return (<AbsoluteFill>@@ -36,9 +36,7 @@ export const MyComp: React.FC = () => {starburst({rays: 16,colors: ['#ffdd00', '#ff8800'],- rotation: interpolate(frame, [0, 45, 89], [0, 180, 360]),- smoothness: interpolate(frame, [0, 45, 89], [0, 0.3, 0]),- origin: [0.5, 0.5],+ rotation: interpolate(frame, [0, durationInFrames], [0, 360]),}),]}/>diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.tsindex 1a24994202..30d181a005 100644--- a/packages/docs/sidebars.ts+++ b/packages/docs/sidebars.ts@@ -470,15 +470,6 @@ const sidebars: SidebarsConfig = {},items: ['licensing/register-usage-event', 'licensing/get-usage'],},- {- type: 'category',- label: '@remotion/light-leaks',- link: {- type: 'doc',- id: 'light-leaks/light-leaks-api',- },- items: ['light-leaks/light-leak-effect', 'light-leaks/light-leak'],- },{type: 'category',label: '@remotion/lottie',@@ -768,15 +759,6 @@ const sidebars: SidebarsConfig = {},items: ['skia/enable-skia', 'skia/skia-canvas'],},- {- type: 'category',- label: '@remotion/starburst',- link: {- type: 'doc',- id: 'starburst/starburst-api',- },- items: ['starburst/starburst-effect', 'starburst/starburst-component'],- },{type: 'category',label: '@remotion/studio',@@ -972,6 +954,15 @@ const sidebars: SidebarsConfig = {'<hr style="margin-top: 4px; margin-bottom: 4px; border-bottom: none"/>',defaultStyle: true,},+ {+ type: 'category',+ label: '@remotion/light-leaks (deprecated)',+ link: {+ type: 'doc',+ id: 'light-leaks/light-leaks-api',+ },+ items: ['light-leaks/light-leak-effect', 'light-leaks/light-leak'],+ },{type: 'category',label: '@remotion/media-parser (deprecated)',@@ -999,6 +990,15 @@ const sidebars: SidebarsConfig = {'media-parser/webcodecs-timescale',],},+ {+ type: 'category',+ label: '@remotion/starburst (deprecated)',+ link: {+ type: 'doc',+ id: 'starburst/starburst-api',+ },+ items: ['starburst/starburst-effect', 'starburst/starburst-component'],+ },{type: 'category',label: '@remotion/webcodecs (deprecated)',