@clypra-studio/engine 1.0.6 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-4PKBLJ34.js → chunk-RYA4KGDB.js} +24 -1
- package/dist/chunk-RYA4KGDB.js.map +1 -0
- package/dist/{chunk-S24UVNPZ.js → chunk-Y4FMAOTW.js} +1 -1
- package/dist/chunk-Y4FMAOTW.js.map +1 -0
- package/dist/{index-lNWEWqab.d.cts → index-D6GAXDBy.d.cts} +20 -1
- package/dist/{index-lNWEWqab.d.ts → index-D6GAXDBy.d.ts} +20 -1
- package/dist/index.cjs +24 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +82 -10
- package/dist/index.d.ts +82 -10
- package/dist/index.js +45 -43
- package/dist/index.js.map +1 -1
- package/dist/textEffects/index.cjs.map +1 -1
- package/dist/textEffects/index.d.cts +1 -1
- package/dist/textEffects/index.d.ts +1 -1
- package/dist/textEffects/index.js +1 -1
- package/dist/v2/backends/index.cjs.map +1 -1
- package/dist/v2/backends/index.js +1 -1
- package/package.json +12 -12
- package/dist/chunk-4PKBLJ34.js.map +0 -1
- package/dist/chunk-S24UVNPZ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SceneDocument, K as Keyframe, T as TextEffectConfig, a as StyleRecipe, P as Preset, E as EffectLayer, A as AnimTrack, b as TextEffectDefinition, G as GlowLayer, c as GradientStop, d as TextTemplate, e as TemplateLayer, f as TemplateCategory, g as AnimatableValue, h as TemplateEasingFunction, i as TemplateKeyframe } from './index-
|
|
2
|
-
export { j as AnimationPreset, C as CUSTOM_ENGINE_IDS, k as
|
|
1
|
+
import { S as SceneDocument, K as Keyframe, T as TextEffectConfig, a as StyleRecipe, P as Preset, E as EffectLayer, A as AnimTrack, b as TextEffectDefinition, G as GlowLayer, c as GradientStop, d as TextTemplate, e as TemplateLayer, f as TemplateCategory, g as AnimatableValue, h as TemplateEasingFunction, i as TemplateKeyframe } from './index-D6GAXDBy.cjs';
|
|
2
|
+
export { j as AnimationPreset, C as CUSTOM_ENGINE_IDS, k as CanvasBackgroundConfig, l as CompositorFromScene, m as CompositorSettings, n as CustomEngineId, D as DEFAULT_CANVAS_HEIGHT, o as DEFAULT_CANVAS_WIDTH, p as DEFAULT_DURATION, q as DEFAULT_FONT_SIZE, r as DEFAULT_FPS, s as ENGINE_ID_TO_LEGACY, t as EffectBevel, u as EffectFill, v as EffectFullDefinition, w as EffectGlow, x as EffectIndexItem, y as EffectLayerType, z as EffectPanel, B as EffectShadow, F as EffectStack, H as EffectStroke, I as EvaluateOptions, J as EvaluatedTextLayer, L as FontDescriptor, M as FontLoadResult, N as FontLoader, O as FontVariant, Q as LEGACY_RENDERER_MAP, R as LayerAnimation, U as LayerTarget, V as SCENE_VERSION, W as SceneCanvas, X as SceneText, Y as TemplateImageLayer, Z as TemplateShapeLayer, _ as TemplateTextLayer, $ as TextEffectRenderer, a0 as Timeline, a1 as WebGLCompositor, a2 as _buildConfig, a3 as advanceSceneTime, a4 as builtInPresets, a5 as checkFontVariant, a6 as createEmptyScene, a7 as defaultConfig, a8 as disposeSharedCompositor, a9 as ensureFontsLoaded, aa as evaluateConfig, ab as evaluateScene, ac as getFontLoader, ad as getSceneTime, ae as initializeFontSystem, af as injectFontVariantRules, ag as layerToTextEffectConfig, ah as mergeSceneIntoConfig, ai as newLayerId, aj as renderTextEffectCore, ak as resetFontLoader, al as resetSceneTime, am as resolveCustomEngineId, an as resolveFontFamilyName, ao as sceneToConfig, ap as setSceneTime, aq as syncCompositorFromScene, ar as textEffectConfigToScene } from './index-D6GAXDBy.cjs';
|
|
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';
|
|
@@ -24,8 +24,8 @@ declare const GradientStopSchema: z.ZodObject<{
|
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
declare const EffectFillSchema: z.ZodObject<{
|
|
26
26
|
type: z.ZodEnum<{
|
|
27
|
-
linear: "linear";
|
|
28
27
|
solid: "solid";
|
|
28
|
+
linear: "linear";
|
|
29
29
|
radial: "radial";
|
|
30
30
|
pattern: "pattern";
|
|
31
31
|
none: "none";
|
|
@@ -213,8 +213,8 @@ declare const EffectFullDefinitionSchema: z.ZodObject<{
|
|
|
213
213
|
}, z.core.$strip>;
|
|
214
214
|
fills: z.ZodArray<z.ZodObject<{
|
|
215
215
|
type: z.ZodEnum<{
|
|
216
|
-
linear: "linear";
|
|
217
216
|
solid: "solid";
|
|
217
|
+
linear: "linear";
|
|
218
218
|
radial: "radial";
|
|
219
219
|
pattern: "pattern";
|
|
220
220
|
none: "none";
|
|
@@ -389,8 +389,8 @@ declare const TextEffectDefinitionSchema: z.ZodObject<{
|
|
|
389
389
|
}, z.core.$strip>;
|
|
390
390
|
fills: z.ZodArray<z.ZodObject<{
|
|
391
391
|
type: z.ZodEnum<{
|
|
392
|
-
linear: "linear";
|
|
393
392
|
solid: "solid";
|
|
393
|
+
linear: "linear";
|
|
394
394
|
radial: "radial";
|
|
395
395
|
pattern: "pattern";
|
|
396
396
|
none: "none";
|
|
@@ -556,7 +556,7 @@ declare function validateEffectDefinition(data: unknown): z.ZodSafeParseResult<{
|
|
|
556
556
|
lineHeight: number;
|
|
557
557
|
};
|
|
558
558
|
fills: {
|
|
559
|
-
type: "
|
|
559
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
560
560
|
color?: string;
|
|
561
561
|
gradient?: {
|
|
562
562
|
angle: number;
|
|
@@ -692,7 +692,7 @@ declare function validateEffectDefinitionStrict(data: unknown): {
|
|
|
692
692
|
lineHeight: number;
|
|
693
693
|
};
|
|
694
694
|
fills: {
|
|
695
|
-
type: "
|
|
695
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
696
696
|
color?: string;
|
|
697
697
|
gradient?: {
|
|
698
698
|
angle: number;
|
|
@@ -827,7 +827,7 @@ declare function validateTextEffectDefinition(data: unknown): z.ZodSafeParseResu
|
|
|
827
827
|
lineHeight: number;
|
|
828
828
|
};
|
|
829
829
|
fills: {
|
|
830
|
-
type: "
|
|
830
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
831
831
|
color?: string;
|
|
832
832
|
gradient?: {
|
|
833
833
|
angle: number;
|
|
@@ -964,7 +964,7 @@ declare function validateTextEffectDefinitionStrict(data: unknown): {
|
|
|
964
964
|
lineHeight: number;
|
|
965
965
|
};
|
|
966
966
|
fills: {
|
|
967
|
-
type: "
|
|
967
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
968
968
|
color?: string;
|
|
969
969
|
gradient?: {
|
|
970
970
|
angle: number;
|
|
@@ -2867,6 +2867,78 @@ declare const ColorMatrixEffect: PixiEffectDefinition;
|
|
|
2867
2867
|
|
|
2868
2868
|
declare const NeonGlowEffect: PixiEffectDefinition;
|
|
2869
2869
|
|
|
2870
|
+
interface GradingParams {
|
|
2871
|
+
exposure?: number;
|
|
2872
|
+
brightness?: number;
|
|
2873
|
+
contrast?: number;
|
|
2874
|
+
saturation?: number;
|
|
2875
|
+
temperature?: number;
|
|
2876
|
+
tint?: number;
|
|
2877
|
+
sepia?: number;
|
|
2878
|
+
grayscale?: number;
|
|
2879
|
+
hueRotate?: number;
|
|
2880
|
+
vignette?: number;
|
|
2881
|
+
invert?: number;
|
|
2882
|
+
lift?: number;
|
|
2883
|
+
splitTone?: {
|
|
2884
|
+
shadowColor: string;
|
|
2885
|
+
shadowStrength: number;
|
|
2886
|
+
highlightColor: string;
|
|
2887
|
+
highlightStrength: number;
|
|
2888
|
+
balance: number;
|
|
2889
|
+
};
|
|
2890
|
+
grain?: {
|
|
2891
|
+
intensity: number;
|
|
2892
|
+
size: number;
|
|
2893
|
+
};
|
|
2894
|
+
halation?: {
|
|
2895
|
+
color: string;
|
|
2896
|
+
threshold: number;
|
|
2897
|
+
intensity: number;
|
|
2898
|
+
};
|
|
2899
|
+
channelMix?: {
|
|
2900
|
+
r: number;
|
|
2901
|
+
g: number;
|
|
2902
|
+
b: number;
|
|
2903
|
+
};
|
|
2904
|
+
duotone?: {
|
|
2905
|
+
darkColor: string;
|
|
2906
|
+
lightColor: string;
|
|
2907
|
+
};
|
|
2908
|
+
vibrance?: {
|
|
2909
|
+
amount: number;
|
|
2910
|
+
protectedHue?: string;
|
|
2911
|
+
};
|
|
2912
|
+
crossProcess?: {
|
|
2913
|
+
amount: number;
|
|
2914
|
+
};
|
|
2915
|
+
}
|
|
2916
|
+
interface ColorAdjustments {
|
|
2917
|
+
exposure?: number;
|
|
2918
|
+
brightness?: number;
|
|
2919
|
+
contrast?: number;
|
|
2920
|
+
saturation?: number;
|
|
2921
|
+
temperature?: number;
|
|
2922
|
+
tint?: number;
|
|
2923
|
+
sepia?: number;
|
|
2924
|
+
grayscale?: number;
|
|
2925
|
+
hue?: number;
|
|
2926
|
+
vignette?: number;
|
|
2927
|
+
invert?: boolean;
|
|
2928
|
+
lift?: number;
|
|
2929
|
+
vibrance?: {
|
|
2930
|
+
amount: number;
|
|
2931
|
+
protectedHue?: string;
|
|
2932
|
+
};
|
|
2933
|
+
grain?: {
|
|
2934
|
+
intensity: number;
|
|
2935
|
+
size: number;
|
|
2936
|
+
};
|
|
2937
|
+
crossProcess?: {
|
|
2938
|
+
amount: number;
|
|
2939
|
+
};
|
|
2940
|
+
}
|
|
2941
|
+
declare function mergeGradingParams(presetParams: GradingParams | undefined, manualAdjustments: ColorAdjustments | undefined): GradingParams;
|
|
2870
2942
|
/** Convert a hex color string (#RRGGBB) to a normalized [r, g, b] array. */
|
|
2871
2943
|
declare function hexToRgb(hex: string): [number, number, number];
|
|
2872
2944
|
declare const ColorAdjustmentsEffect: PixiEffectDefinition;
|
|
@@ -8881,4 +8953,4 @@ declare function clearAllBodyEffectMasks(): void;
|
|
|
8881
8953
|
/** Package version */
|
|
8882
8954
|
declare const VERSION = "0.1.0";
|
|
8883
8955
|
|
|
8884
|
-
export { AlphaEffect, type AnimBuildOpts, type AnimKeyframe, AnimTrack, type AnimTrackDef, type AnimatableParamDef, AnimatableValue, type AnimationCategory, AnimationPresetSchema, AnimationSchema, type AnimationState, AsciiEffect, type AssetHandle, type AssetKind, BUILTIN_CANVAS_TEMPLATES, type BatchInjection, type BodySegmentationOptions, type BodySegmentationRequest, type BodySegmentationResponse, type BodySegmentationRuntime, type BodySegmentationRuntimeConfig, BoundingBoxSchema, BulgePinchEffect, COMPOSITION_PRESETS, CRTEffect, CanvasDevice, CinematicLUTEffect, type ClipConform, type ClipSegment, ColorAdjustmentsEffect, ColorGradientEffect, ColorMatrixEffect, ColorOverlayEffect, CommandBuffer, CommandBufferBuilder, type CompositionPreset, type ConformMode, CrossHatchEffect, DEFAULT_TEXT_STYLE, DisplacementEffect, DotEffect, type DotLottieManifest, type DrawPerCharTextOptions, DropShadowEffect, EMPHASIS_PRESETS, ENTRANCE_PRESETS, EXIT_PRESETS, type EasingControlPoint, EffectBevelSchema, EffectFillSchema, EffectFullDefinitionSchema, EffectGlowSchema, EffectIndexItemSchema, type EffectInstance, EffectLayer, EffectPanelSchema, EffectShadowSchema, EffectStackSchema, EffectStrokeSchema, EmbossEffect, type ExecutionPlanner, FONT_WEIGHT_OPTIONS, type FillType, FilmGrainEffect, type FocalPoint, FontSchema, FrameGraph, FrameGraphBuilder, type FrameSource, GaussianBlurEffect, type GifExportOptions, type GifFrame, GlitchBandEffect, GlowEffect, GlowLayer, type GradientDir, GradientStop, GradientStopSchema, GraphValidator, GrayscaleEffect, HalationEffect, HslAdjustmentEffect, ImageLayerSchema, InkBrushEngine, KawaseBlurEffect, Keyframe, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, LayerAnimationSchema, LensFlareEffect, LightLeakEffect, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottiePropertyPath, type LottieTemplatePreset, MPGFrameRenderer, type MediaFitMode, type MediaLayout, type MediaSpriteRecord, MotionBlurEffect, type Mp4ExportOptions, NeonGlowEffect, type NodeDefinition, NodeRegistry, type NormalizedCrop, NullBackend, OldFilmEffect, OutlineEffect, type ParsedTextLayer, PixelateEffect, PixiEffectDefinition, PixiRenderer, type PngSequenceFrame, type PngSequenceOptions, Preset, ProjectCompiler, ProjectHelper, type ProjectManifestV2, RGBSplitEffect, RadialBlurEffect, type RecordedExecution, ReflectionEffect, RenderBackend, type RenderViewport, type ResolvedFit, type ResolvedMediaLayout, type ResourceAllocation, SUPPORTED_FONT_FAMILIES, SceneDocument, type ShaderCompilation, ShapeLayerSchema, ShockwaveEffect, type Size, StaticNoiseEffect, StyleRecipe, TEMPLATE_CATEGORIES, TemplateCategory, TemplateCategorySchema, TemplateEasingFunction, TemplateKeyframe, TemplateLayer, TemplateLayerSchema, type TemplatePresetCategory, TemplateRenderer, type TextAlign, type TextCustomization, TextEffectBuilder, TextEffectConfig, TextEffectDefinition, TextEffectDefinitionSchema, type TextLayerConfig, TextLayerSchema, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, type TextStyleOverride, TextTemplate, TextTemplateSchema, TiltShiftEffect, type TrackDefinition, TwistEffect, VERSION, VHSEffect, type ValidatedEffectDefinition, type ValidatedTextEffectDefinition, type ValidatedTextTemplate, type ValidationError, type ValidationResult, VignetteEffect, WEBM_EXPORT_MAX_FRAMES, type WebMExportOptions, ZoomBlurEffect, _resetPlatformCache, addImageLayer, addKeyframe, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, alignToLottieJ, applyBodyEffectMask, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyMediaTransform, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, backgroundBlurEffect, bakeAnimationIntoLayer, beginStickerFrame, beginTextFrame, blendConfigs, blendScenes, bloomEffect, bodyEffects, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInRecipes, calculateCropFromFocalPoint, calculateDefaultCoverCrop, calculateMediaFit, captureImageSourceDimensions, captureLottieFrames, captureVideoSourceDimensions, chromaticAberrationEffect, clearAllBodyEffectMasks, clearAllMediaSprites, clearAllStickerBridges, clearAllTextBridges, clearAnimationFromLayer, clearBodyEffectMask, clearFontCache, clearPendingVideoLayers, clearRecipeCache, cloneSceneWithNewIds, colorIsolationEffect, computeAutoFitFontSize, computeFitZoom, computeTextLayout, countTextGlyphs, createBlankLottie, createCanvas, createDefaultRevealTrack, createGPUBodyGlowFilter, createGPUBodyOutlineFilter, createGPUBodyParticlesFilter, createKeyframed, createPulseOpacityTrack, cubicBezier, deleteKeyframe, downloadDotLottie, downloadLottieJson, downloadLottieMp4, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, enableKeyframing, encodeGif, endStickerFrame, endTextFrame, ensureDefaultTimeline, ensureFontInLottie, evaluateAnimatable, exportLottieToMp4, filmGrainEffect, findTrackIndex, formatValidationErrors, getActiveMediaSpriteKeys, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getCanvasTemplatePreset, getCanvasTemplatesByCategory, getClipLayout, getDefaultText, getLayerById, getMediaSpriteRecord, getOrCreateMediaSprite, getPresetScene, getSharedPixiRenderer, getSourceCropRect, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getVideoEffect, getWebMFrameCount, heatDistortionEffect, hexToLottieColor, hexToLottieRgb, hexToRgb, identityEffect, injectBatch, injectColor, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, isKeyframed, isMp4ExportSupported, isWebMExportSupported, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, moveKeyframe, neonOutlineEffect, parseHistorySnapshot, parseLottieJson, particleAuraEffect, preloadGoogleFont, presetToRecipe, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, releaseMediaSprite, releaseSharedPixiRenderer, removeKeyframe, removeTemplateKeyframe, removeTrack, renderPngSequence, renderSceneWebM, renderStickerLayerBridged, renderTextLayerBridged, resizeCharFillColors, resolveAnimatedScalar, resolveConform, resolveMediaLayout, restoreLetterSpacing, rotateCrop, scanLottieFonts, scanTextLayers, setCharFillColor, setTracks, shouldUsePerCharFill, snapshotScene, sortKeyframes, spotlightEffect, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, supportsWebGL2, trackId, unmountStickerLayerBridge, unmountTextLayerBridge, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneCustomEngine, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, validateEffectDefinition, validateEffectDefinitionStrict, validateTextEffectDefinition, validateTextEffectDefinitionStrict, validateTextTemplate, validateTextTemplateStrict, vhsEffect, videoEffects, videoEffectsById, waitForFontsReady, wrapTextToWidth };
|
|
8956
|
+
export { AlphaEffect, type AnimBuildOpts, type AnimKeyframe, AnimTrack, type AnimTrackDef, type AnimatableParamDef, AnimatableValue, type AnimationCategory, AnimationPresetSchema, AnimationSchema, type AnimationState, AsciiEffect, type AssetHandle, type AssetKind, BUILTIN_CANVAS_TEMPLATES, type BatchInjection, type BodySegmentationOptions, type BodySegmentationRequest, type BodySegmentationResponse, type BodySegmentationRuntime, type BodySegmentationRuntimeConfig, BoundingBoxSchema, BulgePinchEffect, COMPOSITION_PRESETS, CRTEffect, CanvasDevice, CinematicLUTEffect, type ClipConform, type ClipSegment, type ColorAdjustments, ColorAdjustmentsEffect, ColorGradientEffect, ColorMatrixEffect, ColorOverlayEffect, CommandBuffer, CommandBufferBuilder, type CompositionPreset, type ConformMode, CrossHatchEffect, DEFAULT_TEXT_STYLE, DisplacementEffect, DotEffect, type DotLottieManifest, type DrawPerCharTextOptions, DropShadowEffect, EMPHASIS_PRESETS, ENTRANCE_PRESETS, EXIT_PRESETS, type EasingControlPoint, EffectBevelSchema, EffectFillSchema, EffectFullDefinitionSchema, EffectGlowSchema, EffectIndexItemSchema, type EffectInstance, EffectLayer, EffectPanelSchema, EffectShadowSchema, EffectStackSchema, EffectStrokeSchema, EmbossEffect, type ExecutionPlanner, FONT_WEIGHT_OPTIONS, type FillType, FilmGrainEffect, type FocalPoint, FontSchema, FrameGraph, FrameGraphBuilder, type FrameSource, GaussianBlurEffect, type GifExportOptions, type GifFrame, GlitchBandEffect, GlowEffect, GlowLayer, type GradientDir, GradientStop, GradientStopSchema, type GradingParams, GraphValidator, GrayscaleEffect, HalationEffect, HslAdjustmentEffect, ImageLayerSchema, InkBrushEngine, KawaseBlurEffect, Keyframe, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, LayerAnimationSchema, LensFlareEffect, LightLeakEffect, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottiePropertyPath, type LottieTemplatePreset, MPGFrameRenderer, type MediaFitMode, type MediaLayout, type MediaSpriteRecord, MotionBlurEffect, type Mp4ExportOptions, NeonGlowEffect, type NodeDefinition, NodeRegistry, type NormalizedCrop, NullBackend, OldFilmEffect, OutlineEffect, type ParsedTextLayer, PixelateEffect, PixiEffectDefinition, PixiRenderer, type PngSequenceFrame, type PngSequenceOptions, Preset, ProjectCompiler, ProjectHelper, type ProjectManifestV2, RGBSplitEffect, RadialBlurEffect, type RecordedExecution, ReflectionEffect, RenderBackend, type RenderViewport, type ResolvedFit, type ResolvedMediaLayout, type ResourceAllocation, SUPPORTED_FONT_FAMILIES, SceneDocument, type ShaderCompilation, ShapeLayerSchema, ShockwaveEffect, type Size, StaticNoiseEffect, StyleRecipe, TEMPLATE_CATEGORIES, TemplateCategory, TemplateCategorySchema, TemplateEasingFunction, TemplateKeyframe, TemplateLayer, TemplateLayerSchema, type TemplatePresetCategory, TemplateRenderer, type TextAlign, type TextCustomization, TextEffectBuilder, TextEffectConfig, TextEffectDefinition, TextEffectDefinitionSchema, type TextLayerConfig, TextLayerSchema, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, type TextStyleOverride, TextTemplate, TextTemplateSchema, TiltShiftEffect, type TrackDefinition, TwistEffect, VERSION, VHSEffect, type ValidatedEffectDefinition, type ValidatedTextEffectDefinition, type ValidatedTextTemplate, type ValidationError, type ValidationResult, VignetteEffect, WEBM_EXPORT_MAX_FRAMES, type WebMExportOptions, ZoomBlurEffect, _resetPlatformCache, addImageLayer, addKeyframe, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, alignToLottieJ, applyBodyEffectMask, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyMediaTransform, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, backgroundBlurEffect, bakeAnimationIntoLayer, beginStickerFrame, beginTextFrame, blendConfigs, blendScenes, bloomEffect, bodyEffects, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInRecipes, calculateCropFromFocalPoint, calculateDefaultCoverCrop, calculateMediaFit, captureImageSourceDimensions, captureLottieFrames, captureVideoSourceDimensions, chromaticAberrationEffect, clearAllBodyEffectMasks, clearAllMediaSprites, clearAllStickerBridges, clearAllTextBridges, clearAnimationFromLayer, clearBodyEffectMask, clearFontCache, clearPendingVideoLayers, clearRecipeCache, cloneSceneWithNewIds, colorIsolationEffect, computeAutoFitFontSize, computeFitZoom, computeTextLayout, countTextGlyphs, createBlankLottie, createCanvas, createDefaultRevealTrack, createGPUBodyGlowFilter, createGPUBodyOutlineFilter, createGPUBodyParticlesFilter, createKeyframed, createPulseOpacityTrack, cubicBezier, deleteKeyframe, downloadDotLottie, downloadLottieJson, downloadLottieMp4, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, enableKeyframing, encodeGif, endStickerFrame, endTextFrame, ensureDefaultTimeline, ensureFontInLottie, evaluateAnimatable, exportLottieToMp4, filmGrainEffect, findTrackIndex, formatValidationErrors, getActiveMediaSpriteKeys, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getCanvasTemplatePreset, getCanvasTemplatesByCategory, getClipLayout, getDefaultText, getLayerById, getMediaSpriteRecord, getOrCreateMediaSprite, getPresetScene, getSharedPixiRenderer, getSourceCropRect, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getVideoEffect, getWebMFrameCount, heatDistortionEffect, hexToLottieColor, hexToLottieRgb, hexToRgb, identityEffect, injectBatch, injectColor, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, isKeyframed, isMp4ExportSupported, isWebMExportSupported, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, mergeGradingParams, moveKeyframe, neonOutlineEffect, parseHistorySnapshot, parseLottieJson, particleAuraEffect, preloadGoogleFont, presetToRecipe, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, releaseMediaSprite, releaseSharedPixiRenderer, removeKeyframe, removeTemplateKeyframe, removeTrack, renderPngSequence, renderSceneWebM, renderStickerLayerBridged, renderTextLayerBridged, resizeCharFillColors, resolveAnimatedScalar, resolveConform, resolveMediaLayout, restoreLetterSpacing, rotateCrop, scanLottieFonts, scanTextLayers, setCharFillColor, setTracks, shouldUsePerCharFill, snapshotScene, sortKeyframes, spotlightEffect, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, supportsWebGL2, trackId, unmountStickerLayerBridge, unmountTextLayerBridge, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneCustomEngine, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, validateEffectDefinition, validateEffectDefinitionStrict, validateTextEffectDefinition, validateTextEffectDefinitionStrict, validateTextTemplate, validateTextTemplateStrict, vhsEffect, videoEffects, videoEffectsById, waitForFontsReady, wrapTextToWidth };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SceneDocument, K as Keyframe, T as TextEffectConfig, a as StyleRecipe, P as Preset, E as EffectLayer, A as AnimTrack, b as TextEffectDefinition, G as GlowLayer, c as GradientStop, d as TextTemplate, e as TemplateLayer, f as TemplateCategory, g as AnimatableValue, h as TemplateEasingFunction, i as TemplateKeyframe } from './index-
|
|
2
|
-
export { j as AnimationPreset, C as CUSTOM_ENGINE_IDS, k as
|
|
1
|
+
import { S as SceneDocument, K as Keyframe, T as TextEffectConfig, a as StyleRecipe, P as Preset, E as EffectLayer, A as AnimTrack, b as TextEffectDefinition, G as GlowLayer, c as GradientStop, d as TextTemplate, e as TemplateLayer, f as TemplateCategory, g as AnimatableValue, h as TemplateEasingFunction, i as TemplateKeyframe } from './index-D6GAXDBy.js';
|
|
2
|
+
export { j as AnimationPreset, C as CUSTOM_ENGINE_IDS, k as CanvasBackgroundConfig, l as CompositorFromScene, m as CompositorSettings, n as CustomEngineId, D as DEFAULT_CANVAS_HEIGHT, o as DEFAULT_CANVAS_WIDTH, p as DEFAULT_DURATION, q as DEFAULT_FONT_SIZE, r as DEFAULT_FPS, s as ENGINE_ID_TO_LEGACY, t as EffectBevel, u as EffectFill, v as EffectFullDefinition, w as EffectGlow, x as EffectIndexItem, y as EffectLayerType, z as EffectPanel, B as EffectShadow, F as EffectStack, H as EffectStroke, I as EvaluateOptions, J as EvaluatedTextLayer, L as FontDescriptor, M as FontLoadResult, N as FontLoader, O as FontVariant, Q as LEGACY_RENDERER_MAP, R as LayerAnimation, U as LayerTarget, V as SCENE_VERSION, W as SceneCanvas, X as SceneText, Y as TemplateImageLayer, Z as TemplateShapeLayer, _ as TemplateTextLayer, $ as TextEffectRenderer, a0 as Timeline, a1 as WebGLCompositor, a2 as _buildConfig, a3 as advanceSceneTime, a4 as builtInPresets, a5 as checkFontVariant, a6 as createEmptyScene, a7 as defaultConfig, a8 as disposeSharedCompositor, a9 as ensureFontsLoaded, aa as evaluateConfig, ab as evaluateScene, ac as getFontLoader, ad as getSceneTime, ae as initializeFontSystem, af as injectFontVariantRules, ag as layerToTextEffectConfig, ah as mergeSceneIntoConfig, ai as newLayerId, aj as renderTextEffectCore, ak as resetFontLoader, al as resetSceneTime, am as resolveCustomEngineId, an as resolveFontFamilyName, ao as sceneToConfig, ap as setSceneTime, aq as syncCompositorFromScene, ar as textEffectConfigToScene } from './index-D6GAXDBy.js';
|
|
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';
|
|
@@ -24,8 +24,8 @@ declare const GradientStopSchema: z.ZodObject<{
|
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
declare const EffectFillSchema: z.ZodObject<{
|
|
26
26
|
type: z.ZodEnum<{
|
|
27
|
-
linear: "linear";
|
|
28
27
|
solid: "solid";
|
|
28
|
+
linear: "linear";
|
|
29
29
|
radial: "radial";
|
|
30
30
|
pattern: "pattern";
|
|
31
31
|
none: "none";
|
|
@@ -213,8 +213,8 @@ declare const EffectFullDefinitionSchema: z.ZodObject<{
|
|
|
213
213
|
}, z.core.$strip>;
|
|
214
214
|
fills: z.ZodArray<z.ZodObject<{
|
|
215
215
|
type: z.ZodEnum<{
|
|
216
|
-
linear: "linear";
|
|
217
216
|
solid: "solid";
|
|
217
|
+
linear: "linear";
|
|
218
218
|
radial: "radial";
|
|
219
219
|
pattern: "pattern";
|
|
220
220
|
none: "none";
|
|
@@ -389,8 +389,8 @@ declare const TextEffectDefinitionSchema: z.ZodObject<{
|
|
|
389
389
|
}, z.core.$strip>;
|
|
390
390
|
fills: z.ZodArray<z.ZodObject<{
|
|
391
391
|
type: z.ZodEnum<{
|
|
392
|
-
linear: "linear";
|
|
393
392
|
solid: "solid";
|
|
393
|
+
linear: "linear";
|
|
394
394
|
radial: "radial";
|
|
395
395
|
pattern: "pattern";
|
|
396
396
|
none: "none";
|
|
@@ -556,7 +556,7 @@ declare function validateEffectDefinition(data: unknown): z.ZodSafeParseResult<{
|
|
|
556
556
|
lineHeight: number;
|
|
557
557
|
};
|
|
558
558
|
fills: {
|
|
559
|
-
type: "
|
|
559
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
560
560
|
color?: string;
|
|
561
561
|
gradient?: {
|
|
562
562
|
angle: number;
|
|
@@ -692,7 +692,7 @@ declare function validateEffectDefinitionStrict(data: unknown): {
|
|
|
692
692
|
lineHeight: number;
|
|
693
693
|
};
|
|
694
694
|
fills: {
|
|
695
|
-
type: "
|
|
695
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
696
696
|
color?: string;
|
|
697
697
|
gradient?: {
|
|
698
698
|
angle: number;
|
|
@@ -827,7 +827,7 @@ declare function validateTextEffectDefinition(data: unknown): z.ZodSafeParseResu
|
|
|
827
827
|
lineHeight: number;
|
|
828
828
|
};
|
|
829
829
|
fills: {
|
|
830
|
-
type: "
|
|
830
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
831
831
|
color?: string;
|
|
832
832
|
gradient?: {
|
|
833
833
|
angle: number;
|
|
@@ -964,7 +964,7 @@ declare function validateTextEffectDefinitionStrict(data: unknown): {
|
|
|
964
964
|
lineHeight: number;
|
|
965
965
|
};
|
|
966
966
|
fills: {
|
|
967
|
-
type: "
|
|
967
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
968
968
|
color?: string;
|
|
969
969
|
gradient?: {
|
|
970
970
|
angle: number;
|
|
@@ -2867,6 +2867,78 @@ declare const ColorMatrixEffect: PixiEffectDefinition;
|
|
|
2867
2867
|
|
|
2868
2868
|
declare const NeonGlowEffect: PixiEffectDefinition;
|
|
2869
2869
|
|
|
2870
|
+
interface GradingParams {
|
|
2871
|
+
exposure?: number;
|
|
2872
|
+
brightness?: number;
|
|
2873
|
+
contrast?: number;
|
|
2874
|
+
saturation?: number;
|
|
2875
|
+
temperature?: number;
|
|
2876
|
+
tint?: number;
|
|
2877
|
+
sepia?: number;
|
|
2878
|
+
grayscale?: number;
|
|
2879
|
+
hueRotate?: number;
|
|
2880
|
+
vignette?: number;
|
|
2881
|
+
invert?: number;
|
|
2882
|
+
lift?: number;
|
|
2883
|
+
splitTone?: {
|
|
2884
|
+
shadowColor: string;
|
|
2885
|
+
shadowStrength: number;
|
|
2886
|
+
highlightColor: string;
|
|
2887
|
+
highlightStrength: number;
|
|
2888
|
+
balance: number;
|
|
2889
|
+
};
|
|
2890
|
+
grain?: {
|
|
2891
|
+
intensity: number;
|
|
2892
|
+
size: number;
|
|
2893
|
+
};
|
|
2894
|
+
halation?: {
|
|
2895
|
+
color: string;
|
|
2896
|
+
threshold: number;
|
|
2897
|
+
intensity: number;
|
|
2898
|
+
};
|
|
2899
|
+
channelMix?: {
|
|
2900
|
+
r: number;
|
|
2901
|
+
g: number;
|
|
2902
|
+
b: number;
|
|
2903
|
+
};
|
|
2904
|
+
duotone?: {
|
|
2905
|
+
darkColor: string;
|
|
2906
|
+
lightColor: string;
|
|
2907
|
+
};
|
|
2908
|
+
vibrance?: {
|
|
2909
|
+
amount: number;
|
|
2910
|
+
protectedHue?: string;
|
|
2911
|
+
};
|
|
2912
|
+
crossProcess?: {
|
|
2913
|
+
amount: number;
|
|
2914
|
+
};
|
|
2915
|
+
}
|
|
2916
|
+
interface ColorAdjustments {
|
|
2917
|
+
exposure?: number;
|
|
2918
|
+
brightness?: number;
|
|
2919
|
+
contrast?: number;
|
|
2920
|
+
saturation?: number;
|
|
2921
|
+
temperature?: number;
|
|
2922
|
+
tint?: number;
|
|
2923
|
+
sepia?: number;
|
|
2924
|
+
grayscale?: number;
|
|
2925
|
+
hue?: number;
|
|
2926
|
+
vignette?: number;
|
|
2927
|
+
invert?: boolean;
|
|
2928
|
+
lift?: number;
|
|
2929
|
+
vibrance?: {
|
|
2930
|
+
amount: number;
|
|
2931
|
+
protectedHue?: string;
|
|
2932
|
+
};
|
|
2933
|
+
grain?: {
|
|
2934
|
+
intensity: number;
|
|
2935
|
+
size: number;
|
|
2936
|
+
};
|
|
2937
|
+
crossProcess?: {
|
|
2938
|
+
amount: number;
|
|
2939
|
+
};
|
|
2940
|
+
}
|
|
2941
|
+
declare function mergeGradingParams(presetParams: GradingParams | undefined, manualAdjustments: ColorAdjustments | undefined): GradingParams;
|
|
2870
2942
|
/** Convert a hex color string (#RRGGBB) to a normalized [r, g, b] array. */
|
|
2871
2943
|
declare function hexToRgb(hex: string): [number, number, number];
|
|
2872
2944
|
declare const ColorAdjustmentsEffect: PixiEffectDefinition;
|
|
@@ -8881,4 +8953,4 @@ declare function clearAllBodyEffectMasks(): void;
|
|
|
8881
8953
|
/** Package version */
|
|
8882
8954
|
declare const VERSION = "0.1.0";
|
|
8883
8955
|
|
|
8884
|
-
export { AlphaEffect, type AnimBuildOpts, type AnimKeyframe, AnimTrack, type AnimTrackDef, type AnimatableParamDef, AnimatableValue, type AnimationCategory, AnimationPresetSchema, AnimationSchema, type AnimationState, AsciiEffect, type AssetHandle, type AssetKind, BUILTIN_CANVAS_TEMPLATES, type BatchInjection, type BodySegmentationOptions, type BodySegmentationRequest, type BodySegmentationResponse, type BodySegmentationRuntime, type BodySegmentationRuntimeConfig, BoundingBoxSchema, BulgePinchEffect, COMPOSITION_PRESETS, CRTEffect, CanvasDevice, CinematicLUTEffect, type ClipConform, type ClipSegment, ColorAdjustmentsEffect, ColorGradientEffect, ColorMatrixEffect, ColorOverlayEffect, CommandBuffer, CommandBufferBuilder, type CompositionPreset, type ConformMode, CrossHatchEffect, DEFAULT_TEXT_STYLE, DisplacementEffect, DotEffect, type DotLottieManifest, type DrawPerCharTextOptions, DropShadowEffect, EMPHASIS_PRESETS, ENTRANCE_PRESETS, EXIT_PRESETS, type EasingControlPoint, EffectBevelSchema, EffectFillSchema, EffectFullDefinitionSchema, EffectGlowSchema, EffectIndexItemSchema, type EffectInstance, EffectLayer, EffectPanelSchema, EffectShadowSchema, EffectStackSchema, EffectStrokeSchema, EmbossEffect, type ExecutionPlanner, FONT_WEIGHT_OPTIONS, type FillType, FilmGrainEffect, type FocalPoint, FontSchema, FrameGraph, FrameGraphBuilder, type FrameSource, GaussianBlurEffect, type GifExportOptions, type GifFrame, GlitchBandEffect, GlowEffect, GlowLayer, type GradientDir, GradientStop, GradientStopSchema, GraphValidator, GrayscaleEffect, HalationEffect, HslAdjustmentEffect, ImageLayerSchema, InkBrushEngine, KawaseBlurEffect, Keyframe, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, LayerAnimationSchema, LensFlareEffect, LightLeakEffect, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottiePropertyPath, type LottieTemplatePreset, MPGFrameRenderer, type MediaFitMode, type MediaLayout, type MediaSpriteRecord, MotionBlurEffect, type Mp4ExportOptions, NeonGlowEffect, type NodeDefinition, NodeRegistry, type NormalizedCrop, NullBackend, OldFilmEffect, OutlineEffect, type ParsedTextLayer, PixelateEffect, PixiEffectDefinition, PixiRenderer, type PngSequenceFrame, type PngSequenceOptions, Preset, ProjectCompiler, ProjectHelper, type ProjectManifestV2, RGBSplitEffect, RadialBlurEffect, type RecordedExecution, ReflectionEffect, RenderBackend, type RenderViewport, type ResolvedFit, type ResolvedMediaLayout, type ResourceAllocation, SUPPORTED_FONT_FAMILIES, SceneDocument, type ShaderCompilation, ShapeLayerSchema, ShockwaveEffect, type Size, StaticNoiseEffect, StyleRecipe, TEMPLATE_CATEGORIES, TemplateCategory, TemplateCategorySchema, TemplateEasingFunction, TemplateKeyframe, TemplateLayer, TemplateLayerSchema, type TemplatePresetCategory, TemplateRenderer, type TextAlign, type TextCustomization, TextEffectBuilder, TextEffectConfig, TextEffectDefinition, TextEffectDefinitionSchema, type TextLayerConfig, TextLayerSchema, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, type TextStyleOverride, TextTemplate, TextTemplateSchema, TiltShiftEffect, type TrackDefinition, TwistEffect, VERSION, VHSEffect, type ValidatedEffectDefinition, type ValidatedTextEffectDefinition, type ValidatedTextTemplate, type ValidationError, type ValidationResult, VignetteEffect, WEBM_EXPORT_MAX_FRAMES, type WebMExportOptions, ZoomBlurEffect, _resetPlatformCache, addImageLayer, addKeyframe, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, alignToLottieJ, applyBodyEffectMask, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyMediaTransform, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, backgroundBlurEffect, bakeAnimationIntoLayer, beginStickerFrame, beginTextFrame, blendConfigs, blendScenes, bloomEffect, bodyEffects, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInRecipes, calculateCropFromFocalPoint, calculateDefaultCoverCrop, calculateMediaFit, captureImageSourceDimensions, captureLottieFrames, captureVideoSourceDimensions, chromaticAberrationEffect, clearAllBodyEffectMasks, clearAllMediaSprites, clearAllStickerBridges, clearAllTextBridges, clearAnimationFromLayer, clearBodyEffectMask, clearFontCache, clearPendingVideoLayers, clearRecipeCache, cloneSceneWithNewIds, colorIsolationEffect, computeAutoFitFontSize, computeFitZoom, computeTextLayout, countTextGlyphs, createBlankLottie, createCanvas, createDefaultRevealTrack, createGPUBodyGlowFilter, createGPUBodyOutlineFilter, createGPUBodyParticlesFilter, createKeyframed, createPulseOpacityTrack, cubicBezier, deleteKeyframe, downloadDotLottie, downloadLottieJson, downloadLottieMp4, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, enableKeyframing, encodeGif, endStickerFrame, endTextFrame, ensureDefaultTimeline, ensureFontInLottie, evaluateAnimatable, exportLottieToMp4, filmGrainEffect, findTrackIndex, formatValidationErrors, getActiveMediaSpriteKeys, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getCanvasTemplatePreset, getCanvasTemplatesByCategory, getClipLayout, getDefaultText, getLayerById, getMediaSpriteRecord, getOrCreateMediaSprite, getPresetScene, getSharedPixiRenderer, getSourceCropRect, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getVideoEffect, getWebMFrameCount, heatDistortionEffect, hexToLottieColor, hexToLottieRgb, hexToRgb, identityEffect, injectBatch, injectColor, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, isKeyframed, isMp4ExportSupported, isWebMExportSupported, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, moveKeyframe, neonOutlineEffect, parseHistorySnapshot, parseLottieJson, particleAuraEffect, preloadGoogleFont, presetToRecipe, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, releaseMediaSprite, releaseSharedPixiRenderer, removeKeyframe, removeTemplateKeyframe, removeTrack, renderPngSequence, renderSceneWebM, renderStickerLayerBridged, renderTextLayerBridged, resizeCharFillColors, resolveAnimatedScalar, resolveConform, resolveMediaLayout, restoreLetterSpacing, rotateCrop, scanLottieFonts, scanTextLayers, setCharFillColor, setTracks, shouldUsePerCharFill, snapshotScene, sortKeyframes, spotlightEffect, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, supportsWebGL2, trackId, unmountStickerLayerBridge, unmountTextLayerBridge, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneCustomEngine, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, validateEffectDefinition, validateEffectDefinitionStrict, validateTextEffectDefinition, validateTextEffectDefinitionStrict, validateTextTemplate, validateTextTemplateStrict, vhsEffect, videoEffects, videoEffectsById, waitForFontsReady, wrapTextToWidth };
|
|
8956
|
+
export { AlphaEffect, type AnimBuildOpts, type AnimKeyframe, AnimTrack, type AnimTrackDef, type AnimatableParamDef, AnimatableValue, type AnimationCategory, AnimationPresetSchema, AnimationSchema, type AnimationState, AsciiEffect, type AssetHandle, type AssetKind, BUILTIN_CANVAS_TEMPLATES, type BatchInjection, type BodySegmentationOptions, type BodySegmentationRequest, type BodySegmentationResponse, type BodySegmentationRuntime, type BodySegmentationRuntimeConfig, BoundingBoxSchema, BulgePinchEffect, COMPOSITION_PRESETS, CRTEffect, CanvasDevice, CinematicLUTEffect, type ClipConform, type ClipSegment, type ColorAdjustments, ColorAdjustmentsEffect, ColorGradientEffect, ColorMatrixEffect, ColorOverlayEffect, CommandBuffer, CommandBufferBuilder, type CompositionPreset, type ConformMode, CrossHatchEffect, DEFAULT_TEXT_STYLE, DisplacementEffect, DotEffect, type DotLottieManifest, type DrawPerCharTextOptions, DropShadowEffect, EMPHASIS_PRESETS, ENTRANCE_PRESETS, EXIT_PRESETS, type EasingControlPoint, EffectBevelSchema, EffectFillSchema, EffectFullDefinitionSchema, EffectGlowSchema, EffectIndexItemSchema, type EffectInstance, EffectLayer, EffectPanelSchema, EffectShadowSchema, EffectStackSchema, EffectStrokeSchema, EmbossEffect, type ExecutionPlanner, FONT_WEIGHT_OPTIONS, type FillType, FilmGrainEffect, type FocalPoint, FontSchema, FrameGraph, FrameGraphBuilder, type FrameSource, GaussianBlurEffect, type GifExportOptions, type GifFrame, GlitchBandEffect, GlowEffect, GlowLayer, type GradientDir, GradientStop, GradientStopSchema, type GradingParams, GraphValidator, GrayscaleEffect, HalationEffect, HslAdjustmentEffect, ImageLayerSchema, InkBrushEngine, KawaseBlurEffect, Keyframe, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, LayerAnimationSchema, LensFlareEffect, LightLeakEffect, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottiePropertyPath, type LottieTemplatePreset, MPGFrameRenderer, type MediaFitMode, type MediaLayout, type MediaSpriteRecord, MotionBlurEffect, type Mp4ExportOptions, NeonGlowEffect, type NodeDefinition, NodeRegistry, type NormalizedCrop, NullBackend, OldFilmEffect, OutlineEffect, type ParsedTextLayer, PixelateEffect, PixiEffectDefinition, PixiRenderer, type PngSequenceFrame, type PngSequenceOptions, Preset, ProjectCompiler, ProjectHelper, type ProjectManifestV2, RGBSplitEffect, RadialBlurEffect, type RecordedExecution, ReflectionEffect, RenderBackend, type RenderViewport, type ResolvedFit, type ResolvedMediaLayout, type ResourceAllocation, SUPPORTED_FONT_FAMILIES, SceneDocument, type ShaderCompilation, ShapeLayerSchema, ShockwaveEffect, type Size, StaticNoiseEffect, StyleRecipe, TEMPLATE_CATEGORIES, TemplateCategory, TemplateCategorySchema, TemplateEasingFunction, TemplateKeyframe, TemplateLayer, TemplateLayerSchema, type TemplatePresetCategory, TemplateRenderer, type TextAlign, type TextCustomization, TextEffectBuilder, TextEffectConfig, TextEffectDefinition, TextEffectDefinitionSchema, type TextLayerConfig, TextLayerSchema, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, type TextStyleOverride, TextTemplate, TextTemplateSchema, TiltShiftEffect, type TrackDefinition, TwistEffect, VERSION, VHSEffect, type ValidatedEffectDefinition, type ValidatedTextEffectDefinition, type ValidatedTextTemplate, type ValidationError, type ValidationResult, VignetteEffect, WEBM_EXPORT_MAX_FRAMES, type WebMExportOptions, ZoomBlurEffect, _resetPlatformCache, addImageLayer, addKeyframe, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, alignToLottieJ, applyBodyEffectMask, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyMediaTransform, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, backgroundBlurEffect, bakeAnimationIntoLayer, beginStickerFrame, beginTextFrame, blendConfigs, blendScenes, bloomEffect, bodyEffects, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInRecipes, calculateCropFromFocalPoint, calculateDefaultCoverCrop, calculateMediaFit, captureImageSourceDimensions, captureLottieFrames, captureVideoSourceDimensions, chromaticAberrationEffect, clearAllBodyEffectMasks, clearAllMediaSprites, clearAllStickerBridges, clearAllTextBridges, clearAnimationFromLayer, clearBodyEffectMask, clearFontCache, clearPendingVideoLayers, clearRecipeCache, cloneSceneWithNewIds, colorIsolationEffect, computeAutoFitFontSize, computeFitZoom, computeTextLayout, countTextGlyphs, createBlankLottie, createCanvas, createDefaultRevealTrack, createGPUBodyGlowFilter, createGPUBodyOutlineFilter, createGPUBodyParticlesFilter, createKeyframed, createPulseOpacityTrack, cubicBezier, deleteKeyframe, downloadDotLottie, downloadLottieJson, downloadLottieMp4, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, enableKeyframing, encodeGif, endStickerFrame, endTextFrame, ensureDefaultTimeline, ensureFontInLottie, evaluateAnimatable, exportLottieToMp4, filmGrainEffect, findTrackIndex, formatValidationErrors, getActiveMediaSpriteKeys, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getCanvasTemplatePreset, getCanvasTemplatesByCategory, getClipLayout, getDefaultText, getLayerById, getMediaSpriteRecord, getOrCreateMediaSprite, getPresetScene, getSharedPixiRenderer, getSourceCropRect, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getVideoEffect, getWebMFrameCount, heatDistortionEffect, hexToLottieColor, hexToLottieRgb, hexToRgb, identityEffect, injectBatch, injectColor, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, isKeyframed, isMp4ExportSupported, isWebMExportSupported, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, mergeGradingParams, moveKeyframe, neonOutlineEffect, parseHistorySnapshot, parseLottieJson, particleAuraEffect, preloadGoogleFont, presetToRecipe, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, releaseMediaSprite, releaseSharedPixiRenderer, removeKeyframe, removeTemplateKeyframe, removeTrack, renderPngSequence, renderSceneWebM, renderStickerLayerBridged, renderTextLayerBridged, resizeCharFillColors, resolveAnimatedScalar, resolveConform, resolveMediaLayout, restoreLetterSpacing, rotateCrop, scanLottieFonts, scanTextLayers, setCharFillColor, setTracks, shouldUsePerCharFill, snapshotScene, sortKeyframes, spotlightEffect, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, supportsWebGL2, trackId, unmountStickerLayerBridge, unmountTextLayerBridge, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneCustomEngine, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, validateEffectDefinition, validateEffectDefinitionStrict, validateTextEffectDefinition, validateTextEffectDefinitionStrict, validateTextTemplate, validateTextTemplateStrict, vhsEffect, videoEffects, videoEffectsById, waitForFontsReady, wrapTextToWidth };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
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-FIJBB3MH.js";
|
|
1
41
|
import {
|
|
2
42
|
COMPOSITION_PRESETS,
|
|
3
43
|
CUSTOM_ENGINE_IDS,
|
|
@@ -71,47 +111,7 @@ import {
|
|
|
71
111
|
syncCompositorFromScene,
|
|
72
112
|
textEffectConfigToScene,
|
|
73
113
|
wrapTextToWidth
|
|
74
|
-
} from "./chunk-
|
|
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";
|
|
114
|
+
} from "./chunk-Y4FMAOTW.js";
|
|
115
115
|
import {
|
|
116
116
|
EFFECTS_REGISTRY,
|
|
117
117
|
EffectEngine,
|
|
@@ -148,8 +148,9 @@ import {
|
|
|
148
148
|
import {
|
|
149
149
|
ColorAdjustmentsEffect,
|
|
150
150
|
PixiRenderBackend,
|
|
151
|
-
hexToRgb
|
|
152
|
-
|
|
151
|
+
hexToRgb,
|
|
152
|
+
mergeGradingParams
|
|
153
|
+
} from "./chunk-RYA4KGDB.js";
|
|
153
154
|
import "./chunk-PZ5AY32C.js";
|
|
154
155
|
|
|
155
156
|
// src/validation.ts
|
|
@@ -13009,6 +13010,7 @@ export {
|
|
|
13009
13010
|
lottieColorToHex,
|
|
13010
13011
|
lottieJToAlign,
|
|
13011
13012
|
measureTextFits,
|
|
13013
|
+
mergeGradingParams,
|
|
13012
13014
|
mergeSceneIntoConfig,
|
|
13013
13015
|
moveKeyframe,
|
|
13014
13016
|
neonOutlineEffect,
|