@clypra-studio/engine 1.4.0 → 1.5.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-E6O6LZME.js → chunk-7ORA5BPW.js} +14 -299
- package/dist/chunk-7ORA5BPW.js.map +1 -0
- package/dist/chunk-NG4F55V7.js +300 -0
- package/dist/chunk-NG4F55V7.js.map +1 -0
- package/dist/chunk-Q7XYDP4X.js +1898 -0
- package/dist/chunk-Q7XYDP4X.js.map +1 -0
- package/dist/{chunk-3UEOLDJJ.js → chunk-SH7HOGVX.js} +1 -1
- package/dist/chunk-SH7HOGVX.js.map +1 -0
- package/dist/index-B1lFl4p2.d.ts +122 -0
- package/dist/index-Cpps1DKP.d.ts +489 -0
- package/dist/index-DrzRbR7G.d.cts +122 -0
- package/dist/index-WsvrOpAy.d.cts +489 -0
- package/dist/index.cjs +3131 -482
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +185 -103
- package/dist/index.d.ts +185 -103
- package/dist/index.js +1599 -792
- package/dist/index.js.map +1 -1
- package/dist/rendering/index.cjs +3694 -0
- package/dist/rendering/index.cjs.map +1 -0
- package/dist/rendering/index.d.cts +2 -0
- package/dist/rendering/index.d.ts +2 -0
- package/dist/rendering/index.js +21 -0
- package/dist/rendering/index.js.map +1 -0
- package/dist/textEffects/index.cjs +13 -5
- package/dist/textEffects/index.cjs.map +1 -1
- package/dist/textEffects/index.d.cts +2 -1
- package/dist/textEffects/index.d.ts +2 -1
- package/dist/textEffects/index.js +6 -4
- package/dist/{index-C18SQ-y6.d.cts → types-IYwXGYkB.d.cts} +141 -129
- package/dist/{index-C18SQ-y6.d.ts → types-IYwXGYkB.d.ts} +141 -129
- package/dist/videoEffects/index.cjs.map +1 -1
- package/dist/videoEffects/index.js +1 -1
- package/package.json +6 -1
- package/dist/chunk-3UEOLDJJ.js.map +0 -1
- package/dist/chunk-E6O6LZME.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { S as SceneDocument, K as Keyframe,
|
|
2
|
-
export {
|
|
1
|
+
import { S as SceneDocument, K as Keyframe, f as TextEffectConfig, g as StyleRecipe, P as Preset, E as EffectLayer, A as AnimTrack, h as TextEffectDefinition, G as GlowLayer, i as GradientStop, j as AnimatableValue, k as TemplateEasingFunction, B as BezierControlPoints, l as SpringParams, b as TemplateKeyframe, T as TextTemplate, a as TemplateLayer, m as TemplateCategory, d as TextSplitAnimator, c as TextStyleSpan, n as SplitMode, R as ResponsiveAnchorConfig } from './types-IYwXGYkB.js';
|
|
2
|
+
export { o as AnimationPreset, C as CanvasBackgroundConfig, p as ColorAdjustments, q as CompositorSettings, D as DEFAULT_CANVAS_HEIGHT, r as DEFAULT_CANVAS_WIDTH, s as DEFAULT_DURATION, t as DEFAULT_FONT_SIZE, u as DEFAULT_FPS, v as EffectBevel, w as EffectFill, x as EffectFullDefinition, y as EffectGlow, z as EffectIndexItem, F as EffectLayerType, H as EffectPanel, I as EffectShadow, J as EffectStack, M as EffectStroke, N as EvaluatedTextLayer, O as GradingParams, L as LayerAnimation, Q as LayerTarget, U as SCENE_SCHEMA_VERSION, V as SCENE_VERSION, W as SceneCanvas, X as SceneText, Y as SpatialAnchorPoint, Z as StaggerDirection, _ as TemplateContainerLayer, $ as TemplateFlexLayout, a0 as TemplateImageLayer, a1 as TemplateShapeLayer, a2 as TemplateTextLayer, e as TemplateVariableDefinition, a3 as TemplateVariableType, a4 as TextSplitTransform, a5 as Timeline, a6 as createEmptyScene, a7 as newLayerId } from './types-IYwXGYkB.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
export { C as CompositorFromScene, E as EvaluateOptions, F as FontDescriptor, a as FontLoadResult, b as FontLoader, c as FontVariant, T as TextEffectRenderer, _ as _buildConfig, d as advanceSceneTime, e as builtInPresets, f as checkFontVariant, g as createBlankTextEffectConfig, h as defaultConfig, i as ensureFontsLoaded, j as evaluateConfig, k as evaluateScene, l as getFontLoader, m as getSceneTime, n as initializeFontSystem, o as injectFontVariantRules, p as layerToTextEffectConfig, q as mergeSceneIntoConfig, r as renderTextEffectCore, s as resetFontLoader, t as resetSceneTime, u as resolveFontFamilyName, v as sceneToConfig, w as setSceneTime, x as syncCompositorFromScene, y as textEffectConfigToScene } from './index-B1lFl4p2.js';
|
|
5
|
+
import { R as RenderPlan, T as TextTemplateArtifact, a as TemplateRenderContext, C as CompiledTextTemplate } from './index-Cpps1DKP.js';
|
|
6
|
+
export { b as CANONICAL_RENDERER_VERSION, c as CANONICAL_SCHEMA_VERSION, d as CanonicalRenderContext, e as CanonicalRenderInput, f as CanonicalRenderResult, g as CapabilityReport, h as CapabilityStatus, i as CompiledTemplateRenderLayer, E as EvaluatedTemplateScene, P as PublishedRevision, j as RenderCapability, k as RenderDiagnostic, l as RenderDiagnostics, m as RenderEnvironment, n as RenderIdentity, o as RenderTarget, S as SceneDocumentV2, p as TEXT_TEMPLATE_KIND, q as TEXT_TEMPLATE_RENDERER_VERSION, r as TEXT_TEMPLATE_SCHEMA_VERSION, s as TemplateAssetRef, t as TemplateBackgroundPanel, u as TemplateCapabilityReport, v as TemplateContainerNode, w as TemplateContainerNodeStyle, x as TemplateControl, y as TemplateControlConstraints, z as TemplateControlOption, A as TemplateControlType, B as TemplateDependencyManifest, D as TemplateDurationPolicy, F as TemplateFontRef, G as TemplateImageNode, H as TemplateLayerV2, I as TemplateMetadata, J as TemplateNode, K as TemplateNodeAnimation, L as TemplatePreviewArtifacts, M as TemplatePropertyKeyframes, N as TemplateProtectedRegion, O as TemplateRenderTarget, Q as TemplateRevision, U as TemplateShapeNode, V as TemplateShapeNodeStyle, W as TemplateStyleRef, X as TemplateTextNode, Y as TemplateTextNodeStyle, Z as TemplateTimelineMarker, _ as TemplateTiming, $ as TextEffectRenderInput, a0 as TextTemplateCanvas, a1 as TextTemplateClip, a2 as TextTemplateDocument, a3 as TextTemplateDocumentV2, a4 as TextTemplateFlexLayout, a5 as TextTemplateRenderInput, a6 as canonicalContentHash, a7 as canonicalizeSceneDocument, a8 as evaluateTextEffect, a9 as evaluateTextTemplate, aa as getRenderCapabilities, ab as getTextTemplateControls, ac as normalizeTextEffect, ad as normalizeTextTemplate, ae as renderCanonicalToCanvas, af as renderTextEffectToCanvas, ag as renderTextTemplateToCanvas, ah as resolveTextTemplateArtifact } from './index-Cpps1DKP.js';
|
|
4
7
|
export { AppliedEffect, AppliedOverlay, BlendMode, CameraEffects, EFFECTS_REGISTRY, EffectCategory, EffectEngine, EffectGraph, EffectMetadata, EffectParameters, EffectPreset, EffectRenderer, EffectRendererType, 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';
|
|
5
8
|
export { ALL_TRANSITIONS, AppliedTransition, EasingFunction, NativeTransitionDefinition, NativeTransitionParam, TRANSITION_CATEGORIES, TRANSITION_PRESETS, TransitionCategory, TransitionParameters, TransitionPreset, TransitionRenderer, TransitionRendererType, getAllTransitionTags, getAllTransitions, getRecommendedDuration, getTransitionById, getTransitionByRenderer, getTransitionCategories, getTransitionCountByCategory, getTransitionsByCategory, getTransitionsByTags, searchTransitions } from './transitions/index.js';
|
|
6
9
|
import { NodeCapabilities, NodeRequirements, GraphPin, GraphNode, GraphEdge, MediaProcessingGraph } from '@clypra-studio/types';
|
|
@@ -1288,8 +1291,8 @@ declare const ShapeLayerSchema: z.ZodObject<{
|
|
|
1288
1291
|
kind: z.ZodLiteral<"shape">;
|
|
1289
1292
|
id: z.ZodString;
|
|
1290
1293
|
shape: z.ZodEnum<{
|
|
1291
|
-
rect: "rect";
|
|
1292
1294
|
line: "line";
|
|
1295
|
+
rect: "rect";
|
|
1293
1296
|
circle: "circle";
|
|
1294
1297
|
}>;
|
|
1295
1298
|
fill: z.ZodString;
|
|
@@ -1466,8 +1469,8 @@ declare const TemplateLayerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1466
1469
|
kind: z.ZodLiteral<"shape">;
|
|
1467
1470
|
id: z.ZodString;
|
|
1468
1471
|
shape: z.ZodEnum<{
|
|
1469
|
-
rect: "rect";
|
|
1470
1472
|
line: "line";
|
|
1473
|
+
rect: "rect";
|
|
1471
1474
|
circle: "circle";
|
|
1472
1475
|
}>;
|
|
1473
1476
|
fill: z.ZodString;
|
|
@@ -1661,8 +1664,8 @@ declare const TextTemplateSchema: z.ZodObject<{
|
|
|
1661
1664
|
kind: z.ZodLiteral<"shape">;
|
|
1662
1665
|
id: z.ZodString;
|
|
1663
1666
|
shape: z.ZodEnum<{
|
|
1664
|
-
rect: "rect";
|
|
1665
1667
|
line: "line";
|
|
1668
|
+
rect: "rect";
|
|
1666
1669
|
circle: "circle";
|
|
1667
1670
|
}>;
|
|
1668
1671
|
fill: z.ZodString;
|
|
@@ -1810,7 +1813,7 @@ declare function validateTextTemplate(data: unknown): z.ZodSafeParseResult<{
|
|
|
1810
1813
|
[x: string]: unknown;
|
|
1811
1814
|
kind: "shape";
|
|
1812
1815
|
id: string;
|
|
1813
|
-
shape: "
|
|
1816
|
+
shape: "line" | "rect" | "circle";
|
|
1814
1817
|
fill: string;
|
|
1815
1818
|
x: number;
|
|
1816
1819
|
y: number;
|
|
@@ -1909,7 +1912,7 @@ declare function validateTextTemplateStrict(data: unknown): {
|
|
|
1909
1912
|
[x: string]: unknown;
|
|
1910
1913
|
kind: "shape";
|
|
1911
1914
|
id: string;
|
|
1912
|
-
shape: "
|
|
1915
|
+
shape: "line" | "rect" | "circle";
|
|
1913
1916
|
fill: string;
|
|
1914
1917
|
x: number;
|
|
1915
1918
|
y: number;
|
|
@@ -2834,85 +2837,6 @@ declare class TextEffectBuilder {
|
|
|
2834
2837
|
buildScene(): SceneDocument;
|
|
2835
2838
|
}
|
|
2836
2839
|
|
|
2837
|
-
declare const CANONICAL_SCHEMA_VERSION: 2;
|
|
2838
|
-
declare const CANONICAL_RENDERER_VERSION: "1.3.0";
|
|
2839
|
-
interface PublishedRevision {
|
|
2840
|
-
assetId: string;
|
|
2841
|
-
revisionId: string;
|
|
2842
|
-
schemaVersion: number;
|
|
2843
|
-
contentHash: string;
|
|
2844
|
-
rendererVersion: string;
|
|
2845
|
-
createdAt: string;
|
|
2846
|
-
}
|
|
2847
|
-
interface SceneDocumentV2 extends SceneDocument {
|
|
2848
|
-
schemaVersion: typeof CANONICAL_SCHEMA_VERSION;
|
|
2849
|
-
revision?: PublishedRevision;
|
|
2850
|
-
}
|
|
2851
|
-
interface TemplateStyleRef {
|
|
2852
|
-
effectId: string;
|
|
2853
|
-
revisionId: string;
|
|
2854
|
-
contentHash: string;
|
|
2855
|
-
/** Required for published templates; optional only for unresolved legacy input. */
|
|
2856
|
-
snapshot?: SceneDocumentV2;
|
|
2857
|
-
parameterOverrides?: Record<string, unknown>;
|
|
2858
|
-
}
|
|
2859
|
-
type TemplateLayerV2 = TemplateLayer & {
|
|
2860
|
-
styleRef?: TemplateStyleRef;
|
|
2861
|
-
};
|
|
2862
|
-
interface TextTemplateDocumentV2 {
|
|
2863
|
-
schemaVersion: typeof CANONICAL_SCHEMA_VERSION;
|
|
2864
|
-
id: string;
|
|
2865
|
-
label: string;
|
|
2866
|
-
category: TextTemplate["category"] | string;
|
|
2867
|
-
description: string;
|
|
2868
|
-
tags: string[];
|
|
2869
|
-
duration: number;
|
|
2870
|
-
fps: number;
|
|
2871
|
-
canvasWidth: number;
|
|
2872
|
-
canvasHeight: number;
|
|
2873
|
-
layers: TemplateLayerV2[];
|
|
2874
|
-
dependencies: TemplateStyleRef[];
|
|
2875
|
-
revision?: PublishedRevision;
|
|
2876
|
-
thumbnail?: string;
|
|
2877
|
-
preview?: string;
|
|
2878
|
-
published?: boolean;
|
|
2879
|
-
creatorName?: string;
|
|
2880
|
-
creatorLink?: string;
|
|
2881
|
-
}
|
|
2882
|
-
type RenderTarget = "canvas2d" | "native" | "export";
|
|
2883
|
-
type CapabilityStatus = "exact" | "approximate" | "rasterized" | "unsupported";
|
|
2884
|
-
interface RenderDiagnostic {
|
|
2885
|
-
layerId: string;
|
|
2886
|
-
layerType: string;
|
|
2887
|
-
enabled: boolean;
|
|
2888
|
-
contribution: "active" | "disabled" | "unsupported";
|
|
2889
|
-
reason: string;
|
|
2890
|
-
}
|
|
2891
|
-
interface CapabilityReport {
|
|
2892
|
-
target: RenderTarget;
|
|
2893
|
-
status: CapabilityStatus;
|
|
2894
|
-
unsupportedFeatures: string[];
|
|
2895
|
-
approximations: string[];
|
|
2896
|
-
}
|
|
2897
|
-
interface RenderPlan {
|
|
2898
|
-
kind: "text-effect" | "text-template";
|
|
2899
|
-
width: number;
|
|
2900
|
-
height: number;
|
|
2901
|
-
duration: number;
|
|
2902
|
-
time: number;
|
|
2903
|
-
effect?: SceneDocumentV2;
|
|
2904
|
-
template?: TextTemplateDocumentV2;
|
|
2905
|
-
diagnostics: RenderDiagnostic[];
|
|
2906
|
-
capabilities: Record<RenderTarget, CapabilityReport>;
|
|
2907
|
-
}
|
|
2908
|
-
declare function canonicalContentHash(value: unknown): string;
|
|
2909
|
-
declare function canonicalizeSceneDocument(input: SceneDocument): SceneDocumentV2;
|
|
2910
|
-
declare function normalizeTextEffect(input: unknown, metadata?: Partial<PublishedRevision>): SceneDocumentV2;
|
|
2911
|
-
declare function normalizeTextTemplate(input: unknown, metadata?: Partial<PublishedRevision>): TextTemplateDocumentV2;
|
|
2912
|
-
declare function evaluateTextEffect(document: SceneDocumentV2 | unknown, time?: number, _overrides?: Record<string, unknown>): RenderPlan;
|
|
2913
|
-
declare function evaluateTextTemplate(document: TextTemplateDocumentV2 | unknown, time?: number, overrides?: Record<string, unknown>): RenderPlan;
|
|
2914
|
-
declare function getRenderCapabilities(plan: RenderPlan, target: RenderTarget): CapabilityReport;
|
|
2915
|
-
|
|
2916
2840
|
/**
|
|
2917
2841
|
* Platform Capability Detection
|
|
2918
2842
|
*
|
|
@@ -3072,7 +2996,54 @@ interface BodySegmentationOptions {
|
|
|
3072
2996
|
minConfidence?: number;
|
|
3073
2997
|
}
|
|
3074
2998
|
|
|
2999
|
+
/**
|
|
3000
|
+
* Newton-Raphson approximation solver for cubic bezier curve easing.
|
|
3001
|
+
* Computes exact y given x in [0, 1].
|
|
3002
|
+
*/
|
|
3075
3003
|
declare function cubicBezier(x1: number, y1: number, x2: number, y2: number): (t: number) => number;
|
|
3004
|
+
/**
|
|
3005
|
+
* Physics-based damped spring oscillator solver.
|
|
3006
|
+
*/
|
|
3007
|
+
declare function solveSpring(t: number, params?: SpringParams): number;
|
|
3008
|
+
/**
|
|
3009
|
+
* Check if a value is keyframed
|
|
3010
|
+
*/
|
|
3011
|
+
declare function isKeyframed<T>(value: AnimatableValue<T>): value is {
|
|
3012
|
+
keyframes: TemplateKeyframe<T>[];
|
|
3013
|
+
};
|
|
3014
|
+
/**
|
|
3015
|
+
* Get the static value or evaluate keyframes at a specific time
|
|
3016
|
+
*/
|
|
3017
|
+
declare function evaluateAnimatable<T>(value: AnimatableValue<T>, time: number, templateDuration: number): T;
|
|
3018
|
+
/**
|
|
3019
|
+
* Apply easing function to interpolation factor
|
|
3020
|
+
*/
|
|
3021
|
+
declare function applyEasing(t: number, easing: TemplateEasingFunction, bezier?: BezierControlPoints, spring?: SpringParams): number;
|
|
3022
|
+
/**
|
|
3023
|
+
* Interpolate between two values
|
|
3024
|
+
*/
|
|
3025
|
+
declare function interpolateValue<T>(from: T, to: T, t: number): T;
|
|
3026
|
+
/**
|
|
3027
|
+
* Interpolate between two color strings (hex or rgba)
|
|
3028
|
+
*/
|
|
3029
|
+
declare function interpolateColorString(from: string, to: string, t: number): string;
|
|
3030
|
+
/**
|
|
3031
|
+
* Helper to create a keyframed value
|
|
3032
|
+
*/
|
|
3033
|
+
declare function createKeyframed<T>(keyframes: TemplateKeyframe<T>[]): {
|
|
3034
|
+
keyframes: TemplateKeyframe<T>[];
|
|
3035
|
+
};
|
|
3036
|
+
/**
|
|
3037
|
+
* Helper to add a keyframe to an animatable value
|
|
3038
|
+
*/
|
|
3039
|
+
declare function addKeyframe<T>(value: AnimatableValue<T>, time: number, newValue: T, easing?: TemplateEasingFunction, bezier?: BezierControlPoints, spring?: SpringParams): {
|
|
3040
|
+
keyframes: TemplateKeyframe<T>[];
|
|
3041
|
+
};
|
|
3042
|
+
/**
|
|
3043
|
+
* Helper to remove a keyframe at a specific time
|
|
3044
|
+
*/
|
|
3045
|
+
declare function removeTemplateKeyframe<T>(value: AnimatableValue<T>, time: number): AnimatableValue<T>;
|
|
3046
|
+
|
|
3076
3047
|
interface AnimationState {
|
|
3077
3048
|
opacity: number;
|
|
3078
3049
|
x: number;
|
|
@@ -3080,6 +3051,7 @@ interface AnimationState {
|
|
|
3080
3051
|
scale: number;
|
|
3081
3052
|
blur: number;
|
|
3082
3053
|
typewriterProgress: number;
|
|
3054
|
+
letterSpacingOffset?: number;
|
|
3083
3055
|
}
|
|
3084
3056
|
declare class TemplateRenderer {
|
|
3085
3057
|
private template;
|
|
@@ -3087,6 +3059,7 @@ declare class TemplateRenderer {
|
|
|
3087
3059
|
private imageCache;
|
|
3088
3060
|
private currentTime;
|
|
3089
3061
|
private lastLayerLayouts;
|
|
3062
|
+
private computedFlexLayouts;
|
|
3090
3063
|
constructor(template: TextTemplate);
|
|
3091
3064
|
/** Exposes the shared deterministic template evaluation contract. */
|
|
3092
3065
|
getRenderPlan(time?: number): RenderPlan;
|
|
@@ -3102,6 +3075,8 @@ declare class TemplateRenderer {
|
|
|
3102
3075
|
private evaluateTextDimension;
|
|
3103
3076
|
private computeTransform;
|
|
3104
3077
|
private applyPreset;
|
|
3078
|
+
/** Resolve dynamic {{variable}} tokens in string content */
|
|
3079
|
+
private resolveDynamicContent;
|
|
3105
3080
|
drawFrame(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, time: number, fitToContentOrOpts?: boolean | {
|
|
3106
3081
|
fitToContent?: boolean;
|
|
3107
3082
|
skipClear?: boolean;
|
|
@@ -3112,42 +3087,124 @@ declare class TemplateRenderer {
|
|
|
3112
3087
|
width: number;
|
|
3113
3088
|
height: number;
|
|
3114
3089
|
} | null;
|
|
3090
|
+
private computeFlexLayouts;
|
|
3091
|
+
private drawContainerLayer;
|
|
3115
3092
|
private drawLayers;
|
|
3116
3093
|
private drawTextLayer;
|
|
3117
3094
|
private drawShapeLayer;
|
|
3118
3095
|
private drawImageLayer;
|
|
3096
|
+
/**
|
|
3097
|
+
* Renders multi-frame ghost/onion-skin frames onto the canvas for precision motion tuning.
|
|
3098
|
+
*/
|
|
3099
|
+
drawOnionSkin(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, time: number, options?: {
|
|
3100
|
+
frameCount?: number;
|
|
3101
|
+
frameDelta?: number;
|
|
3102
|
+
pastColor?: string;
|
|
3103
|
+
futureColor?: string;
|
|
3104
|
+
}): void;
|
|
3119
3105
|
}
|
|
3120
3106
|
|
|
3121
3107
|
declare const BUILTIN_CANVAS_TEMPLATES: TextTemplate[];
|
|
3122
3108
|
declare function getCanvasTemplatePreset(id: string): TextTemplate | undefined;
|
|
3123
3109
|
declare function getCanvasTemplatesByCategory(category: TemplateCategory): TextTemplate[];
|
|
3124
3110
|
|
|
3111
|
+
interface SplitUnit {
|
|
3112
|
+
text: string;
|
|
3113
|
+
index: number;
|
|
3114
|
+
totalUnits: number;
|
|
3115
|
+
charStartIndex: number;
|
|
3116
|
+
charEndIndex: number;
|
|
3117
|
+
isWhitespace: boolean;
|
|
3118
|
+
}
|
|
3119
|
+
interface ComputedSplitUnitTransform {
|
|
3120
|
+
unit: SplitUnit;
|
|
3121
|
+
progress: number;
|
|
3122
|
+
x: number;
|
|
3123
|
+
y: number;
|
|
3124
|
+
z: number;
|
|
3125
|
+
scale: number;
|
|
3126
|
+
scaleX: number;
|
|
3127
|
+
scaleY: number;
|
|
3128
|
+
rotation: number;
|
|
3129
|
+
rotateX: number;
|
|
3130
|
+
rotateY: number;
|
|
3131
|
+
opacity: number;
|
|
3132
|
+
blur: number;
|
|
3133
|
+
letterSpacingOffset: number;
|
|
3134
|
+
}
|
|
3125
3135
|
/**
|
|
3126
|
-
*
|
|
3136
|
+
* Tokenize string into SplitUnits by character, word, or line.
|
|
3127
3137
|
*/
|
|
3128
|
-
declare function
|
|
3129
|
-
keyframes: TemplateKeyframe<T>[];
|
|
3130
|
-
};
|
|
3138
|
+
declare function splitTextContent(text: string, mode: SplitMode): SplitUnit[];
|
|
3131
3139
|
/**
|
|
3132
|
-
*
|
|
3140
|
+
* Evaluate kinetic transforms for all split units at animation progress t (0 to 1).
|
|
3133
3141
|
*/
|
|
3134
|
-
declare function
|
|
3142
|
+
declare function evaluateSplitTextTransforms(units: SplitUnit[], animator: TextSplitAnimator, progress: number, // 0 to 1
|
|
3143
|
+
direction?: "in" | "out"): ComputedSplitUnitTransform[];
|
|
3135
3144
|
/**
|
|
3136
|
-
*
|
|
3145
|
+
* Finds span styling for a specific character index
|
|
3137
3146
|
*/
|
|
3138
|
-
declare function
|
|
3139
|
-
|
|
3140
|
-
|
|
3147
|
+
declare function getSpanForCharIndex(spans: TextStyleSpan[] | undefined, charIndex: number): TextStyleSpan | undefined;
|
|
3148
|
+
|
|
3149
|
+
interface ResolvedLayoutBounds {
|
|
3150
|
+
x: number;
|
|
3151
|
+
y: number;
|
|
3152
|
+
width: number;
|
|
3153
|
+
height: number;
|
|
3154
|
+
}
|
|
3141
3155
|
/**
|
|
3142
|
-
*
|
|
3156
|
+
* Computes resolved layer position based on 9-point spatial anchor config and canvas size.
|
|
3143
3157
|
*/
|
|
3144
|
-
declare function
|
|
3145
|
-
|
|
3158
|
+
declare function resolveAnchorPosition(anchor: ResponsiveAnchorConfig | undefined, currentBounds: {
|
|
3159
|
+
x: number;
|
|
3160
|
+
y: number;
|
|
3161
|
+
width: number;
|
|
3162
|
+
height: number;
|
|
3163
|
+
}, canvasWidth: number, canvasHeight: number): {
|
|
3164
|
+
x: number;
|
|
3165
|
+
y: number;
|
|
3166
|
+
width: number;
|
|
3167
|
+
height: number;
|
|
3146
3168
|
};
|
|
3147
3169
|
/**
|
|
3148
|
-
*
|
|
3170
|
+
* Standard aspect ratio dimensions preset
|
|
3149
3171
|
*/
|
|
3150
|
-
declare
|
|
3172
|
+
declare const ASPECT_RATIO_PRESETS: {
|
|
3173
|
+
readonly "16:9": {
|
|
3174
|
+
readonly width: 1920;
|
|
3175
|
+
readonly height: 1080;
|
|
3176
|
+
readonly label: "16:9 Widescreen (1920x1080)";
|
|
3177
|
+
};
|
|
3178
|
+
readonly "9:16": {
|
|
3179
|
+
readonly width: 1080;
|
|
3180
|
+
readonly height: 1920;
|
|
3181
|
+
readonly label: "9:16 Vertical (1080x1920)";
|
|
3182
|
+
};
|
|
3183
|
+
readonly "1:1": {
|
|
3184
|
+
readonly width: 1080;
|
|
3185
|
+
readonly height: 1080;
|
|
3186
|
+
readonly label: "1:1 Square (1080x1080)";
|
|
3187
|
+
};
|
|
3188
|
+
readonly "4:5": {
|
|
3189
|
+
readonly width: 1080;
|
|
3190
|
+
readonly height: 1350;
|
|
3191
|
+
readonly label: "4:5 Social (1080x1350)";
|
|
3192
|
+
};
|
|
3193
|
+
};
|
|
3194
|
+
|
|
3195
|
+
declare function canonicalTemplateHash(value: unknown): string;
|
|
3196
|
+
declare function normalizeTextTemplateArtifact(input: unknown): TextTemplateArtifact;
|
|
3197
|
+
|
|
3198
|
+
interface TextTemplateDiagnostic {
|
|
3199
|
+
severity: "error" | "warning";
|
|
3200
|
+
code: string;
|
|
3201
|
+
message: string;
|
|
3202
|
+
nodeId?: string;
|
|
3203
|
+
}
|
|
3204
|
+
declare function validateTextTemplateArtifact(artifact: TextTemplateArtifact): TextTemplateDiagnostic[];
|
|
3205
|
+
declare function assertValidTextTemplateArtifact(artifact: TextTemplateArtifact): void;
|
|
3206
|
+
|
|
3207
|
+
declare function compileTextTemplate(artifact: TextTemplateArtifact, context: TemplateRenderContext): CompiledTextTemplate;
|
|
3151
3208
|
|
|
3152
3209
|
/**
|
|
3153
3210
|
* @deprecated This file has been moved to @clypra/runtime/project
|
|
@@ -4191,6 +4248,10 @@ interface SpatialAnchorConfig {
|
|
|
4191
4248
|
offsetX?: number;
|
|
4192
4249
|
offsetY?: number;
|
|
4193
4250
|
}
|
|
4251
|
+
interface NodeSizingPolicy {
|
|
4252
|
+
width?: "fixed" | "hug-content";
|
|
4253
|
+
height?: "fixed" | "hug-content";
|
|
4254
|
+
}
|
|
4194
4255
|
interface SceneNodeBase {
|
|
4195
4256
|
id: string;
|
|
4196
4257
|
name: string;
|
|
@@ -4199,6 +4260,7 @@ interface SceneNodeBase {
|
|
|
4199
4260
|
y: number;
|
|
4200
4261
|
width: number;
|
|
4201
4262
|
height: number;
|
|
4263
|
+
sizingPolicy?: NodeSizingPolicy;
|
|
4202
4264
|
rotation?: number;
|
|
4203
4265
|
visible?: boolean;
|
|
4204
4266
|
locked?: boolean;
|
|
@@ -4222,6 +4284,14 @@ interface FrameNode extends SceneNodeBase {
|
|
|
4222
4284
|
interface PrimitiveTextNode extends SceneNodeBase {
|
|
4223
4285
|
type: "text";
|
|
4224
4286
|
text: string;
|
|
4287
|
+
/** Optional pinned Clypra text-effect dependency used by text templates. */
|
|
4288
|
+
textEffectRef?: {
|
|
4289
|
+
effectId: string;
|
|
4290
|
+
revisionId: string;
|
|
4291
|
+
contentHash: string;
|
|
4292
|
+
parameterOverrides?: Record<string, unknown>;
|
|
4293
|
+
snapshot?: unknown;
|
|
4294
|
+
};
|
|
4225
4295
|
}
|
|
4226
4296
|
type ShapeKind = "rectangle" | "rounded-rectangle" | "circle" | "ellipse" | "triangle" | "polygon" | "star" | "arrow" | "chevron" | "hexagon" | "diamond" | "line" | "divider" | "custom-path";
|
|
4227
4297
|
interface PrimitiveShapeNode extends SceneNodeBase {
|
|
@@ -7024,12 +7094,24 @@ declare class MediaImageEngine {
|
|
|
7024
7094
|
static computeCircularAvatarFitting(diameter: number, intrinsicWidth: number, intrinsicHeight: number, focalPoint?: FocalPoint): ImageFittingResult;
|
|
7025
7095
|
}
|
|
7026
7096
|
|
|
7097
|
+
type SceneCanvasContext = CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D;
|
|
7098
|
+
/**
|
|
7099
|
+
* The renderer-neutral evaluated-scene raster contract used by overlays,
|
|
7100
|
+
* templates, thumbnails, and the native compositor bridge. It deliberately
|
|
7101
|
+
* accepts an already evaluated scene so playback never re-runs document
|
|
7102
|
+
* resolution or layout while pixels are being prepared.
|
|
7103
|
+
*/
|
|
7104
|
+
declare function renderEvaluatedSceneToCanvas(scene: EvaluatedScene, ctx: SceneCanvasContext, options?: {
|
|
7105
|
+
clear?: boolean;
|
|
7106
|
+
background?: boolean;
|
|
7107
|
+
}): void;
|
|
7108
|
+
|
|
7027
7109
|
/**
|
|
7028
7110
|
* @clypra-studio/engine — Canvas 2D text effects, Lottie tooling, and animation engine.
|
|
7029
7111
|
* @version 0.1.0
|
|
7030
7112
|
* @packageDocumentation
|
|
7031
7113
|
*/
|
|
7032
7114
|
/** Package version */
|
|
7033
|
-
declare const VERSION = "
|
|
7115
|
+
declare const VERSION = "1.4.0";
|
|
7034
7116
|
|
|
7035
|
-
export { type AddBreakpointCommand, type AddDataPreviewSetCommand, type AddNodeCommand, type AddTimelineMarkerCommand, type AddVariableCommand, type AlignmentGuide, type AlignmentMode, type AnchorSide, type AnchorXMode, type AnchorYMode, type AnimBuildOpts, type AnimKeyframe, AnimTrack, type AnimTrackDef, type AnimatableParamDef, AnimatableValue, type AnimationCategory, type AnimationDiagnostic, type AnimationDiagnosticSeverity, type AnimationEvaluationOptions, AnimationPresetSchema, AnimationRuntime, AnimationSchema, type AnimationStartSpec, type AnimationState, AnimationValidator, type AnnotationNode, type ArcGeometryOutput, type AssetHandle, type AssetKind, type AssetManifest, type AssetRef, AssetRegistry$1 as AssetRegistry, type AssetSource, type AudioNode, type AudioPlaybackConfig, type AvatarNode, type AvoidRegionKind, type AxisConfig, BUILTIN_CANVAS_TEMPLATES, type BarGeometryItem, type BaseCommand, type BaseEditorCommand, type BatchCommand, type BatchCommandsCommand, type BatchInjection, type BehaviorKind, type BehaviorSpec, type BindingDefinition, type BodySegmentationOptions, type BodySegmentationRequest, type BodySegmentationResponse, type BodySegmentationRuntime, type BodySegmentationRuntimeConfig, type BoundingBox, BoundingBoxSchema, type BoundingRegion, type BreadcrumbItem, type Breakpoint, type BreakpointSet, CANONICAL_RENDERER_VERSION, CANONICAL_SCHEMA_VERSION, COMPOSITION_PRESETS, type CalloutNode, CanvasDevice, type CanvasSnapResult, type CapabilityReport, type CapabilityStatus, type ChartAnimationConfig, type ChartBarStyle, type ChartNode, type ChartScale, type ChartSeries, type ChartType, type ClipConform, type ClipSegment, type CodeOverlayContent, type CodeSmartOverlayContent, type ColumnDefinition, type Command, type CommandBuffer, CommandBufferBuilder, type CommandExecutionResult, CommandExecutor, CommandHistory, type CommandHistoryOptions, type CommandType, type ComparisonItem, type ComparisonOverlayContent, type ComparisonSmartOverlayContent, type ComponentCategory, type ComponentDefinition, type ComponentNode, type CompositionPreset, type ComputedCell, type ComputedColumn, type ComputedNodeBounds, type ComputedRow, type ConformMode, type ConnectorNode, type ContainerNode, type CountUpEasing, DEFAULT_TEXT_STYLE, DataBindingAuthoringEngine, DataBindingEngine, type DataBindingRule, type DataPreviewSet, type DeleteNodeCommand, type DeleteNodesCommand, type DependencyGraph, type DetachComponentCommand, type DimensionMode, type DividerNode, type DocumentCommand, DocumentMigrator, type DocumentPoint, DocumentValidator, type DocumentVariable, type DotLottieManifest, type DrawPerCharTextOptions, type DuplicateNodesCommand, EMPHASIS_PRESETS, ENTRANCE_PRESETS, EXIT_PRESETS, EXPORT_PROFILE_PRESETS, type EasingControlPoint, type EditorAddNodeCommand, type EditorCommand, EditorCommandSystem, type EditorCommandType, type EditorExecutionResult, EffectBevelSchema, EffectFillSchema, EffectFullDefinitionSchema, EffectGlowSchema, EffectIndexItemSchema, type EffectInstance, EffectLayer, EffectPanelSchema, EffectShadowSchema, EffectStackSchema, EffectStrokeSchema, type EncodedFileEntry, type EncodedOutput, type EvaluatedBroadcastFrame, type EvaluatedContent, type EvaluatedExportFrame, type EvaluatedMilestone, type EvaluatedNode, type EvaluatedNodeState, type EvaluatedScene, type EvaluatedSceneState, type EvaluatedStyle, type EvaluatedThreshold, type EvaluatedTransform, type EvaluatedVideoStateAtTime, type EvaluationDiagnostic, type ExecutionPlanner, type ExecutionPolicy, type ExecutionQuality, ExportAbortError, type ExportConfig, type ExportDiagnosticCode, type ExportDiagnosticSeverity, type ExportFormat, type ExportFrameDescriptor, ExportJob, type ExportJobRecord, type ExportProfile, type ExportProgress, type ExportValidationDiagnostic, ExportValidator, FONT_WEIGHT_OPTIONS, type FillType, type FocalPoint$1 as FocalPoint, type FontRef, FontRegistry, FontSchema, type FontSpec, type FrameGraph, FrameGraphBuilder, type FrameNode, type GaugeNode, type GaugeThreshold, GifEncoder, type GifExportOptions, type GifFrame, GlowLayer, type GradientDir, type GradientNode, GradientStop, GradientStopSchema, GraphValidator, GridEngine, type GroupNodesCommand, type HandleType, type IconNode, type ImageFitMode, type ImageFittingInput, type ImageFittingResult, ImageLayerSchema, type JobChangeListener, type JobStatus, Keyframe, type KeyframeTrack, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, LayerAnimationSchema, type LayoutComputedState, LayoutEngine, type LayoutMode, type LineNode, type ListOverlayContent, type ListOverlayItem, type ListSmartOverlayContent, LiveBroadcastBridge, type LiveBroadcastOptions, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottieNode, type LottiePropertyPath, type LottieTemplatePreset, type LowerThirdOverlayContent, type LowerThirdSmartOverlayContent, type MediaEncoder, MediaEncoderRegistry, type MediaFitMode, MediaImageEngine, type MediaLayout, type MetricDelta, MetricEngine, type MetricEvaluationResult, type MetricFormatOptions, type MetricNode, type MilestoneItem, type MotionPreset, type MotionPresetDefinition, type MotionPresetParameter, MotionPresetRegistry, type MoveNodesCommand, type Mp4ExportOptions, Mp4VideoEncoder, type NodeAnimationRules, type NodeConstraints, type NodeDefinition, type NodeLayoutRules, NodeRegistry, type NodeStartTransform, type NodeStyleRules, type NormalizedCrop, NullBackend, type OverlayDocument, type ParsedTextLayer, type PlaybackDirection, type PlaybackMode, PngSequenceEncoder, type PngSequenceFrame, type PngSequenceOptions, Preset, type PrimitiveDefinition, type PrimitiveMediaNode, PrimitiveRegistry, type PrimitiveShapeNode, type PrimitiveTextNode, ProResVideoEncoder, type ProfileCanvasDimensions, type ProgressNode, ProjectCompiler, ProjectHelper, type ProjectManifestV2, type PropertyAnimationDefinition, PropertyAnimationRegistry, type PropertyDefinition, PropertyInspectorEngine, PropertyInterpolator, type PropertySchemaField, type PropertyValueType, type PublishedOverlayArtifact, type PublishedRevision, type QuoteOverlayContent, type QuoteSmartOverlayContent, RawFramesEncoder, type RecordedExecution, type RegisterAssetCommand, type RegisteredAsset, type RegisteredFont, type RemoveAssetCommand, type RemoveBreakpointCommand, type RemoveDataPreviewSetCommand, type RemoveTimelineMarkerCommand, type RemoveVariableCommand, type RenderBackend, type RenderDiagnostic, type RenderPass, type RenderPlan, type RenderTarget, type RendererCapabilities, type ReorderNodesCommand, type ReparentNodeCommand, type RepeaterNode, type ResizeHandle, type ResizeNodeCommand, type ResizeOptions, type ResolvedAsset, type ResolvedFit, type ResolvedFont, type ResolvedImageDimensions, type ResolvedMediaLayout, type ResourceAllocation, type ResourceRequest, type ResourceState$1 as ResourceState, type ResponsiveNodeOverride, type RichTextNode, type RichTextSpan, RuntimeAssetResolver, type RuntimeContext, SMART_OVERLAY_PRESETS, SUPPORTED_FONT_FAMILIES, SceneDocument, type SceneDocumentV2, type SceneNode, type SceneNodeBase, type SceneNodeType, type ScratchElementBlock, type ScratchOverlayTemplate, type ScreenPoint, SelectionEngine, type SemanticAnimationConfig, type SemanticBehaviorConfig, type SemanticContent, type SemanticIntent, type SemanticOverlayDefinition, type SemanticSlotDefinition, type SemanticSpatialConstraints, SeriesEngine, type SeriesPoint, type SetActiveBreakpointCommand, type SetAssetRefCommand, type SetBindingCommand, type SetDocumentCommand, type SetFontRefCommand, type SetResponsiveOverrideCommand, type ShaderCompilation, type ShapeKind, ShapeLayerSchema, type ShotBoundary, type Size, type SizingDimensionInput, type SmartAlignmentGuide, SmartGuideEngine, type SmartOverlayAnimation, type SmartOverlayClip, type SmartOverlayContentUnion, type SmartOverlayLayout, type SmartOverlayPreset, type SmartOverlayRegistryItem, SmartOverlayRegistryService, SmartOverlayRenderer, type SmartOverlayStyle, type SmartOverlayType, type SmartSnapResult, SnapEngine, type SnapResult, type SocialOverlayContent, type SocialSmartOverlayContent, type SpatialAnchorConfig, type SpatialConstraintSpec, type StatOverlayContent, type StatSmartOverlayContent, StyleRecipe, type SubtitleRegion, TEMPLATE_CATEGORIES, type TableColumn, type TableLayoutResult, type TableNode, TemplateCategory, TemplateCategorySchema, TemplateEasingFunction, TemplateKeyframe, TemplateLayer, TemplateLayerSchema, type TemplateLayerV2, type TemplateManifest, type TemplatePresetCategory, TemplateRenderer, type TemplateStyleRef, type TemporalKeyframedRegion, type TextAlign, type TextCustomization, TextEffectBuilder, TextEffectConfig, TextEffectDefinition, TextEffectDefinitionSchema, type TextLayerConfig, TextLayerSchema, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, type TextStyleOverride, TextTemplate, type TextTemplateDocumentV2, TextTemplateSchema, type ThresholdBand, type TimelineEvent, type TimelineMarker, type TimelineNode, type TimelineOverlayContent, type TimelineOverlayNode, type TimelineSmartOverlayContent, type TrackDefinition, type TrackedSubject, type TranscriptSegment, TransformEngine, type UngroupNodesCommand, type UpdateAnimationCommand, type UpdateCanvasSizeCommand, type UpdateDataPreviewSetCommand, type UpdateDocumentMetaCommand, type UpdateKeyframeTracksCommand, type UpdateNodePropertyCommand, type UpdateNodeStyleCommand, type UpdatePropCommand, type UpdateStyleCommand, type UpdateTimelineMarkerCommand, type UpdateVariableCommand, type Command$1 as V2Command, VERSION, type ValidatedEffectDefinition, type ValidatedTextEffectDefinition, type ValidatedTextTemplate, type ValidationDiagnostic, type ValidationError, type ValidationResult, type VideoCodecProfile, type VideoContext, type VideoNode, type VideoPlaybackConfig, type ViewportState, ViewportTransform, type VirtualWindow, WEBM_EXPORT_MAX_FRAMES, WebMEncoder, type WebMExportOptions, _resetPlatformCache, addImageLayer, addKeyframe, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, alignToLottieJ, animationRuntime, animationValidator, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, assetRegistry, bakeAnimationIntoLayer, blendConfigs, blendScenes, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInRecipes, calculateCropFromFocalPoint, calculateDefaultCoverCrop, calculateMediaFit, calculateResizeBounds, calculateRotationAngle, canonicalContentHash, canonicalizeSceneDocument, captureImageSourceDimensions, captureLottieFrames, captureVideoSourceDimensions, clearAnimationFromLayer, clearFontCache, clearRecipeCache, cloneSceneWithNewIds, commandExecutor, compileSemanticOverlay, componentRegistry, computeAutoFitFontSize, computeFitZoom, computeTextLayout, convertScratchTemplateToClip, countTextGlyphs, createBlankLottie, createBlankScratchTemplate, createCanvas, createDefaultRevealTrack, createDefaultScratchBlock, createKeyframed, createPulseOpacityTrack, cubicBezier, dataBindingAuthoringEngine, dataBindingEngine, deleteKeyframe, deserializeTemplate, documentMigrator, documentValidator, downloadDotLottie, downloadLottieJson, downloadLottieMp4, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, editorCommandSystem, enableKeyframing, encodeGif, ensureDefaultTimeline, ensureFontInLottie, evaluateAnimatable, evaluateExportFrame, evaluateOverlayDocument, evaluateTextEffect, evaluateTextTemplate, exportLottieToMp4, exportValidator, findTrackIndex, fontRegistry, formatValidationErrors, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getCanvasTemplatePreset, getCanvasTemplatesByCategory, getClipLayout, getDefaultText, getLayerById, getPresetScene, getRenderCapabilities, getSourceCropRect, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getWebMFrameCount, hexToLottieColor, hexToLottieRgb, hitTestTransformHandles, injectBatch, injectColor, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, isKeyframed, isMp4ExportSupported, isWebMExportSupported, layoutEngine, liveBroadcastBridge, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, measureTextWidth, mediaEncoderRegistry, motionPresetRegistry, moveKeyframe, normalizeTextEffect, normalizeTextTemplate, parseHistorySnapshot, parseLottieJson, preloadGoogleFont, presetToRecipe, primitiveRegistry, propertyAnimationRegistry, propertyInspectorEngine, propertyInterpolator, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, removeKeyframe, removeTemplateKeyframe, removeTrack, renderPngSequence, renderSceneWebM, resizeCharFillColors, resolveAnimatedScalar, resolveBehaviorToAnimationSpec, resolveConform, resolveDocumentForBreakpoint, resolveExportCanvasDimensions, resolveMediaLayout, resolveNodeForBreakpoint, resolveSpatialConstraints, restoreLetterSpacing, rotateCrop, runtimeAssetResolver, sampleVideoContextAtTime, scanLottieFonts, scanTextLayers, selectionEngine, serializeTemplate, setCharFillColor, setTracks, shouldUsePerCharFill, smartOverlayRegistry, snapEngine, snapshotScene, sortKeyframes, streamExportFrames, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, trackId, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, validateEffectDefinition, validateEffectDefinitionStrict, validateTextEffectDefinition, validateTextEffectDefinitionStrict, validateTextTemplate, validateTextTemplateStrict, viewportTransform, waitForFontsReady, wrapTextToWidth };
|
|
7117
|
+
export { ASPECT_RATIO_PRESETS, type AddBreakpointCommand, type AddDataPreviewSetCommand, type AddNodeCommand, type AddTimelineMarkerCommand, type AddVariableCommand, type AlignmentGuide, type AlignmentMode, type AnchorSide, type AnchorXMode, type AnchorYMode, type AnimBuildOpts, type AnimKeyframe, AnimTrack, type AnimTrackDef, type AnimatableParamDef, AnimatableValue, type AnimationCategory, type AnimationDiagnostic, type AnimationDiagnosticSeverity, type AnimationEvaluationOptions, AnimationPresetSchema, AnimationRuntime, AnimationSchema, type AnimationStartSpec, type AnimationState, AnimationValidator, type AnnotationNode, type ArcGeometryOutput, type AssetHandle, type AssetKind, type AssetManifest, type AssetRef, AssetRegistry$1 as AssetRegistry, type AssetSource, type AudioNode, type AudioPlaybackConfig, type AvatarNode, type AvoidRegionKind, type AxisConfig, BUILTIN_CANVAS_TEMPLATES, type BarGeometryItem, type BaseCommand, type BaseEditorCommand, type BatchCommand, type BatchCommandsCommand, type BatchInjection, type BehaviorKind, type BehaviorSpec, BezierControlPoints, type BindingDefinition, type BodySegmentationOptions, type BodySegmentationRequest, type BodySegmentationResponse, type BodySegmentationRuntime, type BodySegmentationRuntimeConfig, type BoundingBox, BoundingBoxSchema, type BoundingRegion, type BreadcrumbItem, type Breakpoint, type BreakpointSet, COMPOSITION_PRESETS, type CalloutNode, CanvasDevice, type CanvasSnapResult, type ChartAnimationConfig, type ChartBarStyle, type ChartNode, type ChartScale, type ChartSeries, type ChartType, type ClipConform, type ClipSegment, type CodeOverlayContent, type CodeSmartOverlayContent, type ColumnDefinition, type Command, type CommandBuffer, CommandBufferBuilder, type CommandExecutionResult, CommandExecutor, CommandHistory, type CommandHistoryOptions, type CommandType, type ComparisonItem, type ComparisonOverlayContent, type ComparisonSmartOverlayContent, CompiledTextTemplate, type ComponentCategory, type ComponentDefinition, type ComponentNode, type CompositionPreset, type ComputedCell, type ComputedColumn, type ComputedNodeBounds, type ComputedRow, type ComputedSplitUnitTransform, type ConformMode, type ConnectorNode, type ContainerNode, type CountUpEasing, DEFAULT_TEXT_STYLE, DataBindingAuthoringEngine, DataBindingEngine, type DataBindingRule, type DataPreviewSet, type DeleteNodeCommand, type DeleteNodesCommand, type DependencyGraph, type DetachComponentCommand, type DimensionMode, type DividerNode, type DocumentCommand, DocumentMigrator, type DocumentPoint, DocumentValidator, type DocumentVariable, type DotLottieManifest, type DrawPerCharTextOptions, type DuplicateNodesCommand, EMPHASIS_PRESETS, ENTRANCE_PRESETS, EXIT_PRESETS, EXPORT_PROFILE_PRESETS, type EasingControlPoint, type EditorAddNodeCommand, type EditorCommand, EditorCommandSystem, type EditorCommandType, type EditorExecutionResult, EffectBevelSchema, EffectFillSchema, EffectFullDefinitionSchema, EffectGlowSchema, EffectIndexItemSchema, type EffectInstance, EffectLayer, EffectPanelSchema, EffectShadowSchema, EffectStackSchema, EffectStrokeSchema, type EncodedFileEntry, type EncodedOutput, type EvaluatedBroadcastFrame, type EvaluatedContent, type EvaluatedExportFrame, type EvaluatedMilestone, type EvaluatedNode, type EvaluatedNodeState, type EvaluatedScene, type EvaluatedSceneState, type EvaluatedStyle, type EvaluatedThreshold, type EvaluatedTransform, type EvaluatedVideoStateAtTime, type EvaluationDiagnostic, type ExecutionPlanner, type ExecutionPolicy, type ExecutionQuality, ExportAbortError, type ExportConfig, type ExportDiagnosticCode, type ExportDiagnosticSeverity, type ExportFormat, type ExportFrameDescriptor, ExportJob, type ExportJobRecord, type ExportProfile, type ExportProgress, type ExportValidationDiagnostic, ExportValidator, FONT_WEIGHT_OPTIONS, type FillType, type FocalPoint$1 as FocalPoint, type FontRef, FontRegistry, FontSchema, type FontSpec, type FrameGraph, FrameGraphBuilder, type FrameNode, type GaugeNode, type GaugeThreshold, GifEncoder, type GifExportOptions, type GifFrame, GlowLayer, type GradientDir, type GradientNode, GradientStop, GradientStopSchema, GraphValidator, GridEngine, type GroupNodesCommand, type HandleType, type IconNode, type ImageFitMode, type ImageFittingInput, type ImageFittingResult, ImageLayerSchema, type JobChangeListener, type JobStatus, Keyframe, type KeyframeTrack, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, LayerAnimationSchema, type LayoutComputedState, LayoutEngine, type LayoutMode, type LineNode, type ListOverlayContent, type ListOverlayItem, type ListSmartOverlayContent, LiveBroadcastBridge, type LiveBroadcastOptions, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottieNode, type LottiePropertyPath, type LottieTemplatePreset, type LowerThirdOverlayContent, type LowerThirdSmartOverlayContent, type MediaEncoder, MediaEncoderRegistry, type MediaFitMode, MediaImageEngine, type MediaLayout, type MetricDelta, MetricEngine, type MetricEvaluationResult, type MetricFormatOptions, type MetricNode, type MilestoneItem, type MotionPreset, type MotionPresetDefinition, type MotionPresetParameter, MotionPresetRegistry, type MoveNodesCommand, type Mp4ExportOptions, Mp4VideoEncoder, type NodeAnimationRules, type NodeConstraints, type NodeDefinition, type NodeLayoutRules, NodeRegistry, type NodeSizingPolicy, type NodeStartTransform, type NodeStyleRules, type NormalizedCrop, NullBackend, type OverlayDocument, type ParsedTextLayer, type PlaybackDirection, type PlaybackMode, PngSequenceEncoder, type PngSequenceFrame, type PngSequenceOptions, Preset, type PrimitiveDefinition, type PrimitiveMediaNode, PrimitiveRegistry, type PrimitiveShapeNode, type PrimitiveTextNode, ProResVideoEncoder, type ProfileCanvasDimensions, type ProgressNode, ProjectCompiler, ProjectHelper, type ProjectManifestV2, type PropertyAnimationDefinition, PropertyAnimationRegistry, type PropertyDefinition, PropertyInspectorEngine, PropertyInterpolator, type PropertySchemaField, type PropertyValueType, type PublishedOverlayArtifact, type QuoteOverlayContent, type QuoteSmartOverlayContent, RawFramesEncoder, type RecordedExecution, type RegisterAssetCommand, type RegisteredAsset, type RegisteredFont, type RemoveAssetCommand, type RemoveBreakpointCommand, type RemoveDataPreviewSetCommand, type RemoveTimelineMarkerCommand, type RemoveVariableCommand, type RenderBackend, type RenderPass, RenderPlan, type RendererCapabilities, type ReorderNodesCommand, type ReparentNodeCommand, type RepeaterNode, type ResizeHandle, type ResizeNodeCommand, type ResizeOptions, type ResolvedAsset, type ResolvedFit, type ResolvedFont, type ResolvedImageDimensions, type ResolvedLayoutBounds, type ResolvedMediaLayout, type ResourceAllocation, type ResourceRequest, type ResourceState$1 as ResourceState, ResponsiveAnchorConfig, type ResponsiveNodeOverride, type RichTextNode, type RichTextSpan, RuntimeAssetResolver, type RuntimeContext, SMART_OVERLAY_PRESETS, SUPPORTED_FONT_FAMILIES, type SceneCanvasContext, SceneDocument, type SceneNode, type SceneNodeBase, type SceneNodeType, type ScratchElementBlock, type ScratchOverlayTemplate, type ScreenPoint, SelectionEngine, type SemanticAnimationConfig, type SemanticBehaviorConfig, type SemanticContent, type SemanticIntent, type SemanticOverlayDefinition, type SemanticSlotDefinition, type SemanticSpatialConstraints, SeriesEngine, type SeriesPoint, type SetActiveBreakpointCommand, type SetAssetRefCommand, type SetBindingCommand, type SetDocumentCommand, type SetFontRefCommand, type SetResponsiveOverrideCommand, type ShaderCompilation, type ShapeKind, ShapeLayerSchema, type ShotBoundary, type Size, type SizingDimensionInput, type SmartAlignmentGuide, SmartGuideEngine, type SmartOverlayAnimation, type SmartOverlayClip, type SmartOverlayContentUnion, type SmartOverlayLayout, type SmartOverlayPreset, type SmartOverlayRegistryItem, SmartOverlayRegistryService, SmartOverlayRenderer, type SmartOverlayStyle, type SmartOverlayType, type SmartSnapResult, SnapEngine, type SnapResult, type SocialOverlayContent, type SocialSmartOverlayContent, type SpatialAnchorConfig, type SpatialConstraintSpec, SplitMode, type SplitUnit, SpringParams, type StatOverlayContent, type StatSmartOverlayContent, StyleRecipe, type SubtitleRegion, TEMPLATE_CATEGORIES, type TableColumn, type TableLayoutResult, type TableNode, TemplateCategory, TemplateCategorySchema, TemplateEasingFunction, TemplateKeyframe, TemplateLayer, TemplateLayerSchema, type TemplateManifest, type TemplatePresetCategory, TemplateRenderContext, TemplateRenderer, type TemporalKeyframedRegion, type TextAlign, type TextCustomization, TextEffectBuilder, TextEffectConfig, TextEffectDefinition, TextEffectDefinitionSchema, type TextLayerConfig, TextLayerSchema, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, TextSplitAnimator, type TextStyleOverride, TextStyleSpan, TextTemplate, TextTemplateArtifact, type TextTemplateDiagnostic, TextTemplateSchema, type ThresholdBand, type TimelineEvent, type TimelineMarker, type TimelineNode, type TimelineOverlayContent, type TimelineOverlayNode, type TimelineSmartOverlayContent, type TrackDefinition, type TrackedSubject, type TranscriptSegment, TransformEngine, type UngroupNodesCommand, type UpdateAnimationCommand, type UpdateCanvasSizeCommand, type UpdateDataPreviewSetCommand, type UpdateDocumentMetaCommand, type UpdateKeyframeTracksCommand, type UpdateNodePropertyCommand, type UpdateNodeStyleCommand, type UpdatePropCommand, type UpdateStyleCommand, type UpdateTimelineMarkerCommand, type UpdateVariableCommand, type Command$1 as V2Command, VERSION, type ValidatedEffectDefinition, type ValidatedTextEffectDefinition, type ValidatedTextTemplate, type ValidationDiagnostic, type ValidationError, type ValidationResult, type VideoCodecProfile, type VideoContext, type VideoNode, type VideoPlaybackConfig, type ViewportState, ViewportTransform, type VirtualWindow, WEBM_EXPORT_MAX_FRAMES, WebMEncoder, type WebMExportOptions, _resetPlatformCache, addImageLayer, addKeyframe, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, alignToLottieJ, animationRuntime, animationValidator, applyEasing, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, assertValidTextTemplateArtifact, assetRegistry, bakeAnimationIntoLayer, blendConfigs, blendScenes, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInRecipes, calculateCropFromFocalPoint, calculateDefaultCoverCrop, calculateMediaFit, calculateResizeBounds, calculateRotationAngle, canonicalTemplateHash, captureImageSourceDimensions, captureLottieFrames, captureVideoSourceDimensions, clearAnimationFromLayer, clearFontCache, clearRecipeCache, cloneSceneWithNewIds, commandExecutor, compileSemanticOverlay, compileTextTemplate, componentRegistry, computeAutoFitFontSize, computeFitZoom, computeTextLayout, convertScratchTemplateToClip, countTextGlyphs, createBlankLottie, createBlankScratchTemplate, createCanvas, createDefaultRevealTrack, createDefaultScratchBlock, createKeyframed, createPulseOpacityTrack, cubicBezier, dataBindingAuthoringEngine, dataBindingEngine, deleteKeyframe, deserializeTemplate, documentMigrator, documentValidator, downloadDotLottie, downloadLottieJson, downloadLottieMp4, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, editorCommandSystem, enableKeyframing, encodeGif, ensureDefaultTimeline, ensureFontInLottie, evaluateAnimatable, evaluateExportFrame, evaluateOverlayDocument, evaluateSplitTextTransforms, exportLottieToMp4, exportValidator, findTrackIndex, fontRegistry, formatValidationErrors, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getCanvasTemplatePreset, getCanvasTemplatesByCategory, getClipLayout, getDefaultText, getLayerById, getPresetScene, getSourceCropRect, getSpanForCharIndex, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getWebMFrameCount, hexToLottieColor, hexToLottieRgb, hitTestTransformHandles, injectBatch, injectColor, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, interpolateColorString, interpolateValue, isKeyframed, isMp4ExportSupported, isWebMExportSupported, layoutEngine, liveBroadcastBridge, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, measureTextWidth, mediaEncoderRegistry, motionPresetRegistry, moveKeyframe, normalizeTextTemplateArtifact, parseHistorySnapshot, parseLottieJson, preloadGoogleFont, presetToRecipe, primitiveRegistry, propertyAnimationRegistry, propertyInspectorEngine, propertyInterpolator, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, removeKeyframe, removeTemplateKeyframe, removeTrack, renderEvaluatedSceneToCanvas, renderPngSequence, renderSceneWebM, resizeCharFillColors, resolveAnchorPosition, resolveAnimatedScalar, resolveBehaviorToAnimationSpec, resolveConform, resolveDocumentForBreakpoint, resolveExportCanvasDimensions, resolveMediaLayout, resolveNodeForBreakpoint, resolveSpatialConstraints, restoreLetterSpacing, rotateCrop, runtimeAssetResolver, sampleVideoContextAtTime, scanLottieFonts, scanTextLayers, selectionEngine, serializeTemplate, setCharFillColor, setTracks, shouldUsePerCharFill, smartOverlayRegistry, snapEngine, snapshotScene, solveSpring, sortKeyframes, splitTextContent, streamExportFrames, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, trackId, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, validateEffectDefinition, validateEffectDefinitionStrict, validateTextEffectDefinition, validateTextEffectDefinitionStrict, validateTextTemplate, validateTextTemplateArtifact, validateTextTemplateStrict, viewportTransform, waitForFontsReady, wrapTextToWidth };
|