egaki 0.8.0 → 0.10.0
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/CHANGELOG.md +49 -0
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +39 -0
- package/dist/cli/dev-server.d.ts +30 -0
- package/dist/cli/dev-server.d.ts.map +1 -0
- package/dist/cli/dev-server.js +266 -0
- package/dist/cli/dev-server.test.d.ts +2 -0
- package/dist/cli/dev-server.test.d.ts.map +1 -0
- package/dist/cli/dev-server.test.js +95 -0
- package/dist/vite/angled-screen-shader.d.ts +50 -0
- package/dist/vite/angled-screen-shader.d.ts.map +1 -0
- package/dist/vite/angled-screen-shader.js +616 -0
- package/dist/vite/angled-screen.d.ts +12 -3
- package/dist/vite/angled-screen.d.ts.map +1 -1
- package/dist/vite/angled-screen.js +12 -3
- package/dist/vite/mdx-video.d.ts +4 -2
- package/dist/vite/mdx-video.d.ts.map +1 -1
- package/dist/vite/mdx-video.js +4 -2
- package/dist/vite/mdx-video.test.js +1 -0
- package/dist/vite/render-client.d.ts +27 -0
- package/dist/vite/render-client.d.ts.map +1 -1
- package/dist/vite/render-client.js +47 -51
- package/dist/vite/sdk.d.ts.map +1 -1
- package/dist/vite/sdk.js +4 -3
- package/dist/vite/shader-renderer.d.ts +4 -0
- package/dist/vite/shader-renderer.d.ts.map +1 -1
- package/dist/vite/shader-renderer.js +3 -3
- package/dist/vite/tweakpane-hook.d.ts +6 -0
- package/dist/vite/tweakpane-hook.d.ts.map +1 -1
- package/dist/vite/tweakpane-hook.js +101 -4
- package/dist/vite/vite-plugin.d.ts.map +1 -1
- package/dist/vite/vite-plugin.js +108 -9
- package/package.json +7 -11
- package/src/cli/cli.ts +50 -0
- package/src/cli/dev-server.test.ts +109 -0
- package/src/cli/dev-server.ts +303 -0
- package/src/vite/angled-screen-shader.tsx +753 -0
- package/src/vite/angled-screen.tsx +13 -4
- package/src/vite/mdx-video.test.tsx +1 -0
- package/src/vite/mdx-video.tsx +4 -1
- package/src/vite/render-client.ts +52 -51
- package/src/vite/sdk.ts +4 -3
- package/src/vite/shader-renderer.tsx +3 -3
- package/src/vite/tweakpane-hook.tsx +102 -4
- package/src/vite/vite-plugin.ts +117 -9
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* BasicAngledScreen — CSS 3D perspective wrapper with fake bokeh depth-of-field.
|
|
5
|
+
*
|
|
6
|
+
* The shader-based version (true depth-of-field via WebGL) lives in
|
|
7
|
+
* angled-screen-shader.tsx and is exported as AngledScreen. This CSS version
|
|
8
|
+
* is kept as a lightweight fallback that works without HTML-in-canvas support.
|
|
5
9
|
*
|
|
6
10
|
* Wraps any children (images, videos, divs) in a 3D-transformed plane using
|
|
7
11
|
* CSS `perspective` + `transform: rotateX/Y/Z`. Simulates depth-of-field
|
|
@@ -41,9 +45,14 @@ function autoDirection(rotateX, rotateY) {
|
|
|
41
45
|
}
|
|
42
46
|
return rotateX > 0 ? 'bottom' : 'top';
|
|
43
47
|
}
|
|
44
|
-
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Use `AngledScreen` (angled-screen-shader.tsx) instead — the
|
|
50
|
+
* WebGL version with true depth-of-field. This CSS version only remains as
|
|
51
|
+
* the automatic fallback for browsers without HTML-in-canvas support.
|
|
52
|
+
*/
|
|
53
|
+
export function BasicAngledScreen(props) {
|
|
45
54
|
const { children, transformOrigin = '50% 50%', bokehDirection, backgroundColor = '#000000', width = '80%', height = 'auto', style, } = props;
|
|
46
|
-
const tp = useTweakpane('
|
|
55
|
+
const tp = useTweakpane('BasicAngledScreen', {
|
|
47
56
|
perspective: { value: props.perspective ?? 1200, min: 100, max: 3000, step: 10 },
|
|
48
57
|
rotateX: { value: props.rotateX ?? 8, min: -90, max: 90, step: 0.5 },
|
|
49
58
|
rotateY: { value: props.rotateY ?? -12, min: -90, max: 90, step: 0.5 },
|
package/dist/vite/mdx-video.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ import type { SafeMdxError } from 'safe-mdx';
|
|
|
14
14
|
import type { EagerModules } from 'safe-mdx/parse';
|
|
15
15
|
import { splitIntoSections, calculateTotalDuration, resolveAutoDurations, type MdxSection, type SplitResult, type VideoFrontmatter } from './mdx-parse.ts';
|
|
16
16
|
import { BlurReveal, MaskedSlideReveal, StaggeredFadeUp, ShimmerSweep } from './components.tsx';
|
|
17
|
-
import {
|
|
17
|
+
import { BasicAngledScreen } from './angled-screen.tsx';
|
|
18
|
+
import { AngledScreen } from './angled-screen-shader.tsx';
|
|
18
19
|
import { CodeBlock, CODE_THEMES } from './code-block.tsx';
|
|
19
20
|
import { BandsShader } from './bands-shader.tsx';
|
|
20
21
|
import { WaveGradientShader } from './wave-gradient-shader.tsx';
|
|
@@ -286,7 +287,7 @@ export { LayoutContainerContext, LayoutTransition, LayoutTransitionProvider, Lay
|
|
|
286
287
|
import { LayoutTransition } from './layout-transition.tsx';
|
|
287
288
|
import { Img, Audio, Video } from './media-components.tsx';
|
|
288
289
|
export { ExportContext, useIsExporting, Img, Audio, Video } from './media-components.tsx';
|
|
289
|
-
export { BlurReveal, MaskedSlideReveal, StaggeredFadeUp, ShimmerSweep, AngledScreen, CodeBlock, CODE_THEMES, BandsShader, WaveGradientShader, LiquidGradientShader, DispersionRingsShader, };
|
|
290
|
+
export { BlurReveal, MaskedSlideReveal, StaggeredFadeUp, ShimmerSweep, AngledScreen, BasicAngledScreen, CodeBlock, CODE_THEMES, BandsShader, WaveGradientShader, LiquidGradientShader, DispersionRingsShader, };
|
|
290
291
|
/** Built-in JSX names available in MDX without user imports. Shared by
|
|
291
292
|
* client rendering (mdx-client.tsx) and <Server> slot rendering (app.tsx).
|
|
292
293
|
* Add new presentation components here once — not in app.tsx / mdx-client. */
|
|
@@ -303,6 +304,7 @@ export declare const MDX_BUILTIN_COMPONENTS: {
|
|
|
303
304
|
readonly Background: typeof Background;
|
|
304
305
|
readonly LayoutTransition: typeof LayoutTransition;
|
|
305
306
|
readonly AngledScreen: typeof AngledScreen;
|
|
307
|
+
readonly BasicAngledScreen: typeof BasicAngledScreen;
|
|
306
308
|
readonly BandsShader: import("react").FC<import("./bands-shader.tsx").BandsShaderProps>;
|
|
307
309
|
readonly WaveGradientShader: import("react").FC<import("./wave-gradient-shader.tsx").WaveGradientShaderProps>;
|
|
308
310
|
readonly LiquidGradientShader: import("react").FC<import("./liquid-gradient-shader.tsx").LiquidGradientShaderProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdx-video.d.ts","sourceRoot":"","sources":["../../src/vite/mdx-video.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,EAAyE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,YAAY,EACb,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"mdx-video.d.ts","sourceRoot":"","sources":["../../src/vite/mdx-video.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,EAAyE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,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
import { createContext, useContext, useId, useInsertionEffect, useLayoutEffect } from 'react';
|
|
15
15
|
import { splitIntoSections, calculateTotalDuration, resolveAutoDurations, } from "./mdx-parse.js";
|
|
16
16
|
import { BlurReveal, MaskedSlideReveal, StaggeredFadeUp, ShimmerSweep, } from "./components.js";
|
|
17
|
-
import {
|
|
17
|
+
import { BasicAngledScreen } from "./angled-screen.js";
|
|
18
|
+
import { AngledScreen } from "./angled-screen-shader.js";
|
|
18
19
|
import { CodeBlock, CODE_THEMES } from "./code-block.js";
|
|
19
20
|
import { BandsShader } from "./bands-shader.js";
|
|
20
21
|
import { WaveGradientShader } from "./wave-gradient-shader.js";
|
|
@@ -564,7 +565,7 @@ import { ExportContext, useIsExporting, Img, Audio, Video } from "./media-compon
|
|
|
564
565
|
export { ExportContext, useIsExporting, Img, Audio, Video } from "./media-components.js";
|
|
565
566
|
// Visual components and animations are re-exported so they're available
|
|
566
567
|
// as named imports from this client module for MDX usage.
|
|
567
|
-
export { BlurReveal, MaskedSlideReveal, StaggeredFadeUp, ShimmerSweep, AngledScreen, CodeBlock, CODE_THEMES, BandsShader, WaveGradientShader, LiquidGradientShader, DispersionRingsShader, };
|
|
568
|
+
export { BlurReveal, MaskedSlideReveal, StaggeredFadeUp, ShimmerSweep, AngledScreen, BasicAngledScreen, CodeBlock, CODE_THEMES, BandsShader, WaveGradientShader, LiquidGradientShader, DispersionRingsShader, };
|
|
568
569
|
function GeneratedImage(_props) { return null; }
|
|
569
570
|
function GeneratedVideo(_props) { return null; }
|
|
570
571
|
function GeneratedSpeech(_props) { return null; }
|
|
@@ -573,6 +574,7 @@ export const MDX_BUILTIN_COMPONENTS = {
|
|
|
573
574
|
Background,
|
|
574
575
|
LayoutTransition,
|
|
575
576
|
AngledScreen,
|
|
577
|
+
BasicAngledScreen,
|
|
576
578
|
BandsShader,
|
|
577
579
|
WaveGradientShader,
|
|
578
580
|
LiquidGradientShader,
|
|
@@ -4,6 +4,33 @@
|
|
|
4
4
|
* via @remotion/web-renderer's renderMediaOnWeb().
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Wrap a composition for web-renderer entry points (export, screenshot,
|
|
9
|
+
* filmstrip). The scaffold wrapper is visibility:hidden and Chromium creates
|
|
10
|
+
* no paint records for hidden subtrees, which breaks captureElementImage()
|
|
11
|
+
* inside nested <HtmlInCanvas> (AngledScreen): onInit/onPaint silently never
|
|
12
|
+
* run and exports come out flat. visibility is overridable by descendants,
|
|
13
|
+
* so a visibility:visible div at the composition root restores paint records
|
|
14
|
+
* for the whole tree while deeper visibility:hidden ancestors (e.g.
|
|
15
|
+
* LayoutTransition's inactive instances) keep hiding their subtrees
|
|
16
|
+
* relative to this root.
|
|
17
|
+
*
|
|
18
|
+
* Tradeoff (accepted): the scaffold sits at z-index:-9999, painting above
|
|
19
|
+
* the page's root background but below all in-flow content — so the
|
|
20
|
+
* rendering composition can peek through wherever the page shows only the
|
|
21
|
+
* body background. Hiding it differently is not possible:
|
|
22
|
+
* - opacity:0 / filter:opacity(0) bake into captureElementImage pixels
|
|
23
|
+
* (verified: capture succeeds but frames come out fully transparent)
|
|
24
|
+
* - translate/clip-path/resize on the scaffold break the drawElementImage
|
|
25
|
+
* paint pipeline (black frames — learned June 2026, commit e501ca5)
|
|
26
|
+
* - visibility:hidden kills paint records entirely (the original bug)
|
|
27
|
+
* An opaque page background or full-viewport player UI fully occludes it.
|
|
28
|
+
*
|
|
29
|
+
* TODO: re-evaluate whether this wrapper is still needed once remotion
|
|
30
|
+
* fixes the HtmlInCanvas delayRender scoping / hidden-scaffold capture bug:
|
|
31
|
+
* https://github.com/remotion-dev/remotion/issues/9367
|
|
32
|
+
*/
|
|
33
|
+
export declare function wrapForWebRenderer(component: React.FC): React.FC;
|
|
7
34
|
export declare function renderInBrowser(options: {
|
|
8
35
|
component: React.FC;
|
|
9
36
|
durationInFrames: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-client.d.ts","sourceRoot":"","sources":["../../src/vite/render-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"render-client.d.ts","sourceRoot":"","sources":["../../src/vite/render-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAQhE;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE;IAC7C,SAAS,EAAE,KAAK,CAAC,EAAE,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,gBA4BA"}
|
|
@@ -7,61 +7,57 @@ import { renderMediaOnWeb } from '@remotion/web-renderer';
|
|
|
7
7
|
import { ExportContext } from "./mdx-video.js";
|
|
8
8
|
import React from 'react';
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* Wrap a composition for web-renderer entry points (export, screenshot,
|
|
11
|
+
* filmstrip). The scaffold wrapper is visibility:hidden and Chromium creates
|
|
12
|
+
* no paint records for hidden subtrees, which breaks captureElementImage()
|
|
13
|
+
* inside nested <HtmlInCanvas> (AngledScreen): onInit/onPaint silently never
|
|
14
|
+
* run and exports come out flat. visibility is overridable by descendants,
|
|
15
|
+
* so a visibility:visible div at the composition root restores paint records
|
|
16
|
+
* for the whole tree while deeper visibility:hidden ancestors (e.g.
|
|
17
|
+
* LayoutTransition's inactive instances) keep hiding their subtrees
|
|
18
|
+
* relative to this root.
|
|
14
19
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
+
* Tradeoff (accepted): the scaffold sits at z-index:-9999, painting above
|
|
21
|
+
* the page's root background but below all in-flow content — so the
|
|
22
|
+
* rendering composition can peek through wherever the page shows only the
|
|
23
|
+
* body background. Hiding it differently is not possible:
|
|
24
|
+
* - opacity:0 / filter:opacity(0) bake into captureElementImage pixels
|
|
25
|
+
* (verified: capture succeeds but frames come out fully transparent)
|
|
26
|
+
* - translate/clip-path/resize on the scaffold break the drawElementImage
|
|
27
|
+
* paint pipeline (black frames — learned June 2026, commit e501ca5)
|
|
28
|
+
* - visibility:hidden kills paint records entirely (the original bug)
|
|
29
|
+
* An opaque page background or full-viewport player UI fully occludes it.
|
|
20
30
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
31
|
+
* TODO: re-evaluate whether this wrapper is still needed once remotion
|
|
32
|
+
* fixes the HtmlInCanvas delayRender scoping / hidden-scaffold capture bug:
|
|
33
|
+
* https://github.com/remotion-dev/remotion/issues/9367
|
|
24
34
|
*/
|
|
25
|
-
function
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
'position:fixed',
|
|
29
|
-
'inset:0',
|
|
30
|
-
'z-index:-9998',
|
|
31
|
-
'background:#050505',
|
|
32
|
-
'pointer-events:none',
|
|
33
|
-
].join(';');
|
|
34
|
-
document.body.appendChild(cover);
|
|
35
|
-
return () => cover.remove();
|
|
35
|
+
export function wrapForWebRenderer(component) {
|
|
36
|
+
const Wrapped = () => React.createElement('div', { style: { visibility: 'visible', position: 'relative', width: '100%', height: '100%' } }, React.createElement(component));
|
|
37
|
+
return Wrapped;
|
|
36
38
|
}
|
|
37
39
|
export async function renderInBrowser(options) {
|
|
38
|
-
const removeCover = injectScaffoldCover();
|
|
39
40
|
const ExportWrapped = () => React.createElement(ExportContext.Provider, { value: true }, React.createElement(options.component));
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
onProgress
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return getBlob();
|
|
63
|
-
}
|
|
64
|
-
finally {
|
|
65
|
-
removeCover();
|
|
66
|
-
}
|
|
41
|
+
const { getBlob } = await renderMediaOnWeb({
|
|
42
|
+
composition: {
|
|
43
|
+
component: wrapForWebRenderer(ExportWrapped),
|
|
44
|
+
durationInFrames: options.durationInFrames,
|
|
45
|
+
fps: options.fps ?? 30,
|
|
46
|
+
width: options.width ?? 1920,
|
|
47
|
+
height: options.height ?? 1080,
|
|
48
|
+
id: 'MdxVideo',
|
|
49
|
+
calculateMetadata: null,
|
|
50
|
+
},
|
|
51
|
+
inputProps: {},
|
|
52
|
+
container: 'mp4',
|
|
53
|
+
videoCodec: 'h264',
|
|
54
|
+
videoBitrate: 'high',
|
|
55
|
+
allowHtmlInCanvas: true,
|
|
56
|
+
scale: options.scale,
|
|
57
|
+
signal: options.signal,
|
|
58
|
+
onProgress: ({ progress }) => {
|
|
59
|
+
options.onProgress?.(progress);
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
return getBlob();
|
|
67
63
|
}
|
package/dist/vite/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/vite/sdk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"sdk.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Q,UAAiB,CAAA"}
|
package/dist/vite/sdk.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { renderStillOnWeb, renderMediaOnWeb } from '@remotion/web-renderer';
|
|
15
|
+
import { wrapForWebRenderer } from "./render-client.js";
|
|
15
16
|
import { ExportContext } from "./mdx-video.js";
|
|
16
17
|
// ---------------------------------------------------------------------------
|
|
17
18
|
// Helper: blob → data URL
|
|
@@ -192,7 +193,7 @@ class EgakiSDK {
|
|
|
192
193
|
const format = options.format ?? 'png';
|
|
193
194
|
const still = await renderStillOnWeb({
|
|
194
195
|
composition: {
|
|
195
|
-
component: c.component,
|
|
196
|
+
component: wrapForWebRenderer(c.component),
|
|
196
197
|
durationInFrames: c.totalDuration,
|
|
197
198
|
fps: c.fps,
|
|
198
199
|
width: c.width,
|
|
@@ -278,7 +279,7 @@ class EgakiSDK {
|
|
|
278
279
|
for (let i = 0; i < framesToCapture.length; i++) {
|
|
279
280
|
const still = await renderStillOnWeb({
|
|
280
281
|
composition: {
|
|
281
|
-
component: c.component,
|
|
282
|
+
component: wrapForWebRenderer(c.component),
|
|
282
283
|
durationInFrames: c.totalDuration,
|
|
283
284
|
fps: c.fps,
|
|
284
285
|
width: c.width,
|
|
@@ -315,7 +316,7 @@ class EgakiSDK {
|
|
|
315
316
|
const c = this.getConfig();
|
|
316
317
|
const { getBlob } = await renderMediaOnWeb({
|
|
317
318
|
composition: {
|
|
318
|
-
component: this.wrapForExport(c.component),
|
|
319
|
+
component: wrapForWebRenderer(this.wrapForExport(c.component)),
|
|
319
320
|
durationInFrames: c.totalDuration,
|
|
320
321
|
fps: c.fps,
|
|
321
322
|
width: c.width,
|
|
@@ -28,6 +28,10 @@ export interface ShaderConfig {
|
|
|
28
28
|
/** Property controls that become uniforms and tweakpane sliders. */
|
|
29
29
|
propertyControls: Record<string, PropertyControl>;
|
|
30
30
|
}
|
|
31
|
+
/** Parse a hex color string (#RGB, #RRGGBB, #RRGGBBAA) to [r, g, b, a] in 0-1 range. */
|
|
32
|
+
export declare function parseHexColor(hex: string): [number, number, number, number];
|
|
33
|
+
export declare function compileGlShader(gl: WebGL2RenderingContext, type: number, source: string): WebGLShader;
|
|
34
|
+
export declare function linkGlProgram(gl: WebGL2RenderingContext, vs: WebGLShader, fs: WebGLShader): WebGLProgram;
|
|
31
35
|
/**
|
|
32
36
|
* Create a React component that renders a WebGL2 fragment shader full-screen.
|
|
33
37
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shader-renderer.d.ts","sourceRoot":"","sources":["../../src/vite/shader-renderer.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,KAAK,aAAa,EAAE,MAAM,OAAO,CAAA;AAOnE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,QAAQ,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,mFAAmF;IACnF,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,CAAA;IAC1B,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAA;IAChB,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,EAAE,CAAA;CACvB;AAED,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG,iBAAiB,CAAA;AAE/D,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAA;IACb,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAA;IAChB,oEAAoE;IACpE,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;CAClD;
|
|
1
|
+
{"version":3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;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY;YAsEtC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,aAAa,CAAA;KAAE;;EA+MzD"}
|
|
@@ -33,7 +33,7 @@ import { useTweakpane } from "./tweakpane-hook.js";
|
|
|
33
33
|
// Color parsing
|
|
34
34
|
// ---------------------------------------------------------------------------
|
|
35
35
|
/** Parse a hex color string (#RGB, #RRGGBB, #RRGGBBAA) to [r, g, b, a] in 0-1 range. */
|
|
36
|
-
function parseHexColor(hex) {
|
|
36
|
+
export function parseHexColor(hex) {
|
|
37
37
|
let h = hex.replace('#', '');
|
|
38
38
|
if (h.length === 3 || h.length === 4) {
|
|
39
39
|
h = h
|
|
@@ -112,7 +112,7 @@ function generateFragmentSource(body, controls) {
|
|
|
112
112
|
// ---------------------------------------------------------------------------
|
|
113
113
|
// WebGL helpers
|
|
114
114
|
// ---------------------------------------------------------------------------
|
|
115
|
-
function compileGlShader(gl, type, source) {
|
|
115
|
+
export function compileGlShader(gl, type, source) {
|
|
116
116
|
const shader = gl.createShader(type);
|
|
117
117
|
if (!shader)
|
|
118
118
|
throw new Error('Failed to create shader');
|
|
@@ -125,7 +125,7 @@ function compileGlShader(gl, type, source) {
|
|
|
125
125
|
}
|
|
126
126
|
return shader;
|
|
127
127
|
}
|
|
128
|
-
function linkGlProgram(gl, vs, fs) {
|
|
128
|
+
export function linkGlProgram(gl, vs, fs) {
|
|
129
129
|
const program = gl.createProgram();
|
|
130
130
|
if (!program)
|
|
131
131
|
throw new Error('Failed to create program');
|
|
@@ -71,6 +71,12 @@ export declare let TWEAKPANE_DISABLED: boolean;
|
|
|
71
71
|
* Returns a reactive object with current values. Updating a control in the
|
|
72
72
|
* pane immediately triggers a React re-render with fresh values.
|
|
73
73
|
*
|
|
74
|
+
* Values follow live props: each key returns the schema value from the
|
|
75
|
+
* CURRENT render until the user touches that control in the pane, so
|
|
76
|
+
* animated props (e.g. `translateX={interpolate(frame, ...)}`) flow through
|
|
77
|
+
* every frame. Once touched, the user's pane value wins for that key until
|
|
78
|
+
* the component remounts.
|
|
79
|
+
*
|
|
74
80
|
* On unmount the folder is disposed and removed from the pane.
|
|
75
81
|
*/
|
|
76
82
|
export declare function useTweakpane<T extends ParamSchema>(label: string, schema: T): ResolvedValues<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tweakpane-hook.d.ts","sourceRoot":"","sources":["../../src/vite/tweakpane-hook.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tweakpane-hook.d.ts","sourceRoot":"","sources":["../../src/vite/tweakpane-hook.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AASjD,oDAAoD;AACpD,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,oDAAoD;AACpD,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,aAAa,CAAA;IACnB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;CACxC;AAED,yFAAyF;AACzF,UAAU,UAAU;IAClB,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IACnC,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;GAOG;AACH,KAAK,UAAU,GAAG,MAAM,GAA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KAAK,EAAE,MAAM,EACb,MAAM,EAAE,CAAC,GACR,cAAc,CAAC,CAAC,CAAC,CAuMnB;AAMD,6DAA6D;AAC7D,eAAO,MAAM,aAAa,MAAM,CAAA;AAqBhC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,GAAG,EACH,QAAQ,EACR,SAAS,GACV,EAAE;IACD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC,CAAA;IAC5C,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE;QAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,gBAAgB,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAChE,SAAS,EAAE,MAAM,CAAA;CAClB,+BAoEA"}
|
|
@@ -18,6 +18,14 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
18
18
|
* Tweakpane is pure DOM (no React dependency), so there are no dual-React
|
|
19
19
|
* or SSR issues. During SSR (typeof window === 'undefined') the hook
|
|
20
20
|
* returns the raw default values and skips all DOM work.
|
|
21
|
+
*
|
|
22
|
+
* Live props vs user overrides: each param follows the LIVE schema value
|
|
23
|
+
* passed on every render (so animated props like translateX={interpolate(...)}
|
|
24
|
+
* work) until the user touches that control in the pane. Once touched, the
|
|
25
|
+
* user's value wins for that key until the component remounts. Untouched
|
|
26
|
+
* controls are refreshed in the pane every render so animated values are
|
|
27
|
+
* visible while playing. Programmatic refreshes are guarded so tweakpane's
|
|
28
|
+
* change events (which fire on refresh() too) don't mark keys as touched.
|
|
21
29
|
*/
|
|
22
30
|
import { useCallback, useEffect, useRef, useState, useSyncExternalStore, createContext, useContext } from 'react';
|
|
23
31
|
import { LayoutContainerContext, useIsPremounting } from "./mdx-video.js";
|
|
@@ -59,6 +67,22 @@ function cloneValue(value) {
|
|
|
59
67
|
return { ...value };
|
|
60
68
|
return value;
|
|
61
69
|
}
|
|
70
|
+
/** Deep-equal for param values: primitives, small arrays (bezier tuples),
|
|
71
|
+
* and flat objects (range {min, max}). */
|
|
72
|
+
function valuesEqual(a, b) {
|
|
73
|
+
if (a === b)
|
|
74
|
+
return true;
|
|
75
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
76
|
+
return a.length === b.length && a.every((x, i) => x === b[i]);
|
|
77
|
+
}
|
|
78
|
+
if (typeof a === 'object' && a !== null && typeof b === 'object' && b !== null) {
|
|
79
|
+
const ra = a;
|
|
80
|
+
const rb = b;
|
|
81
|
+
const ka = Object.keys(ra);
|
|
82
|
+
return ka.length === Object.keys(rb).length && ka.every((k) => ra[k] === rb[k]);
|
|
83
|
+
}
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
62
86
|
function resolveDefault(v) {
|
|
63
87
|
if (isCubicBezierParam(v))
|
|
64
88
|
return [...v.value];
|
|
@@ -178,7 +202,10 @@ function serializeTweakpanePrompt(ctx) {
|
|
|
178
202
|
const changed = [];
|
|
179
203
|
for (const [key, current] of Object.entries(entry.params)) {
|
|
180
204
|
const def = entry.defaults[key];
|
|
181
|
-
|
|
205
|
+
// Only user-touched keys count as changed. Untouched keys mirror live
|
|
206
|
+
// (possibly animated) props, so comparing them to mount-time defaults
|
|
207
|
+
// would produce false positives on every playing frame.
|
|
208
|
+
if (entry.touched.has(key) && !valuesEqual(current, def)) {
|
|
182
209
|
changed.push(` ${key}: ${formatValue(current)}`);
|
|
183
210
|
}
|
|
184
211
|
}
|
|
@@ -261,6 +288,12 @@ function CopyChangesButton() {
|
|
|
261
288
|
* Returns a reactive object with current values. Updating a control in the
|
|
262
289
|
* pane immediately triggers a React re-render with fresh values.
|
|
263
290
|
*
|
|
291
|
+
* Values follow live props: each key returns the schema value from the
|
|
292
|
+
* CURRENT render until the user touches that control in the pane, so
|
|
293
|
+
* animated props (e.g. `translateX={interpolate(frame, ...)}`) flow through
|
|
294
|
+
* every frame. Once touched, the user's pane value wins for that key until
|
|
295
|
+
* the component remounts.
|
|
296
|
+
*
|
|
264
297
|
* On unmount the folder is disposed and removed from the pane.
|
|
265
298
|
*/
|
|
266
299
|
export function useTweakpane(label, schema) {
|
|
@@ -283,6 +316,21 @@ export function useTweakpane(label, schema) {
|
|
|
283
316
|
// Track the schema for updates
|
|
284
317
|
const schemaRef = useRef(schema);
|
|
285
318
|
schemaRef.current = schema;
|
|
319
|
+
// Keys the user changed via the pane UI. Untouched keys follow the live
|
|
320
|
+
// schema value on every render (so animated props work); touched keys keep
|
|
321
|
+
// the user's pane value until remount.
|
|
322
|
+
const touchedRef = useRef(new Set());
|
|
323
|
+
// Latest user override values, mirrored from state so the mount effect can
|
|
324
|
+
// seed rebuilt folders without re-running on every pane change.
|
|
325
|
+
const valuesRef = useRef(values);
|
|
326
|
+
valuesRef.current = values;
|
|
327
|
+
// Live handles to the mounted folder + bound params, used by the per-render
|
|
328
|
+
// sync effect below to push animated prop values into the pane.
|
|
329
|
+
const liveRef = useRef(null);
|
|
330
|
+
// True while we call folder.refresh() programmatically. tweakpane emits
|
|
331
|
+
// change events on refresh() too, so handlers must ignore those or every
|
|
332
|
+
// animated frame would mark keys as user-touched.
|
|
333
|
+
const refreshingRef = useRef(false);
|
|
286
334
|
// Stable ID for this hook instance
|
|
287
335
|
const idRef = useRef(`${label}-${Math.random().toString(36).slice(2, 8)}`);
|
|
288
336
|
useEffect(() => {
|
|
@@ -299,7 +347,10 @@ export function useTweakpane(label, schema) {
|
|
|
299
347
|
const def = resolveDefault(param);
|
|
300
348
|
// Clone object/array values so tweakpane's in-place mutations on params
|
|
301
349
|
// don't corrupt the defaults (used by "Copy changes" diffing).
|
|
302
|
-
|
|
350
|
+
// Touched keys keep the user's override when the folder is rebuilt
|
|
351
|
+
// (e.g. premount → active transition re-runs this effect).
|
|
352
|
+
const touched = touchedRef.current.has(key);
|
|
353
|
+
params[key] = cloneValue(touched ? valuesRef.current[key] : def);
|
|
303
354
|
defaults[key] = cloneValue(def);
|
|
304
355
|
}
|
|
305
356
|
let folder = null;
|
|
@@ -320,6 +371,8 @@ export function useTweakpane(label, schema) {
|
|
|
320
371
|
picker: 'inline',
|
|
321
372
|
});
|
|
322
373
|
blade.on('change', (ev) => {
|
|
374
|
+
if (refreshingRef.current)
|
|
375
|
+
return;
|
|
323
376
|
const val = ev.value;
|
|
324
377
|
const tuple = [
|
|
325
378
|
Math.round(val.x1 * 1000) / 1000,
|
|
@@ -328,6 +381,7 @@ export function useTweakpane(label, schema) {
|
|
|
328
381
|
Math.round(val.y2 * 1000) / 1000,
|
|
329
382
|
];
|
|
330
383
|
params[key] = tuple;
|
|
384
|
+
touchedRef.current.add(key);
|
|
331
385
|
setValues((prev) => ({ ...prev, [key]: tuple }));
|
|
332
386
|
});
|
|
333
387
|
continue;
|
|
@@ -339,7 +393,10 @@ export function useTweakpane(label, schema) {
|
|
|
339
393
|
max: param.max,
|
|
340
394
|
step: param.step,
|
|
341
395
|
}).on('change', (ev) => {
|
|
396
|
+
if (refreshingRef.current)
|
|
397
|
+
return;
|
|
342
398
|
const val = ev.value;
|
|
399
|
+
touchedRef.current.add(key);
|
|
343
400
|
setValues((prev) => ({ ...prev, [key]: { min: val.min, max: val.max } }));
|
|
344
401
|
});
|
|
345
402
|
continue;
|
|
@@ -384,15 +441,20 @@ export function useTweakpane(label, schema) {
|
|
|
384
441
|
}
|
|
385
442
|
}
|
|
386
443
|
folder.addBinding(params, key, opts).on('change', (ev) => {
|
|
444
|
+
if (refreshingRef.current)
|
|
445
|
+
return;
|
|
446
|
+
touchedRef.current.add(key);
|
|
387
447
|
setValues((prev) => ({ ...prev, [key]: ev.value }));
|
|
388
448
|
});
|
|
389
449
|
}
|
|
450
|
+
liveRef.current = { folder, params };
|
|
390
451
|
// Register for copy prompt
|
|
391
|
-
activeFolders.set(id, { label, params, defaults });
|
|
452
|
+
activeFolders.set(id, { label, params, defaults, touched: touchedRef.current });
|
|
392
453
|
notifyFolderListeners();
|
|
393
454
|
})();
|
|
394
455
|
return () => {
|
|
395
456
|
disposed = true;
|
|
457
|
+
liveRef.current = null;
|
|
396
458
|
if (folder) {
|
|
397
459
|
folder.dispose();
|
|
398
460
|
folder = null;
|
|
@@ -405,7 +467,42 @@ export function useTweakpane(label, schema) {
|
|
|
405
467
|
}
|
|
406
468
|
};
|
|
407
469
|
}, [label, skip]);
|
|
408
|
-
|
|
470
|
+
// Push live (possibly animated) prop values into the pane for untouched
|
|
471
|
+
// keys. Runs after every render — during playback the component re-renders
|
|
472
|
+
// each frame, so animated values are visible moving in the pane UI.
|
|
473
|
+
// folder.refresh() emits change events; refreshingRef makes handlers
|
|
474
|
+
// ignore them so refreshes never mark keys as touched.
|
|
475
|
+
useEffect(() => {
|
|
476
|
+
const live = liveRef.current;
|
|
477
|
+
if (!live)
|
|
478
|
+
return;
|
|
479
|
+
let dirty = false;
|
|
480
|
+
for (const [key, param] of Object.entries(schemaRef.current)) {
|
|
481
|
+
if (touchedRef.current.has(key))
|
|
482
|
+
continue;
|
|
483
|
+
// Bezier blades are not bindings — refresh() won't read params for
|
|
484
|
+
// them. The returned value still follows live props below.
|
|
485
|
+
if (isCubicBezierParam(param))
|
|
486
|
+
continue;
|
|
487
|
+
const liveVal = resolveDefault(param);
|
|
488
|
+
if (!valuesEqual(live.params[key], liveVal)) {
|
|
489
|
+
live.params[key] = cloneValue(liveVal);
|
|
490
|
+
dirty = true;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
if (dirty) {
|
|
494
|
+
refreshingRef.current = true;
|
|
495
|
+
live.folder.refresh();
|
|
496
|
+
refreshingRef.current = false;
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
// Merge: user-touched keys return the pane value, untouched keys follow
|
|
500
|
+
// the live schema value so animated props work without any extra wiring.
|
|
501
|
+
const merged = {};
|
|
502
|
+
for (const [key, param] of Object.entries(schema)) {
|
|
503
|
+
merged[key] = touchedRef.current.has(key) ? values[key] : resolveDefault(param);
|
|
504
|
+
}
|
|
505
|
+
return merged;
|
|
409
506
|
}
|
|
410
507
|
// ---------------------------------------------------------------------------
|
|
411
508
|
// TweakpaneRoot — sidebar container for the tweakpane pane
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../../src/vite/vite-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../../src/vite/vite-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,MAAM,CAAA;AAgDhD,MAAM,WAAW,kBAAkB;IACjC;;wEAEoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAiDD,wBAAgB,KAAK,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,YAAY,EAAE,CA4dlE"}
|