@clypra-studio/engine 1.0.0 → 1.0.1
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/{TransitionDefinition-CC6oSTYB.d.cts → TransitionDefinition-CQoSb4ZB.d.cts} +9 -9
- package/dist/{TransitionDefinition-CC6oSTYB.d.ts → TransitionDefinition-CQoSb4ZB.d.ts} +9 -9
- package/dist/{chunk-LGW5SSLZ.js → chunk-2VGI6ZB7.js} +2 -7
- package/dist/chunk-2VGI6ZB7.js.map +1 -0
- package/dist/{chunk-AUMNXFYQ.js → chunk-4PKBLJ34.js} +1 -1
- package/dist/chunk-4PKBLJ34.js.map +1 -0
- package/dist/{chunk-4Y7ZSGHJ.js → chunk-FIJBB3MH.js} +1 -1
- package/dist/chunk-FIJBB3MH.js.map +1 -0
- package/dist/{index-BP1N8Yg7.d.cts → index-Da47I6aX.d.cts} +3 -3
- package/dist/{index-BP1N8Yg7.d.ts → index-Da47I6aX.d.ts} +3 -3
- package/dist/index.cjs +28 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +69 -45
- package/dist/index.js.map +1 -1
- package/dist/transitions/index.cjs.map +1 -1
- package/dist/transitions/index.d.cts +5 -5
- package/dist/transitions/index.d.ts +5 -5
- package/dist/transitions/index.js +1 -1
- package/dist/v2/backends/index.cjs.map +1 -1
- package/dist/v2/backends/index.d.cts +1 -1
- package/dist/v2/backends/index.d.ts +1 -1
- package/dist/v2/backends/index.js +1 -1
- package/dist/v2/contract/index.d.cts +12 -12
- package/dist/v2/contract/index.d.ts +12 -12
- package/dist/videoEffects/index.cjs +1 -6
- package/dist/videoEffects/index.cjs.map +1 -1
- package/dist/videoEffects/index.d.cts +5 -6
- package/dist/videoEffects/index.d.ts +5 -6
- package/dist/videoEffects/index.js +1 -1
- package/package.json +12 -12
- package/LICENSE +0 -9
- package/dist/chunk-4Y7ZSGHJ.js.map +0 -1
- package/dist/chunk-AUMNXFYQ.js.map +0 -1
- package/dist/chunk-LGW5SSLZ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,13 +3,13 @@ export { j as AnimationPreset, C as CUSTOM_ENGINE_IDS, k as CompositorFromScene,
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { PixiRenderer } from './videoEffects/index.cjs';
|
|
5
5
|
export { AppliedEffect, AppliedOverlay, BlendMode, CameraEffects, EFFECTS_REGISTRY, EffectCategory, EffectEngine, EffectGraph, EffectMetadata, EffectParameters, EffectPreset, EffectRenderer, EffectRendererType, ExamplePixiEffects, FilterAsset, GraphDefinition, LightEffects, OverlayAsset, VideoEffectApiDefinition, VideoEffectCategory, VideoEffectItem, VideoEffectManifest, VideoEffectState, addNoise, blendColors, clearCanvas, effectMetadataToApi, generateEffectsManifest, getAllEffectsForApi, getEffectByIdForApi, getEffectCategoriesSummary, getEffectMetadata, getEffectPreviewUrl, getEffectRenderer, getEffectsByCategory, getEffectsByCategoryForApi, hexToRgba, rgbaToComponents, searchEffects, searchEffectsForApi, withContext } from './videoEffects/index.cjs';
|
|
6
|
-
import { P as PixiEffectDefinition } from './TransitionDefinition-
|
|
7
|
-
export { C as Canvas2DEffectDefinition, a as Canvas2DEngine, b as Canvas2DEngineConstructor, E as EffectDefinition, G as GPUEffectTransitionCategory, c as ParamSchema, d as ParamType, e as ParamValues, f as PixiEffectContext, g as PixiEffectSubtype, h as PixiFilterSpec, T as TransitionContext, i as TransitionDefinition, j as isCanvas2DEffect, k as isCompositeEffect, l as isFilterEffect, m as isMotionEffect, n as isPixiEffect } from './TransitionDefinition-
|
|
6
|
+
import { P as PixiEffectDefinition } from './TransitionDefinition-CQoSb4ZB.cjs';
|
|
7
|
+
export { C as Canvas2DEffectDefinition, a as Canvas2DEngine, b as Canvas2DEngineConstructor, E as EffectDefinition, G as GPUEffectTransitionCategory, c as ParamSchema, d as ParamType, e as ParamValues, f as PixiEffectContext, g as PixiEffectSubtype, h as PixiFilterSpec, T as TransitionContext, i as TransitionDefinition, j as isCanvas2DEffect, k as isCompositeEffect, l as isFilterEffect, m as isMotionEffect, n as isPixiEffect } from './TransitionDefinition-CQoSb4ZB.cjs';
|
|
8
8
|
export { ALL_TRANSITIONS, AppliedTransition, ChromaticPushTransition, CrossDissolveTransition, DepthPushTransition, DirectionalDissolveTransition, EasingFunction, ElasticSnapCutTransition, FilmBurnWipeTransition, FoldTurnTransition, FrameHoldStutterTransition, GlitchTransition, GravityDropTransition, IrisRevealTransition, LightLeakSweepTransition, LumaWipeTransition, ParallaxLayerSplitTransition, PixelateCollapseTransition, PushTransition, RackFocusBlendTransition, RefractionWarpTransition, ShatterBurstTransition, StrobeCutTransition, TRANSITION_CATEGORIES, TRANSITION_PRESETS, TransitionCategory, TransitionParameters, TransitionPreset, TransitionRenderer, TransitionRendererType, ZoomTransition, getAllTransitionTags, getAllTransitions, getRecommendedDuration, getTransitionById, getTransitionByRenderer, getTransitionCategories, getTransitionCountByCategory, getTransitionEffect, getTransitionsByCategory, getTransitionsByTags, searchTransitions, transitionEffects, transitionEffectsById } from './transitions/index.cjs';
|
|
9
9
|
import { NodeCapabilities, NodeRequirements, GraphPin, MediaProcessingGraph } from '@clypra-studio/types';
|
|
10
10
|
export { NodeCapabilities as EffectCapabilities, NodeRequirements as EffectRequirements, GraphDataType, GraphEdge, GraphHelper, GraphNode, GraphPin, GraphValue, MediaProcessingGraph, NodeCapabilities, NodeLifecycleState, NodeRequirements } from '@clypra-studio/types';
|
|
11
|
-
import { R as RenderBackend, C as CommandBuffer, F as FrameGraph } from './index-
|
|
12
|
-
export { a as Command, D as DependencyGraph, E as ExecutionPolicy, b as ExecutionQuality, P as PixiRenderBackend, c as PlaybackDirection, d as PlaybackMode, e as RenderPass, f as ResourceRequest } from './index-
|
|
11
|
+
import { R as RenderBackend, C as CommandBuffer, F as FrameGraph } from './index-Da47I6aX.cjs';
|
|
12
|
+
export { a as Command, D as DependencyGraph, E as ExecutionPolicy, b as ExecutionQuality, P as PixiRenderBackend, c as PlaybackDirection, d as PlaybackMode, e as RenderPass, f as ResourceRequest } from './index-Da47I6aX.cjs';
|
|
13
13
|
import * as pixi_js from 'pixi.js';
|
|
14
14
|
import { Sprite, Texture, Filter } from 'pixi.js';
|
|
15
15
|
|
|
@@ -8278,7 +8278,7 @@ declare function removeTemplateKeyframe<T>(value: AnimatableValue<T>, time: numb
|
|
|
8278
8278
|
* This file will be removed in v3.0.0
|
|
8279
8279
|
*/
|
|
8280
8280
|
/**
|
|
8281
|
-
* @clypra/engine — Pipeline V2: Project Model
|
|
8281
|
+
* @clypra-studio/engine — Pipeline V2: Project Model
|
|
8282
8282
|
*
|
|
8283
8283
|
* Defines immutable project manifests, clips, tracks, and asset handles.
|
|
8284
8284
|
*/
|
|
@@ -8329,7 +8329,7 @@ declare class ProjectHelper {
|
|
|
8329
8329
|
}
|
|
8330
8330
|
|
|
8331
8331
|
/**
|
|
8332
|
-
* @clypra/engine — Pipeline V2: Node Registry
|
|
8332
|
+
* @clypra-studio/engine — Pipeline V2: Node Registry
|
|
8333
8333
|
*
|
|
8334
8334
|
* @deprecated This file has been moved to @clypra/runtime/graph/NodeRegistry
|
|
8335
8335
|
* Import from @clypra/runtime instead:
|
|
@@ -8414,7 +8414,7 @@ declare class NodeRegistry {
|
|
|
8414
8414
|
}
|
|
8415
8415
|
|
|
8416
8416
|
/**
|
|
8417
|
-
* @clypra/engine — Pipeline V2: Null Backend
|
|
8417
|
+
* @clypra-studio/engine — Pipeline V2: Null Backend
|
|
8418
8418
|
*
|
|
8419
8419
|
* @deprecated Use @clypra/runtime/renderer instead
|
|
8420
8420
|
* The runtime version (NullRenderer) is more complete and follows the same interface.
|
|
@@ -8551,7 +8551,7 @@ declare class NullBackend implements RenderBackend {
|
|
|
8551
8551
|
* This file will be removed in v3.0.0
|
|
8552
8552
|
*/
|
|
8553
8553
|
/**
|
|
8554
|
-
* @clypra/engine — Pipeline V2: Project Compiler
|
|
8554
|
+
* @clypra-studio/engine — Pipeline V2: Project Compiler
|
|
8555
8555
|
*
|
|
8556
8556
|
* Compiles an NLE ProjectManifestV2 into a connected, dependency-resolved MediaProcessingGraph.
|
|
8557
8557
|
* Handles clip segments alignment, active source generation, and effect stack chaining.
|
|
@@ -8570,7 +8570,7 @@ declare class ProjectCompiler {
|
|
|
8570
8570
|
}
|
|
8571
8571
|
|
|
8572
8572
|
/**
|
|
8573
|
-
* @clypra/engine — Pipeline V2: Frame Graph Builder
|
|
8573
|
+
* @clypra-studio/engine — Pipeline V2: Frame Graph Builder
|
|
8574
8574
|
*
|
|
8575
8575
|
* @deprecated This implementation should be merged into @clypra/runtime/planner
|
|
8576
8576
|
* This version has MORE COMPLETE functionality (NodeRegistry integration, clip activation)
|
|
@@ -8591,7 +8591,7 @@ declare class FrameGraphBuilder {
|
|
|
8591
8591
|
}
|
|
8592
8592
|
|
|
8593
8593
|
/**
|
|
8594
|
-
* @clypra/engine — Pipeline V2: Graph Validator
|
|
8594
|
+
* @clypra-studio/engine — Pipeline V2: Graph Validator
|
|
8595
8595
|
*
|
|
8596
8596
|
* @deprecated This implementation should be merged into @clypra/runtime/graph/validator
|
|
8597
8597
|
* This version has MORE COMPLETE functionality (NodeRegistry integration, detailed error types,
|
|
@@ -8645,7 +8645,7 @@ declare class GraphValidator {
|
|
|
8645
8645
|
}
|
|
8646
8646
|
|
|
8647
8647
|
/**
|
|
8648
|
-
* @clypra/engine — Pipeline V2: Command Buffer Builder
|
|
8648
|
+
* @clypra-studio/engine — Pipeline V2: Command Buffer Builder
|
|
8649
8649
|
*
|
|
8650
8650
|
* @deprecated This is a helper utility. Consider using @clypra/runtime/renderer Executor instead.
|
|
8651
8651
|
* This file will be removed in v3.0.0
|
|
@@ -8662,7 +8662,7 @@ declare class CommandBufferBuilder {
|
|
|
8662
8662
|
}
|
|
8663
8663
|
|
|
8664
8664
|
/**
|
|
8665
|
-
* @clypra/engine — Pipeline V2: MPG Frame Renderer
|
|
8665
|
+
* @clypra-studio/engine — Pipeline V2: MPG Frame Renderer
|
|
8666
8666
|
*
|
|
8667
8667
|
* @deprecated Use @clypra/runtime/renderer instead
|
|
8668
8668
|
* The runtime has a more complete Executor implementation.
|
|
@@ -8874,7 +8874,7 @@ declare function clearBodyEffectMask(clipId: string): void;
|
|
|
8874
8874
|
declare function clearAllBodyEffectMasks(): void;
|
|
8875
8875
|
|
|
8876
8876
|
/**
|
|
8877
|
-
* @clypra/engine — Canvas 2D text effects, Lottie tooling, and animation engine.
|
|
8877
|
+
* @clypra-studio/engine — Canvas 2D text effects, Lottie tooling, and animation engine.
|
|
8878
8878
|
* @version 0.1.0
|
|
8879
8879
|
* @packageDocumentation
|
|
8880
8880
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ export { j as AnimationPreset, C as CUSTOM_ENGINE_IDS, k as CompositorFromScene,
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { PixiRenderer } from './videoEffects/index.js';
|
|
5
5
|
export { AppliedEffect, AppliedOverlay, BlendMode, CameraEffects, EFFECTS_REGISTRY, EffectCategory, EffectEngine, EffectGraph, EffectMetadata, EffectParameters, EffectPreset, EffectRenderer, EffectRendererType, ExamplePixiEffects, FilterAsset, GraphDefinition, LightEffects, OverlayAsset, VideoEffectApiDefinition, VideoEffectCategory, VideoEffectItem, VideoEffectManifest, VideoEffectState, addNoise, blendColors, clearCanvas, effectMetadataToApi, generateEffectsManifest, getAllEffectsForApi, getEffectByIdForApi, getEffectCategoriesSummary, getEffectMetadata, getEffectPreviewUrl, getEffectRenderer, getEffectsByCategory, getEffectsByCategoryForApi, hexToRgba, rgbaToComponents, searchEffects, searchEffectsForApi, withContext } from './videoEffects/index.js';
|
|
6
|
-
import { P as PixiEffectDefinition } from './TransitionDefinition-
|
|
7
|
-
export { C as Canvas2DEffectDefinition, a as Canvas2DEngine, b as Canvas2DEngineConstructor, E as EffectDefinition, G as GPUEffectTransitionCategory, c as ParamSchema, d as ParamType, e as ParamValues, f as PixiEffectContext, g as PixiEffectSubtype, h as PixiFilterSpec, T as TransitionContext, i as TransitionDefinition, j as isCanvas2DEffect, k as isCompositeEffect, l as isFilterEffect, m as isMotionEffect, n as isPixiEffect } from './TransitionDefinition-
|
|
6
|
+
import { P as PixiEffectDefinition } from './TransitionDefinition-CQoSb4ZB.js';
|
|
7
|
+
export { C as Canvas2DEffectDefinition, a as Canvas2DEngine, b as Canvas2DEngineConstructor, E as EffectDefinition, G as GPUEffectTransitionCategory, c as ParamSchema, d as ParamType, e as ParamValues, f as PixiEffectContext, g as PixiEffectSubtype, h as PixiFilterSpec, T as TransitionContext, i as TransitionDefinition, j as isCanvas2DEffect, k as isCompositeEffect, l as isFilterEffect, m as isMotionEffect, n as isPixiEffect } from './TransitionDefinition-CQoSb4ZB.js';
|
|
8
8
|
export { ALL_TRANSITIONS, AppliedTransition, ChromaticPushTransition, CrossDissolveTransition, DepthPushTransition, DirectionalDissolveTransition, EasingFunction, ElasticSnapCutTransition, FilmBurnWipeTransition, FoldTurnTransition, FrameHoldStutterTransition, GlitchTransition, GravityDropTransition, IrisRevealTransition, LightLeakSweepTransition, LumaWipeTransition, ParallaxLayerSplitTransition, PixelateCollapseTransition, PushTransition, RackFocusBlendTransition, RefractionWarpTransition, ShatterBurstTransition, StrobeCutTransition, TRANSITION_CATEGORIES, TRANSITION_PRESETS, TransitionCategory, TransitionParameters, TransitionPreset, TransitionRenderer, TransitionRendererType, ZoomTransition, getAllTransitionTags, getAllTransitions, getRecommendedDuration, getTransitionById, getTransitionByRenderer, getTransitionCategories, getTransitionCountByCategory, getTransitionEffect, getTransitionsByCategory, getTransitionsByTags, searchTransitions, transitionEffects, transitionEffectsById } from './transitions/index.js';
|
|
9
9
|
import { NodeCapabilities, NodeRequirements, GraphPin, MediaProcessingGraph } from '@clypra-studio/types';
|
|
10
10
|
export { NodeCapabilities as EffectCapabilities, NodeRequirements as EffectRequirements, GraphDataType, GraphEdge, GraphHelper, GraphNode, GraphPin, GraphValue, MediaProcessingGraph, NodeCapabilities, NodeLifecycleState, NodeRequirements } from '@clypra-studio/types';
|
|
11
|
-
import { R as RenderBackend, C as CommandBuffer, F as FrameGraph } from './index-
|
|
12
|
-
export { a as Command, D as DependencyGraph, E as ExecutionPolicy, b as ExecutionQuality, P as PixiRenderBackend, c as PlaybackDirection, d as PlaybackMode, e as RenderPass, f as ResourceRequest } from './index-
|
|
11
|
+
import { R as RenderBackend, C as CommandBuffer, F as FrameGraph } from './index-Da47I6aX.js';
|
|
12
|
+
export { a as Command, D as DependencyGraph, E as ExecutionPolicy, b as ExecutionQuality, P as PixiRenderBackend, c as PlaybackDirection, d as PlaybackMode, e as RenderPass, f as ResourceRequest } from './index-Da47I6aX.js';
|
|
13
13
|
import * as pixi_js from 'pixi.js';
|
|
14
14
|
import { Sprite, Texture, Filter } from 'pixi.js';
|
|
15
15
|
|
|
@@ -8278,7 +8278,7 @@ declare function removeTemplateKeyframe<T>(value: AnimatableValue<T>, time: numb
|
|
|
8278
8278
|
* This file will be removed in v3.0.0
|
|
8279
8279
|
*/
|
|
8280
8280
|
/**
|
|
8281
|
-
* @clypra/engine — Pipeline V2: Project Model
|
|
8281
|
+
* @clypra-studio/engine — Pipeline V2: Project Model
|
|
8282
8282
|
*
|
|
8283
8283
|
* Defines immutable project manifests, clips, tracks, and asset handles.
|
|
8284
8284
|
*/
|
|
@@ -8329,7 +8329,7 @@ declare class ProjectHelper {
|
|
|
8329
8329
|
}
|
|
8330
8330
|
|
|
8331
8331
|
/**
|
|
8332
|
-
* @clypra/engine — Pipeline V2: Node Registry
|
|
8332
|
+
* @clypra-studio/engine — Pipeline V2: Node Registry
|
|
8333
8333
|
*
|
|
8334
8334
|
* @deprecated This file has been moved to @clypra/runtime/graph/NodeRegistry
|
|
8335
8335
|
* Import from @clypra/runtime instead:
|
|
@@ -8414,7 +8414,7 @@ declare class NodeRegistry {
|
|
|
8414
8414
|
}
|
|
8415
8415
|
|
|
8416
8416
|
/**
|
|
8417
|
-
* @clypra/engine — Pipeline V2: Null Backend
|
|
8417
|
+
* @clypra-studio/engine — Pipeline V2: Null Backend
|
|
8418
8418
|
*
|
|
8419
8419
|
* @deprecated Use @clypra/runtime/renderer instead
|
|
8420
8420
|
* The runtime version (NullRenderer) is more complete and follows the same interface.
|
|
@@ -8551,7 +8551,7 @@ declare class NullBackend implements RenderBackend {
|
|
|
8551
8551
|
* This file will be removed in v3.0.0
|
|
8552
8552
|
*/
|
|
8553
8553
|
/**
|
|
8554
|
-
* @clypra/engine — Pipeline V2: Project Compiler
|
|
8554
|
+
* @clypra-studio/engine — Pipeline V2: Project Compiler
|
|
8555
8555
|
*
|
|
8556
8556
|
* Compiles an NLE ProjectManifestV2 into a connected, dependency-resolved MediaProcessingGraph.
|
|
8557
8557
|
* Handles clip segments alignment, active source generation, and effect stack chaining.
|
|
@@ -8570,7 +8570,7 @@ declare class ProjectCompiler {
|
|
|
8570
8570
|
}
|
|
8571
8571
|
|
|
8572
8572
|
/**
|
|
8573
|
-
* @clypra/engine — Pipeline V2: Frame Graph Builder
|
|
8573
|
+
* @clypra-studio/engine — Pipeline V2: Frame Graph Builder
|
|
8574
8574
|
*
|
|
8575
8575
|
* @deprecated This implementation should be merged into @clypra/runtime/planner
|
|
8576
8576
|
* This version has MORE COMPLETE functionality (NodeRegistry integration, clip activation)
|
|
@@ -8591,7 +8591,7 @@ declare class FrameGraphBuilder {
|
|
|
8591
8591
|
}
|
|
8592
8592
|
|
|
8593
8593
|
/**
|
|
8594
|
-
* @clypra/engine — Pipeline V2: Graph Validator
|
|
8594
|
+
* @clypra-studio/engine — Pipeline V2: Graph Validator
|
|
8595
8595
|
*
|
|
8596
8596
|
* @deprecated This implementation should be merged into @clypra/runtime/graph/validator
|
|
8597
8597
|
* This version has MORE COMPLETE functionality (NodeRegistry integration, detailed error types,
|
|
@@ -8645,7 +8645,7 @@ declare class GraphValidator {
|
|
|
8645
8645
|
}
|
|
8646
8646
|
|
|
8647
8647
|
/**
|
|
8648
|
-
* @clypra/engine — Pipeline V2: Command Buffer Builder
|
|
8648
|
+
* @clypra-studio/engine — Pipeline V2: Command Buffer Builder
|
|
8649
8649
|
*
|
|
8650
8650
|
* @deprecated This is a helper utility. Consider using @clypra/runtime/renderer Executor instead.
|
|
8651
8651
|
* This file will be removed in v3.0.0
|
|
@@ -8662,7 +8662,7 @@ declare class CommandBufferBuilder {
|
|
|
8662
8662
|
}
|
|
8663
8663
|
|
|
8664
8664
|
/**
|
|
8665
|
-
* @clypra/engine — Pipeline V2: MPG Frame Renderer
|
|
8665
|
+
* @clypra-studio/engine — Pipeline V2: MPG Frame Renderer
|
|
8666
8666
|
*
|
|
8667
8667
|
* @deprecated Use @clypra/runtime/renderer instead
|
|
8668
8668
|
* The runtime has a more complete Executor implementation.
|
|
@@ -8874,7 +8874,7 @@ declare function clearBodyEffectMask(clipId: string): void;
|
|
|
8874
8874
|
declare function clearAllBodyEffectMasks(): void;
|
|
8875
8875
|
|
|
8876
8876
|
/**
|
|
8877
|
-
* @clypra/engine — Canvas 2D text effects, Lottie tooling, and animation engine.
|
|
8877
|
+
* @clypra-studio/engine — Canvas 2D text effects, Lottie tooling, and animation engine.
|
|
8878
8878
|
* @version 0.1.0
|
|
8879
8879
|
* @packageDocumentation
|
|
8880
8880
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,43 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ALL_TRANSITIONS,
|
|
3
|
-
ChromaticPushTransition,
|
|
4
|
-
CrossDissolveTransition,
|
|
5
|
-
DepthPushTransition,
|
|
6
|
-
DirectionalDissolveTransition,
|
|
7
|
-
ElasticSnapCutTransition,
|
|
8
|
-
FilmBurnWipeTransition,
|
|
9
|
-
FoldTurnTransition,
|
|
10
|
-
FrameHoldStutterTransition,
|
|
11
|
-
GlitchTransition,
|
|
12
|
-
GravityDropTransition,
|
|
13
|
-
IrisRevealTransition,
|
|
14
|
-
LightLeakSweepTransition,
|
|
15
|
-
LumaWipeTransition,
|
|
16
|
-
ParallaxLayerSplitTransition,
|
|
17
|
-
PixelateCollapseTransition,
|
|
18
|
-
PushTransition,
|
|
19
|
-
RackFocusBlendTransition,
|
|
20
|
-
RefractionWarpTransition,
|
|
21
|
-
ShatterBurstTransition,
|
|
22
|
-
StrobeCutTransition,
|
|
23
|
-
TRANSITION_CATEGORIES,
|
|
24
|
-
TRANSITION_PRESETS,
|
|
25
|
-
TransitionRenderer,
|
|
26
|
-
ZoomTransition,
|
|
27
|
-
getAllTransitionTags,
|
|
28
|
-
getAllTransitions,
|
|
29
|
-
getRecommendedDuration,
|
|
30
|
-
getTransitionById,
|
|
31
|
-
getTransitionByRenderer,
|
|
32
|
-
getTransitionCategories,
|
|
33
|
-
getTransitionCountByCategory,
|
|
34
|
-
getTransitionEffect,
|
|
35
|
-
getTransitionsByCategory,
|
|
36
|
-
getTransitionsByTags,
|
|
37
|
-
searchTransitions,
|
|
38
|
-
transitionEffects,
|
|
39
|
-
transitionEffectsById
|
|
40
|
-
} from "./chunk-4Y7ZSGHJ.js";
|
|
41
1
|
import {
|
|
42
2
|
COMPOSITION_PRESETS,
|
|
43
3
|
CUSTOM_ENGINE_IDS,
|
|
@@ -112,6 +72,46 @@ import {
|
|
|
112
72
|
textEffectConfigToScene,
|
|
113
73
|
wrapTextToWidth
|
|
114
74
|
} from "./chunk-S24UVNPZ.js";
|
|
75
|
+
import {
|
|
76
|
+
ALL_TRANSITIONS,
|
|
77
|
+
ChromaticPushTransition,
|
|
78
|
+
CrossDissolveTransition,
|
|
79
|
+
DepthPushTransition,
|
|
80
|
+
DirectionalDissolveTransition,
|
|
81
|
+
ElasticSnapCutTransition,
|
|
82
|
+
FilmBurnWipeTransition,
|
|
83
|
+
FoldTurnTransition,
|
|
84
|
+
FrameHoldStutterTransition,
|
|
85
|
+
GlitchTransition,
|
|
86
|
+
GravityDropTransition,
|
|
87
|
+
IrisRevealTransition,
|
|
88
|
+
LightLeakSweepTransition,
|
|
89
|
+
LumaWipeTransition,
|
|
90
|
+
ParallaxLayerSplitTransition,
|
|
91
|
+
PixelateCollapseTransition,
|
|
92
|
+
PushTransition,
|
|
93
|
+
RackFocusBlendTransition,
|
|
94
|
+
RefractionWarpTransition,
|
|
95
|
+
ShatterBurstTransition,
|
|
96
|
+
StrobeCutTransition,
|
|
97
|
+
TRANSITION_CATEGORIES,
|
|
98
|
+
TRANSITION_PRESETS,
|
|
99
|
+
TransitionRenderer,
|
|
100
|
+
ZoomTransition,
|
|
101
|
+
getAllTransitionTags,
|
|
102
|
+
getAllTransitions,
|
|
103
|
+
getRecommendedDuration,
|
|
104
|
+
getTransitionById,
|
|
105
|
+
getTransitionByRenderer,
|
|
106
|
+
getTransitionCategories,
|
|
107
|
+
getTransitionCountByCategory,
|
|
108
|
+
getTransitionEffect,
|
|
109
|
+
getTransitionsByCategory,
|
|
110
|
+
getTransitionsByTags,
|
|
111
|
+
searchTransitions,
|
|
112
|
+
transitionEffects,
|
|
113
|
+
transitionEffectsById
|
|
114
|
+
} from "./chunk-FIJBB3MH.js";
|
|
115
115
|
import {
|
|
116
116
|
EFFECTS_REGISTRY,
|
|
117
117
|
EffectEngine,
|
|
@@ -144,12 +144,12 @@ import {
|
|
|
144
144
|
searchEffects,
|
|
145
145
|
searchEffectsForApi,
|
|
146
146
|
withContext
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-2VGI6ZB7.js";
|
|
148
148
|
import {
|
|
149
149
|
ColorAdjustmentsEffect,
|
|
150
150
|
PixiRenderBackend,
|
|
151
151
|
hexToRgb
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-4PKBLJ34.js";
|
|
153
153
|
import "./chunk-PZ5AY32C.js";
|
|
154
154
|
|
|
155
155
|
// src/validation.ts
|
|
@@ -12387,6 +12387,10 @@ function getMediaSpriteRecord(clipId) {
|
|
|
12387
12387
|
return mediaRegistry.get(clipId);
|
|
12388
12388
|
}
|
|
12389
12389
|
function applyMediaTransform(sprite, layer, viewport) {
|
|
12390
|
+
if (!sprite || sprite.destroyed || !sprite.anchor) {
|
|
12391
|
+
console.warn("[clypra-engine] Skipping applyMediaTransform \u2014 sprite is null or destroyed");
|
|
12392
|
+
return;
|
|
12393
|
+
}
|
|
12390
12394
|
const { projectWidth, projectHeight } = viewport;
|
|
12391
12395
|
const conform = layer.conform || {
|
|
12392
12396
|
mode: "fit",
|
|
@@ -12429,15 +12433,35 @@ function applyMediaTransform(sprite, layer, viewport) {
|
|
|
12429
12433
|
function releaseMediaSprite(clipId, container) {
|
|
12430
12434
|
const record = mediaRegistry.get(clipId);
|
|
12431
12435
|
if (record) {
|
|
12432
|
-
|
|
12433
|
-
|
|
12434
|
-
|
|
12436
|
+
try {
|
|
12437
|
+
if (record.sprite && !record.sprite.destroyed) {
|
|
12438
|
+
if (record.sprite.parent) {
|
|
12439
|
+
record.sprite.parent.removeChild(record.sprite);
|
|
12440
|
+
} else {
|
|
12441
|
+
container.removeChild(record.sprite);
|
|
12442
|
+
}
|
|
12443
|
+
record.sprite.destroy();
|
|
12444
|
+
}
|
|
12445
|
+
} catch (err) {
|
|
12446
|
+
console.warn(`[clypra-engine] Error destroying sprite for clip ${clipId}:`, err);
|
|
12447
|
+
}
|
|
12448
|
+
try {
|
|
12449
|
+
if (record.texture && !record.texture.destroyed) {
|
|
12450
|
+
record.texture.destroy(false);
|
|
12451
|
+
}
|
|
12452
|
+
} catch (err) {
|
|
12453
|
+
console.warn(`[clypra-engine] Error destroying texture for clip ${clipId}:`, err);
|
|
12454
|
+
}
|
|
12435
12455
|
record.destroyed = true;
|
|
12436
12456
|
mediaRegistry.delete(clipId);
|
|
12437
12457
|
}
|
|
12438
12458
|
}
|
|
12439
12459
|
function getOrCreateMediaSprite(clipId, kind, sourceElement, container) {
|
|
12440
12460
|
let record = mediaRegistry.get(clipId);
|
|
12461
|
+
if (record && (record.destroyed || record.sprite.destroyed)) {
|
|
12462
|
+
mediaRegistry.delete(clipId);
|
|
12463
|
+
record = void 0;
|
|
12464
|
+
}
|
|
12441
12465
|
if (record) {
|
|
12442
12466
|
const isVideo = kind === "video";
|
|
12443
12467
|
const videoEl = sourceElement;
|