framefields 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audio/index.d.mts +4 -4
- package/dist/{audio-C1A4N3Wh.d.mts → audio-pIgFoKQ2.d.mts} +3 -3
- package/dist/{audio-C1A4N3Wh.d.mts.map → audio-pIgFoKQ2.d.mts.map} +1 -1
- package/dist/components/index.d.mts +10 -10
- package/dist/effects/index.d.mts +4 -4
- package/dist/{index-BpdVOlsV.d.mts → index-BAXaZC6T.d.mts} +3 -3
- package/dist/{index-BpdVOlsV.d.mts.map → index-BAXaZC6T.d.mts.map} +1 -1
- package/dist/{index-C2f4Hm-p.d.mts → index-BE1KdTQ7.d.mts} +2 -2
- package/dist/{index-C2f4Hm-p.d.mts.map → index-BE1KdTQ7.d.mts.map} +1 -1
- package/dist/{index-DKssQ_wn.d.mts → index-BlPLU_a1.d.mts} +4 -4
- package/dist/{index-DKssQ_wn.d.mts.map → index-BlPLU_a1.d.mts.map} +1 -1
- package/dist/{index-fymoeGNW.d.mts → index-C6awQk4-.d.mts} +17 -17
- package/dist/{index-fymoeGNW.d.mts.map → index-C6awQk4-.d.mts.map} +1 -1
- package/dist/{index-D6-lH1Mx.d.mts → index-CEsl2BcF.d.mts} +4 -4
- package/dist/{index-D6-lH1Mx.d.mts.map → index-CEsl2BcF.d.mts.map} +1 -1
- package/dist/{index-B-KVpJMb.d.mts → index-DPP5g-Si.d.mts} +2 -2
- package/dist/{index-B-KVpJMb.d.mts.map → index-DPP5g-Si.d.mts.map} +1 -1
- package/dist/{index-DNKM3to5.d.mts → index-Dbwf24s4.d.mts} +3 -3
- package/dist/{index-DNKM3to5.d.mts.map → index-Dbwf24s4.d.mts.map} +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/preview/index.d.mts +3 -3
- package/dist/renderer/index.d.mts +2 -2
- package/dist/{renderer-COXKPofU.d.mts → renderer-sg-ffvVd.d.mts} +2 -2
- package/dist/{renderer-COXKPofU.d.mts.map → renderer-sg-ffvVd.d.mts.map} +1 -1
- package/dist/{renderer-Dx28wTi1.d.mts → renderer-vTsc6CpO.d.mts} +2 -2
- package/dist/{renderer-Dx28wTi1.d.mts.map → renderer-vTsc6CpO.d.mts.map} +1 -1
- package/dist/signals/index.d.mts +5 -5
- package/package.json +58 -58
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Oo as VirtualMediaData } from "./index-
|
|
1
|
+
import { Oo as VirtualMediaData } from "./index-C6awQk4-.mjs";
|
|
2
2
|
import { VideoSampleSource } from "mediabunny";
|
|
3
3
|
import pino from "pino";
|
|
4
4
|
import { VideoFrame } from "@napi-rs/webcodecs";
|
|
@@ -359,4 +359,4 @@ type FrameGridRenderable = {
|
|
|
359
359
|
declare function renderFrameGrid(target: FrameGridRenderable, options?: FrameGridOptions): Promise<Buffer>;
|
|
360
360
|
//#endregion
|
|
361
361
|
export { renderSemaphore as _, renderFrameGrid as a, HeadlessMediaRenderer as c, QaSegment as d, RenderProgress as f, formatQaReport as g, VideoQaStats as h, computeGridLayout as i, HeadlessWebGPURenderer as l, VideoQaReport as m, FrameGridRenderable as n, resolveSamplePoints as o, VideoQaOptions as p, FrameSamplePoint as r, AudioQaStats as s, FrameGridOptions as t, QaIssue as u, resetRenderCaches as v };
|
|
362
|
-
//# sourceMappingURL=index-
|
|
362
|
+
//# sourceMappingURL=index-DPP5g-Si.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-B-KVpJMb.d.mts","names":["pino","DestinationStream","VideoColorPrimaries","VideoFrame","VideoMatrixCoefficients","VideoTransferCharacteristics","RenderDiagnostic","VirtualMediaData","VideoSampleSource","preloadFonts","GPUDevice","Promise","StagingSlotStatus","VideoColorSpaceConfig","DmaStagingRingOptions","GPUTextureFormat","StagingSlotInfo","DmaStagingRing","GPUCommandEncoder","GPUTexture","Uint8Array","findNodesDir","discoverAndRegisterNodeRenderers","RenderPhase","RenderProgress","VideoQaOptions","QaSegment","QaIssue","VideoQaStats","AudioQaStats","VideoQaReport","FrameInspector","analyzeAudio","Float32Array","integratedLoudness","buildQaReport","formatQaReport","RenderSemaphore","renderSemaphore","HeadlessWebGPURenderer","Buffer","AbortSignal","HeadlessMediaRenderer","resetRenderCaches","resolveLogFormat","Record","textLogStream","rendererLogger","Logger","NODE_KINDS","NodeKind","NodeRendererExports","NodeManifest","NodeManifestError","Error","parseNodeManifest","loadNodeManifests","ZeroCopyWebCodecsPipelineOptions","WebCodecsPipelineStats","ZeroCopyWebCodecsPipeline"],"sources":["../../renderer/dist/index.d.mts","../src/renderer/framegrid.ts"],"sourcesContent":["import pino, { DestinationStream } from \"pino\";\nimport { VideoColorPrimaries, VideoFrame, VideoMatrixCoefficients, VideoTransferCharacteristics } from \"@napi-rs/webcodecs\";\nimport { RenderDiagnostic, VirtualMediaData } from \"@framefields/core\";\nimport { VideoSampleSource } from \"mediabunny\";\n\n//#region src/asset-preloader.d.ts\n\n/**\n * Preloads only the fonts (and emoji) a VirtualMediaData tree's text uses, so\n * typography renders correctly on Node.js without loading its media. Shared\n * with the browser preview; emoji need a font set with\n * `FontManager.registerEmojiFont()`.\n */\ndeclare function preloadFonts(media: VirtualMediaData, device?: GPUDevice | null): Promise<void>;\n//#endregion\n//#region src/dma-staging-ring.d.ts\ntype StagingSlotStatus = \"idle\" | \"rendering\" | \"mapping\" | \"mapped\";\ninterface VideoColorSpaceConfig {\n readonly primaries?: VideoColorPrimaries;\n readonly transfer?: VideoTransferCharacteristics;\n readonly matrix?: VideoMatrixCoefficients;\n readonly fullRange?: boolean;\n}\ninterface DmaStagingRingOptions {\n readonly width: number;\n readonly height: number;\n readonly capacity?: number;\n readonly format?: GPUTextureFormat;\n}\ninterface StagingSlotInfo {\n readonly index: number;\n readonly status: StagingSlotStatus;\n readonly inFlightFrame: number | null;\n}\n/**\n * Pipelined Asynchronous DMA Staging Ring for WebGPU.\n *\n * Implements double-buffered (or N-buffered) GPU staging buffers to overlap\n * GPU render passes with asynchronous DMA host transfers and WebCodecs hardware encoding.\n * Eliminates GPU stalls by allowing Frame i+1 to execute on the GPU while Frame i\n * is asynchronously mapped and consumed by the hardware video encoder.\n */\ndeclare class DmaStagingRing {\n readonly width: number;\n readonly height: number;\n readonly capacity: number;\n readonly bytesPerRow: number;\n readonly unpaddedBytesPerRow: number;\n readonly bufferSize: number;\n readonly format: GPUTextureFormat;\n readonly device: GPUDevice;\n private readonly slots;\n private isDestroyed;\n constructor(device: GPUDevice, options: DmaStagingRingOptions);\n /**\n * Prepares the staging buffer slot for writing by ensuring any prior mapping\n * from a previous cycle has been completed and unmapped.\n */\n prepareSlot(frameIndex: number): Promise<void>;\n /**\n * Records a GPU-to-buffer DMA copy command into the provided command encoder.\n */\n stageTexture(encoder: GPUCommandEncoder, texture: GPUTexture, frameIndex: number): void;\n /**\n * Initiates asynchronous DMA mapping on the slot for the specified frame.\n * Must be called immediately after submitting the command encoder to the device queue.\n */\n scheduleMap(frameIndex: number): Promise<void>;\n /**\n * Awaits asynchronous mapping and extracts pixels into a tightly packed Uint8Array.\n * The slot remains in the \"mapped\" state until releaseFrame() is called.\n */\n readFramePixels(frameIndex: number): Promise<Uint8Array>;\n /**\n * Awaits asynchronous mapping, extracts pixels, and immediately unmaps the staging buffer,\n * returning the slot to \"idle\" state so it can be reused immediately.\n */\n readAndReleaseFrame(frameIndex: number): Promise<Uint8Array>;\n /**\n * Directly reads the mapped staging buffer into a WebCodecs VideoFrame,\n * bypassing redundant intermediate JS allocations when row pitches align,\n * and immediately unmaps the buffer.\n */\n readFrameToVideoFrame(frameIndex: number, timestampUs: number, colorSpace?: VideoColorSpaceConfig, /** Sees the tightly packed RGBA pixels while they are mapped; must not keep them. */\n inspect?: (rgba: Uint8Array) => void): Promise<VideoFrame>;\n /**\n * Unmaps the staging buffer for the specified frame and marks the slot idle.\n */\n releaseFrame(frameIndex: number): void;\n /**\n * Returns current status info for each slot in the ring.\n */\n getSlotInfos(): readonly StagingSlotInfo[];\n /**\n * Destroys all staging buffers and releases resources.\n */\n destroy(): void;\n private checkDestroyed;\n}\n//#endregion\n//#region src/dynamic-node-discovery.d.ts\n/** Locates the workspace `nodes/` directory by climbing up from this file. */\ndeclare function findNodesDir(startDir?: string): string | null;\n/**\n * Registers the built-in node renderers, then any extra nodes found in the\n * directory named by `FRAMEFIELDS_NODES_DIR` (local node development). A node in\n * that directory overrides the built-in renderer for the same op.\n */\ndeclare function discoverAndRegisterNodeRenderers(): Promise<void>;\n//#endregion\n//#region src/render-reporter.d.ts\n/**\n * Stages of `renderVideo`, in order. Audio-only renders skip \"render\";\n * \"convert\" runs only for GIF output.\n */\ntype RenderPhase = \"prepare\" | \"render\" | \"audio\" | \"audio-encode\" | \"mux\" | \"convert\" | \"done\";\n/** Progress reported by `renderVideo({ onProgress })`. */\ninterface RenderProgress {\n /**\n * \"prepare\" loads fonts and warms the pipeline, \"render\" draws and encodes\n * frames, \"audio\" mixes the soundtrack, \"audio-encode\" encodes it, \"mux\"\n * writes the container, \"convert\" makes the GIF, \"done\" is the last event.\n */\n phase: RenderPhase;\n /** Frames finished so far (1-based); `totalFrames` once frames are done. */\n frame: number;\n totalFrames: number;\n /** Time since the render started. */\n elapsedMs: number;\n /** Share of the current phase done (0–1), when it can be measured. */\n phaseProgress?: number;\n /** Frames per second so far (\"render\" only). */\n fps?: number;\n /** Estimated seconds until the frames are done (\"render\" only). */\n etaSec?: number;\n /** What the phase is working on, e.g. \"3/7 sources: music.mp3\". */\n detail?: string;\n}\n//#endregion\n//#region src/video-qa.d.ts\n/**\n * Quality checks run on a video while it renders: frames are measured as\n * they are read back for the encoder and audio as it is mixed, so the report\n * describes exactly what was encoded without decoding the file again.\n */\ninterface VideoQaOptions {\n /** Luma (0-1) at or below which a pixel counts as black. Default 0.1. */\n readonly blackPixelThreshold?: number;\n /** Share of black pixels that makes a frame black. Default 0.98. */\n readonly blackFrameRatio?: number;\n /** Shortest run of black frames reported. Default 0.5 s. */\n readonly minBlackSec?: number;\n /** Shortest run of unchanging frames reported. Default 2 s. */\n readonly minFrozenSec?: number;\n /** Level (dBFS, 100 ms windows) below which audio counts as silent. Default -60. */\n readonly silenceDbfs?: number;\n /** Shortest silent stretch reported. Default 2 s. */\n readonly minSilenceSec?: number;\n /** Integrated loudness to hit, e.g. -14 for most streaming platforms. Unchecked when unset. */\n readonly targetLufs?: number;\n /** Allowed distance from `targetLufs`, in LU. Default 1. */\n readonly lufsTolerance?: number;\n}\ninterface QaSegment {\n readonly startSec: number;\n readonly endSec: number;\n}\ninterface QaIssue {\n readonly severity: \"error\" | \"warning\" | \"info\";\n /** Stable machine-readable kind, e.g. \"black_frames\", \"audio_clipping\" */\n readonly code: string;\n readonly message: string;\n readonly startSec?: number;\n readonly endSec?: number;\n readonly layerId?: string;\n}\ninterface VideoQaStats {\n readonly expectedFrames: number;\n readonly encodedFrames: number;\n readonly fps: number;\n readonly width: number;\n readonly height: number;\n /** Average luma over the whole video, 0-1 */\n readonly meanLuma: number;\n readonly blackSegments: readonly QaSegment[];\n readonly frozenSegments: readonly QaSegment[];\n}\ninterface AudioQaStats {\n readonly sampleRate: number;\n readonly channels: number;\n readonly durationSec: number;\n /** Highest sample, dBFS (sample peak, not true peak) */\n readonly peakDbfs: number;\n /** Mean level over the whole track, dBFS */\n readonly rmsDbfs: number;\n /** ITU-R BS.1770 integrated loudness; null when the track is silent */\n readonly integratedLufs: number | null;\n /** Samples at or beyond full scale */\n readonly clippedSamples: number;\n readonly silentSegments: readonly QaSegment[];\n}\ninterface VideoQaReport {\n /** No errors or warnings (info issues do not fail a render) */\n readonly passed: boolean;\n readonly video?: VideoQaStats;\n readonly audio?: AudioQaStats;\n readonly issues: readonly QaIssue[];\n}\n/** Measures frames handed to it in order, as RGBA bytes. */\ndeclare class FrameInspector {\n private readonly blackLuma;\n private readonly blackRatio;\n private readonly black;\n private readonly sameAsPrevious;\n private lumaSum;\n private previous;\n constructor(options?: VideoQaOptions);\n get frameCount(): number;\n inspect(rgba: Uint8Array, width: number, height: number): void;\n stats(expectedFrames: number, encodedFrames: number, fps: number, width: number, height: number, options?: VideoQaOptions): VideoQaStats;\n}\n/** Measures a mixed audio track (one Float32Array per channel). */\ndeclare function analyzeAudio(channels: readonly Float32Array[], sampleRate: number, options?: VideoQaOptions): AudioQaStats;\n/**\n * ITU-R BS.1770-4 integrated loudness (LUFS): K-weighted mean square in\n * 400 ms blocks with 75% overlap, gated at -70 LUFS and then at 10 LU below\n * the mean of what passed. Channels weigh 1 (stereo and mono layouts).\n */\ndeclare function integratedLoudness(channels: readonly Float32Array[], sampleRate: number): number | null;\n/** Turn measurements and document diagnostics into a report with issues. */\ndeclare function buildQaReport(parts: {\n video?: VideoQaStats;\n audio?: AudioQaStats;\n diagnostics?: readonly RenderDiagnostic[];\n options?: VideoQaOptions;\n}): VideoQaReport;\n/** A short human- and agent-readable summary of a report. */\ndeclare function formatQaReport(report: VideoQaReport): string;\n//#endregion\n//#region src/headless-webgpu-renderer.d.ts\ndeclare class RenderSemaphore {\n private _running;\n private readonly _max;\n private readonly _queue;\n constructor(max: number);\n acquire(timeoutMs?: number): Promise<void>;\n release(): void;\n get stats(): {\n active: number;\n queued: number;\n max: number;\n };\n}\ndeclare const renderSemaphore: RenderSemaphore;\ndeclare class HeadlessWebGPURenderer {\n private static isInitialized;\n private static initPromise;\n private static initFailureCount;\n private static readonly MAX_INIT_FAILURES;\n private static nextRetryAt;\n static initialize(): Promise<void>;\n renderImage(virtualMedia: VirtualMediaData, frame?: number, fps?: number, options?: {\n renderId?: string;\n /** \"rgba\" skips PNG encoding and returns width*height*4 raw pixels. */\n format?: \"png\" | \"rgba\";\n }): Promise<Buffer>;\n /**\n * Renders a single frame to a PNG buffer at a specified timestamp in milliseconds or frame index.\n */\n renderFrame(source: VirtualMediaData | {\n toVirtualMedia(): VirtualMediaData;\n }, options?: {\n atMs?: number;\n frame?: number;\n fps?: number;\n /** Reuse compiled state across calls; see `renderImage`. */\n renderId?: string;\n /** \"rgba\" returns raw width*height*4 pixels instead of a PNG. */\n format?: \"png\" | \"rgba\";\n }): Promise<Buffer>;\n /**\n * Mixes the composition's full audio timeline (clips, effects, synthesized\n * tracks) to stereo PCM, exactly as `renderVideo` muxes it.\n */\n renderAudio(virtualMedia: VirtualMediaData, options?: {\n fps?: number;\n sampleRate?: number;\n }): Promise<{\n channels: Float32Array[];\n sampleRate: number;\n }>;\n renderLut(virtualMedia: VirtualMediaData, frame?: number, fps?: number): Promise<Buffer>;\n private resolveMediaDuration;\n renderVideo(virtualMedia: VirtualMediaData, options?: {\n codec?: string;\n audioCodec?: string;\n quality?: string;\n concurrency?: number;\n /**\n * Depth of the DMA staging ring (default 2, clamped 2–8). A deeper\n * ring overlaps more encoder latency at the cost of VRAM\n * (~8.3MB/slot at 1080p RGBA). Also settable via\n * `FRAMEFIELDS_RING_CAPACITY`.\n */\n ringCapacity?: number;\n /**\n * Measure the output while it renders (black and frozen frames,\n * dropped frames, loudness, clipping, silence, document warnings)\n * and return the findings as `qa`. `true` uses default thresholds.\n */\n qa?: boolean | VideoQaOptions;\n /**\n * Aborts the render between frames; the promise rejects with\n * `signal.reason` and the partial output is deleted.\n */\n signal?: AbortSignal;\n /**\n * Called as the render moves through its phases: \"prepare\", each\n * frame (\"render\"), \"audio\" (mixing, per clip), \"audio-encode\",\n * \"mux\", \"convert\" (GIF only) and \"done\".\n */\n onProgress?: (progress: RenderProgress) => void;\n }): Promise<{\n filePath: string;\n cleanup: () => Promise<void>;\n qa?: VideoQaReport;\n }>;\n}\ndeclare const HeadlessMediaRenderer: typeof HeadlessWebGPURenderer;\ntype HeadlessMediaRenderer = HeadlessWebGPURenderer;\n//#endregion\n//#region src/job-reset.d.ts\n/**\n * Drops every cache keyed by a file path or URL: media inputs and decoders,\n * textures, LUTs, fonts and downloaded font files. A long-lived worker calls this between jobs,\n * because the next checkout may hold different bytes at the same path. The\n * GPU device and compiled pipelines stay warm.\n */\ndeclare function resetRenderCaches(): void;\n//#endregion\n//#region src/logger.d.ts\n/**\n * \"json\" (pino lines, for log collectors) or \"text\" (one short line each, for\n * people and agents reading a terminal). `FRAMEFIELDS_LOG_FORMAT` picks one;\n * otherwise production is JSON and everything else text.\n */\ndeclare function resolveLogFormat(vars?: Record<string, string | undefined> | undefined): \"json\" | \"text\";\n/**\n * Turns pino's JSON lines into `[framefields] Rendered 40% (…)`: the message\n * without its `[Component]` prefix, the level only for warnings and errors,\n * and an error's message (its stack reaches the caller with the throw).\n */\ndeclare function textLogStream(write?: (line: string) => void): DestinationStream;\ndeclare const rendererLogger: pino.Logger<never, boolean>;\n//#endregion\n//#region src/node-manifest.d.ts\n/**\n * The `framefields` block of a node package's `package.json`.\n *\n * This is the single declaration of a node's op: renderer discovery, the\n * effects generator (`scripts/generate-effects.ts`) and the skill catalog all\n * read it from here. There is deliberately no fallback that derives an op from\n * the package name. See `spec/sync-node.md` §5.1.\n */\ndeclare const NODE_KINDS: readonly [\"effect\", \"audio\", \"source\", \"signal\", \"utility\"];\ntype NodeKind = (typeof NODE_KINDS)[number];\ninterface NodeRendererExports {\n development?: string;\n import?: string;\n default?: string;\n}\ninterface NodeManifest {\n /** Directory name under `nodes/`, e.g. `node-apply-lut`. */\n dir: string;\n /** Absolute path of the node package. */\n path: string;\n /** npm package name, e.g. `@framefields/node-lut`. */\n packageName: string;\n /** Canonical op literal used in the operation AST and the renderer registry. */\n type: string;\n kind: NodeKind;\n /** Legacy ops that resolve to the same renderer. */\n aliases: readonly string[];\n /** Named zod schema export of `src/shared/config.ts`. */\n schema?: string;\n /** Authoring class name. Defaults to `type`. */\n className?: string;\n /** Key on `Effect.*`. Defaults to `className` with a lower-cased first letter. */\n factory?: string;\n /** A hand-written subclass exists under `effects/custom/`. */\n custom: boolean;\n /** `false` when the package opts out of discovery. */\n enabled: boolean;\n rendererExports?: NodeRendererExports;\n}\ndeclare class NodeManifestError extends Error {\n readonly problems: readonly string[];\n constructor(problems: readonly string[]);\n}\n/**\n * Validates one parsed `package.json`. Returns the manifest, or the list of\n * problems that make it unusable. Never throws.\n */\ndeclare function parseNodeManifest(pkg: unknown, dir: string, nodePath?: string): {\n manifest?: NodeManifest;\n problems: string[];\n};\n/**\n * Reads every `nodes/node-*` package and returns its manifest, sorted by\n * directory name. Throws a single {@link NodeManifestError} listing every\n * problem: a missing or malformed block, or an op/alias claimed twice.\n */\ndeclare function loadNodeManifests(nodesDir: string): NodeManifest[];\n//#endregion\n//#region src/zero-copy-webcodecs-pipeline.d.ts\ninterface ZeroCopyWebCodecsPipelineOptions {\n readonly width: number;\n readonly height: number;\n readonly fps: number;\n readonly videoSource: VideoSampleSource;\n readonly ringCapacity?: number;\n readonly colorSpace?: VideoColorSpaceConfig;\n readonly directCanvasSource?: unknown;\n /**\n * Called with each frame's RGBA pixels, in frame order, just before it is\n * encoded (staging-ring path only). The buffer is reused: read, don't keep.\n */\n readonly onFrame?: (rgba: Uint8Array, frameIndex: number) => void;\n}\ninterface WebCodecsPipelineStats {\n readonly totalFramesEnqueued: number;\n readonly totalFramesEncoded: number;\n readonly averageGpuSubmitTimeMs: number;\n readonly averageEncodeTimeMs: number;\n readonly averageCycleTimeMs: number;\n readonly maxCycleTimeMs: number;\n readonly minCycleTimeMs: number;\n readonly throughputFps: number;\n readonly ringCapacity: number;\n readonly isDirectZeroCopy: boolean;\n}\n/**\n * High-performance hardware video encoding pipeline integrating WebGPU textures with WebCodecs.\n *\n * Provides:\n * 1. Direct hardware acceleration when running with WebCodecs / OffscreenCanvas.\n * 2. Pipelined asynchronous double-buffered DMA staging ring for headless Node.js (Dawn native),\n * allowing GPU Frame i+1 rendering to overlap concurrently with Frame i hardware encoding.\n */\ndeclare class ZeroCopyWebCodecsPipeline {\n readonly width: number;\n readonly height: number;\n readonly fps: number;\n readonly ringCapacity: number;\n private readonly device;\n private readonly videoSource;\n private readonly stagingRing;\n private readonly colorSpace?;\n private readonly directCanvasSource?;\n private readonly onFrame?;\n private readonly inFlightFrames;\n private readonly cycleStartTimes;\n private totalFramesEnqueued;\n private totalFramesEncoded;\n private totalGpuSubmitTimeMs;\n private totalEncodeTimeMs;\n private totalCycleTimeMs;\n private maxCycleTimeMs;\n private minCycleTimeMs;\n private pipelineStartTime;\n constructor(device: GPUDevice, options: ZeroCopyWebCodecsPipelineOptions);\n /**\n * Returns true if direct zero-copy from an OffscreenCanvas or texture is active.\n */\n canDirectZeroCopy(): boolean;\n /**\n * Enqueues a rendered GPU texture frame into the pipeline.\n *\n * Uses double-buffered DMA staging: if the staging ring has reached capacity,\n * the oldest in-flight frame is asynchronously consumed and added to the video encoder\n * before staging the new frame, guaranteeing constant bounded VRAM usage and zero GPU stalls.\n */\n enqueueFrame(frameIndex: number, targetTexture: GPUTexture, encoder: GPUCommandEncoder): Promise<void>;\n /**\n * Drains all remaining in-flight frames in the pipeline, ensuring every enqueued\n * frame has been encoded and added to the video sample source.\n */\n drain(): Promise<void>;\n /**\n * Returns runtime throughput, latency, and pipeline statistics.\n */\n getStats(): WebCodecsPipelineStats;\n /**\n * Destroys the pipeline and releases all staging buffers.\n */\n destroy(): void;\n private consumeAndEncode;\n}\n//#endregion\nexport { AudioQaStats, DmaStagingRing, DmaStagingRingOptions, FrameInspector, HeadlessMediaRenderer, HeadlessWebGPURenderer, NODE_KINDS, NodeKind, NodeManifest, NodeManifestError, NodeRendererExports, QaIssue, QaSegment, type RenderPhase, type RenderProgress, StagingSlotInfo, StagingSlotStatus, VideoColorSpaceConfig, VideoQaOptions, VideoQaReport, VideoQaStats, WebCodecsPipelineStats, ZeroCopyWebCodecsPipeline, ZeroCopyWebCodecsPipelineOptions, analyzeAudio, buildQaReport, discoverAndRegisterNodeRenderers, findNodesDir, formatQaReport, integratedLoudness, loadNodeManifests, parseNodeManifest, preloadFonts, renderSemaphore, rendererLogger, resetRenderCaches, resolveLogFormat, textLogStream };\n//# sourceMappingURL=index.d.mts.map"],"mappings":";;;;;;;;;;;;;KAmHKuB,WAAAA;;UAEKC,cAAAA;;;;;;SAMDD;;;;;;;;;;;;;;;;;;;;;;UAsBCE,cAAAA;;;;;;;;;;;;;;;;;;UAkBAC,SAAAA;;;;UAIAC,OAAAA;;;;;;;;;UASAC,YAAAA;;;;;;;;mCAQyBF;oCACCA;;UAE1BG,YAAAA;;;;;;;;;;;;oCAY0BH;;UAE1BI,aAAAA;;;mBAGSF;mBACAC;4BACSF;;;;;iBA+BXS,cAAAA,SAAuBN;;;cAG1BO,eAAAA;;;;;+BAKiB1B;;;;;;;;cAQjB2B,iBAAiBD;cACjBE,sBAAAA;;;;;;uBAMS5B;4BACKJ;;;;MAItBI,QAAQ6B;;;;sBAIQjC;sBACAA;;;;;;;;;MAShBI,QAAQ6B;;;;;4BAKcjC;;;MAGtBI;cACQsB;;;0BAGY1B,iDAAiDI,QAAQ6B;;4BAEvDjC;;;;;;;;;;;;;;;;;mBAiBTkB;;;;;aAKNgB;;;;;;4BAMejB;MACtBb;;mBAEaA;SACVmB;;;cAGKY,8BAA8BH;KACvCG,qBAAAA,GAAwBH;;;;;;;;;iBASZI,iBAAAA,CAAAA;;;;;;;;;;UC7UA,gBAAA;;;;AD8GZpB,UCzGY,gBAAA,CDyGD;EAENC;AAMU;AAsBI;EAsBdG,UAAO,CAAA,EAAA,MAAA;EASPC;AASmC;AAcA;EAK1BA,QAAAA,CAAAA,EAAAA,MAAAA;EACAC;;;EAgCFO,UAAAA,CAAAA,EAAAA,MAAc;EAGjBC;AAKwB;AAQQ;EAOvB1B,MAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EACKJ;;;EAQNA,OAAAA,CAAAA,EAAAA,MAAAA;EACAA;;;EAcMA,KAAAA,CAAAA,EAAAA,MAAAA;EAId0B;;;EAGqEO,MAAAA,CAAAA,EAAAA,MAAAA;EAAR7B;;;EAwB9D8B,OAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAMejB;;;EACtBb,GAAAA,CAAAA,EAAAA,MAAAA;EAAO;AAAA;AAMqD;EAUjDgC,OAAAA,CAAAA,EAAAA,MAAAA;;;;AC7UjB;EAKiB,SAAA,CAAA,EAAA,MAAA;EA0HD;AAsGhB;AAiFA;EACmB,UAAA,CAAA,EAAA,MAAA;EAKN;;;EACD,GAAA,CAAA,EAAA,MAAA;EAWU;;;EAGX,OAAA,CAAA,EAAA,MAAA;EAAR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAlNS;;;;;iBAMI,mBAAA,UACN;WAGI;;;;;;iBAkGE,iBAAA,mDAGN;;;;;;;;;;;KA8EE,mBAAA;oBACO;;;;;eAKN;MACR,QAAQ;;;;;;;;;;iBAWS,eAAA,SACb,+BACC,mBACP,QAAQ"}
|
|
1
|
+
{"version":3,"file":"index-DPP5g-Si.d.mts","names":["pino","DestinationStream","VideoColorPrimaries","VideoFrame","VideoMatrixCoefficients","VideoTransferCharacteristics","RenderDiagnostic","VirtualMediaData","VideoSampleSource","preloadFonts","GPUDevice","Promise","StagingSlotStatus","VideoColorSpaceConfig","DmaStagingRingOptions","GPUTextureFormat","StagingSlotInfo","DmaStagingRing","GPUCommandEncoder","GPUTexture","Uint8Array","findNodesDir","discoverAndRegisterNodeRenderers","RenderPhase","RenderProgress","VideoQaOptions","QaSegment","QaIssue","VideoQaStats","AudioQaStats","VideoQaReport","FrameInspector","analyzeAudio","Float32Array","integratedLoudness","buildQaReport","formatQaReport","RenderSemaphore","renderSemaphore","HeadlessWebGPURenderer","Buffer","AbortSignal","HeadlessMediaRenderer","resetRenderCaches","resolveLogFormat","Record","textLogStream","rendererLogger","Logger","NODE_KINDS","NodeKind","NodeRendererExports","NodeManifest","NodeManifestError","Error","parseNodeManifest","loadNodeManifests","ZeroCopyWebCodecsPipelineOptions","WebCodecsPipelineStats","ZeroCopyWebCodecsPipeline"],"sources":["../../renderer/dist/index.d.mts","../src/renderer/framegrid.ts"],"sourcesContent":["import pino, { DestinationStream } from \"pino\";\nimport { VideoColorPrimaries, VideoFrame, VideoMatrixCoefficients, VideoTransferCharacteristics } from \"@napi-rs/webcodecs\";\nimport { RenderDiagnostic, VirtualMediaData } from \"@framefields/core\";\nimport { VideoSampleSource } from \"mediabunny\";\n\n//#region src/asset-preloader.d.ts\n\n/**\n * Preloads only the fonts (and emoji) a VirtualMediaData tree's text uses, so\n * typography renders correctly on Node.js without loading its media. Shared\n * with the browser preview; emoji need a font set with\n * `FontManager.registerEmojiFont()`.\n */\ndeclare function preloadFonts(media: VirtualMediaData, device?: GPUDevice | null): Promise<void>;\n//#endregion\n//#region src/dma-staging-ring.d.ts\ntype StagingSlotStatus = \"idle\" | \"rendering\" | \"mapping\" | \"mapped\";\ninterface VideoColorSpaceConfig {\n readonly primaries?: VideoColorPrimaries;\n readonly transfer?: VideoTransferCharacteristics;\n readonly matrix?: VideoMatrixCoefficients;\n readonly fullRange?: boolean;\n}\ninterface DmaStagingRingOptions {\n readonly width: number;\n readonly height: number;\n readonly capacity?: number;\n readonly format?: GPUTextureFormat;\n}\ninterface StagingSlotInfo {\n readonly index: number;\n readonly status: StagingSlotStatus;\n readonly inFlightFrame: number | null;\n}\n/**\n * Pipelined Asynchronous DMA Staging Ring for WebGPU.\n *\n * Implements double-buffered (or N-buffered) GPU staging buffers to overlap\n * GPU render passes with asynchronous DMA host transfers and WebCodecs hardware encoding.\n * Eliminates GPU stalls by allowing Frame i+1 to execute on the GPU while Frame i\n * is asynchronously mapped and consumed by the hardware video encoder.\n */\ndeclare class DmaStagingRing {\n readonly width: number;\n readonly height: number;\n readonly capacity: number;\n readonly bytesPerRow: number;\n readonly unpaddedBytesPerRow: number;\n readonly bufferSize: number;\n readonly format: GPUTextureFormat;\n readonly device: GPUDevice;\n private readonly slots;\n private isDestroyed;\n constructor(device: GPUDevice, options: DmaStagingRingOptions);\n /**\n * Prepares the staging buffer slot for writing by ensuring any prior mapping\n * from a previous cycle has been completed and unmapped.\n */\n prepareSlot(frameIndex: number): Promise<void>;\n /**\n * Records a GPU-to-buffer DMA copy command into the provided command encoder.\n */\n stageTexture(encoder: GPUCommandEncoder, texture: GPUTexture, frameIndex: number): void;\n /**\n * Initiates asynchronous DMA mapping on the slot for the specified frame.\n * Must be called immediately after submitting the command encoder to the device queue.\n */\n scheduleMap(frameIndex: number): Promise<void>;\n /**\n * Awaits asynchronous mapping and extracts pixels into a tightly packed Uint8Array.\n * The slot remains in the \"mapped\" state until releaseFrame() is called.\n */\n readFramePixels(frameIndex: number): Promise<Uint8Array>;\n /**\n * Awaits asynchronous mapping, extracts pixels, and immediately unmaps the staging buffer,\n * returning the slot to \"idle\" state so it can be reused immediately.\n */\n readAndReleaseFrame(frameIndex: number): Promise<Uint8Array>;\n /**\n * Directly reads the mapped staging buffer into a WebCodecs VideoFrame,\n * bypassing redundant intermediate JS allocations when row pitches align,\n * and immediately unmaps the buffer.\n */\n readFrameToVideoFrame(frameIndex: number, timestampUs: number, colorSpace?: VideoColorSpaceConfig, /** Sees the tightly packed RGBA pixels while they are mapped; must not keep them. */\n inspect?: (rgba: Uint8Array) => void): Promise<VideoFrame>;\n /**\n * Unmaps the staging buffer for the specified frame and marks the slot idle.\n */\n releaseFrame(frameIndex: number): void;\n /**\n * Returns current status info for each slot in the ring.\n */\n getSlotInfos(): readonly StagingSlotInfo[];\n /**\n * Destroys all staging buffers and releases resources.\n */\n destroy(): void;\n private checkDestroyed;\n}\n//#endregion\n//#region src/dynamic-node-discovery.d.ts\n/** Locates the workspace `nodes/` directory by climbing up from this file. */\ndeclare function findNodesDir(startDir?: string): string | null;\n/**\n * Registers the built-in node renderers, then any extra nodes found in the\n * directory named by `FRAMEFIELDS_NODES_DIR` (local node development). A node in\n * that directory overrides the built-in renderer for the same op.\n */\ndeclare function discoverAndRegisterNodeRenderers(): Promise<void>;\n//#endregion\n//#region src/render-reporter.d.ts\n/**\n * Stages of `renderVideo`, in order. Audio-only renders skip \"render\";\n * \"convert\" runs only for GIF output.\n */\ntype RenderPhase = \"prepare\" | \"render\" | \"audio\" | \"audio-encode\" | \"mux\" | \"convert\" | \"done\";\n/** Progress reported by `renderVideo({ onProgress })`. */\ninterface RenderProgress {\n /**\n * \"prepare\" loads fonts and warms the pipeline, \"render\" draws and encodes\n * frames, \"audio\" mixes the soundtrack, \"audio-encode\" encodes it, \"mux\"\n * writes the container, \"convert\" makes the GIF, \"done\" is the last event.\n */\n phase: RenderPhase;\n /** Frames finished so far (1-based); `totalFrames` once frames are done. */\n frame: number;\n totalFrames: number;\n /** Time since the render started. */\n elapsedMs: number;\n /** Share of the current phase done (0–1), when it can be measured. */\n phaseProgress?: number;\n /** Frames per second so far (\"render\" only). */\n fps?: number;\n /** Estimated seconds until the frames are done (\"render\" only). */\n etaSec?: number;\n /** What the phase is working on, e.g. \"3/7 sources: music.mp3\". */\n detail?: string;\n}\n//#endregion\n//#region src/video-qa.d.ts\n/**\n * Quality checks run on a video while it renders: frames are measured as\n * they are read back for the encoder and audio as it is mixed, so the report\n * describes exactly what was encoded without decoding the file again.\n */\ninterface VideoQaOptions {\n /** Luma (0-1) at or below which a pixel counts as black. Default 0.1. */\n readonly blackPixelThreshold?: number;\n /** Share of black pixels that makes a frame black. Default 0.98. */\n readonly blackFrameRatio?: number;\n /** Shortest run of black frames reported. Default 0.5 s. */\n readonly minBlackSec?: number;\n /** Shortest run of unchanging frames reported. Default 2 s. */\n readonly minFrozenSec?: number;\n /** Level (dBFS, 100 ms windows) below which audio counts as silent. Default -60. */\n readonly silenceDbfs?: number;\n /** Shortest silent stretch reported. Default 2 s. */\n readonly minSilenceSec?: number;\n /** Integrated loudness to hit, e.g. -14 for most streaming platforms. Unchecked when unset. */\n readonly targetLufs?: number;\n /** Allowed distance from `targetLufs`, in LU. Default 1. */\n readonly lufsTolerance?: number;\n}\ninterface QaSegment {\n readonly startSec: number;\n readonly endSec: number;\n}\ninterface QaIssue {\n readonly severity: \"error\" | \"warning\" | \"info\";\n /** Stable machine-readable kind, e.g. \"black_frames\", \"audio_clipping\" */\n readonly code: string;\n readonly message: string;\n readonly startSec?: number;\n readonly endSec?: number;\n readonly layerId?: string;\n}\ninterface VideoQaStats {\n readonly expectedFrames: number;\n readonly encodedFrames: number;\n readonly fps: number;\n readonly width: number;\n readonly height: number;\n /** Average luma over the whole video, 0-1 */\n readonly meanLuma: number;\n readonly blackSegments: readonly QaSegment[];\n readonly frozenSegments: readonly QaSegment[];\n}\ninterface AudioQaStats {\n readonly sampleRate: number;\n readonly channels: number;\n readonly durationSec: number;\n /** Highest sample, dBFS (sample peak, not true peak) */\n readonly peakDbfs: number;\n /** Mean level over the whole track, dBFS */\n readonly rmsDbfs: number;\n /** ITU-R BS.1770 integrated loudness; null when the track is silent */\n readonly integratedLufs: number | null;\n /** Samples at or beyond full scale */\n readonly clippedSamples: number;\n readonly silentSegments: readonly QaSegment[];\n}\ninterface VideoQaReport {\n /** No errors or warnings (info issues do not fail a render) */\n readonly passed: boolean;\n readonly video?: VideoQaStats;\n readonly audio?: AudioQaStats;\n readonly issues: readonly QaIssue[];\n}\n/** Measures frames handed to it in order, as RGBA bytes. */\ndeclare class FrameInspector {\n private readonly blackLuma;\n private readonly blackRatio;\n private readonly black;\n private readonly sameAsPrevious;\n private lumaSum;\n private previous;\n constructor(options?: VideoQaOptions);\n get frameCount(): number;\n inspect(rgba: Uint8Array, width: number, height: number): void;\n stats(expectedFrames: number, encodedFrames: number, fps: number, width: number, height: number, options?: VideoQaOptions): VideoQaStats;\n}\n/** Measures a mixed audio track (one Float32Array per channel). */\ndeclare function analyzeAudio(channels: readonly Float32Array[], sampleRate: number, options?: VideoQaOptions): AudioQaStats;\n/**\n * ITU-R BS.1770-4 integrated loudness (LUFS): K-weighted mean square in\n * 400 ms blocks with 75% overlap, gated at -70 LUFS and then at 10 LU below\n * the mean of what passed. Channels weigh 1 (stereo and mono layouts).\n */\ndeclare function integratedLoudness(channels: readonly Float32Array[], sampleRate: number): number | null;\n/** Turn measurements and document diagnostics into a report with issues. */\ndeclare function buildQaReport(parts: {\n video?: VideoQaStats;\n audio?: AudioQaStats;\n diagnostics?: readonly RenderDiagnostic[];\n options?: VideoQaOptions;\n}): VideoQaReport;\n/** A short human- and agent-readable summary of a report. */\ndeclare function formatQaReport(report: VideoQaReport): string;\n//#endregion\n//#region src/headless-webgpu-renderer.d.ts\ndeclare class RenderSemaphore {\n private _running;\n private readonly _max;\n private readonly _queue;\n constructor(max: number);\n acquire(timeoutMs?: number): Promise<void>;\n release(): void;\n get stats(): {\n active: number;\n queued: number;\n max: number;\n };\n}\ndeclare const renderSemaphore: RenderSemaphore;\ndeclare class HeadlessWebGPURenderer {\n private static isInitialized;\n private static initPromise;\n private static initFailureCount;\n private static readonly MAX_INIT_FAILURES;\n private static nextRetryAt;\n static initialize(): Promise<void>;\n renderImage(virtualMedia: VirtualMediaData, frame?: number, fps?: number, options?: {\n renderId?: string;\n /** \"rgba\" skips PNG encoding and returns width*height*4 raw pixels. */\n format?: \"png\" | \"rgba\";\n }): Promise<Buffer>;\n /**\n * Renders a single frame to a PNG buffer at a specified timestamp in milliseconds or frame index.\n */\n renderFrame(source: VirtualMediaData | {\n toVirtualMedia(): VirtualMediaData;\n }, options?: {\n atMs?: number;\n frame?: number;\n fps?: number;\n /** Reuse compiled state across calls; see `renderImage`. */\n renderId?: string;\n /** \"rgba\" returns raw width*height*4 pixels instead of a PNG. */\n format?: \"png\" | \"rgba\";\n }): Promise<Buffer>;\n /**\n * Mixes the composition's full audio timeline (clips, effects, synthesized\n * tracks) to stereo PCM, exactly as `renderVideo` muxes it.\n */\n renderAudio(virtualMedia: VirtualMediaData, options?: {\n fps?: number;\n sampleRate?: number;\n }): Promise<{\n channels: Float32Array[];\n sampleRate: number;\n }>;\n renderLut(virtualMedia: VirtualMediaData, frame?: number, fps?: number): Promise<Buffer>;\n private resolveMediaDuration;\n renderVideo(virtualMedia: VirtualMediaData, options?: {\n codec?: string;\n audioCodec?: string;\n quality?: string;\n concurrency?: number;\n /**\n * Depth of the DMA staging ring (default 2, clamped 2–8). A deeper\n * ring overlaps more encoder latency at the cost of VRAM\n * (~8.3MB/slot at 1080p RGBA). Also settable via\n * `FRAMEFIELDS_RING_CAPACITY`.\n */\n ringCapacity?: number;\n /**\n * Measure the output while it renders (black and frozen frames,\n * dropped frames, loudness, clipping, silence, document warnings)\n * and return the findings as `qa`. `true` uses default thresholds.\n */\n qa?: boolean | VideoQaOptions;\n /**\n * Aborts the render between frames; the promise rejects with\n * `signal.reason` and the partial output is deleted.\n */\n signal?: AbortSignal;\n /**\n * Called as the render moves through its phases: \"prepare\", each\n * frame (\"render\"), \"audio\" (mixing, per clip), \"audio-encode\",\n * \"mux\", \"convert\" (GIF only) and \"done\".\n */\n onProgress?: (progress: RenderProgress) => void;\n }): Promise<{\n filePath: string;\n cleanup: () => Promise<void>;\n qa?: VideoQaReport;\n }>;\n}\ndeclare const HeadlessMediaRenderer: typeof HeadlessWebGPURenderer;\ntype HeadlessMediaRenderer = HeadlessWebGPURenderer;\n//#endregion\n//#region src/job-reset.d.ts\n/**\n * Drops every cache keyed by a file path or URL: media inputs and decoders,\n * textures, LUTs, fonts and downloaded font files. A long-lived worker calls this between jobs,\n * because the next checkout may hold different bytes at the same path. The\n * GPU device and compiled pipelines stay warm.\n */\ndeclare function resetRenderCaches(): void;\n//#endregion\n//#region src/logger.d.ts\n/**\n * \"json\" (pino lines, for log collectors) or \"text\" (one short line each, for\n * people and agents reading a terminal). `FRAMEFIELDS_LOG_FORMAT` picks one;\n * otherwise production is JSON and everything else text.\n */\ndeclare function resolveLogFormat(vars?: Record<string, string | undefined> | undefined): \"json\" | \"text\";\n/**\n * Turns pino's JSON lines into `[framefields] Rendered 40% (…)`: the message\n * without its `[Component]` prefix, the level only for warnings and errors,\n * and an error's message (its stack reaches the caller with the throw).\n */\ndeclare function textLogStream(write?: (line: string) => void): DestinationStream;\ndeclare const rendererLogger: pino.Logger<never, boolean>;\n//#endregion\n//#region src/node-manifest.d.ts\n/**\n * The `framefields` block of a node package's `package.json`.\n *\n * This is the single declaration of a node's op: renderer discovery, the\n * effects generator (`scripts/generate-effects.ts`) and the skill catalog all\n * read it from here. There is deliberately no fallback that derives an op from\n * the package name. See `spec/sync-node.md` §5.1.\n */\ndeclare const NODE_KINDS: readonly [\"effect\", \"audio\", \"source\", \"signal\", \"utility\"];\ntype NodeKind = (typeof NODE_KINDS)[number];\ninterface NodeRendererExports {\n development?: string;\n import?: string;\n default?: string;\n}\ninterface NodeManifest {\n /** Directory name under `nodes/`, e.g. `node-apply-lut`. */\n dir: string;\n /** Absolute path of the node package. */\n path: string;\n /** npm package name, e.g. `@framefields/node-lut`. */\n packageName: string;\n /** Canonical op literal used in the operation AST and the renderer registry. */\n type: string;\n kind: NodeKind;\n /** Legacy ops that resolve to the same renderer. */\n aliases: readonly string[];\n /** Named zod schema export of `src/shared/config.ts`. */\n schema?: string;\n /** Authoring class name. Defaults to `type`. */\n className?: string;\n /** Key on `Effect.*`. Defaults to `className` with a lower-cased first letter. */\n factory?: string;\n /** A hand-written subclass exists under `effects/custom/`. */\n custom: boolean;\n /** `false` when the package opts out of discovery. */\n enabled: boolean;\n rendererExports?: NodeRendererExports;\n}\ndeclare class NodeManifestError extends Error {\n readonly problems: readonly string[];\n constructor(problems: readonly string[]);\n}\n/**\n * Validates one parsed `package.json`. Returns the manifest, or the list of\n * problems that make it unusable. Never throws.\n */\ndeclare function parseNodeManifest(pkg: unknown, dir: string, nodePath?: string): {\n manifest?: NodeManifest;\n problems: string[];\n};\n/**\n * Reads every `nodes/node-*` package and returns its manifest, sorted by\n * directory name. Throws a single {@link NodeManifestError} listing every\n * problem: a missing or malformed block, or an op/alias claimed twice.\n */\ndeclare function loadNodeManifests(nodesDir: string): NodeManifest[];\n//#endregion\n//#region src/zero-copy-webcodecs-pipeline.d.ts\ninterface ZeroCopyWebCodecsPipelineOptions {\n readonly width: number;\n readonly height: number;\n readonly fps: number;\n readonly videoSource: VideoSampleSource;\n readonly ringCapacity?: number;\n readonly colorSpace?: VideoColorSpaceConfig;\n readonly directCanvasSource?: unknown;\n /**\n * Called with each frame's RGBA pixels, in frame order, just before it is\n * encoded (staging-ring path only). The buffer is reused: read, don't keep.\n */\n readonly onFrame?: (rgba: Uint8Array, frameIndex: number) => void;\n}\ninterface WebCodecsPipelineStats {\n readonly totalFramesEnqueued: number;\n readonly totalFramesEncoded: number;\n readonly averageGpuSubmitTimeMs: number;\n readonly averageEncodeTimeMs: number;\n readonly averageCycleTimeMs: number;\n readonly maxCycleTimeMs: number;\n readonly minCycleTimeMs: number;\n readonly throughputFps: number;\n readonly ringCapacity: number;\n readonly isDirectZeroCopy: boolean;\n}\n/**\n * High-performance hardware video encoding pipeline integrating WebGPU textures with WebCodecs.\n *\n * Provides:\n * 1. Direct hardware acceleration when running with WebCodecs / OffscreenCanvas.\n * 2. Pipelined asynchronous double-buffered DMA staging ring for headless Node.js (Dawn native),\n * allowing GPU Frame i+1 rendering to overlap concurrently with Frame i hardware encoding.\n */\ndeclare class ZeroCopyWebCodecsPipeline {\n readonly width: number;\n readonly height: number;\n readonly fps: number;\n readonly ringCapacity: number;\n private readonly device;\n private readonly videoSource;\n private readonly stagingRing;\n private readonly colorSpace?;\n private readonly directCanvasSource?;\n private readonly onFrame?;\n private readonly inFlightFrames;\n private readonly cycleStartTimes;\n private totalFramesEnqueued;\n private totalFramesEncoded;\n private totalGpuSubmitTimeMs;\n private totalEncodeTimeMs;\n private totalCycleTimeMs;\n private maxCycleTimeMs;\n private minCycleTimeMs;\n private pipelineStartTime;\n constructor(device: GPUDevice, options: ZeroCopyWebCodecsPipelineOptions);\n /**\n * Returns true if direct zero-copy from an OffscreenCanvas or texture is active.\n */\n canDirectZeroCopy(): boolean;\n /**\n * Enqueues a rendered GPU texture frame into the pipeline.\n *\n * Uses double-buffered DMA staging: if the staging ring has reached capacity,\n * the oldest in-flight frame is asynchronously consumed and added to the video encoder\n * before staging the new frame, guaranteeing constant bounded VRAM usage and zero GPU stalls.\n */\n enqueueFrame(frameIndex: number, targetTexture: GPUTexture, encoder: GPUCommandEncoder): Promise<void>;\n /**\n * Drains all remaining in-flight frames in the pipeline, ensuring every enqueued\n * frame has been encoded and added to the video sample source.\n */\n drain(): Promise<void>;\n /**\n * Returns runtime throughput, latency, and pipeline statistics.\n */\n getStats(): WebCodecsPipelineStats;\n /**\n * Destroys the pipeline and releases all staging buffers.\n */\n destroy(): void;\n private consumeAndEncode;\n}\n//#endregion\nexport { AudioQaStats, DmaStagingRing, DmaStagingRingOptions, FrameInspector, HeadlessMediaRenderer, HeadlessWebGPURenderer, NODE_KINDS, NodeKind, NodeManifest, NodeManifestError, NodeRendererExports, QaIssue, QaSegment, type RenderPhase, type RenderProgress, StagingSlotInfo, StagingSlotStatus, VideoColorSpaceConfig, VideoQaOptions, VideoQaReport, VideoQaStats, WebCodecsPipelineStats, ZeroCopyWebCodecsPipeline, ZeroCopyWebCodecsPipelineOptions, analyzeAudio, buildQaReport, discoverAndRegisterNodeRenderers, findNodesDir, formatQaReport, integratedLoudness, loadNodeManifests, parseNodeManifest, preloadFonts, renderSemaphore, rendererLogger, resetRenderCaches, resolveLogFormat, textLogStream };\n//# sourceMappingURL=index.d.mts.map"],"mappings":";;;;;;;;;;;;;KAmHKuB,WAAAA;;UAEKC,cAAAA;;;;;;SAMDD;;;;;;;;;;;;;;;;;;;;;;UAsBCE,cAAAA;;;;;;;;;;;;;;;;;;UAkBAC,SAAAA;;;;UAIAC,OAAAA;;;;;;;;;UASAC,YAAAA;;;;;;;;mCAQyBF;oCACCA;;UAE1BG,YAAAA;;;;;;;;;;;;oCAY0BH;;UAE1BI,aAAAA;;;mBAGSF;mBACAC;4BACSF;;;;;iBA+BXS,cAAAA,SAAuBN;;;cAG1BO,eAAAA;;;;;+BAKiB1B;;;;;;;;cAQjB2B,iBAAiBD;cACjBE,sBAAAA;;;;;;uBAMS5B;4BACKJ;;;;MAItBI,QAAQ6B;;;;sBAIQjC;sBACAA;;;;;;;;;MAShBI,QAAQ6B;;;;;4BAKcjC;;;MAGtBI;cACQsB;;;0BAGY1B,iDAAiDI,QAAQ6B;;4BAEvDjC;;;;;;;;;;;;;;;;;mBAiBTkB;;;;;aAKNgB;;;;;;4BAMejB;MACtBb;;mBAEaA;SACVmB;;;cAGKY,8BAA8BH;KACvCG,qBAAAA,GAAwBH;;;;;;;;;iBASZI,iBAAAA,CAAAA;;;;;;;;;;UC7UA,gBAAA;;;;AD8GZpB,UCzGY,gBAAA,CDyGD;EAENC;AAMU;AAsBI;EAsBdG,UAAO,CAAA,EAAA,MAAA;EASPC;AASmC;AAcA;EAK1BA,QAAAA,CAAAA,EAAAA,MAAAA;EACAC;;;EAgCFO,UAAAA,CAAAA,EAAAA,MAAc;EAGjBC;AAKwB;AAQQ;EAOvB1B,MAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EACKJ;;;EAQNA,OAAAA,CAAAA,EAAAA,MAAAA;EACAA;;;EAcMA,KAAAA,CAAAA,EAAAA,MAAAA;EAId0B;;;EAGqEO,MAAAA,CAAAA,EAAAA,MAAAA;EAAR7B;;;EAwB9D8B,OAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAMejB;;;EACtBb,GAAAA,CAAAA,EAAAA,MAAAA;EAAO;AAAA;AAMqD;EAUjDgC,OAAAA,CAAAA,EAAAA,MAAAA;;;;AC7UjB;EAKiB,SAAA,CAAA,EAAA,MAAA;EA0HD;AAsGhB;AAiFA;EACmB,UAAA,CAAA,EAAA,MAAA;EAKN;;;EACD,GAAA,CAAA,EAAA,MAAA;EAWU;;;EAGX,OAAA,CAAA,EAAA,MAAA;EAAR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAlNS;;;;;iBAMI,mBAAA,UACN;WAGI;;;;;;iBAkGE,iBAAA,mDAGN;;;;;;;;;;;KA8EE,mBAAA;oBACO;;;;;eAKN;MACR,QAAQ;;;;;;;;;;iBAWS,eAAA,SACb,+BACC,mBACP,QAAQ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Oo as VirtualMediaData } from "./index-
|
|
2
|
-
import { n as NodeRendererPlugin } from "./renderer-
|
|
1
|
+
import { Oo as VirtualMediaData } from "./index-C6awQk4-.mjs";
|
|
2
|
+
import { n as NodeRendererPlugin } from "./renderer-sg-ffvVd.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../compositions/dist/index.d.mts
|
|
5
5
|
|
|
@@ -123,4 +123,4 @@ interface EncodeWavOptions {
|
|
|
123
123
|
declare function encodeStereoWav(channels: [Float32Array, Float32Array], options?: EncodeWavOptions): Buffer;
|
|
124
124
|
//#endregion
|
|
125
125
|
export { SfxTrigger as a, softLimit as c, _default$2 as d, _default$3 as f, mixAudioTracks as g, _default$6 as h, SfxRenderContext as i, _default as l, _default$5 as m, encodeStereoWav as n, mixSfxInto as o, _default$4 as p, RenderedSfx as r, renderSfx as s, EncodeWavOptions as t, _default$1 as u };
|
|
126
|
-
//# sourceMappingURL=index-
|
|
126
|
+
//# sourceMappingURL=index-Dbwf24s4.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Dbwf24s4.d.mts","names":["a","isStaticVisualMedia","c","RenderParams","i","calculateLayerTransform","l","computeRenderParams","n","framesToSeconds","o","resolveLayerDuration","r","secondsToFrames","s","CropRegion","t","formatTimecode","VirtualMediaData","GPUCommandEncoder","GPUTexture","GPUTextureView","NodeRenderProps","RenderContextValue","drawCompositionTree","Promise","CompositionStateStore","compositionStateStore","SceneProps","AudioClip","decodeAudioSource","Float32Array","AudioMixProgress","MixAudioOptions","mixAudioTracks","GPUDevice","NormalizationContext","normalizeTimeline","_framefields_node_sdk_renderer0","_default","NodeRendererPlugin","Readonly","default","_framefields_node_sdk_renderer0","_default","NodeRendererPlugin","Readonly","default","_framefields_node_sdk_renderer0","_default","NodeRendererPlugin","Readonly","default","_framefields_node_sdk_renderer0","_default","NodeRendererPlugin","Readonly","default","_framefields_node_sdk_renderer0","_default","NodeRendererPlugin","Readonly","default","_framefields_node_sdk_renderer0","_default","NodeRendererPlugin","Readonly","default","_framefields_node_sdk_renderer0","_default","NodeRendererPlugin","Readonly","default"],"sources":["../../compositions/dist/index.d.mts","../../../nodes/node-audio-compressor/dist/renderer.d.mts","../../../nodes/node-audio-delay/dist/renderer.d.mts","../../../nodes/node-audio-fade/dist/renderer.d.mts","../../../nodes/node-audio-noise-gate/dist/renderer.d.mts","../../../nodes/node-audio-parametric-eq/dist/renderer.d.mts","../../../nodes/node-audio-reverb/dist/renderer.d.mts","../../../nodes/node-stereo-panning/dist/renderer.d.mts","../src/audio/synth/sfx.ts","../src/audio/synth/wav-encoder.ts"],"sourcesContent":["import { a as isStaticVisualMedia, c as RenderParams, i as calculateLayerTransform, l as computeRenderParams, n as framesToSeconds, o as resolveLayerDuration, r as secondsToFrames, s as CropRegion, t as formatTimecode } from \"./timing-CluwdKGr.mjs\";\nimport { VirtualMediaData } from \"@framefields/core\";\nimport { GPUCommandEncoder, GPUTexture, GPUTextureView, NodeRenderProps } from \"@framefields/node-sdk\";\nimport { RenderContextValue } from \"@framefields/webgpu-renderers\";\n\n//#region src/compositions/canvas-composition.d.ts\ndeclare function drawCompositionTree(ctx: RenderContextValue, encoder: GPUCommandEncoder, targetView: GPUTextureView, targetTexture: GPUTexture, targetWidth: number, targetHeight: number, virtualMedia: VirtualMediaData, props: NodeRenderProps, inheritedSeekOffset?: number, inheritedClockOffset?: number): Promise<void>;\n//#endregion\n//#region src/compositions/composition-state.d.ts\ndeclare class CompositionStateStore {\n private states;\n private listeners;\n setState(key: string, frame: number, fps: number, isPlaying?: boolean): void;\n getState(key: string): {\n frame: number;\n fps: number;\n isPlaying: boolean;\n };\n subscribe(key: string, listener: () => void): () => void;\n clearKey(key: string): void;\n private notify;\n}\ndeclare const compositionStateStore: CompositionStateStore;\ninterface SceneProps {\n viewportWidth: number;\n viewportHeight: number;\n containerWidth?: number;\n containerHeight?: number;\n virtualMedia?: VirtualMediaData;\n backgroundColor?: string;\n type?: \"Video\" | \"Audio\" | \"Image\";\n volume?: number;\n renderId?: string;\n frame?: number;\n fps?: number;\n [key: string]: unknown;\n}\n//#endregion\n//#region src/utils/audio-extractor.d.ts\ninterface AudioClip {\n sourceUrl: string;\n destStartFrame: number;\n trimStartSec: number;\n durationFrames: number;\n speed: number;\n volume: number;\n}\n/**\n * Decodes all audio samples from a given source URL into raw Float32 mono/stereo channel buffers.\n */\ndeclare function decodeAudioSource(url: string): Promise<{\n channels: Float32Array[];\n sampleRate: number;\n} | null>;\n/** Progress reported by `mixAudioTracks` as each audio or video clip is mixed. */\ninterface AudioMixProgress {\n /** Clips mixed so far. */\n done: number;\n /** Audio and video clips in the tree; muted or empty ones may be skipped. */\n total: number;\n /** File name of the clip just mixed (no directory or query string). */\n source?: string;\n}\ninterface MixAudioOptions {\n onProgress?: (progress: AudioMixProgress) => void;\n}\n/**\n * Recursively parses the VirtualMediaData tree and mixes all active audio tracks\n * into a single unified stereo PCM stream (Float32Array channels).\n */\ndeclare function mixAudioTracks(virtualMedia: VirtualMediaData, fps: number, targetSampleRate?: number, device?: GPUDevice, renderId?: string, options?: MixAudioOptions): Promise<{\n channels: Float32Array[];\n sampleRate: number;\n}>;\n//#endregion\n//#region src/utils/normalization.d.ts\n/**\n * NormalizationContext carries the accumulated offsets and limits\n * as we traverse down the virtual media tree.\n */\ninterface NormalizationContext {\n timeOffsetSec: number;\n durationLimitMs?: number;\n}\n/**\n * normalizeTimeline recurses through the virtual media tree and \"absorbs\"\n * generic timeline-shifting operations into standard properties\n * of their children.\n */\ndeclare function normalizeTimeline(vv: VirtualMediaData, fps: number, context?: NormalizationContext): VirtualMediaData;\n//#endregion\nexport { AudioClip, AudioMixProgress, CropRegion, MixAudioOptions, RenderParams, SceneProps, calculateLayerTransform, compositionStateStore, computeRenderParams, decodeAudioSource, drawCompositionTree, formatTimecode, framesToSeconds, isStaticVisualMedia, mixAudioTracks, normalizeTimeline, resolveLayerDuration, secondsToFrames };\n//# sourceMappingURL=index.d.mts.map","import * as _framefields_node_sdk_renderer0 from \"@framefields/node-sdk/renderer\";\n\n//#region src/renderers/index.d.ts\ndeclare const _default: Readonly<_framefields_node_sdk_renderer0.NodeRendererPlugin>;\n//#endregion\nexport { _default as default };\n//# sourceMappingURL=renderer.d.mts.map","import * as _framefields_node_sdk_renderer0 from \"@framefields/node-sdk/renderer\";\n\n//#region src/renderers/index.d.ts\ndeclare const _default: Readonly<_framefields_node_sdk_renderer0.NodeRendererPlugin>;\n//#endregion\nexport { _default as default };\n//# sourceMappingURL=renderer.d.mts.map","import * as _framefields_node_sdk_renderer0 from \"@framefields/node-sdk/renderer\";\n\n//#region src/renderers/index.d.ts\ndeclare const _default: Readonly<_framefields_node_sdk_renderer0.NodeRendererPlugin>;\n//#endregion\nexport { _default as default };\n//# sourceMappingURL=renderer.d.mts.map","import * as _framefields_node_sdk_renderer0 from \"@framefields/node-sdk/renderer\";\n\n//#region src/renderers/index.d.ts\ndeclare const _default: Readonly<_framefields_node_sdk_renderer0.NodeRendererPlugin>;\n//#endregion\nexport { _default as default };\n//# sourceMappingURL=renderer.d.mts.map","import * as _framefields_node_sdk_renderer0 from \"@framefields/node-sdk/renderer\";\n\n//#region src/renderers/index.d.ts\ndeclare const _default: Readonly<_framefields_node_sdk_renderer0.NodeRendererPlugin>;\n//#endregion\nexport { _default as default };\n//# sourceMappingURL=renderer.d.mts.map","import * as _framefields_node_sdk_renderer0 from \"@framefields/node-sdk/renderer\";\n\n//#region src/renderers/index.d.ts\ndeclare const _default: Readonly<_framefields_node_sdk_renderer0.NodeRendererPlugin>;\n//#endregion\nexport { _default as default };\n//# sourceMappingURL=renderer.d.mts.map","import * as _framefields_node_sdk_renderer0 from \"@framefields/node-sdk/renderer\";\n\n//#region src/renderers/index.d.ts\ndeclare const _default: Readonly<_framefields_node_sdk_renderer0.NodeRendererPlugin>;\n//#endregion\nexport { _default as default };\n//# sourceMappingURL=renderer.d.mts.map"],"mappings":";;;;;AQ6PA;URtMUgC,gBAAAA;;;ESlDV;EAOA,KAAgB,EAAA,MAAA;EACJ;EAAc,MAAA,CAAA,EAAA,MAAA;;UTkDhBC,eAAAA,CShDP;EAAM,UAAA,CAAA,EAAA,CAAA,QAAA,ETiDiBD,gBSjDjB,EAAA,GAAA,IAAA;;;;;;iBTuDQE,cAAAA,eAA6BhB,mEAAmEiB,wCAAwCF,kBAAkBR;YAC/JM;;;;;;;;;;;;cCpEEQ,YAAUE,SAASH;AD+CuB;;;;cE/C1CM,YAAUE,SAASH;AF+CuB;;;;cG/C1CM,YAAUE,SAASH;AH+CuB;;;;cI/C1CM,YAAUE,SAASH;AJ+CuB;;;;cK/C1CM,YAAUE,SAASH;AL+CuB;;;;cM/C1CM,YAAUE,SAASH;AN+CuB;;;;cO/C1CM,UAAUE,SAASH;AP+CuB;;;;;;;;AAAA;AAK9B;AASgB;;;AAM+GnC,UQ5DxI,UAAA,CR4DwIA;EAC7IF,IAAAA,EAAAA,QAAAA,GAAAA,OAAAA,GAAAA,QAAAA,GAAAA,aAAAA,GAAAA,QAAAA;EAD+JN;EAAO,KAAA,EAAA,MAAA;;;;ACnEpKc,KOeF,YAAA,GPfwE,COexD,YPfKD,EOeS,YPflBG,CAAAA;UOiBP,WAAA;;;ENjBHG,QAAAA,EMoBH,YNpByE;;UMuBnE,gBAAA;;ELvBHK,aAAsE,EAAA,MAAA;;;;ACHF;;;;ACAA;iBGyLlE,SAAA,UACN,iBACJ,mBACH;;iBAwCa,UAAA,SACP,gCACU;AFtO+D;;;;ACGpEoB,iBC0PE,SAAA,CD1PiBD,MAAAA,EC2PxB,YD3PeG,EAAAA,IAAQ,CAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,MAAA,CAAA,EAAA,IAAA;;;;;;;APoDtBvC,USlDO,gBAAA,CTkDS;EAQhBC,UAAAA,CAAAA,EAAAA,MAAe;AACiB;;;;AAO9BF,iBS3DI,eAAA,CT2DJA,QAAAA,EAAAA,CS1DA,YT0DAA,ES1Dc,YT0DdA,CAAAA,EAAAA,OAAAA,CAAAA,ESzDF,gBTyDEA,CAAAA,ESxDT,MTwDSA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./chunk-D7gtBK74.mjs";
|
|
2
|
-
import { $ as AdvancedTextAnimatorSchema, $a as SineSignalOptions, $i as MediaSourceInput, $n as samplePathChainGeometry, $o as frameSignal, $r as DATA_TYPE_EXTENSIONS, $t as TextCursorConfig, A as SlugFontCache, Aa as Pixels, Ai as GateSignalOptions, An as buildPathLUT, Ao as VisionConfig, Ar as resolveEnvironment, As as radians, At as LongShadowConfig, B as loadModel3D, Ba as SignalBuilderConfig, Bi as JsonArray, Bn as evaluateMarqueeOffset, Bo as computed, Br as BaseVideoLayerPropsSchema, Bs as seconds, Bt as SelectorShape, C as Renderer3D, Ca as ObjectBoundingBox, Ci as FileData, Cn as VariableFontAxesSchema, Co as VideoLayerTypeSchema, Cr as Path3DPoint, Cs as normalized, Ct as GlyphAnchorGroupingSchema, Da as OutputItemSchema, Di as FrameIndex, Dn as VolumetricFormationConfigSchema, Do as VideoTimingPropsSchema, Dr as Vec3, Ds as pixels, Dt as KineticMarqueeConfigSchema, E as ShadowPipeline, Ea as OutputItem, Ei as FrameContext, En as VolumetricFormationConfig, Eo as VideoTextPropsSchema, Er as ShadowUniformInfo, Es as parseCssGradient, Et as KineticMarqueeConfig, F as describeGpu, Fa as RenderDiagnostic, Fi as GradientType, Fn as distanceToCurveParameter, Fo as XYPosition, Fr as AudioExtractorSignalData, Fs as resolveNumber, Ft as PathChainLUTEntry, G as parseOBJ, Ga as SignalDataSchema, Gi as MAX_GRADIENT_STOPS, Gn as evaluateVolumetricFormation, Go as degrees, Gr as CannyOptions, Gs as stampResult, Gt as SkewPropertiesSchema, H as lutStore, Ha as SignalChannelMetaSchema, Hi as JsonValue, Hn as evaluateSkewMatrix, Ho as createOutputItemSchema, Hr as CAPTION_LAYER_DEFAULTS, Hs as signal, Ht as SelectorUnits, I as ensureDevice, Ia as Rgba, Ii as HandleId, In as ellipseToCubicBeziers, Io as appendOperation, Ir as AudioExtractorSignalDataSchema, Is as resolveParam, It as SelectorBasedOn, J as textureCache, Ja as SignalMathData, Ji as MediaMetadataSchema, Jn as getScramblePool, Jo as findSourceAsset, Jr as ConfigHandle, Js as updateClockSignals, Jt as SpringPhysics, K as shaderStore, Ka as SignalGateData, Ki as MIME_TYPES, Kn as generateArcLengthLUT, Ko as deserializeSignalData, Kr as Color, Ks as takeRenderDiagnostics, Kt as Spatial3DProperties, La as Seconds, Li as HandleLabel, Ln as evaluateCubicBezier, Lo as assertNever, Lr as BaseMediaOperationProps, Ls as resolveString, Lt as SelectorBasedOnSchema, Ma as ProgrammaticSignal, Mi as GeneratorSignalDataSchema, Mn as computeLineLeadingDisplacement, Mo as VisionTask, Mr as AnimationTypeSchema, Ms as reportRenderDiagnostic, Mt as ParticleDissolveConfig, Na as ProgrammaticSignalOptions, Ni as GlobalCompositeOperation, Nn as computeRangeSelectorWeight, No as VisionVariant, Nr as AnyOutputUnion, Ns as resolveBoolean, Nt as ParticleDissolveConfigSchema, Oa as ParsedGradient, Oi as FrameSignal, On as VolumetricFormationMode, Oo as VirtualMediaData, Or as Vector3Math, Os as programmaticSignal, Ot as LineSpacingDynamics, Pa as Radians, Pi as Gradient, Pn as deterministicWigglyNoise, Po as WritableSignal, Pr as AnyOutputUnionSchema, Ps as resolveMediaMimeType, Pt as PathChainLUT, Q as AdvancedTextAnimatorBuilder, Qa as SignalValue, Qi as MediaSourceDescriptor, Qn as sampleCurveGeometry, Qo as frameArraySignal, Qr as ControlNetConditioningOutputs, Qt as TextAnimatorBuilder, R as inputStore, Ra as SegmentationOptions, Ri as HandleType, Rn as evaluateCubicBezierDerivative, Ro as checkNodeResultCache, Rr as BaseMediaOperationPropsSchema, Rs as rgbToOklab, Rt as SelectorMode, S as Renderer2D, Sa as NormalizedLandmarkList, Si as FileAssetSchema, Sn as VariableFontAxes, So as VideoLayerType, Sr as Path3D, Ss as normalizeColorStops, St as GlyphAnchorGrouping, T as SSAOPipeline, Ta as Output, Ti as Fps, Tn as Vec2Schema, To as VideoStylePropsSchema, Tr as ResolvedEnvironment, Ts as parseCssColor, Tt as GlyphAnchorPointSchema, U as parseFBX, Ua as SignalContext, Ui as JsonValueSchema, Un as evaluateSpringProgress, Uo as createVirtualMedia, Ur as COMPOSITE_OPERATIONS, Us as signalBuilder, Ut as SelectorUnitsSchema, V as loadOBJ, Va as SignalChannelMeta, Vi as JsonObject, Vn as evaluateSelectorCombination, Vo as cosineSignal, Vr as Brand, Vs as serializeSignalData, Vt as SelectorShapeSchema, W as parseMTL, Wa as SignalData, Wi as Landmark3D, Wn as evaluateTypewriterState, Wo as dataTypeColors, Wr as COMPOSITOR_DEFAULTS, Ws as sineSignal, Wt as SkewProperties, X as AETextAnimatorSchema, Xa as SignalStats, Xi as MediaOperationSchema, Xn as parseSvgPathToCubicBeziers, Xo as fps, Xr as ConfigSchemaRegistry, Xt as TextAnchorConfig, Y as AETextAnimator, Ya as SignalMathDataSchema, Yi as MediaOperation, Yn as getShuffledOrder, Yo as formatHex, Yr as ConfigHandleSchema, Yt as SpringPhysicsSchema, Z as AdvancedTextAnimator, Za as SignalStatsSchema, Zi as MediaService, Zn as sampleAudioSpectrumScale, Zo as frame, Zr as ConnectedInput, Zt as TextAnchorConfigSchema, _ as Mesh3DData, _a as NodeValidationFn, _i as ExportResultSchema, _n as TextWigglySelectorSchema, _o as TransitionSchema, _r as LightKind, _s as isVirtualMediaData, _t as ExpressionEvaluationContext, a as AudioMeshDeformPipeline, aa as MultiOutputGeneric, ai as DataTypeEnum, an as TextPathOptionsSchema, ao as TensorData, ar as CatmullRomOptions, as as getMediaType, at as AnimatableGlyphPropsSchema, b as NodeAnimationTrack3D, ba as NormalRelightingOptions, bi as FaceLandmarksOptions, bn as TypingCadence, bo as VideoAnimation, br as Mat4, bs as ms, bt as ExtendedGlyphProperties, c as BlendMode, ca as NodeInputConnection, ci as DeflickerOptions, cn as TextRangeSelector, co as TensorNode, cr as Environment3DFog, cs as handleId, ct as AudioSpectrumTypographySchema, d as EffectPipeline, da as NodeOperation, di as DetectedObject, dn as TextScrambleConfigSchema, do as TextSpan, dr as FrustumPlanes, ds as isCssGradient, dt as CubicBezierSegment, ea as MediaSourceSchema, ei as DEFAULT_DURATION_MS, en as TextCursorConfigSchema, eo as SingleOutputGeneric, er as waveToCubicBeziers, es as generateId, et as AnchorGrouping, f as GlassPipeline, fa as NodeProcessorContext, fn as TextSelector, fo as TextSpanMark, fr as GPULightData, fs as isEqual, ft as CubicBezierSegmentSchema, g as Material3D, ga as NodeRunFunction, gi as ExportResult, gn as TextWigglySelector, go as TrackedObject, gr as Light3DOptions, gs as isValueSignal, gt as EnhancedTextNodeSchema, ha as NodeResultSchema, hi as EffectDomain, hn as TextSignalSelectorSchema, ho as TimelineTransformSchema, hr as Light3D, hs as isSignal, ht as EnhancedTextNode, i as AudioLatentTrackCache, ia as ModerationUnrefundableError, ii as DataType, in as TextPathOptions, io as TEXT_LAYER_DEFAULTS, ir as CameraShakeOptions, is as getLeafMediaType, it as AnimatableGlyphProps, j as SlugPipeline, ja as PoseSkeletonOptions, ji as GeneratorSignalData, jn as computeAnchorPivotOffset, jo as VisionNodeSpec, jr as AnimationType, js as registerSignalDependency, jt as LongShadowConfigSchema, k as Skeleton3D, ka as ParsedGradientStop, ki as GPUTextureBinding, kn as VolumetricFormationModeSchema, ko as VirtualMediaDataSchema, kr as parseColorToRgb, ks as progressSignal, kt as LineSpacingDynamicsSchema, l as Bone3D, la as NodeMetadata, li as Degrees, ln as TextRangeSelectorSchema, lo as TensorPipelineConfig, lr as Environment3DOptions, ls as handleLabel, lt as ChromaticGlitchConfig, m as LoadModelOptions, ma as NodeResult, mi as EffectConfigValue, mn as TextSignalSelector, mo as TimelineTransform, mr as LIGHT_UNIFORM_SIZE_BYTES, ms as isNormalized, mt as DynamicStrokePropertiesSchema, n as AudioLatentData, na as Milliseconds, ni as DEFAULT_MEDIA_DIMENSION, nn as TextCursorStyleSchema, no as SourceOperationSchema, nr as Camera3D, ns as getFileDataMetadata, nt as AnchorPreset, oa as MultiOutputGenericSchema, oi as DataTypeVal, on as TextPathSource, oo as TensorDimensions, or as CirclePathOptions, os as getRenderFingerprint, ot as ArcLengthLUTEntry, p as GpuAdapterDescription, pa as NodeProcessorParams, pi as EffectConfig, pn as TextSelectorSchema, po as TimelineSegmentSchema, pr as HelixOptions, ps as isFrameIndex, pt as DynamicStrokeProperties, q as signalRegistry, qa as SignalGateDataSchema, qi as MediaMetadata, qn as generatePathSegments, qo as extractSvgDimensions, qr as ColorStopLike, qs as timeSignal, qt as Spatial3DPropertiesSchema, r as AudioLatentEngine, ra as ModerationError, ri as DataForType, rn as TextPathBuilder, ro as StorageService, rr as Camera3DPose, rs as getFingerprint, rt as AnchorPresetSchema, sa as NodeId, si as DataTypes, sn as TextPathSourceSchema, so as TensorFormat, sr as ENVIRONMENT_PRESETS, ss as gradientStopsToOklab, st as AudioSpectrumTypography, t as AnimationClip3D, ta as MeshAudioDeformConfig, ti as DEFAULT_FPS, tn as TextCursorStyle, to as SingleOutputGenericSchema, tr as BezierSegment3D, ts as getActiveMediaMetadata, tt as AnchorGroupingSchema, ua as NodeMetadataSchema, ui as DepthNormalsOptions, un as TextScrambleConfig, uo as TextOperationSchema, ur as FrustumPlane, us as hasOnlySingleSource, ut as ChromaticGlitchConfigSchema, v as Model3DData, va as NodeVisualConfig, vi as ExtendedLayer, vn as TypewriterAnimator, vo as TransitionType, vr as LightsUniformData, vs as limitGradientStops, vt as ExpressionSelector, wa as OpticalFlowOptions, wi as FileDataSchema, wn as Vec2, wo as VideoSpatialPropsSchema, wr as Path3DSample, ws as oklabToRgb, wt as GlyphAnchorPoint, x as RenderContextValue, xa as Normalized, xi as FileAsset, xn as TypingCadenceSchema, xo as VideoAnimationSchema, xr as Matrix4Math, xs as nodeId, xt as ExtendedGlyphPropertiesSchema, y as MotionBlurPipeline, ya as NodeVisualConfigSchema, yi as ExtendedLayerSchema, yn as TypewriterAnimatorSchema, yo as TransitionTypeSchema, yr as MAX_LIGHTS, ys as mixColors, yt as ExpressionSelectorSchema, z as loadFBX, za as Signal, zi as HandleTypeVal, zn as evaluateExpressionSelector, zo as computeVideoCropRenderProps, zr as BaseVideoLayerProps, zs as sampleColorStops, zt as SelectorModeSchema } from "./index-
|
|
3
|
-
import { a as SfxTrigger, c as softLimit, g as mixAudioTracks, i as SfxRenderContext, n as encodeStereoWav, o as mixSfxInto, r as RenderedSfx, s as renderSfx } from "./index-
|
|
4
|
-
import "./renderer-
|
|
5
|
-
import "./renderer-
|
|
6
|
-
import { $ as InterpolateOptions, $a as MediaAnimatableProp, $i as themes, $n as Cue, $t as PoseKeypointName, A as Physics, Aa as CompositorProgramSchema, An as QueueStatus, Ao as WiggleOptions, At as Plane3DOptions, B as FieldSample2D, Ba as Keyframe, Bo as evaluateTrackAtFrame, Bt as BodyCommonOptions, C as TrackEditing, Ca as CarrierHandoffConfig, Cn as span, Co as TextNode, Ct as Cube3DOptions, D as section, Da as ColorStop, Dn as AiConfig, Do as ToneMapping, Dt as ExtrudedText3DOptions, E as editTrackedRegion, Ea as ColorSignalOptions, En as Ai, Eo as TextSpanSchema, Et as Cylinder3DOptions, F as PhysicsRope3DOptions, Fa as EnvironmentPreset, Fo as computeCarrierContinuity, Ft as Sphere3DOptions, G as PhysicsSpringOptions, Ga as LightNode, Gt as EmitterShape, H as PhysicsGroundOptions, Ha as LayerAnimation, Ho as lintComposition, Ht as PhysicsCollision, I as PhysicsSpring3DOptions, Ia as EnvironmentPresetSchema, Io as computeLayout, It as Surface3DOptions, J as World2DOptions, Ja as LightTypeSchema, Jt as ParticleShape, K as PhysicsWallsOptions, Ka as LightNodeSchema, Kn as BaseProps, Kt as ParticleBlend, L as PhysicsWorld3D, La as FlexNode, Ln as Anchor, Lo as computeLayoutSync, Lt as Text3DOptions, M as FieldSample3D, Ma as EaseRef, Mi as pulseKeys, Mn as RunOptions, Mo as calculateSequenceTimeline, Mt as Prism3DOptions, N as PhysicsBody3D, Na as EnvironmentFog, Nn as ValidationError, No as collectNodeOps, Nt as RoundedBox3DOptions, O as StyleName, Oa as ColorStopSchema, On as ApiError, Oo as ToneMappingSchema, Ot as Grid3DOptions, P as PhysicsBox3D, Pa as EnvironmentFogSchema, Pn as ai, Po as compositorToProgram, Pr as Target, Pt as Shape3DContainer, Q as Easing, Qa as MatteModeSchema, Qt as PersonTrack, R as World3DOptions, Ra as FlexNodeSchema, Ro as computeStaggerDelay, Rr as Theme, Rt as Particles, S as SubjectSandwichOptions, Sa as CameraShake, Sn as size, So as TextAnimatorSchema, Sr as MotionPreset, St as Carousel3DOptions, T as blurRegion, Ta as CarrierState, Tn as sup, To as TextSpanMarkSchema, Tt as CubeFaceInput, U as PhysicsRect, Ua as LayoutNode, Un as AudioLevels, Uo as mergeAnimationTracks, Ut as PhysicsDriver, V as PhysicsBody2D, Va as KeyframeTuple, Vo as hoistMattes, Vt as PhysicsBakeOptions, W as PhysicsRopeOptions, Wa as LayoutNodeSchema, Wt as PhysicsWorldOptions, X as LightingRig, Xa as MaterialTypeSchema, Xt as ClipVisionOptions, Y as Lighting, Ya as MaterialType, Yt as ClipVision, Z as LightingRigOptions, Za as MatteMode, Zt as PersonPlacement, _ as RenderVideoResult, _a as CameraAnimation, _n as italic, _o as SignalTrackOptions, _t as SequenceEntry, a as AnimatableNode, an as ChartPadding, ao as Scene, at as computeStrokeRect, b as SmartFramingOptions, ba as CameraNode, bn as parseMarkup, bo as TextAnimatableProp, bt as TransitionDirection, c as CompositionOptions, cn as ChartType, co as SceneOptions, ct as measureSpring, d as EnvironmentOptions, da as AnimationTrack, dn as MarkOptions, do as Sequence, dt as preloadCompositionFonts, en as ChartAnimationOptions, eo as MediaNode, er as Cues, et as SpringConfig, f as Layer, fa as BlockNode, fn as TextSpanItem, fo as SequenceOptions, ft as preloadFont, g as RenderVideoOptions, ga as BoxNodeSchema, gn as color, go as ShapeNodeSchema, gt as SceneSequenceOptions, h as NodeCapability, ha as BoxNode, hn as code, ho as ShapeNode, ht as springCalculation, i as analyzeAudio, in as ChartOptions, io as Model3DNodeSchema, it as bezier, j as Body3DOptions, ja as CompositorToProgramOptions, jn as Result, jo as applyStaggerToChildren, jt as Primitive3DNodeOptions, k as Styles, ka as CompositorProgramConfig, kn as FRAMEFIELDS_AI_PROXY_URL, ko as TrackSource, kt as Layer3D, l as EditableObjectTrack, la as AnimatableProp, ln as ChartX, lo as SceneTransitionType, lt as measureText, m as Media, ma as BloomConfigSchema, mn as bold, mo as ShapeAnimatableProp, mt as spring, n as bindComponent, nn as ChartCandle, no as Model3DAnimatableProp, nt as TextMeasureResult, o as CompatibleEffect, on as ChartSeries, oo as SceneDefinition, ot as interpolate, p as Light, pa as BloomConfig, pi as defineTheme, pn as accent, po as SequenceTimelineResult, pt as requiresIsolation, q as PhysicsWorld2D, qa as LightType, qt as ParticleBounds, rn as ChartDatum, ro as Model3DNode, rt as TextMeasureStyle, s as Composition, sn as ChartSlice, so as SceneDefinitionSchema, st as mapBlendModeToSkia, t as ComponentNode, tn as ChartAxisOptions, to as MediaNodeSchema, tt as StrokeRect, u as Effect, ua as AnimatablePropsFor, un as DEFAULT_CHART_COLORS, uo as SceneTransitionTypeSchema, ut as measureTextAsync, v as SectionNode, va as CameraDoF, vn as mark, vo as SizeSpec, vt as SequenceNode, w as TrackedRegionOptions, wa as CarrierHandoffConfigSchema, wn as sub, wo as TextNodeSchema, wt as CubeFaceConfig, x as SubjectOutlineOptions, xa as CameraNodeSchema, xn as rich, xo as TextAnimator, xt as TransitionSpec, y as SectionOptions, ya as CameraLens, yn as normalizeTextSpans, yo as SpringOptions, yt as Transition, z as Body2DOptions, za as FromToOptions, zo as evaluateAnimationAtFrame, zr as ThemeInput, zt as ParticlesOptions } from "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import { n as AudioSignalOptions, r as ExtractedAudioSignalsBundle, t as AudioSignal } from "./audio-
|
|
2
|
+
import { $ as AdvancedTextAnimatorSchema, $a as SineSignalOptions, $i as MediaSourceInput, $n as samplePathChainGeometry, $o as frameSignal, $r as DATA_TYPE_EXTENSIONS, $t as TextCursorConfig, A as SlugFontCache, Aa as Pixels, Ai as GateSignalOptions, An as buildPathLUT, Ao as VisionConfig, Ar as resolveEnvironment, As as radians, At as LongShadowConfig, B as loadModel3D, Ba as SignalBuilderConfig, Bi as JsonArray, Bn as evaluateMarqueeOffset, Bo as computed, Br as BaseVideoLayerPropsSchema, Bs as seconds, Bt as SelectorShape, C as Renderer3D, Ca as ObjectBoundingBox, Ci as FileData, Cn as VariableFontAxesSchema, Co as VideoLayerTypeSchema, Cr as Path3DPoint, Cs as normalized, Ct as GlyphAnchorGroupingSchema, Da as OutputItemSchema, Di as FrameIndex, Dn as VolumetricFormationConfigSchema, Do as VideoTimingPropsSchema, Dr as Vec3, Ds as pixels, Dt as KineticMarqueeConfigSchema, E as ShadowPipeline, Ea as OutputItem, Ei as FrameContext, En as VolumetricFormationConfig, Eo as VideoTextPropsSchema, Er as ShadowUniformInfo, Es as parseCssGradient, Et as KineticMarqueeConfig, F as describeGpu, Fa as RenderDiagnostic, Fi as GradientType, Fn as distanceToCurveParameter, Fo as XYPosition, Fr as AudioExtractorSignalData, Fs as resolveNumber, Ft as PathChainLUTEntry, G as parseOBJ, Ga as SignalDataSchema, Gi as MAX_GRADIENT_STOPS, Gn as evaluateVolumetricFormation, Go as degrees, Gr as CannyOptions, Gs as stampResult, Gt as SkewPropertiesSchema, H as lutStore, Ha as SignalChannelMetaSchema, Hi as JsonValue, Hn as evaluateSkewMatrix, Ho as createOutputItemSchema, Hr as CAPTION_LAYER_DEFAULTS, Hs as signal, Ht as SelectorUnits, I as ensureDevice, Ia as Rgba, Ii as HandleId, In as ellipseToCubicBeziers, Io as appendOperation, Ir as AudioExtractorSignalDataSchema, Is as resolveParam, It as SelectorBasedOn, J as textureCache, Ja as SignalMathData, Ji as MediaMetadataSchema, Jn as getScramblePool, Jo as findSourceAsset, Jr as ConfigHandle, Js as updateClockSignals, Jt as SpringPhysics, K as shaderStore, Ka as SignalGateData, Ki as MIME_TYPES, Kn as generateArcLengthLUT, Ko as deserializeSignalData, Kr as Color, Ks as takeRenderDiagnostics, Kt as Spatial3DProperties, La as Seconds, Li as HandleLabel, Ln as evaluateCubicBezier, Lo as assertNever, Lr as BaseMediaOperationProps, Ls as resolveString, Lt as SelectorBasedOnSchema, Ma as ProgrammaticSignal, Mi as GeneratorSignalDataSchema, Mn as computeLineLeadingDisplacement, Mo as VisionTask, Mr as AnimationTypeSchema, Ms as reportRenderDiagnostic, Mt as ParticleDissolveConfig, Na as ProgrammaticSignalOptions, Ni as GlobalCompositeOperation, Nn as computeRangeSelectorWeight, No as VisionVariant, Nr as AnyOutputUnion, Ns as resolveBoolean, Nt as ParticleDissolveConfigSchema, Oa as ParsedGradient, Oi as FrameSignal, On as VolumetricFormationMode, Oo as VirtualMediaData, Or as Vector3Math, Os as programmaticSignal, Ot as LineSpacingDynamics, Pa as Radians, Pi as Gradient, Pn as deterministicWigglyNoise, Po as WritableSignal, Pr as AnyOutputUnionSchema, Ps as resolveMediaMimeType, Pt as PathChainLUT, Q as AdvancedTextAnimatorBuilder, Qa as SignalValue, Qi as MediaSourceDescriptor, Qn as sampleCurveGeometry, Qo as frameArraySignal, Qr as ControlNetConditioningOutputs, Qt as TextAnimatorBuilder, R as inputStore, Ra as SegmentationOptions, Ri as HandleType, Rn as evaluateCubicBezierDerivative, Ro as checkNodeResultCache, Rr as BaseMediaOperationPropsSchema, Rs as rgbToOklab, Rt as SelectorMode, S as Renderer2D, Sa as NormalizedLandmarkList, Si as FileAssetSchema, Sn as VariableFontAxes, So as VideoLayerType, Sr as Path3D, Ss as normalizeColorStops, St as GlyphAnchorGrouping, T as SSAOPipeline, Ta as Output, Ti as Fps, Tn as Vec2Schema, To as VideoStylePropsSchema, Tr as ResolvedEnvironment, Ts as parseCssColor, Tt as GlyphAnchorPointSchema, U as parseFBX, Ua as SignalContext, Ui as JsonValueSchema, Un as evaluateSpringProgress, Uo as createVirtualMedia, Ur as COMPOSITE_OPERATIONS, Us as signalBuilder, Ut as SelectorUnitsSchema, V as loadOBJ, Va as SignalChannelMeta, Vi as JsonObject, Vn as evaluateSelectorCombination, Vo as cosineSignal, Vr as Brand, Vs as serializeSignalData, Vt as SelectorShapeSchema, W as parseMTL, Wa as SignalData, Wi as Landmark3D, Wn as evaluateTypewriterState, Wo as dataTypeColors, Wr as COMPOSITOR_DEFAULTS, Ws as sineSignal, Wt as SkewProperties, X as AETextAnimatorSchema, Xa as SignalStats, Xi as MediaOperationSchema, Xn as parseSvgPathToCubicBeziers, Xo as fps, Xr as ConfigSchemaRegistry, Xt as TextAnchorConfig, Y as AETextAnimator, Ya as SignalMathDataSchema, Yi as MediaOperation, Yn as getShuffledOrder, Yo as formatHex, Yr as ConfigHandleSchema, Yt as SpringPhysicsSchema, Z as AdvancedTextAnimator, Za as SignalStatsSchema, Zi as MediaService, Zn as sampleAudioSpectrumScale, Zo as frame, Zr as ConnectedInput, Zt as TextAnchorConfigSchema, _ as Mesh3DData, _a as NodeValidationFn, _i as ExportResultSchema, _n as TextWigglySelectorSchema, _o as TransitionSchema, _r as LightKind, _s as isVirtualMediaData, _t as ExpressionEvaluationContext, a as AudioMeshDeformPipeline, aa as MultiOutputGeneric, ai as DataTypeEnum, an as TextPathOptionsSchema, ao as TensorData, ar as CatmullRomOptions, as as getMediaType, at as AnimatableGlyphPropsSchema, b as NodeAnimationTrack3D, ba as NormalRelightingOptions, bi as FaceLandmarksOptions, bn as TypingCadence, bo as VideoAnimation, br as Mat4, bs as ms, bt as ExtendedGlyphProperties, c as BlendMode, ca as NodeInputConnection, ci as DeflickerOptions, cn as TextRangeSelector, co as TensorNode, cr as Environment3DFog, cs as handleId, ct as AudioSpectrumTypographySchema, d as EffectPipeline, da as NodeOperation, di as DetectedObject, dn as TextScrambleConfigSchema, do as TextSpan, dr as FrustumPlanes, ds as isCssGradient, dt as CubicBezierSegment, ea as MediaSourceSchema, ei as DEFAULT_DURATION_MS, en as TextCursorConfigSchema, eo as SingleOutputGeneric, er as waveToCubicBeziers, es as generateId, et as AnchorGrouping, f as GlassPipeline, fa as NodeProcessorContext, fn as TextSelector, fo as TextSpanMark, fr as GPULightData, fs as isEqual, ft as CubicBezierSegmentSchema, g as Material3D, ga as NodeRunFunction, gi as ExportResult, gn as TextWigglySelector, go as TrackedObject, gr as Light3DOptions, gs as isValueSignal, gt as EnhancedTextNodeSchema, ha as NodeResultSchema, hi as EffectDomain, hn as TextSignalSelectorSchema, ho as TimelineTransformSchema, hr as Light3D, hs as isSignal, ht as EnhancedTextNode, i as AudioLatentTrackCache, ia as ModerationUnrefundableError, ii as DataType, in as TextPathOptions, io as TEXT_LAYER_DEFAULTS, ir as CameraShakeOptions, is as getLeafMediaType, it as AnimatableGlyphProps, j as SlugPipeline, ja as PoseSkeletonOptions, ji as GeneratorSignalData, jn as computeAnchorPivotOffset, jo as VisionNodeSpec, jr as AnimationType, js as registerSignalDependency, jt as LongShadowConfigSchema, k as Skeleton3D, ka as ParsedGradientStop, ki as GPUTextureBinding, kn as VolumetricFormationModeSchema, ko as VirtualMediaDataSchema, kr as parseColorToRgb, ks as progressSignal, kt as LineSpacingDynamicsSchema, l as Bone3D, la as NodeMetadata, li as Degrees, ln as TextRangeSelectorSchema, lo as TensorPipelineConfig, lr as Environment3DOptions, ls as handleLabel, lt as ChromaticGlitchConfig, m as LoadModelOptions, ma as NodeResult, mi as EffectConfigValue, mn as TextSignalSelector, mo as TimelineTransform, mr as LIGHT_UNIFORM_SIZE_BYTES, ms as isNormalized, mt as DynamicStrokePropertiesSchema, n as AudioLatentData, na as Milliseconds, ni as DEFAULT_MEDIA_DIMENSION, nn as TextCursorStyleSchema, no as SourceOperationSchema, nr as Camera3D, ns as getFileDataMetadata, nt as AnchorPreset, oa as MultiOutputGenericSchema, oi as DataTypeVal, on as TextPathSource, oo as TensorDimensions, or as CirclePathOptions, os as getRenderFingerprint, ot as ArcLengthLUTEntry, p as GpuAdapterDescription, pa as NodeProcessorParams, pi as EffectConfig, pn as TextSelectorSchema, po as TimelineSegmentSchema, pr as HelixOptions, ps as isFrameIndex, pt as DynamicStrokeProperties, q as signalRegistry, qa as SignalGateDataSchema, qi as MediaMetadata, qn as generatePathSegments, qo as extractSvgDimensions, qr as ColorStopLike, qs as timeSignal, qt as Spatial3DPropertiesSchema, r as AudioLatentEngine, ra as ModerationError, ri as DataForType, rn as TextPathBuilder, ro as StorageService, rr as Camera3DPose, rs as getFingerprint, rt as AnchorPresetSchema, sa as NodeId, si as DataTypes, sn as TextPathSourceSchema, so as TensorFormat, sr as ENVIRONMENT_PRESETS, ss as gradientStopsToOklab, st as AudioSpectrumTypography, t as AnimationClip3D, ta as MeshAudioDeformConfig, ti as DEFAULT_FPS, tn as TextCursorStyle, to as SingleOutputGenericSchema, tr as BezierSegment3D, ts as getActiveMediaMetadata, tt as AnchorGroupingSchema, ua as NodeMetadataSchema, ui as DepthNormalsOptions, un as TextScrambleConfig, uo as TextOperationSchema, ur as FrustumPlane, us as hasOnlySingleSource, ut as ChromaticGlitchConfigSchema, v as Model3DData, va as NodeVisualConfig, vi as ExtendedLayer, vn as TypewriterAnimator, vo as TransitionType, vr as LightsUniformData, vs as limitGradientStops, vt as ExpressionSelector, wa as OpticalFlowOptions, wi as FileDataSchema, wn as Vec2, wo as VideoSpatialPropsSchema, wr as Path3DSample, ws as oklabToRgb, wt as GlyphAnchorPoint, x as RenderContextValue, xa as Normalized, xi as FileAsset, xn as TypingCadenceSchema, xo as VideoAnimationSchema, xr as Matrix4Math, xs as nodeId, xt as ExtendedGlyphPropertiesSchema, y as MotionBlurPipeline, ya as NodeVisualConfigSchema, yi as ExtendedLayerSchema, yn as TypewriterAnimatorSchema, yo as TransitionTypeSchema, yr as MAX_LIGHTS, ys as mixColors, yt as ExpressionSelectorSchema, z as loadFBX, za as Signal, zi as HandleTypeVal, zn as evaluateExpressionSelector, zo as computeVideoCropRenderProps, zr as BaseVideoLayerProps, zs as sampleColorStops, zt as SelectorModeSchema } from "./index-C6awQk4-.mjs";
|
|
3
|
+
import { a as SfxTrigger, c as softLimit, g as mixAudioTracks, i as SfxRenderContext, n as encodeStereoWav, o as mixSfxInto, r as RenderedSfx, s as renderSfx } from "./index-Dbwf24s4.mjs";
|
|
4
|
+
import "./renderer-sg-ffvVd.mjs";
|
|
5
|
+
import "./renderer-vTsc6CpO.mjs";
|
|
6
|
+
import { $ as InterpolateOptions, $a as MediaAnimatableProp, $i as themes, $n as Cue, $t as PoseKeypointName, A as Physics, Aa as CompositorProgramSchema, An as QueueStatus, Ao as WiggleOptions, At as Plane3DOptions, B as FieldSample2D, Ba as Keyframe, Bo as evaluateTrackAtFrame, Bt as BodyCommonOptions, C as TrackEditing, Ca as CarrierHandoffConfig, Cn as span, Co as TextNode, Ct as Cube3DOptions, D as section, Da as ColorStop, Dn as AiConfig, Do as ToneMapping, Dt as ExtrudedText3DOptions, E as editTrackedRegion, Ea as ColorSignalOptions, En as Ai, Eo as TextSpanSchema, Et as Cylinder3DOptions, F as PhysicsRope3DOptions, Fa as EnvironmentPreset, Fo as computeCarrierContinuity, Ft as Sphere3DOptions, G as PhysicsSpringOptions, Ga as LightNode, Gt as EmitterShape, H as PhysicsGroundOptions, Ha as LayerAnimation, Ho as lintComposition, Ht as PhysicsCollision, I as PhysicsSpring3DOptions, Ia as EnvironmentPresetSchema, Io as computeLayout, It as Surface3DOptions, J as World2DOptions, Ja as LightTypeSchema, Jt as ParticleShape, K as PhysicsWallsOptions, Ka as LightNodeSchema, Kn as BaseProps, Kt as ParticleBlend, L as PhysicsWorld3D, La as FlexNode, Ln as Anchor, Lo as computeLayoutSync, Lt as Text3DOptions, M as FieldSample3D, Ma as EaseRef, Mi as pulseKeys, Mn as RunOptions, Mo as calculateSequenceTimeline, Mt as Prism3DOptions, N as PhysicsBody3D, Na as EnvironmentFog, Nn as ValidationError, No as collectNodeOps, Nt as RoundedBox3DOptions, O as StyleName, Oa as ColorStopSchema, On as ApiError, Oo as ToneMappingSchema, Ot as Grid3DOptions, P as PhysicsBox3D, Pa as EnvironmentFogSchema, Pn as ai, Po as compositorToProgram, Pr as Target, Pt as Shape3DContainer, Q as Easing, Qa as MatteModeSchema, Qt as PersonTrack, R as World3DOptions, Ra as FlexNodeSchema, Ro as computeStaggerDelay, Rr as Theme, Rt as Particles, S as SubjectSandwichOptions, Sa as CameraShake, Sn as size, So as TextAnimatorSchema, Sr as MotionPreset, St as Carousel3DOptions, T as blurRegion, Ta as CarrierState, Tn as sup, To as TextSpanMarkSchema, Tt as CubeFaceInput, U as PhysicsRect, Ua as LayoutNode, Un as AudioLevels, Uo as mergeAnimationTracks, Ut as PhysicsDriver, V as PhysicsBody2D, Va as KeyframeTuple, Vo as hoistMattes, Vt as PhysicsBakeOptions, W as PhysicsRopeOptions, Wa as LayoutNodeSchema, Wt as PhysicsWorldOptions, X as LightingRig, Xa as MaterialTypeSchema, Xt as ClipVisionOptions, Y as Lighting, Ya as MaterialType, Yt as ClipVision, Z as LightingRigOptions, Za as MatteMode, Zt as PersonPlacement, _ as RenderVideoResult, _a as CameraAnimation, _n as italic, _o as SignalTrackOptions, _t as SequenceEntry, a as AnimatableNode, an as ChartPadding, ao as Scene, at as computeStrokeRect, b as SmartFramingOptions, ba as CameraNode, bn as parseMarkup, bo as TextAnimatableProp, bt as TransitionDirection, c as CompositionOptions, cn as ChartType, co as SceneOptions, ct as measureSpring, d as EnvironmentOptions, da as AnimationTrack, dn as MarkOptions, do as Sequence, dt as preloadCompositionFonts, en as ChartAnimationOptions, eo as MediaNode, er as Cues, et as SpringConfig, f as Layer, fa as BlockNode, fn as TextSpanItem, fo as SequenceOptions, ft as preloadFont, g as RenderVideoOptions, ga as BoxNodeSchema, gn as color, go as ShapeNodeSchema, gt as SceneSequenceOptions, h as NodeCapability, ha as BoxNode, hn as code, ho as ShapeNode, ht as springCalculation, i as analyzeAudio, in as ChartOptions, io as Model3DNodeSchema, it as bezier, j as Body3DOptions, ja as CompositorToProgramOptions, jn as Result, jo as applyStaggerToChildren, jt as Primitive3DNodeOptions, k as Styles, ka as CompositorProgramConfig, kn as FRAMEFIELDS_AI_PROXY_URL, ko as TrackSource, kt as Layer3D, l as EditableObjectTrack, la as AnimatableProp, ln as ChartX, lo as SceneTransitionType, lt as measureText, m as Media, ma as BloomConfigSchema, mn as bold, mo as ShapeAnimatableProp, mt as spring, n as bindComponent, nn as ChartCandle, no as Model3DAnimatableProp, nt as TextMeasureResult, o as CompatibleEffect, on as ChartSeries, oo as SceneDefinition, ot as interpolate, p as Light, pa as BloomConfig, pi as defineTheme, pn as accent, po as SequenceTimelineResult, pt as requiresIsolation, q as PhysicsWorld2D, qa as LightType, qt as ParticleBounds, rn as ChartDatum, ro as Model3DNode, rt as TextMeasureStyle, s as Composition, sn as ChartSlice, so as SceneDefinitionSchema, st as mapBlendModeToSkia, t as ComponentNode, tn as ChartAxisOptions, to as MediaNodeSchema, tt as StrokeRect, u as Effect, ua as AnimatablePropsFor, un as DEFAULT_CHART_COLORS, uo as SceneTransitionTypeSchema, ut as measureTextAsync, v as SectionNode, va as CameraDoF, vn as mark, vo as SizeSpec, vt as SequenceNode, w as TrackedRegionOptions, wa as CarrierHandoffConfigSchema, wn as sub, wo as TextNodeSchema, wt as CubeFaceConfig, x as SubjectOutlineOptions, xa as CameraNodeSchema, xn as rich, xo as TextAnimator, xt as TransitionSpec, y as SectionOptions, ya as CameraLens, yn as normalizeTextSpans, yo as SpringOptions, yt as Transition, z as Body2DOptions, za as FromToOptions, zo as evaluateAnimationAtFrame, zr as ThemeInput, zt as ParticlesOptions } from "./index-BlPLU_a1.mjs";
|
|
7
|
+
import "./index-BAXaZC6T.mjs";
|
|
8
|
+
import { n as AudioSignalOptions, r as ExtractedAudioSignalsBundle, t as AudioSignal } from "./audio-pIgFoKQ2.mjs";
|
|
9
9
|
import { a as RegisteredFont, i as RegisterFontOptions, n as MeasureTextOptions, o as TextMetrics, r as MeasuredGlyph, t as FontManager } from "./index-CalU-mpZ.mjs";
|
|
10
|
-
import { $ as TileOffsetEdgeMode, $n as ResizerScalerProps, $r as ObjectAnchorsSignals, $t as FlipProps, An as Paint, At as CameraParallax3DProps, B as PBRGlass, Bn as Pixelate, Bt as ContourProps, C as GradientMapProps, Ci as DepthNormalsComputePipeline, Cn as MeshWarp, Ct as AudioParametricEq, D as HalftoneScreen, Di as TensorSource, Dn as NoiseGeneratorProps, Dt as CRT, E as HalftoneMode, Ei as TensorPipeline, En as NoiseGenerator, Et as AudioReverbProps, F as LevelsProps, Fn as Painterly, Ft as ColorBalance, G as SSAOProps, Gn as ProceduralVFXProps, Gr as COCO17_KEYPOINTS, Gt as DatamoshProps, H as Relight3D, Hn as Posterize, I as Modulate, In as PainterlyProps, It as ColorBalanceProps, J as SelectiveColorProps, Jn as RefineEdge, Jt as Dither, K as SelectiveColor, Kn as RGBSplit, Kr as COCO17_KEYPOINT_NAMES, Kt as DisplacementMap, L as ModulateProps, Ln as PatchHeal, Lt as ColorKey, M as HighPassProps, Mt as ChannelMergerProps, N as LevelChannel, Nt as ChannelSplitter, O as HalftoneScreenProps, Oi as TensorViewExport, On as OpArt, Ot as CRTProps, P as Levels, Pt as ChannelSplitterProps, Q as TileOffset, Qn as ResizerScaler, Qr as ObjectAnchorName, Qt as Flip, R as MotionBlur, Rt as ColorKeyProps, S as GradientMap, Si as ControlNetMultiplexer, Sn as MaskMathProps, St as AudioNoiseGateProps, T as HalftoneDotShape, Ti as TemporalDeflickerPipeline, Tn as MeshWarpProps, Tt as AudioReverb, U as Relight3DProps, Un as PosterizeProps, Ut as CornerPinProps, V as PBRGlassProps, Vn as PixelateProps, Vt as CornerPin, W as SSAO, Wn as ProceduralVFX, Wr as COCO17_BONES, Wt as Datamosh, X as ShadowsHighlightsProps, Xn as RefractionCaustics3D, Xr as LandmarkCoordinateSignals, Xt as ExtractLUT, Y as ShadowsHighlights, Yn as RefineEdgeProps, Yr as InstanceMask, Yt as DitherProps, Z as TemporalDeflicker, Zn as RefractionCaustics3DProps, Zr as MaskTrackSignals, Zt as ExtractLUTProps, _ as EffectConfigMap, _i as VisionRunner, _t as AudioDelay, a as ApplyLUTProps, ai as PinToLandmarkOptions, an as KaleidoscopeProps, ar as Toon, b as FilmGrain, bi as pinNodeToObject, bn as LiquifyProps, bt as AudioFadeProps, c as Crop, ci as PoseResult, cn as KenBurnsProps, cr as TrailsProps, d as CurvesChannelPoint, di as SegmentationTexturePool, dt as Blur, ei as ObjectBoundingBoxSignals, en as Gooey, er as Rotate, et as TileOffsetProps, f as CurvesProps, fi as SpatialLandmarkTransformer, ft as BlurProps, g as DepthOfFieldProps, gi as VisionNode, gn as LayerStyleProps, gt as AudioCompressorProps, h as DepthOfField, hi as VisionBundle, ht as AudioCompressor, i as ApplyLUT, ii as PersonMatte, in as Kaleidoscope, it as VisionProps, j as HighPass, jn as PaintProps, jt as ChannelMerger, kn as OpArtProps, kt as CameraParallax3D, l as CropProps, li as PoseSkeletonRenderer, ln as LayerStyle, lr as Vignette, lt as effectFactories, m as DeflickerProps, mi as VisionAnalysisReport, mt as AsciiProps, n as AnyEffect, ni as ObjectKinematicsSignals, nn as Iridescence, nr as StereoPanning, nt as UnsharpMaskProps, o as AudioSignalExtractor, oi as PinToObjectOptions, on as KenBurns, or as ToonProps, p as CustomEffect, pi as TemporalObjectTracker, pt as Ascii, q as SelectiveColorAdjustment, qn as RGBSplitProps, qr as COCO_CLASSES, qt as DisplacementMapProps, r as AnyVisualEffect, ri as ObjectTrackSignals, rn as IridescenceProps, rr as StereoPanningProps, rt as Vision, s as AudioSignalExtractorProps, si as PoseLandmarkSignals, sr as Trails, t as AnyAudioEffect, ti as ObjectCollectionSignals, tn as GooeyProps, tr as RotateProps, tt as UnsharpMask, u as Curves, ui as SegmentationResult, ur as VignetteProps, ut as effectMeta, v as EffectOp, vi as analyzeSequence, vn as Liquify, vt as AudioDelayProps, w as GradientMapStop, wi as OpticalFlowComputePipeline, wt as AudioParametricEqProps, x as FilmGrainProps, xi as CannyComputePipeline, xn as MaskMath, xt as AudioNoiseGate, y as EffectPropsFor, yi as pinNodeToLandmark, yt as AudioFade, z as MotionBlurProps, zn as PatchHealProps, zt as Contour } from "./index-
|
|
11
|
-
import { _ as renderSemaphore, a as renderFrameGrid, c as HeadlessMediaRenderer, d as QaSegment, f as RenderProgress, g as formatQaReport, h as VideoQaStats, i as computeGridLayout, l as HeadlessWebGPURenderer, m as VideoQaReport, n as FrameGridRenderable, o as resolveSamplePoints, p as VideoQaOptions, r as FrameSamplePoint, s as AudioQaStats, t as FrameGridOptions, u as QaIssue, v as resetRenderCaches } from "./index-
|
|
12
|
-
import { a as startPreview, i as PreviewSource, n as PreviewOptions, r as PreviewSession, t as PreviewCloseReason } from "./index-
|
|
10
|
+
import { $ as TileOffsetEdgeMode, $n as ResizerScalerProps, $r as ObjectAnchorsSignals, $t as FlipProps, An as Paint, At as CameraParallax3DProps, B as PBRGlass, Bn as Pixelate, Bt as ContourProps, C as GradientMapProps, Ci as DepthNormalsComputePipeline, Cn as MeshWarp, Ct as AudioParametricEq, D as HalftoneScreen, Di as TensorSource, Dn as NoiseGeneratorProps, Dt as CRT, E as HalftoneMode, Ei as TensorPipeline, En as NoiseGenerator, Et as AudioReverbProps, F as LevelsProps, Fn as Painterly, Ft as ColorBalance, G as SSAOProps, Gn as ProceduralVFXProps, Gr as COCO17_KEYPOINTS, Gt as DatamoshProps, H as Relight3D, Hn as Posterize, I as Modulate, In as PainterlyProps, It as ColorBalanceProps, J as SelectiveColorProps, Jn as RefineEdge, Jt as Dither, K as SelectiveColor, Kn as RGBSplit, Kr as COCO17_KEYPOINT_NAMES, Kt as DisplacementMap, L as ModulateProps, Ln as PatchHeal, Lt as ColorKey, M as HighPassProps, Mt as ChannelMergerProps, N as LevelChannel, Nt as ChannelSplitter, O as HalftoneScreenProps, Oi as TensorViewExport, On as OpArt, Ot as CRTProps, P as Levels, Pt as ChannelSplitterProps, Q as TileOffset, Qn as ResizerScaler, Qr as ObjectAnchorName, Qt as Flip, R as MotionBlur, Rt as ColorKeyProps, S as GradientMap, Si as ControlNetMultiplexer, Sn as MaskMathProps, St as AudioNoiseGateProps, T as HalftoneDotShape, Ti as TemporalDeflickerPipeline, Tn as MeshWarpProps, Tt as AudioReverb, U as Relight3DProps, Un as PosterizeProps, Ut as CornerPinProps, V as PBRGlassProps, Vn as PixelateProps, Vt as CornerPin, W as SSAO, Wn as ProceduralVFX, Wr as COCO17_BONES, Wt as Datamosh, X as ShadowsHighlightsProps, Xn as RefractionCaustics3D, Xr as LandmarkCoordinateSignals, Xt as ExtractLUT, Y as ShadowsHighlights, Yn as RefineEdgeProps, Yr as InstanceMask, Yt as DitherProps, Z as TemporalDeflicker, Zn as RefractionCaustics3DProps, Zr as MaskTrackSignals, Zt as ExtractLUTProps, _ as EffectConfigMap, _i as VisionRunner, _t as AudioDelay, a as ApplyLUTProps, ai as PinToLandmarkOptions, an as KaleidoscopeProps, ar as Toon, b as FilmGrain, bi as pinNodeToObject, bn as LiquifyProps, bt as AudioFadeProps, c as Crop, ci as PoseResult, cn as KenBurnsProps, cr as TrailsProps, d as CurvesChannelPoint, di as SegmentationTexturePool, dt as Blur, ei as ObjectBoundingBoxSignals, en as Gooey, er as Rotate, et as TileOffsetProps, f as CurvesProps, fi as SpatialLandmarkTransformer, ft as BlurProps, g as DepthOfFieldProps, gi as VisionNode, gn as LayerStyleProps, gt as AudioCompressorProps, h as DepthOfField, hi as VisionBundle, ht as AudioCompressor, i as ApplyLUT, ii as PersonMatte, in as Kaleidoscope, it as VisionProps, j as HighPass, jn as PaintProps, jt as ChannelMerger, kn as OpArtProps, kt as CameraParallax3D, l as CropProps, li as PoseSkeletonRenderer, ln as LayerStyle, lr as Vignette, lt as effectFactories, m as DeflickerProps, mi as VisionAnalysisReport, mt as AsciiProps, n as AnyEffect, ni as ObjectKinematicsSignals, nn as Iridescence, nr as StereoPanning, nt as UnsharpMaskProps, o as AudioSignalExtractor, oi as PinToObjectOptions, on as KenBurns, or as ToonProps, p as CustomEffect, pi as TemporalObjectTracker, pt as Ascii, q as SelectiveColorAdjustment, qn as RGBSplitProps, qr as COCO_CLASSES, qt as DisplacementMapProps, r as AnyVisualEffect, ri as ObjectTrackSignals, rn as IridescenceProps, rr as StereoPanningProps, rt as Vision, s as AudioSignalExtractorProps, si as PoseLandmarkSignals, sr as Trails, t as AnyAudioEffect, ti as ObjectCollectionSignals, tn as GooeyProps, tr as RotateProps, tt as UnsharpMask, u as Curves, ui as SegmentationResult, ur as VignetteProps, ut as effectMeta, v as EffectOp, vi as analyzeSequence, vn as Liquify, vt as AudioDelayProps, w as GradientMapStop, wi as OpticalFlowComputePipeline, wt as AudioParametricEqProps, x as FilmGrainProps, xi as CannyComputePipeline, xn as MaskMath, xt as AudioNoiseGate, y as EffectPropsFor, yi as pinNodeToLandmark, yt as AudioFade, z as MotionBlurProps, zn as PatchHealProps, zt as Contour } from "./index-CEsl2BcF.mjs";
|
|
11
|
+
import { _ as renderSemaphore, a as renderFrameGrid, c as HeadlessMediaRenderer, d as QaSegment, f as RenderProgress, g as formatQaReport, h as VideoQaStats, i as computeGridLayout, l as HeadlessWebGPURenderer, m as VideoQaReport, n as FrameGridRenderable, o as resolveSamplePoints, p as VideoQaOptions, r as FrameSamplePoint, s as AudioQaStats, t as FrameGridOptions, u as QaIssue, v as resetRenderCaches } from "./index-DPP5g-Si.mjs";
|
|
12
|
+
import { a as startPreview, i as PreviewSource, n as PreviewOptions, r as PreviewSession, t as PreviewCloseReason } from "./index-BE1KdTQ7.mjs";
|
|
13
13
|
export { AETextAnimator, AETextAnimatorSchema, AdvancedTextAnimator, AdvancedTextAnimatorBuilder, AdvancedTextAnimatorSchema, Ai, AiConfig, Anchor, AnchorGrouping, AnchorGroupingSchema, AnchorPreset, AnchorPresetSchema, AnimatableGlyphProps, AnimatableGlyphPropsSchema, AnimatableNode, AnimatableProp, AnimatablePropsFor, AnimationClip3D, AnimationTrack, AnimationType, AnimationTypeSchema, AnyAudioEffect, AnyEffect, AnyOutputUnion, AnyOutputUnionSchema, AnyVisualEffect, ApiError, ApplyLUT, ApplyLUTProps, ArcLengthLUTEntry, Ascii, AsciiProps, AudioCompressor, AudioCompressorProps, AudioDelay, AudioDelayProps, AudioExtractorSignalData, AudioExtractorSignalDataSchema, AudioFade, AudioFadeProps, AudioLatentData, AudioLatentEngine, AudioLatentTrackCache, AudioLevels, AudioMeshDeformPipeline, AudioNoiseGate, AudioNoiseGateProps, AudioParametricEq, AudioParametricEqProps, AudioQaStats, AudioReverb, AudioReverbProps, AudioSignal, AudioSignalExtractor, AudioSignalExtractorProps, AudioSignalOptions, AudioSpectrumTypography, AudioSpectrumTypographySchema, BaseMediaOperationProps, BaseMediaOperationPropsSchema, BaseProps, BaseVideoLayerProps, BaseVideoLayerPropsSchema, BezierSegment3D, BlendMode, BlockNode, BloomConfig, BloomConfigSchema, Blur, BlurProps, Body2DOptions, Body3DOptions, BodyCommonOptions, Bone3D, BoxNode, BoxNodeSchema, Brand, CAPTION_LAYER_DEFAULTS, COCO17_BONES, COCO17_KEYPOINTS, COCO17_KEYPOINT_NAMES, COCO_CLASSES, COMPOSITE_OPERATIONS, COMPOSITOR_DEFAULTS, CRT, CRTProps, Camera3D, Camera3DPose, CameraAnimation, CameraDoF, CameraLens, CameraNode, CameraNodeSchema, CameraParallax3D, CameraParallax3DProps, CameraShake, CameraShakeOptions, CannyComputePipeline, CannyOptions, Carousel3DOptions, CarrierHandoffConfig, CarrierHandoffConfigSchema, CarrierState, CatmullRomOptions, ChannelMerger, ChannelMergerProps, ChannelSplitter, ChannelSplitterProps, ChartAnimationOptions, ChartAxisOptions, ChartCandle, ChartDatum, ChartOptions, ChartPadding, ChartSeries, ChartSlice, ChartType, ChartX, ChromaticGlitchConfig, ChromaticGlitchConfigSchema, CirclePathOptions, ClipVision, ClipVisionOptions, Color, ColorBalance, ColorBalanceProps, ColorKey, ColorKeyProps, ColorSignalOptions, ColorStop, ColorStopLike, ColorStopSchema, CompatibleEffect, ComponentNode, Composition, CompositionOptions, CompositorProgramConfig, CompositorProgramSchema, CompositorToProgramOptions, ConfigHandle, ConfigHandleSchema, ConfigSchemaRegistry, ConnectedInput, Contour, ContourProps, ControlNetConditioningOutputs, ControlNetMultiplexer, CornerPin, CornerPinProps, Crop, CropProps, Cube3DOptions, CubeFaceConfig, CubeFaceInput, CubicBezierSegment, CubicBezierSegmentSchema, Cue, Cues, Curves, CurvesChannelPoint, CurvesProps, CustomEffect, Cylinder3DOptions, DATA_TYPE_EXTENSIONS, DEFAULT_CHART_COLORS, DEFAULT_DURATION_MS, DEFAULT_FPS, DEFAULT_MEDIA_DIMENSION, DataForType, DataType, DataTypeEnum, DataTypeVal, DataTypes, Datamosh, DatamoshProps, DeflickerOptions, DeflickerProps, Degrees, DepthNormalsComputePipeline, DepthNormalsOptions, DepthOfField, DepthOfFieldProps, DetectedObject, DisplacementMap, DisplacementMapProps, Dither, DitherProps, DynamicStrokeProperties, DynamicStrokePropertiesSchema, ENVIRONMENT_PRESETS, EaseRef, Easing, EditableObjectTrack, Effect, EffectConfig, EffectConfigMap, EffectConfigValue, EffectDomain, EffectOp, EffectPipeline, EffectPropsFor, EmitterShape, EnhancedTextNode, EnhancedTextNodeSchema, Environment3DFog, Environment3DOptions, EnvironmentFog, EnvironmentFogSchema, EnvironmentOptions, EnvironmentPreset, EnvironmentPresetSchema, ExportResult, ExportResultSchema, ExpressionEvaluationContext, ExpressionSelector, ExpressionSelectorSchema, ExtendedGlyphProperties, ExtendedGlyphPropertiesSchema, ExtendedLayer, ExtendedLayerSchema, ExtractLUT, ExtractLUTProps, ExtractedAudioSignalsBundle, ExtrudedText3DOptions, FRAMEFIELDS_AI_PROXY_URL, FaceLandmarksOptions, FieldSample2D, FieldSample3D, FileAsset, FileAssetSchema, FileData, FileDataSchema, FilmGrain, FilmGrainProps, FlexNode, FlexNodeSchema, Flip, FlipProps, FontManager, Fps, FrameContext, FrameGridOptions, FrameGridRenderable, FrameIndex, FrameSamplePoint, FrameSignal, FromToOptions, FrustumPlane, FrustumPlanes, GPULightData, GPUTextureBinding, GateSignalOptions, GeneratorSignalData, GeneratorSignalDataSchema, GlassPipeline, GlobalCompositeOperation, GlyphAnchorGrouping, GlyphAnchorGroupingSchema, GlyphAnchorPoint, GlyphAnchorPointSchema, Gooey, GooeyProps, GpuAdapterDescription, Gradient, GradientMap, GradientMapProps, GradientMapStop, GradientType, Grid3DOptions, HalftoneDotShape, HalftoneMode, HalftoneScreen, HalftoneScreenProps, HandleId, HandleLabel, HandleType, HandleTypeVal, HeadlessMediaRenderer, HeadlessWebGPURenderer, HelixOptions, HighPass, HighPassProps, InstanceMask, InterpolateOptions, Iridescence, IridescenceProps, JsonArray, JsonObject, JsonValue, JsonValueSchema, Kaleidoscope, KaleidoscopeProps, KenBurns, KenBurnsProps, Keyframe, KeyframeTuple, KineticMarqueeConfig, KineticMarqueeConfigSchema, LIGHT_UNIFORM_SIZE_BYTES, Landmark3D, LandmarkCoordinateSignals, Layer, Layer3D, LayerAnimation, LayerStyle, LayerStyleProps, LayoutNode, LayoutNodeSchema, LevelChannel, Levels, LevelsProps, Light, Light3D, Light3DOptions, LightKind, LightNode, LightNodeSchema, LightType, LightTypeSchema, Lighting, LightingRig, LightingRigOptions, LightsUniformData, LineSpacingDynamics, LineSpacingDynamicsSchema, Liquify, LiquifyProps, LoadModelOptions, LongShadowConfig, LongShadowConfigSchema, MAX_GRADIENT_STOPS, MAX_LIGHTS, MIME_TYPES, MarkOptions, MaskMath, MaskMathProps, MaskTrackSignals, Mat4, Material3D, MaterialType, MaterialTypeSchema, Matrix4Math, MatteMode, MatteModeSchema, MeasureTextOptions, MeasuredGlyph, Media, MediaAnimatableProp, MediaMetadata, MediaMetadataSchema, MediaNode, MediaNodeSchema, MediaOperation, MediaOperationSchema, MediaService, MediaSourceDescriptor, MediaSourceInput, MediaSourceSchema, Mesh3DData, MeshAudioDeformConfig, MeshWarp, MeshWarpProps, Milliseconds, Model3DAnimatableProp, Model3DData, Model3DNode, Model3DNodeSchema, ModerationError, ModerationUnrefundableError, Modulate, ModulateProps, MotionBlur, MotionBlurPipeline, MotionBlurProps, MotionPreset, MultiOutputGeneric, MultiOutputGenericSchema, NodeAnimationTrack3D, NodeCapability, NodeId, NodeInputConnection, NodeMetadata, NodeMetadataSchema, NodeOperation, NodeProcessorContext, NodeProcessorParams, NodeResult, NodeResultSchema, NodeRunFunction, NodeValidationFn, NodeVisualConfig, NodeVisualConfigSchema, NoiseGenerator, NoiseGeneratorProps, NormalRelightingOptions, Normalized, NormalizedLandmarkList, ObjectAnchorName, ObjectAnchorsSignals, ObjectBoundingBox, ObjectBoundingBoxSignals, ObjectCollectionSignals, ObjectKinematicsSignals, ObjectTrackSignals, OpArt, OpArtProps, OpticalFlowComputePipeline, OpticalFlowOptions, Output, OutputItem, OutputItemSchema, PBRGlass, PBRGlassProps, Paint, PaintProps, Painterly, PainterlyProps, ParsedGradient, ParsedGradientStop, ParticleBlend, ParticleBounds, ParticleDissolveConfig, ParticleDissolveConfigSchema, ParticleShape, Particles, ParticlesOptions, PatchHeal, PatchHealProps, Path3D, Path3DPoint, Path3DSample, PathChainLUT, PathChainLUTEntry, PersonMatte, PersonPlacement, PersonTrack, Physics, PhysicsBakeOptions, PhysicsBody2D, PhysicsBody3D, PhysicsBox3D, PhysicsCollision, PhysicsDriver, PhysicsGroundOptions, PhysicsRect, PhysicsRope3DOptions, PhysicsRopeOptions, PhysicsSpring3DOptions, PhysicsSpringOptions, PhysicsWallsOptions, PhysicsWorld2D, PhysicsWorld3D, PhysicsWorldOptions, PinToLandmarkOptions, PinToObjectOptions, Pixelate, PixelateProps, Pixels, Plane3DOptions, PoseKeypointName, PoseLandmarkSignals, PoseResult, PoseSkeletonOptions, PoseSkeletonRenderer, Posterize, PosterizeProps, PreviewCloseReason, PreviewOptions, PreviewSession, PreviewSource, Primitive3DNodeOptions, Prism3DOptions, ProceduralVFX, ProceduralVFXProps, ProgrammaticSignal, ProgrammaticSignalOptions, QaIssue, QaSegment, QueueStatus, RGBSplit, RGBSplitProps, Radians, RefineEdge, RefineEdgeProps, RefractionCaustics3D, RefractionCaustics3DProps, RegisterFontOptions, RegisteredFont, Relight3D, Relight3DProps, RenderContextValue, RenderDiagnostic, RenderProgress, RenderVideoOptions, RenderVideoResult, RenderedSfx, Renderer2D, Renderer3D, ResizerScaler, ResizerScalerProps, ResolvedEnvironment, Result, Rgba, Rotate, RotateProps, RoundedBox3DOptions, RunOptions, SSAO, SSAOPipeline, SSAOProps, Scene, SceneDefinition, SceneDefinitionSchema, SceneOptions, SceneSequenceOptions, SceneTransitionType, SceneTransitionTypeSchema, Seconds, SectionNode, SectionOptions, SegmentationOptions, SegmentationResult, SegmentationTexturePool, SelectiveColor, SelectiveColorAdjustment, SelectiveColorProps, SelectorBasedOn, SelectorBasedOnSchema, SelectorMode, SelectorModeSchema, SelectorShape, SelectorShapeSchema, SelectorUnits, SelectorUnitsSchema, Sequence, SequenceEntry, SequenceNode, SequenceOptions, SequenceTimelineResult, SfxRenderContext, SfxTrigger, ShadowPipeline, ShadowUniformInfo, ShadowsHighlights, ShadowsHighlightsProps, Shape3DContainer, ShapeAnimatableProp, ShapeNode, ShapeNodeSchema, Signal, SignalBuilderConfig, SignalChannelMeta, SignalChannelMetaSchema, SignalContext, SignalData, SignalDataSchema, SignalGateData, SignalGateDataSchema, SignalMathData, SignalMathDataSchema, SignalStats, SignalStatsSchema, SignalTrackOptions, SignalValue, SineSignalOptions, SingleOutputGeneric, SingleOutputGenericSchema, SizeSpec, Skeleton3D, SkewProperties, SkewPropertiesSchema, SlugFontCache, SlugPipeline, SmartFramingOptions, SourceOperationSchema, Spatial3DProperties, Spatial3DPropertiesSchema, SpatialLandmarkTransformer, Sphere3DOptions, SpringConfig, SpringOptions, SpringPhysics, SpringPhysicsSchema, StereoPanning, StereoPanningProps, StorageService, StrokeRect, StyleName, Styles, SubjectOutlineOptions, SubjectSandwichOptions, Surface3DOptions, TEXT_LAYER_DEFAULTS, Target, TemporalDeflicker, TemporalDeflickerPipeline, TemporalObjectTracker, TensorData, TensorDimensions, TensorFormat, TensorNode, TensorPipeline, TensorPipelineConfig, TensorSource, TensorViewExport, Text3DOptions, TextAnchorConfig, TextAnchorConfigSchema, TextAnimatableProp, TextAnimator, TextAnimatorBuilder, TextAnimatorSchema, TextCursorConfig, TextCursorConfigSchema, TextCursorStyle, TextCursorStyleSchema, TextMeasureResult, TextMeasureStyle, TextMetrics, TextNode, TextNodeSchema, TextOperationSchema, TextPathBuilder, TextPathOptions, TextPathOptionsSchema, TextPathSource, TextPathSourceSchema, TextRangeSelector, TextRangeSelectorSchema, TextScrambleConfig, TextScrambleConfigSchema, TextSelector, TextSelectorSchema, TextSignalSelector, TextSignalSelectorSchema, TextSpan, TextSpanItem, TextSpanMark, TextSpanMarkSchema, TextSpanSchema, TextWigglySelector, TextWigglySelectorSchema, Theme, ThemeInput, TileOffset, TileOffsetEdgeMode, TileOffsetProps, TimelineSegmentSchema, TimelineTransform, TimelineTransformSchema, ToneMapping, ToneMappingSchema, Toon, ToonProps, TrackEditing, TrackSource, TrackedObject, TrackedRegionOptions, Trails, TrailsProps, Transition, TransitionDirection, TransitionSchema, TransitionSpec, TransitionType, TransitionTypeSchema, TypewriterAnimator, TypewriterAnimatorSchema, TypingCadence, TypingCadenceSchema, UnsharpMask, UnsharpMaskProps, ValidationError, VariableFontAxes, VariableFontAxesSchema, Vec2, Vec2Schema, Vec3, Vector3Math, VideoAnimation, VideoAnimationSchema, VideoLayerType, VideoLayerTypeSchema, VideoQaOptions, VideoQaReport, VideoQaStats, VideoSpatialPropsSchema, VideoStylePropsSchema, VideoTextPropsSchema, VideoTimingPropsSchema, Vignette, VignetteProps, VirtualMediaData, VirtualMediaDataSchema, Vision, VisionAnalysisReport, VisionBundle, VisionConfig, VisionNode, VisionNodeSpec, VisionProps, VisionRunner, VisionTask, VisionVariant, VolumetricFormationConfig, VolumetricFormationConfigSchema, VolumetricFormationMode, VolumetricFormationModeSchema, WiggleOptions, World2DOptions, World3DOptions, WritableSignal, XYPosition, accent, ai, analyzeAudio, analyzeSequence, appendOperation, applyStaggerToChildren, assertNever, bezier, bindComponent, blurRegion, bold, buildPathLUT, calculateSequenceTimeline, checkNodeResultCache, code, collectNodeOps, color, compositorToProgram, computeAnchorPivotOffset, computeCarrierContinuity, computeGridLayout, computeLayout, computeLayoutSync, computeLineLeadingDisplacement, computeRangeSelectorWeight, computeStaggerDelay, computeStrokeRect, computeVideoCropRenderProps, computed, cosineSignal, createOutputItemSchema, createVirtualMedia, dataTypeColors, defineTheme, degrees, describeGpu, deserializeSignalData, deterministicWigglyNoise, distanceToCurveParameter, editTrackedRegion, effectFactories, effectMeta, ellipseToCubicBeziers, encodeStereoWav, ensureDevice, evaluateAnimationAtFrame, evaluateCubicBezier, evaluateCubicBezierDerivative, evaluateExpressionSelector, evaluateMarqueeOffset, evaluateSelectorCombination, evaluateSkewMatrix, evaluateSpringProgress, evaluateTrackAtFrame, evaluateTypewriterState, evaluateVolumetricFormation, extractSvgDimensions, findSourceAsset, formatHex, formatQaReport, fps, frame, frameArraySignal, frameSignal, generateArcLengthLUT, generateId, generatePathSegments, getActiveMediaMetadata, getFileDataMetadata, getFingerprint, getLeafMediaType, getMediaType, getRenderFingerprint, getScramblePool, getShuffledOrder, gradientStopsToOklab, handleId, handleLabel, hasOnlySingleSource, hoistMattes, inputStore, interpolate, isCssGradient, isEqual, isFrameIndex, isNormalized, isSignal, isValueSignal, isVirtualMediaData, italic, limitGradientStops, lintComposition, loadFBX, loadModel3D, loadOBJ, lutStore, mapBlendModeToSkia, mark, measureSpring, measureText, measureTextAsync, mergeAnimationTracks, mixAudioTracks, mixColors, mixSfxInto, ms, nodeId, normalizeColorStops, normalizeTextSpans, normalized, oklabToRgb, parseColorToRgb, parseCssColor, parseCssGradient, parseFBX, parseMTL, parseMarkup, parseOBJ, parseSvgPathToCubicBeziers, pinNodeToLandmark, pinNodeToObject, pixels, preloadCompositionFonts, preloadFont, programmaticSignal, progressSignal, pulseKeys, radians, registerSignalDependency, renderFrameGrid, renderSemaphore, renderSfx, reportRenderDiagnostic, requiresIsolation, resetRenderCaches, resolveBoolean, resolveEnvironment, resolveMediaMimeType, resolveNumber, resolveParam, resolveSamplePoints, resolveString, rgbToOklab, rich, sampleAudioSpectrumScale, sampleColorStops, sampleCurveGeometry, samplePathChainGeometry, seconds, section, serializeSignalData, shaderStore, signal, signalBuilder, signalRegistry, sineSignal, size, softLimit, span, spring, springCalculation, stampResult, startPreview, sub, sup, takeRenderDiagnostics, textureCache, themes, timeSignal, updateClockSignals, waveToCubicBeziers };
|
package/dist/preview/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import "../index-
|
|
3
|
-
import { a as startPreview, i as PreviewSource, n as PreviewOptions, r as PreviewSession, t as PreviewCloseReason } from "../index-
|
|
1
|
+
import "../index-C6awQk4-.mjs";
|
|
2
|
+
import "../index-DPP5g-Si.mjs";
|
|
3
|
+
import { a as startPreview, i as PreviewSource, n as PreviewOptions, r as PreviewSession, t as PreviewCloseReason } from "../index-BE1KdTQ7.mjs";
|
|
4
4
|
export { PreviewCloseReason, PreviewOptions, PreviewSession, PreviewSource, startPreview };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { F as describeGpu, L as initHeadlessWebGPU, p as GpuAdapterDescription } from "../index-
|
|
2
|
-
import { _ as renderSemaphore, a as renderFrameGrid, c as HeadlessMediaRenderer, d as QaSegment, f as RenderProgress, g as formatQaReport, h as VideoQaStats, i as computeGridLayout, l as HeadlessWebGPURenderer, m as VideoQaReport, n as FrameGridRenderable, o as resolveSamplePoints, p as VideoQaOptions, r as FrameSamplePoint, s as AudioQaStats, t as FrameGridOptions, u as QaIssue, v as resetRenderCaches } from "../index-
|
|
1
|
+
import { F as describeGpu, L as initHeadlessWebGPU, p as GpuAdapterDescription } from "../index-C6awQk4-.mjs";
|
|
2
|
+
import { _ as renderSemaphore, a as renderFrameGrid, c as HeadlessMediaRenderer, d as QaSegment, f as RenderProgress, g as formatQaReport, h as VideoQaStats, i as computeGridLayout, l as HeadlessWebGPURenderer, m as VideoQaReport, n as FrameGridRenderable, o as resolveSamplePoints, p as VideoQaOptions, r as FrameSamplePoint, s as AudioQaStats, t as FrameGridOptions, u as QaIssue, v as resetRenderCaches } from "../index-DPP5g-Si.mjs";
|
|
3
3
|
export { AudioQaStats, FrameGridOptions, FrameGridRenderable, FrameSamplePoint, GpuAdapterDescription, HeadlessMediaRenderer, HeadlessWebGPURenderer, QaIssue, QaSegment, RenderProgress, VideoQaOptions, VideoQaReport, VideoQaStats, computeGridLayout, describeGpu, formatQaReport, initHeadlessWebGPU, renderFrameGrid, renderSemaphore, resetRenderCaches, resolveSamplePoints };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ea as OutputItem, Oo as VirtualMediaData, Yi as MediaOperation, x as RenderContextValue } from "./index-
|
|
1
|
+
import { Ea as OutputItem, Oo as VirtualMediaData, Yi as MediaOperation, x as RenderContextValue } from "./index-C6awQk4-.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region ../node-sdk/dist/index-Dgzr2Wnb.d.mts
|
|
@@ -79,4 +79,4 @@ declare const SignalResultSchema: z.ZodObject<{
|
|
|
79
79
|
}, z.core.$strip>;
|
|
80
80
|
//#endregion
|
|
81
81
|
export { NodeRendererPlugin as n, WebGPUNodeRenderer as r, SignalResultSchema as t };
|
|
82
|
-
//# sourceMappingURL=renderer-
|
|
82
|
+
//# sourceMappingURL=renderer-sg-ffvVd.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer-COXKPofU.d.mts","names":["MediaOperation","NodeInputConnection","NodeOperation","SignalData","VirtualMediaData","isSignal","resolveBoolean","resolveNumber","resolveParam","resolveString","RenderContextValue","WebGPUNodeRendererArgs","WebGPUNodeRenderer","Parameters","FULLSCREEN_QUAD_WGSL","PREMULTIPLIED_BLEND","GPUBlendState","STRAIGHT_ALPHA_BLEND","FragmentBinding","GPUBindGroupLayoutEntry","Omit","fragmentBindGroupLayout","GPUDevice","GPUBindGroupLayout","texturesLayout","perDevice","T","FullscreenPipelineOptions","GPUShaderModule","GPUPipelineLayout","GPUTextureFormat","createFullscreenPipeline","GPURenderPipeline","DrawChildToTextureOptions","NodeRenderProps","Partial","GPUTexture","drawChildToTexture","GPUTextureView","Promise","beginTargetPass","GPURenderPassEncoder","drawTextureToTarget","signalTiming","NodeSignalData","SignalTextureContext","signalTextureView","drawFullscreenPass","GPUCommandEncoder","GPUBindGroup","Point2D","solveHomography","GPUCommandEncoder$1","globalThis","GPURenderPassEncoder$1","GPUTextureView$1","GPUTexture$1","TOperation","Record","AudioProcessorContext","AudioProcessor","Float32Array","resolveFrameNumber","unwrapFrameParam","NodeOperationInputs","HandleParam","SD","resolveHandleParam","resolveSignalField","isHandleConnected","NodeRendererPlugin","defineRenderer","Readonly","WebGPURegistry","webgpuRegistry","registerWebGPURenderer","TextureSourceOp","AudioProcessorRegistry","audioRegistry","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","R","S","U","V","W","X","Y","Z","_","a","b","c","d","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","webgpuRegistry","C","resolveFrameNumber","D","resolveSignalField","E","resolveParam","M","solveHomography","O","resolveString","S","resolveBoolean","T","resolveNumber","V","WebGPUNodeRendererArgs","_","audioRegistry","a","GPUTexture","b","isSignal","c","MediaOperation","d","NodeOperationInputs","f","NodeRenderProps","g","WebGPURegistry","h","WebGPUNodeRenderer","i","GPURenderPassEncoder","j","Point2D","k","unwrapFrameParam","l","NodeInputConnection","m","TextureSourceOp","n","AudioProcessorContext","o","GPUTextureView","p","NodeRendererPlugin","r","GPUCommandEncoder","s","HandleParam","t","AudioProcessor","u","NodeOperation","v","defineRenderer","w","resolveHandleParam","x","registerWebGPURenderer","y","isHandleConnected","_framefields_core0","FileDataSchema","MultiOutputGenericSchema","SingleOutputGenericSchema","VirtualMediaDataSchema","createOutputItemSchema","z","FieldMeta","FieldOptions","ConfigBuilder","TKey","TType","TShape","ZodRawShape","Record","ZodTypeAny","P","core","$strip","ZodObject","configBuilder","COMPOSITE_OPERATIONS","GlobalCompositeOperation","ZodEnum","ColorSchema","ZodString","ZodOptional","PercentageSchema","ZodNumber","DimensionSchema","AnimationSchema","ZodArray","StrokeSchema","ZodDefault","ImageResultSchema","ZodLiteral","OutputItem","$ZodTypeInternals","ZodType","ZodTuple","ImageResult","infer","VideoResultSchema","VideoResult","AudioResultSchema","AudioResult","TextResultSchema","TextResult","NumberResultSchema","NumberResult","SignalResultSchema","SignalResult","OperationInputsSchema","ZodBoolean","ZodUnknown","ZodNullable","ZodRecord"],"sources":["../../node-sdk/dist/index-Dgzr2Wnb.d.mts","../../node-sdk/dist/index.d.mts"],"sourcesContent":["import { MediaOperation, NodeInputConnection, NodeOperation, SignalData, VirtualMediaData, isSignal, resolveBoolean, resolveNumber, resolveParam, resolveString } from \"@framefields/core\";\nimport { RenderContextValue } from \"@framefields/webgpu-renderers\";\n\n//#region renderer/gpu.d.ts\n/** The argument object every WebGPU node renderer receives. */\ntype WebGPUNodeRendererArgs = Parameters<WebGPUNodeRenderer>[0];\n/**\n * Full-screen quad vertex stage: a 4-vertex triangle strip (draw(4)) that\n * hands `in.uv` (0,0 top-left → 1,1 bottom-right) to an `fs` reading `VSOut`.\n */\ndeclare const FULLSCREEN_QUAD_WGSL = \"\\nstruct VSOut {\\n @builtin(position) pos : vec4<f32>,\\n @location(0) uv : vec2<f32>,\\n};\\n\\n@vertex fn vs(@builtin(vertex_index) vi: u32) -> VSOut {\\n var pos = array<vec2<f32>, 4>(\\n vec2<f32>(-1.0, 1.0),\\n vec2<f32>(1.0, 1.0),\\n vec2<f32>(-1.0, -1.0),\\n vec2<f32>(1.0, -1.0)\\n );\\n var uv = array<vec2<f32>, 4>(\\n vec2<f32>(0.0, 0.0),\\n vec2<f32>(1.0, 0.0),\\n vec2<f32>(0.0, 1.0),\\n vec2<f32>(1.0, 1.0)\\n );\\n return VSOut(vec4<f32>(pos[vi], 0.0, 1.0), uv[vi]);\\n}\\n\";\n/** Premultiplied-alpha \"over\" blending. */\ndeclare const PREMULTIPLIED_BLEND: GPUBlendState;\n/** Straight-alpha color over a premultiplied-alpha accumulation. */\ndeclare const STRAIGHT_ALPHA_BLEND: GPUBlendState;\n/**\n * One bind-group entry, visible to the fragment stage unless it says\n * otherwise: `\"uniform\"` buffer, `\"texture\"` (filterable float 2D) or\n * `\"sampler\"` (filtering), or any other entry minus its binding index.\n */\ntype FragmentBinding = \"uniform\" | \"texture\" | \"sampler\" | Omit<GPUBindGroupLayoutEntry, \"binding\" | \"visibility\"> | Omit<GPUBindGroupLayoutEntry, \"binding\">;\n/** A bind group layout whose entries are bound at 0, 1, 2… in order. */\ndeclare function fragmentBindGroupLayout(device: GPUDevice, bindings: FragmentBinding[], label?: string): GPUBindGroupLayout;\n/** `count` float textures followed by one filtering sampler. */\ndeclare function texturesLayout(device: GPUDevice, count: number): GPUBindGroupLayout;\n/** Memoizes `create` per GPUDevice (resources can't cross devices). */\ndeclare function perDevice<T>(create: (device: GPUDevice) => T): (device: GPUDevice) => T;\ninterface FullscreenPipelineOptions {\n label?: string;\n module: GPUShaderModule;\n layouts: GPUBindGroupLayout[] | GPUPipelineLayout;\n format: GPUTextureFormat;\n blend?: GPUBlendState;\n /** Defaults to \"vs\". */\n vertexEntryPoint?: string;\n /** Defaults to \"fs\". */\n fragmentEntryPoint?: string;\n}\n/** A triangle-strip pipeline drawing one full-screen quad (`draw(4)`). */\ndeclare function createFullscreenPipeline(device: GPUDevice, options: FullscreenPipelineOptions): GPURenderPipeline;\ninterface DrawChildToTextureOptions {\n /** Defaults to the target's size. */\n width?: number;\n height?: number;\n /** Props for the child; defaults to the node's props with the child as media. */\n props?: Partial<NodeRenderProps>;\n /** Textures still in use that the temporary texture must not alias. */\n exclude?: GPUTexture[];\n}\n/**\n * Renders `child` into a cleared temporary texture with an identity\n * transform and a full-size scissor, and returns that texture.\n */\ndeclare function drawChildToTexture(args: WebGPUNodeRendererArgs, child: VirtualMediaData, options?: DrawChildToTextureOptions): Promise<{\n texture: GPUTexture;\n view: GPUTextureView;\n}>;\n/**\n * Opens a \"load\" pass on the node's target and makes it the node's current\n * pass (the caller hands it back to the compositor).\n */\ndeclare function beginTargetPass(args: WebGPUNodeRendererArgs, width?: number, height?: number): GPURenderPassEncoder;\n/** Draws `texture` over the whole target at `opacity` (the node's output). */\ndeclare function drawTextureToTarget(args: WebGPUNodeRendererArgs, texture: GPUTexture, opacity?: number): void;\n/** Clock a signal texture is evaluated at, in seconds. */\ndeclare function signalTiming(props: NodeRenderProps, frame: number, fps: number, fallbackDurationSeconds?: number): {\n elapsedSeconds: number;\n durationSeconds: number;\n};\ntype NodeSignalData = SignalData & {\n nodeId?: string;\n};\ninterface SignalTextureContext {\n args: WebGPUNodeRendererArgs;\n width: number;\n height: number;\n frame: number;\n fps: number;\n elapsedSeconds: number;\n durationSeconds: number;\n}\n/**\n * The texture a bound parameter samples: its own GPU binding, the signal's\n * texture (cached under `sd.nodeId`, else `fallbackId`), or a 1×1 dummy.\n */\ndeclare function signalTextureView(sc: SignalTextureContext, param: {\n hasStaticSig: boolean;\n sd: NodeSignalData | null;\n gpuTextureView?: GPUTextureView;\n}, fallbackId: string): GPUTextureView;\n/** Clears `target` to transparent and draws one full-screen quad into it. */\ndeclare function drawFullscreenPass(encoder: GPUCommandEncoder, target: GPUTextureView, pipeline: GPURenderPipeline, bindGroups: GPUBindGroup[]): void;\n//#endregion\n//#region renderer/homography.d.ts\ninterface Point2D {\n x: number;\n y: number;\n}\n/**\n * Computes an 8-parameter 3x3 homography matrix mapping destination coordinates (quad)\n * to normalized source coordinates (unit square [0, 1]^2).\n *\n * The homography H maps destination (x, y) to source (u, v):\n * u = (h00*x + h01*y + h02) / (h20*x + h21*y + h22)\n * v = (h10*x + h11*y + h12) / (h20*x + h21*y + h22)\n *\n * Resulting array: [h00, h01, h02, h10, h11, h12, h20, h21, 1.0]\n */\ndeclare function solveHomography(dstPoints: Point2D[], srcPoints?: Point2D[]): number[];\n//#endregion\n//#region renderer/index.d.ts\ntype GPUCommandEncoder$1 = globalThis.GPUCommandEncoder;\ntype GPURenderPassEncoder$1 = globalThis.GPURenderPassEncoder;\ntype GPUTextureView$1 = globalThis.GPUTextureView;\ntype GPUTexture$1 = globalThis.GPUTexture;\ninterface NodeRenderProps<TOperation extends MediaOperation = MediaOperation> {\n renderId: string;\n virtualMedia: VirtualMediaData<TOperation>;\n volume?: number;\n playbackRateOverride?: number;\n trimStartOverride?: number;\n trimEndOverride?: number;\n containerWidth: number;\n containerHeight: number;\n opacity?: number;\n frame?: number;\n compositionFrame?: number;\n fps?: number;\n elapsedMs?: number;\n durationMs?: number;\n timestampSec?: number;\n renderingContext?: \"visual\" | \"audio\";\n inheritedSeekOffset?: number;\n inheritedClockOffset?: number;\n isHeadless?: boolean;\n forceWait?: boolean;\n isVideoMode?: boolean;\n isPlaying?: boolean;\n excludeTextures?: GPUTexture$1[];\n /** Signal values that override the node's own (text animators read them). */\n signals?: Record<string, unknown>;\n renderChild?: (child: VirtualMediaData, overrides?: Partial<NodeRenderProps>) => unknown;\n}\ntype WebGPUNodeRenderer<TOperation extends MediaOperation = MediaOperation> = (args: {\n ctx: RenderContextValue;\n encoder: GPUCommandEncoder$1;\n pass: GPURenderPassEncoder$1;\n targetView: GPUTextureView$1;\n targetTexture: GPUTexture$1;\n targetWidth: number;\n targetHeight: number;\n props: NodeRenderProps<TOperation>;\n drawChild: (child: VirtualMediaData, overrides?: Partial<NodeRenderProps>, targetViewOverride?: GPUTextureView$1, targetTextureOverride?: GPUTexture$1, targetWidthOverride?: number, targetHeightOverride?: number) => Promise<void>;\n}) => Promise<void> | void;\ninterface AudioProcessorContext {\n device?: GPUDevice;\n frame?: number;\n compositionFrame?: number;\n fps?: number;\n elapsedMs?: number;\n durationMs?: number;\n renderId?: string;\n}\ntype AudioProcessor<TOperation extends MediaOperation = MediaOperation> = (channels: Float32Array[], sampleRate: number, virtualMedia: VirtualMediaData<TOperation>, ctx?: AudioProcessorContext) => void | Promise<void>;\n/**\n * A numeric node parameter at `frame`: a number, a signal-like `get(ctx)` or\n * `{ value }`, a `(ctx) => number` function, or anything `Number()` accepts;\n * `fallback` when none of those yields a finite number.\n */\ndeclare function resolveFrameNumber(val: unknown, fallback: number, frame: number, fps: number): number;\n/**\n * A static node parameter at `frame`: calls `get(ctx)` / `(frame, fps)`\n * functions and reads `{ value }` wrappers, keeping a signal's GPU texture\n * binding when it has one. Anything else is returned as-is.\n */\ndeclare function unwrapFrameParam(raw: unknown, frame: number, fps: number): {\n value: unknown;\n gpuTextureView?: GPUTextureView$1;\n};\n/** The `inputs` map node operations carry: one entry per connected handle. */\ntype NodeOperationInputs = Record<string, {\n connectionValid: boolean;\n outputItem: {\n type: string;\n data: unknown;\n } | null;\n}>;\ninterface HandleParam<SD> {\n val: number;\n /** The value comes from a signal (`sd`) sampled on the GPU. */\n hasStaticSig: boolean;\n sd: SD | null;\n handleId: string | null | undefined;\n}\n/**\n * A numeric parameter fed through `handleId`: a connected Number (clamped), a\n * connected Signal (sampled on the GPU, `val` stays `fallbackVal`), or else\n * `fallbackVal` clamped to [clampMin, clampMax].\n */\ndeclare function resolveHandleParam<SD>(inputs: NodeOperationInputs | undefined, handleId: string | null | undefined, fallbackVal: number, clampMin: number, clampMax: number): HandleParam<SD>;\n/**\n * A numeric field `fieldName` of a node operation, fed through its\n * `${fieldName}HandleId` input: a connected Signal/Numeric (`sd`, sampled on\n * the GPU; `value` is its offset), a connected Number, or the operation's own\n * value — each clamped to [minVal, maxVal].\n */\ndeclare function resolveSignalField<SD>(op: {\n inputs?: NodeOperationInputs;\n}, fieldName: string, defaultValue: number, minVal?: number, maxVal?: number): {\n hasSignal: boolean;\n sd: SD | null;\n value: number;\n};\n/**\n * Whether the handle whose id is stored at `op[handleIdKey]` has a valid\n * Signal or Number connection.\n */\ndeclare function isHandleConnected(op: Record<string, unknown>, handleIdKey: string): boolean;\ninterface NodeRendererPlugin {\n WebGPURenderer?: WebGPUNodeRenderer;\n audioProcessor?: AudioProcessor;\n}\ndeclare function defineRenderer(plugin: NodeRendererPlugin): Readonly<NodeRendererPlugin>;\ndeclare class WebGPURegistry {\n private renderers;\n register(op: string, renderer: WebGPUNodeRenderer): void;\n get(op: string): WebGPUNodeRenderer | undefined;\n has(op: string): boolean;\n}\ndeclare const webgpuRegistry: WebGPURegistry;\ndeclare function registerWebGPURenderer(op: string, renderer: WebGPUNodeRenderer): void;\ninterface TextureSourceOp {\n op: \"TextureSource\";\n sourceTexture: GPUTexture$1;\n opacity?: number;\n dataType?: \"Image\";\n}\ndeclare class AudioProcessorRegistry {\n private processors;\n register(opType: string, processor: AudioProcessor): void;\n get(opType: string): AudioProcessor | null;\n}\ndeclare const audioRegistry: AudioProcessorRegistry;\n//#endregion\nexport { webgpuRegistry as A, SignalTextureContext as B, resolveFrameNumber as C, resolveSignalField as D, resolveParam as E, FragmentBinding as F, drawFullscreenPass as G, beginTargetPass as H, FullscreenPipelineOptions as I, perDevice as J, drawTextureToTarget as K, NodeSignalData as L, solveHomography as M, DrawChildToTextureOptions as N, resolveString as O, FULLSCREEN_QUAD_WGSL as P, PREMULTIPLIED_BLEND as R, resolveBoolean as S, resolveNumber as T, createFullscreenPipeline as U, WebGPUNodeRendererArgs as V, drawChildToTexture as W, signalTiming as X, signalTextureView as Y, texturesLayout as Z, audioRegistry as _, GPUTexture$1 as a, isSignal as b, MediaOperation as c, NodeOperationInputs as d, NodeRenderProps as f, WebGPURegistry as g, WebGPUNodeRenderer as h, GPURenderPassEncoder$1 as i, Point2D as j, unwrapFrameParam as k, NodeInputConnection as l, TextureSourceOp as m, AudioProcessorContext as n, GPUTextureView$1 as o, NodeRendererPlugin as p, fragmentBindGroupLayout as q, GPUCommandEncoder$1 as r, HandleParam as s, AudioProcessor as t, NodeOperation as u, defineRenderer as v, resolveHandleParam as w, registerWebGPURenderer as x, isHandleConnected as y, STRAIGHT_ALPHA_BLEND as z };\n//# sourceMappingURL=index-Dgzr2Wnb.d.mts.map","import { A as webgpuRegistry, C as resolveFrameNumber, D as resolveSignalField, E as resolveParam, M as solveHomography, O as resolveString, S as resolveBoolean, T as resolveNumber, V as WebGPUNodeRendererArgs, _ as audioRegistry, a as GPUTexture, b as isSignal, c as MediaOperation, d as NodeOperationInputs, f as NodeRenderProps, g as WebGPURegistry, h as WebGPUNodeRenderer, i as GPURenderPassEncoder, j as Point2D, k as unwrapFrameParam, l as NodeInputConnection, m as TextureSourceOp, n as AudioProcessorContext, o as GPUTextureView, p as NodeRendererPlugin, r as GPUCommandEncoder, s as HandleParam, t as AudioProcessor, u as NodeOperation, v as defineRenderer, w as resolveHandleParam, x as registerWebGPURenderer, y as isHandleConnected } from \"./index-Dgzr2Wnb.mjs\";\nimport * as _framefields_core0 from \"@framefields/core\";\nimport { FileDataSchema, MultiOutputGenericSchema, SingleOutputGenericSchema, VirtualMediaDataSchema, createOutputItemSchema } from \"@framefields/core\";\nimport { z } from \"zod\";\n\n//#region shared/config-builder.d.ts\n\n/**\n * Per-field metadata, attached to the field's zod schema with `.meta()`.\n *\n * It is readable from the schema itself (`z.globalRegistry.get(schema)`) and\n * from `z.toJSONSchema(schema)`, which is what `scripts/generate-effects.mts`\n * uses to emit the authoring classes. Raw `z.object` configs can call\n * `.meta({...})` with these keys directly; `configBuilder().field()` is sugar\n * for the same thing. See `spec/sync-node.md` §5.2.\n */\ninterface FieldMeta {\n label?: string;\n description?: string;\n dataTypes?: string[];\n /** Editor: the node shows an input handle for this field. */\n bindable?: boolean;\n /**\n * Authoring: the prop is typed `EffectProp<T>` (value, signal or frame\n * function). Defaults to `bindable`. Set it explicitly where the two differ.\n */\n signal?: boolean;\n /** Editor wiring only. Excluded from the generated authoring surface. */\n editorOnly?: boolean;\n /** Escape hatch for a value zod cannot type, e.g. a GPU texture handle. */\n tsType?: {\n name: string;\n from: string;\n };\n}\n/** @deprecated Use {@link FieldMeta}. */\ntype FieldOptions = FieldMeta;\ndeclare class ConfigBuilder<TShape extends z.ZodRawShape = Record<string, never>> {\n private shape;\n private options;\n constructor(shape?: TShape, options?: {\n strict?: boolean;\n });\n field<TKey extends string, TType extends z.ZodTypeAny>(key: TKey, schema: TType, options?: FieldMeta): ConfigBuilder<TShape & { [K in TKey]: TType }>;\n build(): {\n schema: z.ZodObject<{ -readonly [P in keyof TShape]: TShape[P] }, z.core.$strip>;\n };\n}\ndeclare function configBuilder(options?: {\n strict?: boolean;\n}): ConfigBuilder<{}>;\n//#endregion\n//#region shared/schemas.d.ts\ndeclare const COMPOSITE_OPERATIONS: readonly [\"source-over\", \"source-in\", \"source-out\", \"source-atop\", \"destination-over\", \"destination-in\", \"destination-out\", \"destination-atop\", \"lighter\", \"copy\", \"xor\", \"multiply\", \"screen\", \"overlay\", \"darken\", \"lighten\", \"color-dodge\", \"color-burn\", \"hard-light\", \"soft-light\", \"difference\", \"exclusion\", \"hue\", \"saturation\", \"color\", \"luminosity\"];\ndeclare const GlobalCompositeOperation: z.ZodEnum<{\n \"source-over\": \"source-over\";\n \"source-in\": \"source-in\";\n \"source-out\": \"source-out\";\n \"source-atop\": \"source-atop\";\n \"destination-over\": \"destination-over\";\n \"destination-in\": \"destination-in\";\n \"destination-out\": \"destination-out\";\n \"destination-atop\": \"destination-atop\";\n lighter: \"lighter\";\n copy: \"copy\";\n xor: \"xor\";\n multiply: \"multiply\";\n screen: \"screen\";\n overlay: \"overlay\";\n darken: \"darken\";\n lighten: \"lighten\";\n \"color-dodge\": \"color-dodge\";\n \"color-burn\": \"color-burn\";\n \"hard-light\": \"hard-light\";\n \"soft-light\": \"soft-light\";\n difference: \"difference\";\n exclusion: \"exclusion\";\n hue: \"hue\";\n saturation: \"saturation\";\n color: \"color\";\n luminosity: \"luminosity\";\n}>;\ndeclare const ColorSchema: z.ZodOptional<z.ZodString>;\ndeclare const PercentageSchema: z.ZodNumber;\ndeclare const DimensionSchema: z.ZodOptional<z.ZodNumber>;\ndeclare const AnimationSchema: z.ZodObject<{\n animations: z.ZodOptional<z.ZodArray<z.ZodObject<{\n id: z.ZodString;\n type: z.ZodEnum<{\n \"fade-in\": \"fade-in\";\n \"fade-out\": \"fade-out\";\n \"slide-in-left\": \"slide-in-left\";\n \"slide-in-right\": \"slide-in-right\";\n \"slide-in-top\": \"slide-in-top\";\n \"slide-in-bottom\": \"slide-in-bottom\";\n \"zoom-in\": \"zoom-in\";\n \"zoom-out\": \"zoom-out\";\n \"rotate-cw\": \"rotate-cw\";\n \"rotate-ccw\": \"rotate-ccw\";\n bounce: \"bounce\";\n shake: \"shake\";\n }>;\n value: z.ZodNumber;\n }, z.core.$strip>>>;\n}, z.core.$strip>;\ndeclare const StrokeSchema: z.ZodObject<{\n stroke: z.ZodOptional<z.ZodString>;\n strokeWidth: z.ZodOptional<z.ZodNumber>;\n strokeAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{\n inside: \"inside\";\n center: \"center\";\n outside: \"outside\";\n }>>>;\n strokeRadius: z.ZodOptional<z.ZodNumber>;\n}, z.core.$strip>;\ndeclare const ImageResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Image\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Image\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype ImageResult = z.infer<typeof ImageResultSchema>;\ndeclare const VideoResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Video\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Video\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype VideoResult = z.infer<typeof VideoResultSchema>;\ndeclare const AudioResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Audio\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Audio\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype AudioResult = z.infer<typeof AudioResultSchema>;\ndeclare const TextResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Text\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Text\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype TextResult = z.infer<typeof TextResultSchema>;\ndeclare const NumberResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Number\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Number\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype NumberResult = z.infer<typeof NumberResultSchema>;\ndeclare const SignalResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Signal\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Signal\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype SignalResult = z.infer<typeof SignalResultSchema>;\n/** The `inputs` map an operation carries: one entry per connected handle. */\ndeclare const OperationInputsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{\n connectionValid: z.ZodBoolean;\n outputItem: z.ZodOptional<z.ZodNullable<z.ZodObject<{\n type: z.ZodString;\n data: z.ZodUnknown;\n }, z.core.$strip>>>;\n}, z.core.$strip>>;\n//#endregion\nexport { AnimationSchema, AudioProcessor, AudioProcessorContext, AudioResult, AudioResultSchema, COMPOSITE_OPERATIONS, ColorSchema, ConfigBuilder, DimensionSchema, FieldMeta, FieldOptions, FileDataSchema, GPUCommandEncoder, GPURenderPassEncoder, GPUTexture, GPUTextureView, GlobalCompositeOperation, HandleParam, ImageResult, ImageResultSchema, MediaOperation, MultiOutputGenericSchema, NodeInputConnection, NodeOperation, NodeOperationInputs, NodeRenderProps, NodeRendererPlugin, NumberResult, NumberResultSchema, OperationInputsSchema, PercentageSchema, Point2D, SignalResult, SignalResultSchema, SingleOutputGenericSchema, StrokeSchema, TextResult, TextResultSchema, TextureSourceOp, VideoResult, VideoResultSchema, VirtualMediaDataSchema, WebGPUNodeRenderer, WebGPUNodeRendererArgs, WebGPURegistry, audioRegistry, configBuilder, createOutputItemSchema, defineRenderer, isHandleConnected, isSignal, registerWebGPURenderer, resolveBoolean, resolveFrameNumber, resolveHandleParam, resolveNumber, resolveParam, resolveSignalField, resolveString, solveHomography, unwrapFrameParam, webgpuRegistry };\n//# sourceMappingURL=index.d.mts.map"],"mappings":";;;;;;;KA+GKoD,mBAAAA,GAAsBC,UAAAA,CAAWL;KACjCM,sBAAAA,GAAyBD,UAAAA,CAAWZ;KACpCc,gBAAAA,GAAmBF,UAAAA,CAAWf;KAC9BkB,YAAAA,GAAeH,UAAAA,CAAWjB;UACrBF,mCAAmClC,iBAAiBA;;gBAE9CI,iBAAiBqD;;;;;;;;;;;;;;;;;;;;;oBAqBbD;;YAERE;wBACYtD,8BAA8B+B,QAAQD;;KAEzDtB,sCAAsCZ,iBAAiBA;OACrDU;WACI0C;QACHE;cACMC;iBACGC;;;SAGRtB,gBAAgBuB;qBACJrD,8BAA8B+B,QAAQD,uCAAuCqB,0CAA0CC,8EAA8EjB;MACpNA;UACIoB,qBAAAA;WACCrC;;;;;;;;KAQNsC,kCAAkC5D,iBAAiBA,6BAA6B6D,kDAAkDzD,iBAAiBqD,mBAAmBE,iCAAiCpB;;;;;;;UAuDlM+B,kBAAAA;mBACS1D;mBACAgD;;;;;cCtELyL,oBAAoB5C,CAAAA,CAAEa;uBACbb,CAAAA,CAAE6B;WACd7B,CAAAA,CAAEiC,UAAUjC,CAAAA,CAAEa;WACdb,CAAAA,CAAEiC,UAAUjC,CAAAA,CAAEgC,QAAQtC,+BAAkDM,CAAAA,CAAEW,IAAAA,CAAKoB,kBAAkBrC;KACvGM,CAAAA,CAAEW,IAAAA,CAAKC;GACTZ,CAAAA,CAAEW,IAAAA,CAAKC"}
|
|
1
|
+
{"version":3,"file":"renderer-sg-ffvVd.d.mts","names":["MediaOperation","NodeInputConnection","NodeOperation","SignalData","VirtualMediaData","isSignal","resolveBoolean","resolveNumber","resolveParam","resolveString","RenderContextValue","WebGPUNodeRendererArgs","WebGPUNodeRenderer","Parameters","FULLSCREEN_QUAD_WGSL","PREMULTIPLIED_BLEND","GPUBlendState","STRAIGHT_ALPHA_BLEND","FragmentBinding","GPUBindGroupLayoutEntry","Omit","fragmentBindGroupLayout","GPUDevice","GPUBindGroupLayout","texturesLayout","perDevice","T","FullscreenPipelineOptions","GPUShaderModule","GPUPipelineLayout","GPUTextureFormat","createFullscreenPipeline","GPURenderPipeline","DrawChildToTextureOptions","NodeRenderProps","Partial","GPUTexture","drawChildToTexture","GPUTextureView","Promise","beginTargetPass","GPURenderPassEncoder","drawTextureToTarget","signalTiming","NodeSignalData","SignalTextureContext","signalTextureView","drawFullscreenPass","GPUCommandEncoder","GPUBindGroup","Point2D","solveHomography","GPUCommandEncoder$1","globalThis","GPURenderPassEncoder$1","GPUTextureView$1","GPUTexture$1","TOperation","Record","AudioProcessorContext","AudioProcessor","Float32Array","resolveFrameNumber","unwrapFrameParam","NodeOperationInputs","HandleParam","SD","resolveHandleParam","resolveSignalField","isHandleConnected","NodeRendererPlugin","defineRenderer","Readonly","WebGPURegistry","webgpuRegistry","registerWebGPURenderer","TextureSourceOp","AudioProcessorRegistry","audioRegistry","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","R","S","U","V","W","X","Y","Z","_","a","b","c","d","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","webgpuRegistry","C","resolveFrameNumber","D","resolveSignalField","E","resolveParam","M","solveHomography","O","resolveString","S","resolveBoolean","T","resolveNumber","V","WebGPUNodeRendererArgs","_","audioRegistry","a","GPUTexture","b","isSignal","c","MediaOperation","d","NodeOperationInputs","f","NodeRenderProps","g","WebGPURegistry","h","WebGPUNodeRenderer","i","GPURenderPassEncoder","j","Point2D","k","unwrapFrameParam","l","NodeInputConnection","m","TextureSourceOp","n","AudioProcessorContext","o","GPUTextureView","p","NodeRendererPlugin","r","GPUCommandEncoder","s","HandleParam","t","AudioProcessor","u","NodeOperation","v","defineRenderer","w","resolveHandleParam","x","registerWebGPURenderer","y","isHandleConnected","_framefields_core0","FileDataSchema","MultiOutputGenericSchema","SingleOutputGenericSchema","VirtualMediaDataSchema","createOutputItemSchema","z","FieldMeta","FieldOptions","ConfigBuilder","TKey","TType","TShape","ZodRawShape","Record","ZodTypeAny","P","core","$strip","ZodObject","configBuilder","COMPOSITE_OPERATIONS","GlobalCompositeOperation","ZodEnum","ColorSchema","ZodString","ZodOptional","PercentageSchema","ZodNumber","DimensionSchema","AnimationSchema","ZodArray","StrokeSchema","ZodDefault","ImageResultSchema","ZodLiteral","OutputItem","$ZodTypeInternals","ZodType","ZodTuple","ImageResult","infer","VideoResultSchema","VideoResult","AudioResultSchema","AudioResult","TextResultSchema","TextResult","NumberResultSchema","NumberResult","SignalResultSchema","SignalResult","OperationInputsSchema","ZodBoolean","ZodUnknown","ZodNullable","ZodRecord"],"sources":["../../node-sdk/dist/index-Dgzr2Wnb.d.mts","../../node-sdk/dist/index.d.mts"],"sourcesContent":["import { MediaOperation, NodeInputConnection, NodeOperation, SignalData, VirtualMediaData, isSignal, resolveBoolean, resolveNumber, resolveParam, resolveString } from \"@framefields/core\";\nimport { RenderContextValue } from \"@framefields/webgpu-renderers\";\n\n//#region renderer/gpu.d.ts\n/** The argument object every WebGPU node renderer receives. */\ntype WebGPUNodeRendererArgs = Parameters<WebGPUNodeRenderer>[0];\n/**\n * Full-screen quad vertex stage: a 4-vertex triangle strip (draw(4)) that\n * hands `in.uv` (0,0 top-left → 1,1 bottom-right) to an `fs` reading `VSOut`.\n */\ndeclare const FULLSCREEN_QUAD_WGSL = \"\\nstruct VSOut {\\n @builtin(position) pos : vec4<f32>,\\n @location(0) uv : vec2<f32>,\\n};\\n\\n@vertex fn vs(@builtin(vertex_index) vi: u32) -> VSOut {\\n var pos = array<vec2<f32>, 4>(\\n vec2<f32>(-1.0, 1.0),\\n vec2<f32>(1.0, 1.0),\\n vec2<f32>(-1.0, -1.0),\\n vec2<f32>(1.0, -1.0)\\n );\\n var uv = array<vec2<f32>, 4>(\\n vec2<f32>(0.0, 0.0),\\n vec2<f32>(1.0, 0.0),\\n vec2<f32>(0.0, 1.0),\\n vec2<f32>(1.0, 1.0)\\n );\\n return VSOut(vec4<f32>(pos[vi], 0.0, 1.0), uv[vi]);\\n}\\n\";\n/** Premultiplied-alpha \"over\" blending. */\ndeclare const PREMULTIPLIED_BLEND: GPUBlendState;\n/** Straight-alpha color over a premultiplied-alpha accumulation. */\ndeclare const STRAIGHT_ALPHA_BLEND: GPUBlendState;\n/**\n * One bind-group entry, visible to the fragment stage unless it says\n * otherwise: `\"uniform\"` buffer, `\"texture\"` (filterable float 2D) or\n * `\"sampler\"` (filtering), or any other entry minus its binding index.\n */\ntype FragmentBinding = \"uniform\" | \"texture\" | \"sampler\" | Omit<GPUBindGroupLayoutEntry, \"binding\" | \"visibility\"> | Omit<GPUBindGroupLayoutEntry, \"binding\">;\n/** A bind group layout whose entries are bound at 0, 1, 2… in order. */\ndeclare function fragmentBindGroupLayout(device: GPUDevice, bindings: FragmentBinding[], label?: string): GPUBindGroupLayout;\n/** `count` float textures followed by one filtering sampler. */\ndeclare function texturesLayout(device: GPUDevice, count: number): GPUBindGroupLayout;\n/** Memoizes `create` per GPUDevice (resources can't cross devices). */\ndeclare function perDevice<T>(create: (device: GPUDevice) => T): (device: GPUDevice) => T;\ninterface FullscreenPipelineOptions {\n label?: string;\n module: GPUShaderModule;\n layouts: GPUBindGroupLayout[] | GPUPipelineLayout;\n format: GPUTextureFormat;\n blend?: GPUBlendState;\n /** Defaults to \"vs\". */\n vertexEntryPoint?: string;\n /** Defaults to \"fs\". */\n fragmentEntryPoint?: string;\n}\n/** A triangle-strip pipeline drawing one full-screen quad (`draw(4)`). */\ndeclare function createFullscreenPipeline(device: GPUDevice, options: FullscreenPipelineOptions): GPURenderPipeline;\ninterface DrawChildToTextureOptions {\n /** Defaults to the target's size. */\n width?: number;\n height?: number;\n /** Props for the child; defaults to the node's props with the child as media. */\n props?: Partial<NodeRenderProps>;\n /** Textures still in use that the temporary texture must not alias. */\n exclude?: GPUTexture[];\n}\n/**\n * Renders `child` into a cleared temporary texture with an identity\n * transform and a full-size scissor, and returns that texture.\n */\ndeclare function drawChildToTexture(args: WebGPUNodeRendererArgs, child: VirtualMediaData, options?: DrawChildToTextureOptions): Promise<{\n texture: GPUTexture;\n view: GPUTextureView;\n}>;\n/**\n * Opens a \"load\" pass on the node's target and makes it the node's current\n * pass (the caller hands it back to the compositor).\n */\ndeclare function beginTargetPass(args: WebGPUNodeRendererArgs, width?: number, height?: number): GPURenderPassEncoder;\n/** Draws `texture` over the whole target at `opacity` (the node's output). */\ndeclare function drawTextureToTarget(args: WebGPUNodeRendererArgs, texture: GPUTexture, opacity?: number): void;\n/** Clock a signal texture is evaluated at, in seconds. */\ndeclare function signalTiming(props: NodeRenderProps, frame: number, fps: number, fallbackDurationSeconds?: number): {\n elapsedSeconds: number;\n durationSeconds: number;\n};\ntype NodeSignalData = SignalData & {\n nodeId?: string;\n};\ninterface SignalTextureContext {\n args: WebGPUNodeRendererArgs;\n width: number;\n height: number;\n frame: number;\n fps: number;\n elapsedSeconds: number;\n durationSeconds: number;\n}\n/**\n * The texture a bound parameter samples: its own GPU binding, the signal's\n * texture (cached under `sd.nodeId`, else `fallbackId`), or a 1×1 dummy.\n */\ndeclare function signalTextureView(sc: SignalTextureContext, param: {\n hasStaticSig: boolean;\n sd: NodeSignalData | null;\n gpuTextureView?: GPUTextureView;\n}, fallbackId: string): GPUTextureView;\n/** Clears `target` to transparent and draws one full-screen quad into it. */\ndeclare function drawFullscreenPass(encoder: GPUCommandEncoder, target: GPUTextureView, pipeline: GPURenderPipeline, bindGroups: GPUBindGroup[]): void;\n//#endregion\n//#region renderer/homography.d.ts\ninterface Point2D {\n x: number;\n y: number;\n}\n/**\n * Computes an 8-parameter 3x3 homography matrix mapping destination coordinates (quad)\n * to normalized source coordinates (unit square [0, 1]^2).\n *\n * The homography H maps destination (x, y) to source (u, v):\n * u = (h00*x + h01*y + h02) / (h20*x + h21*y + h22)\n * v = (h10*x + h11*y + h12) / (h20*x + h21*y + h22)\n *\n * Resulting array: [h00, h01, h02, h10, h11, h12, h20, h21, 1.0]\n */\ndeclare function solveHomography(dstPoints: Point2D[], srcPoints?: Point2D[]): number[];\n//#endregion\n//#region renderer/index.d.ts\ntype GPUCommandEncoder$1 = globalThis.GPUCommandEncoder;\ntype GPURenderPassEncoder$1 = globalThis.GPURenderPassEncoder;\ntype GPUTextureView$1 = globalThis.GPUTextureView;\ntype GPUTexture$1 = globalThis.GPUTexture;\ninterface NodeRenderProps<TOperation extends MediaOperation = MediaOperation> {\n renderId: string;\n virtualMedia: VirtualMediaData<TOperation>;\n volume?: number;\n playbackRateOverride?: number;\n trimStartOverride?: number;\n trimEndOverride?: number;\n containerWidth: number;\n containerHeight: number;\n opacity?: number;\n frame?: number;\n compositionFrame?: number;\n fps?: number;\n elapsedMs?: number;\n durationMs?: number;\n timestampSec?: number;\n renderingContext?: \"visual\" | \"audio\";\n inheritedSeekOffset?: number;\n inheritedClockOffset?: number;\n isHeadless?: boolean;\n forceWait?: boolean;\n isVideoMode?: boolean;\n isPlaying?: boolean;\n excludeTextures?: GPUTexture$1[];\n /** Signal values that override the node's own (text animators read them). */\n signals?: Record<string, unknown>;\n renderChild?: (child: VirtualMediaData, overrides?: Partial<NodeRenderProps>) => unknown;\n}\ntype WebGPUNodeRenderer<TOperation extends MediaOperation = MediaOperation> = (args: {\n ctx: RenderContextValue;\n encoder: GPUCommandEncoder$1;\n pass: GPURenderPassEncoder$1;\n targetView: GPUTextureView$1;\n targetTexture: GPUTexture$1;\n targetWidth: number;\n targetHeight: number;\n props: NodeRenderProps<TOperation>;\n drawChild: (child: VirtualMediaData, overrides?: Partial<NodeRenderProps>, targetViewOverride?: GPUTextureView$1, targetTextureOverride?: GPUTexture$1, targetWidthOverride?: number, targetHeightOverride?: number) => Promise<void>;\n}) => Promise<void> | void;\ninterface AudioProcessorContext {\n device?: GPUDevice;\n frame?: number;\n compositionFrame?: number;\n fps?: number;\n elapsedMs?: number;\n durationMs?: number;\n renderId?: string;\n}\ntype AudioProcessor<TOperation extends MediaOperation = MediaOperation> = (channels: Float32Array[], sampleRate: number, virtualMedia: VirtualMediaData<TOperation>, ctx?: AudioProcessorContext) => void | Promise<void>;\n/**\n * A numeric node parameter at `frame`: a number, a signal-like `get(ctx)` or\n * `{ value }`, a `(ctx) => number` function, or anything `Number()` accepts;\n * `fallback` when none of those yields a finite number.\n */\ndeclare function resolveFrameNumber(val: unknown, fallback: number, frame: number, fps: number): number;\n/**\n * A static node parameter at `frame`: calls `get(ctx)` / `(frame, fps)`\n * functions and reads `{ value }` wrappers, keeping a signal's GPU texture\n * binding when it has one. Anything else is returned as-is.\n */\ndeclare function unwrapFrameParam(raw: unknown, frame: number, fps: number): {\n value: unknown;\n gpuTextureView?: GPUTextureView$1;\n};\n/** The `inputs` map node operations carry: one entry per connected handle. */\ntype NodeOperationInputs = Record<string, {\n connectionValid: boolean;\n outputItem: {\n type: string;\n data: unknown;\n } | null;\n}>;\ninterface HandleParam<SD> {\n val: number;\n /** The value comes from a signal (`sd`) sampled on the GPU. */\n hasStaticSig: boolean;\n sd: SD | null;\n handleId: string | null | undefined;\n}\n/**\n * A numeric parameter fed through `handleId`: a connected Number (clamped), a\n * connected Signal (sampled on the GPU, `val` stays `fallbackVal`), or else\n * `fallbackVal` clamped to [clampMin, clampMax].\n */\ndeclare function resolveHandleParam<SD>(inputs: NodeOperationInputs | undefined, handleId: string | null | undefined, fallbackVal: number, clampMin: number, clampMax: number): HandleParam<SD>;\n/**\n * A numeric field `fieldName` of a node operation, fed through its\n * `${fieldName}HandleId` input: a connected Signal/Numeric (`sd`, sampled on\n * the GPU; `value` is its offset), a connected Number, or the operation's own\n * value — each clamped to [minVal, maxVal].\n */\ndeclare function resolveSignalField<SD>(op: {\n inputs?: NodeOperationInputs;\n}, fieldName: string, defaultValue: number, minVal?: number, maxVal?: number): {\n hasSignal: boolean;\n sd: SD | null;\n value: number;\n};\n/**\n * Whether the handle whose id is stored at `op[handleIdKey]` has a valid\n * Signal or Number connection.\n */\ndeclare function isHandleConnected(op: Record<string, unknown>, handleIdKey: string): boolean;\ninterface NodeRendererPlugin {\n WebGPURenderer?: WebGPUNodeRenderer;\n audioProcessor?: AudioProcessor;\n}\ndeclare function defineRenderer(plugin: NodeRendererPlugin): Readonly<NodeRendererPlugin>;\ndeclare class WebGPURegistry {\n private renderers;\n register(op: string, renderer: WebGPUNodeRenderer): void;\n get(op: string): WebGPUNodeRenderer | undefined;\n has(op: string): boolean;\n}\ndeclare const webgpuRegistry: WebGPURegistry;\ndeclare function registerWebGPURenderer(op: string, renderer: WebGPUNodeRenderer): void;\ninterface TextureSourceOp {\n op: \"TextureSource\";\n sourceTexture: GPUTexture$1;\n opacity?: number;\n dataType?: \"Image\";\n}\ndeclare class AudioProcessorRegistry {\n private processors;\n register(opType: string, processor: AudioProcessor): void;\n get(opType: string): AudioProcessor | null;\n}\ndeclare const audioRegistry: AudioProcessorRegistry;\n//#endregion\nexport { webgpuRegistry as A, SignalTextureContext as B, resolveFrameNumber as C, resolveSignalField as D, resolveParam as E, FragmentBinding as F, drawFullscreenPass as G, beginTargetPass as H, FullscreenPipelineOptions as I, perDevice as J, drawTextureToTarget as K, NodeSignalData as L, solveHomography as M, DrawChildToTextureOptions as N, resolveString as O, FULLSCREEN_QUAD_WGSL as P, PREMULTIPLIED_BLEND as R, resolveBoolean as S, resolveNumber as T, createFullscreenPipeline as U, WebGPUNodeRendererArgs as V, drawChildToTexture as W, signalTiming as X, signalTextureView as Y, texturesLayout as Z, audioRegistry as _, GPUTexture$1 as a, isSignal as b, MediaOperation as c, NodeOperationInputs as d, NodeRenderProps as f, WebGPURegistry as g, WebGPUNodeRenderer as h, GPURenderPassEncoder$1 as i, Point2D as j, unwrapFrameParam as k, NodeInputConnection as l, TextureSourceOp as m, AudioProcessorContext as n, GPUTextureView$1 as o, NodeRendererPlugin as p, fragmentBindGroupLayout as q, GPUCommandEncoder$1 as r, HandleParam as s, AudioProcessor as t, NodeOperation as u, defineRenderer as v, resolveHandleParam as w, registerWebGPURenderer as x, isHandleConnected as y, STRAIGHT_ALPHA_BLEND as z };\n//# sourceMappingURL=index-Dgzr2Wnb.d.mts.map","import { A as webgpuRegistry, C as resolveFrameNumber, D as resolveSignalField, E as resolveParam, M as solveHomography, O as resolveString, S as resolveBoolean, T as resolveNumber, V as WebGPUNodeRendererArgs, _ as audioRegistry, a as GPUTexture, b as isSignal, c as MediaOperation, d as NodeOperationInputs, f as NodeRenderProps, g as WebGPURegistry, h as WebGPUNodeRenderer, i as GPURenderPassEncoder, j as Point2D, k as unwrapFrameParam, l as NodeInputConnection, m as TextureSourceOp, n as AudioProcessorContext, o as GPUTextureView, p as NodeRendererPlugin, r as GPUCommandEncoder, s as HandleParam, t as AudioProcessor, u as NodeOperation, v as defineRenderer, w as resolveHandleParam, x as registerWebGPURenderer, y as isHandleConnected } from \"./index-Dgzr2Wnb.mjs\";\nimport * as _framefields_core0 from \"@framefields/core\";\nimport { FileDataSchema, MultiOutputGenericSchema, SingleOutputGenericSchema, VirtualMediaDataSchema, createOutputItemSchema } from \"@framefields/core\";\nimport { z } from \"zod\";\n\n//#region shared/config-builder.d.ts\n\n/**\n * Per-field metadata, attached to the field's zod schema with `.meta()`.\n *\n * It is readable from the schema itself (`z.globalRegistry.get(schema)`) and\n * from `z.toJSONSchema(schema)`, which is what `scripts/generate-effects.mts`\n * uses to emit the authoring classes. Raw `z.object` configs can call\n * `.meta({...})` with these keys directly; `configBuilder().field()` is sugar\n * for the same thing. See `spec/sync-node.md` §5.2.\n */\ninterface FieldMeta {\n label?: string;\n description?: string;\n dataTypes?: string[];\n /** Editor: the node shows an input handle for this field. */\n bindable?: boolean;\n /**\n * Authoring: the prop is typed `EffectProp<T>` (value, signal or frame\n * function). Defaults to `bindable`. Set it explicitly where the two differ.\n */\n signal?: boolean;\n /** Editor wiring only. Excluded from the generated authoring surface. */\n editorOnly?: boolean;\n /** Escape hatch for a value zod cannot type, e.g. a GPU texture handle. */\n tsType?: {\n name: string;\n from: string;\n };\n}\n/** @deprecated Use {@link FieldMeta}. */\ntype FieldOptions = FieldMeta;\ndeclare class ConfigBuilder<TShape extends z.ZodRawShape = Record<string, never>> {\n private shape;\n private options;\n constructor(shape?: TShape, options?: {\n strict?: boolean;\n });\n field<TKey extends string, TType extends z.ZodTypeAny>(key: TKey, schema: TType, options?: FieldMeta): ConfigBuilder<TShape & { [K in TKey]: TType }>;\n build(): {\n schema: z.ZodObject<{ -readonly [P in keyof TShape]: TShape[P] }, z.core.$strip>;\n };\n}\ndeclare function configBuilder(options?: {\n strict?: boolean;\n}): ConfigBuilder<{}>;\n//#endregion\n//#region shared/schemas.d.ts\ndeclare const COMPOSITE_OPERATIONS: readonly [\"source-over\", \"source-in\", \"source-out\", \"source-atop\", \"destination-over\", \"destination-in\", \"destination-out\", \"destination-atop\", \"lighter\", \"copy\", \"xor\", \"multiply\", \"screen\", \"overlay\", \"darken\", \"lighten\", \"color-dodge\", \"color-burn\", \"hard-light\", \"soft-light\", \"difference\", \"exclusion\", \"hue\", \"saturation\", \"color\", \"luminosity\"];\ndeclare const GlobalCompositeOperation: z.ZodEnum<{\n \"source-over\": \"source-over\";\n \"source-in\": \"source-in\";\n \"source-out\": \"source-out\";\n \"source-atop\": \"source-atop\";\n \"destination-over\": \"destination-over\";\n \"destination-in\": \"destination-in\";\n \"destination-out\": \"destination-out\";\n \"destination-atop\": \"destination-atop\";\n lighter: \"lighter\";\n copy: \"copy\";\n xor: \"xor\";\n multiply: \"multiply\";\n screen: \"screen\";\n overlay: \"overlay\";\n darken: \"darken\";\n lighten: \"lighten\";\n \"color-dodge\": \"color-dodge\";\n \"color-burn\": \"color-burn\";\n \"hard-light\": \"hard-light\";\n \"soft-light\": \"soft-light\";\n difference: \"difference\";\n exclusion: \"exclusion\";\n hue: \"hue\";\n saturation: \"saturation\";\n color: \"color\";\n luminosity: \"luminosity\";\n}>;\ndeclare const ColorSchema: z.ZodOptional<z.ZodString>;\ndeclare const PercentageSchema: z.ZodNumber;\ndeclare const DimensionSchema: z.ZodOptional<z.ZodNumber>;\ndeclare const AnimationSchema: z.ZodObject<{\n animations: z.ZodOptional<z.ZodArray<z.ZodObject<{\n id: z.ZodString;\n type: z.ZodEnum<{\n \"fade-in\": \"fade-in\";\n \"fade-out\": \"fade-out\";\n \"slide-in-left\": \"slide-in-left\";\n \"slide-in-right\": \"slide-in-right\";\n \"slide-in-top\": \"slide-in-top\";\n \"slide-in-bottom\": \"slide-in-bottom\";\n \"zoom-in\": \"zoom-in\";\n \"zoom-out\": \"zoom-out\";\n \"rotate-cw\": \"rotate-cw\";\n \"rotate-ccw\": \"rotate-ccw\";\n bounce: \"bounce\";\n shake: \"shake\";\n }>;\n value: z.ZodNumber;\n }, z.core.$strip>>>;\n}, z.core.$strip>;\ndeclare const StrokeSchema: z.ZodObject<{\n stroke: z.ZodOptional<z.ZodString>;\n strokeWidth: z.ZodOptional<z.ZodNumber>;\n strokeAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{\n inside: \"inside\";\n center: \"center\";\n outside: \"outside\";\n }>>>;\n strokeRadius: z.ZodOptional<z.ZodNumber>;\n}, z.core.$strip>;\ndeclare const ImageResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Image\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Image\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype ImageResult = z.infer<typeof ImageResultSchema>;\ndeclare const VideoResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Video\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Video\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype VideoResult = z.infer<typeof VideoResultSchema>;\ndeclare const AudioResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Audio\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Audio\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype AudioResult = z.infer<typeof AudioResultSchema>;\ndeclare const TextResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Text\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Text\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype TextResult = z.infer<typeof TextResultSchema>;\ndeclare const NumberResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Number\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Number\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype NumberResult = z.infer<typeof NumberResultSchema>;\ndeclare const SignalResultSchema: z.ZodObject<{\n selectedOutputIndex: z.ZodLiteral<0>;\n outputs: z.ZodTuple<[z.ZodObject<{\n items: z.ZodTuple<[z.ZodType<_framefields_core0.OutputItem<\"Signal\">, unknown, z.core.$ZodTypeInternals<_framefields_core0.OutputItem<\"Signal\">, unknown>>], null>;\n }, z.core.$strip>], null>;\n}, z.core.$strip>;\ntype SignalResult = z.infer<typeof SignalResultSchema>;\n/** The `inputs` map an operation carries: one entry per connected handle. */\ndeclare const OperationInputsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{\n connectionValid: z.ZodBoolean;\n outputItem: z.ZodOptional<z.ZodNullable<z.ZodObject<{\n type: z.ZodString;\n data: z.ZodUnknown;\n }, z.core.$strip>>>;\n}, z.core.$strip>>;\n//#endregion\nexport { AnimationSchema, AudioProcessor, AudioProcessorContext, AudioResult, AudioResultSchema, COMPOSITE_OPERATIONS, ColorSchema, ConfigBuilder, DimensionSchema, FieldMeta, FieldOptions, FileDataSchema, GPUCommandEncoder, GPURenderPassEncoder, GPUTexture, GPUTextureView, GlobalCompositeOperation, HandleParam, ImageResult, ImageResultSchema, MediaOperation, MultiOutputGenericSchema, NodeInputConnection, NodeOperation, NodeOperationInputs, NodeRenderProps, NodeRendererPlugin, NumberResult, NumberResultSchema, OperationInputsSchema, PercentageSchema, Point2D, SignalResult, SignalResultSchema, SingleOutputGenericSchema, StrokeSchema, TextResult, TextResultSchema, TextureSourceOp, VideoResult, VideoResultSchema, VirtualMediaDataSchema, WebGPUNodeRenderer, WebGPUNodeRendererArgs, WebGPURegistry, audioRegistry, configBuilder, createOutputItemSchema, defineRenderer, isHandleConnected, isSignal, registerWebGPURenderer, resolveBoolean, resolveFrameNumber, resolveHandleParam, resolveNumber, resolveParam, resolveSignalField, resolveString, solveHomography, unwrapFrameParam, webgpuRegistry };\n//# sourceMappingURL=index.d.mts.map"],"mappings":";;;;;;;KA+GKoD,mBAAAA,GAAsBC,UAAAA,CAAWL;KACjCM,sBAAAA,GAAyBD,UAAAA,CAAWZ;KACpCc,gBAAAA,GAAmBF,UAAAA,CAAWf;KAC9BkB,YAAAA,GAAeH,UAAAA,CAAWjB;UACrBF,mCAAmClC,iBAAiBA;;gBAE9CI,iBAAiBqD;;;;;;;;;;;;;;;;;;;;;oBAqBbD;;YAERE;wBACYtD,8BAA8B+B,QAAQD;;KAEzDtB,sCAAsCZ,iBAAiBA;OACrDU;WACI0C;QACHE;cACMC;iBACGC;;;SAGRtB,gBAAgBuB;qBACJrD,8BAA8B+B,QAAQD,uCAAuCqB,0CAA0CC,8EAA8EjB;MACpNA;UACIoB,qBAAAA;WACCrC;;;;;;;;KAQNsC,kCAAkC5D,iBAAiBA,6BAA6B6D,kDAAkDzD,iBAAiBqD,mBAAmBE,iCAAiCpB;;;;;;;UAuDlM+B,kBAAAA;mBACS1D;mBACAgD;;;;;cCtELyL,oBAAoB5C,CAAAA,CAAEa;uBACbb,CAAAA,CAAE6B;WACd7B,CAAAA,CAAEiC,UAAUjC,CAAAA,CAAEa;WACdb,CAAAA,CAAEiC,UAAUjC,CAAAA,CAAEgC,QAAQtC,+BAAkDM,CAAAA,CAAEW,IAAAA,CAAKoB,kBAAkBrC;KACvGM,CAAAA,CAAEW,IAAAA,CAAKC;GACTZ,CAAAA,CAAEW,IAAAA,CAAKC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as NodeRendererPlugin } from "./renderer-
|
|
1
|
+
import { n as NodeRendererPlugin } from "./renderer-sg-ffvVd.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../../nodes/node-audio-signal-extractor/dist/renderer.d.mts
|
|
4
4
|
//#region src/renderers/index.d.ts
|
|
@@ -7,4 +7,4 @@ declare const _default: Readonly<NodeRendererPlugin>;
|
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
export { _default as t };
|
|
10
|
-
//# sourceMappingURL=renderer-
|
|
10
|
+
//# sourceMappingURL=renderer-vTsc6CpO.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer-
|
|
1
|
+
{"version":3,"file":"renderer-vTsc6CpO.d.mts","names":["_framefields_node_sdk_renderer0","_default","NodeRendererPlugin","Readonly","default"],"sources":["../../../nodes/node-audio-signal-extractor/dist/renderer.d.mts"],"sourcesContent":["import * as _framefields_node_sdk_renderer0 from \"@framefields/node-sdk/renderer\";\n\n//#region src/renderers/index.d.ts\ndeclare const _default: Readonly<_framefields_node_sdk_renderer0.NodeRendererPlugin>;\n//#endregion\nexport { _default as default };\n//# sourceMappingURL=renderer.d.mts.map"],"mappings":";;;;AAAkF,cAGpEC,QAAsE,EAA5DE,QAASH,CAAAA,kBAAD,CAAA"}
|
package/dist/signals/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-D7gtBK74.mjs";
|
|
2
|
-
import { $a as SineSignalOptions, Bo as computed, D as SignalRegistry, Hs as signal, O as SignalRegistryResource, Oi as FrameSignal, P as buildWGSLSignalFn, Qa as SignalValue, Ua as SignalContext, Us as signalBuilder, Vo as cosineSignal, Ws as sineSignal, h as MasterAudioEntry, q as signalRegistry, s as AudioSignalComputePipeline, za as Signal } from "../index-
|
|
3
|
-
import "../renderer-
|
|
4
|
-
import "../renderer-
|
|
5
|
-
import { i as index_d_exports, n as index_d_exports$1, r as index_d_exports$3, t as index_d_exports$2 } from "../index-
|
|
6
|
-
import { i as _default, n as AudioSignalOptions, r as ExtractedAudioSignalsBundle, t as AudioSignal } from "../audio-
|
|
2
|
+
import { $a as SineSignalOptions, Bo as computed, D as SignalRegistry, Hs as signal, O as SignalRegistryResource, Oi as FrameSignal, P as buildWGSLSignalFn, Qa as SignalValue, Ua as SignalContext, Us as signalBuilder, Vo as cosineSignal, Ws as sineSignal, h as MasterAudioEntry, q as signalRegistry, s as AudioSignalComputePipeline, za as Signal } from "../index-C6awQk4-.mjs";
|
|
3
|
+
import "../renderer-sg-ffvVd.mjs";
|
|
4
|
+
import "../renderer-vTsc6CpO.mjs";
|
|
5
|
+
import { i as index_d_exports, n as index_d_exports$1, r as index_d_exports$3, t as index_d_exports$2 } from "../index-BAXaZC6T.mjs";
|
|
6
|
+
import { i as _default, n as AudioSignalOptions, r as ExtractedAudioSignalsBundle, t as AudioSignal } from "../audio-pIgFoKQ2.mjs";
|
|
7
7
|
export { AudioSignal, AudioSignalComputePipeline, index_d_exports as AudioSignalExtractorNode, AudioSignalOptions, ExtractedAudioSignalsBundle, FrameSignal, MasterAudioEntry, Signal, SignalContext, index_d_exports$1 as SignalGateNode, index_d_exports$2 as SignalMathNode, index_d_exports$3 as SignalNode, SignalRegistry, SignalRegistryResource, SignalValue, SineSignalOptions, buildWGSLSignalFn, computed, cosineSignal, _default as modulateRenderer, signal, signalBuilder, signalRegistry, sineSignal };
|