@clypra-studio/engine 1.4.0 → 1.6.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.
Files changed (36) hide show
  1. package/dist/{chunk-E6O6LZME.js → chunk-7ORA5BPW.js} +14 -299
  2. package/dist/chunk-7ORA5BPW.js.map +1 -0
  3. package/dist/chunk-NG4F55V7.js +300 -0
  4. package/dist/chunk-NG4F55V7.js.map +1 -0
  5. package/dist/{chunk-3UEOLDJJ.js → chunk-SH7HOGVX.js} +1 -1
  6. package/dist/chunk-SH7HOGVX.js.map +1 -0
  7. package/dist/chunk-V5D5SJPO.js +1946 -0
  8. package/dist/chunk-V5D5SJPO.js.map +1 -0
  9. package/dist/index-DKJxLj6P.d.cts +122 -0
  10. package/dist/index-DbojK0dC.d.ts +491 -0
  11. package/dist/index-QSvA1MMy.d.ts +122 -0
  12. package/dist/index-l2Qgw6Dt.d.cts +491 -0
  13. package/dist/index.cjs +3669 -484
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +248 -150
  16. package/dist/index.d.ts +248 -150
  17. package/dist/index.js +2226 -930
  18. package/dist/index.js.map +1 -1
  19. package/dist/rendering/index.cjs +3743 -0
  20. package/dist/rendering/index.cjs.map +1 -0
  21. package/dist/rendering/index.d.cts +2 -0
  22. package/dist/rendering/index.d.ts +2 -0
  23. package/dist/rendering/index.js +23 -0
  24. package/dist/rendering/index.js.map +1 -0
  25. package/dist/textEffects/index.cjs +13 -5
  26. package/dist/textEffects/index.cjs.map +1 -1
  27. package/dist/textEffects/index.d.cts +2 -1
  28. package/dist/textEffects/index.d.ts +2 -1
  29. package/dist/textEffects/index.js +6 -4
  30. package/dist/{index-C18SQ-y6.d.cts → types-CoshNXmU.d.cts} +142 -129
  31. package/dist/{index-C18SQ-y6.d.ts → types-CoshNXmU.d.ts} +142 -129
  32. package/dist/videoEffects/index.cjs.map +1 -1
  33. package/dist/videoEffects/index.js +1 -1
  34. package/package.json +6 -1
  35. package/dist/chunk-3UEOLDJJ.js.map +0 -1
  36. 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, 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-C18SQ-y6.js';
2
- export { j as AnimationPreset, C as CanvasBackgroundConfig, k as ColorAdjustments, l as CompositorFromScene, m as CompositorSettings, D as DEFAULT_CANVAS_HEIGHT, n as DEFAULT_CANVAS_WIDTH, o as DEFAULT_DURATION, p as DEFAULT_FONT_SIZE, q as DEFAULT_FPS, r as EffectBevel, s as EffectFill, t as EffectFullDefinition, u as EffectGlow, v as EffectIndexItem, w as EffectLayerType, x as EffectPanel, y as EffectShadow, z as EffectStack, B as EffectStroke, F as EvaluateOptions, H as EvaluatedTextLayer, I as FontDescriptor, J as FontLoadResult, L as FontLoader, M as FontVariant, N as GradingParams, O as LayerAnimation, Q as LayerTarget, R as SCENE_SCHEMA_VERSION, U as SCENE_VERSION, V as SceneCanvas, W as SceneText, X as TemplateImageLayer, Y as TemplateShapeLayer, Z as TemplateTextLayer, _ as TextEffectRenderer, $ as Timeline, a0 as _buildConfig, a1 as advanceSceneTime, a2 as builtInPresets, a3 as checkFontVariant, a4 as createBlankTextEffectConfig, a5 as createEmptyScene, a6 as defaultConfig, a7 as ensureFontsLoaded, a8 as evaluateConfig, a9 as evaluateScene, aa as getFontLoader, ab as getSceneTime, ac as initializeFontSystem, ad as injectFontVariantRules, ae as layerToTextEffectConfig, af as mergeSceneIntoConfig, ag as newLayerId, ah as renderTextEffectCore, ai as resetFontLoader, aj as resetSceneTime, ak as resolveFontFamilyName, al as sceneToConfig, am as setSceneTime, an as syncCompositorFromScene, ao as textEffectConfigToScene } from './index-C18SQ-y6.js';
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-CoshNXmU.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-CoshNXmU.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-QSvA1MMy.js';
5
+ import { R as RenderPlan, T as TextTemplateArtifact, a as TemplateRenderContext, C as CompiledTextTemplate } from './index-DbojK0dC.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 resolveTemplateFontFamily, ai as resolveTextTemplateArtifact } from './index-DbojK0dC.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';
@@ -150,11 +153,11 @@ declare const FontSchema: z.ZodObject<{
150
153
  }, z.core.$strip>;
151
154
  declare const AnimationSchema: z.ZodObject<{
152
155
  type: z.ZodEnum<{
153
- fade: "fade";
154
- glitch: "glitch";
155
156
  none: "none";
156
157
  typewriter: "typewriter";
157
158
  wave: "wave";
159
+ fade: "fade";
160
+ glitch: "glitch";
158
161
  }>;
159
162
  speed: z.ZodOptional<z.ZodNumber>;
160
163
  amplitude: z.ZodOptional<z.ZodNumber>;
@@ -339,11 +342,11 @@ declare const EffectFullDefinitionSchema: z.ZodObject<{
339
342
  glitch: z.ZodOptional<z.ZodAny>;
340
343
  animation: z.ZodOptional<z.ZodObject<{
341
344
  type: z.ZodEnum<{
342
- fade: "fade";
343
- glitch: "glitch";
344
345
  none: "none";
345
346
  typewriter: "typewriter";
346
347
  wave: "wave";
348
+ fade: "fade";
349
+ glitch: "glitch";
347
350
  }>;
348
351
  speed: z.ZodOptional<z.ZodNumber>;
349
352
  amplitude: z.ZodOptional<z.ZodNumber>;
@@ -524,11 +527,11 @@ declare const TextEffectDefinitionSchema: z.ZodObject<{
524
527
  glitch: z.ZodOptional<z.ZodAny>;
525
528
  animation: z.ZodOptional<z.ZodObject<{
526
529
  type: z.ZodEnum<{
527
- fade: "fade";
528
- glitch: "glitch";
529
530
  none: "none";
530
531
  typewriter: "typewriter";
531
532
  wave: "wave";
533
+ fade: "fade";
534
+ glitch: "glitch";
532
535
  }>;
533
536
  speed: z.ZodOptional<z.ZodNumber>;
534
537
  amplitude: z.ZodOptional<z.ZodNumber>;
@@ -677,7 +680,7 @@ declare function validateEffectDefinition(data: unknown): z.ZodSafeParseResult<{
677
680
  };
678
681
  glitch?: any;
679
682
  animation?: {
680
- type: "fade" | "glitch" | "none" | "typewriter" | "wave";
683
+ type: "none" | "typewriter" | "wave" | "fade" | "glitch";
681
684
  speed?: number;
682
685
  amplitude?: number;
683
686
  frequency?: number;
@@ -822,7 +825,7 @@ declare function validateEffectDefinitionStrict(data: unknown): {
822
825
  };
823
826
  glitch?: any;
824
827
  animation?: {
825
- type: "fade" | "glitch" | "none" | "typewriter" | "wave";
828
+ type: "none" | "typewriter" | "wave" | "fade" | "glitch";
826
829
  speed?: number;
827
830
  amplitude?: number;
828
831
  frequency?: number;
@@ -966,7 +969,7 @@ declare function validateTextEffectDefinition(data: unknown): z.ZodSafeParseResu
966
969
  };
967
970
  glitch?: any;
968
971
  animation?: {
969
- type: "fade" | "glitch" | "none" | "typewriter" | "wave";
972
+ type: "none" | "typewriter" | "wave" | "fade" | "glitch";
970
973
  speed?: number;
971
974
  amplitude?: number;
972
975
  frequency?: number;
@@ -1112,7 +1115,7 @@ declare function validateTextEffectDefinitionStrict(data: unknown): {
1112
1115
  };
1113
1116
  glitch?: any;
1114
1117
  animation?: {
1115
- type: "fade" | "glitch" | "none" | "typewriter" | "wave";
1118
+ type: "none" | "typewriter" | "wave" | "fade" | "glitch";
1116
1119
  speed?: number;
1117
1120
  amplitude?: number;
1118
1121
  frequency?: number;
@@ -1151,11 +1154,19 @@ declare const TemplateCategorySchema: z.ZodEnum<{
1151
1154
  callout: "callout";
1152
1155
  social: "social";
1153
1156
  countdown: "countdown";
1157
+ "kinetic-type": "kinetic-type";
1158
+ cta: "cta";
1159
+ credits: "credits";
1160
+ quotes: "quotes";
1161
+ sports: "sports";
1162
+ gaming: "gaming";
1163
+ news: "news";
1164
+ minimal: "minimal";
1154
1165
  }>;
1155
1166
  declare const AnimationPresetSchema: z.ZodEnum<{
1156
- fade: "fade";
1157
1167
  none: "none";
1158
1168
  typewriter: "typewriter";
1169
+ fade: "fade";
1159
1170
  "slide-up": "slide-up";
1160
1171
  "slide-down": "slide-down";
1161
1172
  "slide-left": "slide-left";
@@ -1167,9 +1178,9 @@ declare const AnimationPresetSchema: z.ZodEnum<{
1167
1178
  }>;
1168
1179
  declare const LayerAnimationSchema: z.ZodObject<{
1169
1180
  in: z.ZodEnum<{
1170
- fade: "fade";
1171
1181
  none: "none";
1172
1182
  typewriter: "typewriter";
1183
+ fade: "fade";
1173
1184
  "slide-up": "slide-up";
1174
1185
  "slide-down": "slide-down";
1175
1186
  "slide-left": "slide-left";
@@ -1180,9 +1191,9 @@ declare const LayerAnimationSchema: z.ZodObject<{
1180
1191
  "blur-out": "blur-out";
1181
1192
  }>;
1182
1193
  out: z.ZodEnum<{
1183
- fade: "fade";
1184
1194
  none: "none";
1185
1195
  typewriter: "typewriter";
1196
+ fade: "fade";
1186
1197
  "slide-up": "slide-up";
1187
1198
  "slide-down": "slide-down";
1188
1199
  "slide-left": "slide-left";
@@ -1216,9 +1227,9 @@ declare const TextLayerSchema: z.ZodObject<{
1216
1227
  height: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"auto">]>;
1217
1228
  animation: z.ZodObject<{
1218
1229
  in: z.ZodEnum<{
1219
- fade: "fade";
1220
1230
  none: "none";
1221
1231
  typewriter: "typewriter";
1232
+ fade: "fade";
1222
1233
  "slide-up": "slide-up";
1223
1234
  "slide-down": "slide-down";
1224
1235
  "slide-left": "slide-left";
@@ -1229,9 +1240,9 @@ declare const TextLayerSchema: z.ZodObject<{
1229
1240
  "blur-out": "blur-out";
1230
1241
  }>;
1231
1242
  out: z.ZodEnum<{
1232
- fade: "fade";
1233
1243
  none: "none";
1234
1244
  typewriter: "typewriter";
1245
+ fade: "fade";
1235
1246
  "slide-up": "slide-up";
1236
1247
  "slide-down": "slide-down";
1237
1248
  "slide-left": "slide-left";
@@ -1288,8 +1299,8 @@ declare const ShapeLayerSchema: z.ZodObject<{
1288
1299
  kind: z.ZodLiteral<"shape">;
1289
1300
  id: z.ZodString;
1290
1301
  shape: z.ZodEnum<{
1291
- rect: "rect";
1292
1302
  line: "line";
1303
+ rect: "rect";
1293
1304
  circle: "circle";
1294
1305
  }>;
1295
1306
  fill: z.ZodString;
@@ -1303,9 +1314,9 @@ declare const ShapeLayerSchema: z.ZodObject<{
1303
1314
  height: z.ZodNumber;
1304
1315
  animation: z.ZodObject<{
1305
1316
  in: z.ZodEnum<{
1306
- fade: "fade";
1307
1317
  none: "none";
1308
1318
  typewriter: "typewriter";
1319
+ fade: "fade";
1309
1320
  "slide-up": "slide-up";
1310
1321
  "slide-down": "slide-down";
1311
1322
  "slide-left": "slide-left";
@@ -1316,9 +1327,9 @@ declare const ShapeLayerSchema: z.ZodObject<{
1316
1327
  "blur-out": "blur-out";
1317
1328
  }>;
1318
1329
  out: z.ZodEnum<{
1319
- fade: "fade";
1320
1330
  none: "none";
1321
1331
  typewriter: "typewriter";
1332
+ fade: "fade";
1322
1333
  "slide-up": "slide-up";
1323
1334
  "slide-down": "slide-down";
1324
1335
  "slide-left": "slide-left";
@@ -1345,9 +1356,9 @@ declare const ImageLayerSchema: z.ZodObject<{
1345
1356
  height: z.ZodNumber;
1346
1357
  animation: z.ZodObject<{
1347
1358
  in: z.ZodEnum<{
1348
- fade: "fade";
1349
1359
  none: "none";
1350
1360
  typewriter: "typewriter";
1361
+ fade: "fade";
1351
1362
  "slide-up": "slide-up";
1352
1363
  "slide-down": "slide-down";
1353
1364
  "slide-left": "slide-left";
@@ -1358,9 +1369,9 @@ declare const ImageLayerSchema: z.ZodObject<{
1358
1369
  "blur-out": "blur-out";
1359
1370
  }>;
1360
1371
  out: z.ZodEnum<{
1361
- fade: "fade";
1362
1372
  none: "none";
1363
1373
  typewriter: "typewriter";
1374
+ fade: "fade";
1364
1375
  "slide-up": "slide-up";
1365
1376
  "slide-down": "slide-down";
1366
1377
  "slide-left": "slide-left";
@@ -1395,9 +1406,9 @@ declare const TemplateLayerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1395
1406
  height: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"auto">]>;
1396
1407
  animation: z.ZodObject<{
1397
1408
  in: z.ZodEnum<{
1398
- fade: "fade";
1399
1409
  none: "none";
1400
1410
  typewriter: "typewriter";
1411
+ fade: "fade";
1401
1412
  "slide-up": "slide-up";
1402
1413
  "slide-down": "slide-down";
1403
1414
  "slide-left": "slide-left";
@@ -1408,9 +1419,9 @@ declare const TemplateLayerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1408
1419
  "blur-out": "blur-out";
1409
1420
  }>;
1410
1421
  out: z.ZodEnum<{
1411
- fade: "fade";
1412
1422
  none: "none";
1413
1423
  typewriter: "typewriter";
1424
+ fade: "fade";
1414
1425
  "slide-up": "slide-up";
1415
1426
  "slide-down": "slide-down";
1416
1427
  "slide-left": "slide-left";
@@ -1466,8 +1477,8 @@ declare const TemplateLayerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1466
1477
  kind: z.ZodLiteral<"shape">;
1467
1478
  id: z.ZodString;
1468
1479
  shape: z.ZodEnum<{
1469
- rect: "rect";
1470
1480
  line: "line";
1481
+ rect: "rect";
1471
1482
  circle: "circle";
1472
1483
  }>;
1473
1484
  fill: z.ZodString;
@@ -1481,9 +1492,9 @@ declare const TemplateLayerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1481
1492
  height: z.ZodNumber;
1482
1493
  animation: z.ZodObject<{
1483
1494
  in: z.ZodEnum<{
1484
- fade: "fade";
1485
1495
  none: "none";
1486
1496
  typewriter: "typewriter";
1497
+ fade: "fade";
1487
1498
  "slide-up": "slide-up";
1488
1499
  "slide-down": "slide-down";
1489
1500
  "slide-left": "slide-left";
@@ -1494,9 +1505,9 @@ declare const TemplateLayerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1494
1505
  "blur-out": "blur-out";
1495
1506
  }>;
1496
1507
  out: z.ZodEnum<{
1497
- fade: "fade";
1498
1508
  none: "none";
1499
1509
  typewriter: "typewriter";
1510
+ fade: "fade";
1500
1511
  "slide-up": "slide-up";
1501
1512
  "slide-down": "slide-down";
1502
1513
  "slide-left": "slide-left";
@@ -1522,9 +1533,9 @@ declare const TemplateLayerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1522
1533
  height: z.ZodNumber;
1523
1534
  animation: z.ZodObject<{
1524
1535
  in: z.ZodEnum<{
1525
- fade: "fade";
1526
1536
  none: "none";
1527
1537
  typewriter: "typewriter";
1538
+ fade: "fade";
1528
1539
  "slide-up": "slide-up";
1529
1540
  "slide-down": "slide-down";
1530
1541
  "slide-left": "slide-left";
@@ -1535,9 +1546,9 @@ declare const TemplateLayerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1535
1546
  "blur-out": "blur-out";
1536
1547
  }>;
1537
1548
  out: z.ZodEnum<{
1538
- fade: "fade";
1539
1549
  none: "none";
1540
1550
  typewriter: "typewriter";
1551
+ fade: "fade";
1541
1552
  "slide-up": "slide-up";
1542
1553
  "slide-down": "slide-down";
1543
1554
  "slide-left": "slide-left";
@@ -1565,6 +1576,14 @@ declare const TextTemplateSchema: z.ZodObject<{
1565
1576
  callout: "callout";
1566
1577
  social: "social";
1567
1578
  countdown: "countdown";
1579
+ "kinetic-type": "kinetic-type";
1580
+ cta: "cta";
1581
+ credits: "credits";
1582
+ quotes: "quotes";
1583
+ sports: "sports";
1584
+ gaming: "gaming";
1585
+ news: "news";
1586
+ minimal: "minimal";
1568
1587
  }>;
1569
1588
  duration: z.ZodNumber;
1570
1589
  fps: z.ZodOptional<z.ZodNumber>;
@@ -1590,9 +1609,9 @@ declare const TextTemplateSchema: z.ZodObject<{
1590
1609
  height: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"auto">]>;
1591
1610
  animation: z.ZodObject<{
1592
1611
  in: z.ZodEnum<{
1593
- fade: "fade";
1594
1612
  none: "none";
1595
1613
  typewriter: "typewriter";
1614
+ fade: "fade";
1596
1615
  "slide-up": "slide-up";
1597
1616
  "slide-down": "slide-down";
1598
1617
  "slide-left": "slide-left";
@@ -1603,9 +1622,9 @@ declare const TextTemplateSchema: z.ZodObject<{
1603
1622
  "blur-out": "blur-out";
1604
1623
  }>;
1605
1624
  out: z.ZodEnum<{
1606
- fade: "fade";
1607
1625
  none: "none";
1608
1626
  typewriter: "typewriter";
1627
+ fade: "fade";
1609
1628
  "slide-up": "slide-up";
1610
1629
  "slide-down": "slide-down";
1611
1630
  "slide-left": "slide-left";
@@ -1661,8 +1680,8 @@ declare const TextTemplateSchema: z.ZodObject<{
1661
1680
  kind: z.ZodLiteral<"shape">;
1662
1681
  id: z.ZodString;
1663
1682
  shape: z.ZodEnum<{
1664
- rect: "rect";
1665
1683
  line: "line";
1684
+ rect: "rect";
1666
1685
  circle: "circle";
1667
1686
  }>;
1668
1687
  fill: z.ZodString;
@@ -1676,9 +1695,9 @@ declare const TextTemplateSchema: z.ZodObject<{
1676
1695
  height: z.ZodNumber;
1677
1696
  animation: z.ZodObject<{
1678
1697
  in: z.ZodEnum<{
1679
- fade: "fade";
1680
1698
  none: "none";
1681
1699
  typewriter: "typewriter";
1700
+ fade: "fade";
1682
1701
  "slide-up": "slide-up";
1683
1702
  "slide-down": "slide-down";
1684
1703
  "slide-left": "slide-left";
@@ -1689,9 +1708,9 @@ declare const TextTemplateSchema: z.ZodObject<{
1689
1708
  "blur-out": "blur-out";
1690
1709
  }>;
1691
1710
  out: z.ZodEnum<{
1692
- fade: "fade";
1693
1711
  none: "none";
1694
1712
  typewriter: "typewriter";
1713
+ fade: "fade";
1695
1714
  "slide-up": "slide-up";
1696
1715
  "slide-down": "slide-down";
1697
1716
  "slide-left": "slide-left";
@@ -1717,9 +1736,9 @@ declare const TextTemplateSchema: z.ZodObject<{
1717
1736
  height: z.ZodNumber;
1718
1737
  animation: z.ZodObject<{
1719
1738
  in: z.ZodEnum<{
1720
- fade: "fade";
1721
1739
  none: "none";
1722
1740
  typewriter: "typewriter";
1741
+ fade: "fade";
1723
1742
  "slide-up": "slide-up";
1724
1743
  "slide-down": "slide-down";
1725
1744
  "slide-left": "slide-left";
@@ -1730,9 +1749,9 @@ declare const TextTemplateSchema: z.ZodObject<{
1730
1749
  "blur-out": "blur-out";
1731
1750
  }>;
1732
1751
  out: z.ZodEnum<{
1733
- fade: "fade";
1734
1752
  none: "none";
1735
1753
  typewriter: "typewriter";
1754
+ fade: "fade";
1736
1755
  "slide-up": "slide-up";
1737
1756
  "slide-down": "slide-down";
1738
1757
  "slide-left": "slide-left";
@@ -1763,7 +1782,7 @@ declare function validateTextTemplate(data: unknown): z.ZodSafeParseResult<{
1763
1782
  [x: string]: unknown;
1764
1783
  id: string;
1765
1784
  label: string;
1766
- category: "lower-third" | "title-card" | "caption" | "callout" | "social" | "countdown";
1785
+ category: "lower-third" | "title-card" | "caption" | "callout" | "social" | "countdown" | "kinetic-type" | "cta" | "credits" | "quotes" | "sports" | "gaming" | "news" | "minimal";
1767
1786
  duration: number;
1768
1787
  canvasWidth: number;
1769
1788
  canvasHeight: number;
@@ -1779,8 +1798,8 @@ declare function validateTextTemplate(data: unknown): z.ZodSafeParseResult<{
1779
1798
  x: number;
1780
1799
  y: number;
1781
1800
  animation: {
1782
- in: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1783
- out: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1801
+ in: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1802
+ out: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1784
1803
  inDuration: number;
1785
1804
  outDuration: number;
1786
1805
  hold?: number | "full";
@@ -1810,15 +1829,15 @@ declare function validateTextTemplate(data: unknown): z.ZodSafeParseResult<{
1810
1829
  [x: string]: unknown;
1811
1830
  kind: "shape";
1812
1831
  id: string;
1813
- shape: "rect" | "line" | "circle";
1832
+ shape: "line" | "rect" | "circle";
1814
1833
  fill: string;
1815
1834
  x: number;
1816
1835
  y: number;
1817
1836
  width: number;
1818
1837
  height: number;
1819
1838
  animation: {
1820
- in: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1821
- out: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1839
+ in: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1840
+ out: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1822
1841
  inDuration: number;
1823
1842
  outDuration: number;
1824
1843
  hold?: number | "full";
@@ -1837,8 +1856,8 @@ declare function validateTextTemplate(data: unknown): z.ZodSafeParseResult<{
1837
1856
  width: number;
1838
1857
  height: number;
1839
1858
  animation: {
1840
- in: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1841
- out: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1859
+ in: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1860
+ out: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1842
1861
  inDuration: number;
1843
1862
  outDuration: number;
1844
1863
  hold?: number | "full";
@@ -1862,7 +1881,7 @@ declare function validateTextTemplateStrict(data: unknown): {
1862
1881
  [x: string]: unknown;
1863
1882
  id: string;
1864
1883
  label: string;
1865
- category: "lower-third" | "title-card" | "caption" | "callout" | "social" | "countdown";
1884
+ category: "lower-third" | "title-card" | "caption" | "callout" | "social" | "countdown" | "kinetic-type" | "cta" | "credits" | "quotes" | "sports" | "gaming" | "news" | "minimal";
1866
1885
  duration: number;
1867
1886
  canvasWidth: number;
1868
1887
  canvasHeight: number;
@@ -1878,8 +1897,8 @@ declare function validateTextTemplateStrict(data: unknown): {
1878
1897
  x: number;
1879
1898
  y: number;
1880
1899
  animation: {
1881
- in: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1882
- out: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1900
+ in: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1901
+ out: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1883
1902
  inDuration: number;
1884
1903
  outDuration: number;
1885
1904
  hold?: number | "full";
@@ -1909,15 +1928,15 @@ declare function validateTextTemplateStrict(data: unknown): {
1909
1928
  [x: string]: unknown;
1910
1929
  kind: "shape";
1911
1930
  id: string;
1912
- shape: "rect" | "line" | "circle";
1931
+ shape: "line" | "rect" | "circle";
1913
1932
  fill: string;
1914
1933
  x: number;
1915
1934
  y: number;
1916
1935
  width: number;
1917
1936
  height: number;
1918
1937
  animation: {
1919
- in: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1920
- out: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1938
+ in: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1939
+ out: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1921
1940
  inDuration: number;
1922
1941
  outDuration: number;
1923
1942
  hold?: number | "full";
@@ -1936,8 +1955,8 @@ declare function validateTextTemplateStrict(data: unknown): {
1936
1955
  width: number;
1937
1956
  height: number;
1938
1957
  animation: {
1939
- in: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1940
- out: "fade" | "none" | "typewriter" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1958
+ in: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1959
+ out: "none" | "typewriter" | "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "scale-in" | "scale-out" | "blur-in" | "blur-out";
1941
1960
  inDuration: number;
1942
1961
  outDuration: number;
1943
1962
  hold?: number | "full";
@@ -2834,85 +2853,6 @@ declare class TextEffectBuilder {
2834
2853
  buildScene(): SceneDocument;
2835
2854
  }
2836
2855
 
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
2856
  /**
2917
2857
  * Platform Capability Detection
2918
2858
  *
@@ -3072,7 +3012,54 @@ interface BodySegmentationOptions {
3072
3012
  minConfidence?: number;
3073
3013
  }
3074
3014
 
3015
+ /**
3016
+ * Newton-Raphson approximation solver for cubic bezier curve easing.
3017
+ * Computes exact y given x in [0, 1].
3018
+ */
3075
3019
  declare function cubicBezier(x1: number, y1: number, x2: number, y2: number): (t: number) => number;
3020
+ /**
3021
+ * Physics-based damped spring oscillator solver.
3022
+ */
3023
+ declare function solveSpring(t: number, params?: SpringParams): number;
3024
+ /**
3025
+ * Check if a value is keyframed
3026
+ */
3027
+ declare function isKeyframed<T>(value: AnimatableValue<T>): value is {
3028
+ keyframes: TemplateKeyframe<T>[];
3029
+ };
3030
+ /**
3031
+ * Get the static value or evaluate keyframes at a specific time
3032
+ */
3033
+ declare function evaluateAnimatable<T>(value: AnimatableValue<T>, time: number, templateDuration: number): T;
3034
+ /**
3035
+ * Apply easing function to interpolation factor
3036
+ */
3037
+ declare function applyEasing(t: number, easing: TemplateEasingFunction, bezier?: BezierControlPoints, spring?: SpringParams): number;
3038
+ /**
3039
+ * Interpolate between two values
3040
+ */
3041
+ declare function interpolateValue<T>(from: T, to: T, t: number): T;
3042
+ /**
3043
+ * Interpolate between two color strings (hex or rgba)
3044
+ */
3045
+ declare function interpolateColorString(from: string, to: string, t: number): string;
3046
+ /**
3047
+ * Helper to create a keyframed value
3048
+ */
3049
+ declare function createKeyframed<T>(keyframes: TemplateKeyframe<T>[]): {
3050
+ keyframes: TemplateKeyframe<T>[];
3051
+ };
3052
+ /**
3053
+ * Helper to add a keyframe to an animatable value
3054
+ */
3055
+ declare function addKeyframe<T>(value: AnimatableValue<T>, time: number, newValue: T, easing?: TemplateEasingFunction, bezier?: BezierControlPoints, spring?: SpringParams): {
3056
+ keyframes: TemplateKeyframe<T>[];
3057
+ };
3058
+ /**
3059
+ * Helper to remove a keyframe at a specific time
3060
+ */
3061
+ declare function removeTemplateKeyframe<T>(value: AnimatableValue<T>, time: number): AnimatableValue<T>;
3062
+
3076
3063
  interface AnimationState {
3077
3064
  opacity: number;
3078
3065
  x: number;
@@ -3080,6 +3067,7 @@ interface AnimationState {
3080
3067
  scale: number;
3081
3068
  blur: number;
3082
3069
  typewriterProgress: number;
3070
+ letterSpacingOffset?: number;
3083
3071
  }
3084
3072
  declare class TemplateRenderer {
3085
3073
  private template;
@@ -3087,6 +3075,7 @@ declare class TemplateRenderer {
3087
3075
  private imageCache;
3088
3076
  private currentTime;
3089
3077
  private lastLayerLayouts;
3078
+ private computedFlexLayouts;
3090
3079
  constructor(template: TextTemplate);
3091
3080
  /** Exposes the shared deterministic template evaluation contract. */
3092
3081
  getRenderPlan(time?: number): RenderPlan;
@@ -3102,6 +3091,8 @@ declare class TemplateRenderer {
3102
3091
  private evaluateTextDimension;
3103
3092
  private computeTransform;
3104
3093
  private applyPreset;
3094
+ /** Resolve dynamic {{variable}} tokens in string content */
3095
+ private resolveDynamicContent;
3105
3096
  drawFrame(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, time: number, fitToContentOrOpts?: boolean | {
3106
3097
  fitToContent?: boolean;
3107
3098
  skipClear?: boolean;
@@ -3112,42 +3103,124 @@ declare class TemplateRenderer {
3112
3103
  width: number;
3113
3104
  height: number;
3114
3105
  } | null;
3106
+ private computeFlexLayouts;
3107
+ private drawContainerLayer;
3115
3108
  private drawLayers;
3116
3109
  private drawTextLayer;
3117
3110
  private drawShapeLayer;
3118
3111
  private drawImageLayer;
3112
+ /**
3113
+ * Renders multi-frame ghost/onion-skin frames onto the canvas for precision motion tuning.
3114
+ */
3115
+ drawOnionSkin(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, time: number, options?: {
3116
+ frameCount?: number;
3117
+ frameDelta?: number;
3118
+ pastColor?: string;
3119
+ futureColor?: string;
3120
+ }): void;
3119
3121
  }
3120
3122
 
3121
3123
  declare const BUILTIN_CANVAS_TEMPLATES: TextTemplate[];
3122
3124
  declare function getCanvasTemplatePreset(id: string): TextTemplate | undefined;
3123
3125
  declare function getCanvasTemplatesByCategory(category: TemplateCategory): TextTemplate[];
3124
3126
 
3127
+ interface SplitUnit {
3128
+ text: string;
3129
+ index: number;
3130
+ totalUnits: number;
3131
+ charStartIndex: number;
3132
+ charEndIndex: number;
3133
+ isWhitespace: boolean;
3134
+ }
3135
+ interface ComputedSplitUnitTransform {
3136
+ unit: SplitUnit;
3137
+ progress: number;
3138
+ x: number;
3139
+ y: number;
3140
+ z: number;
3141
+ scale: number;
3142
+ scaleX: number;
3143
+ scaleY: number;
3144
+ rotation: number;
3145
+ rotateX: number;
3146
+ rotateY: number;
3147
+ opacity: number;
3148
+ blur: number;
3149
+ letterSpacingOffset: number;
3150
+ }
3125
3151
  /**
3126
- * Check if a value is keyframed
3152
+ * Tokenize string into SplitUnits by character, word, or line.
3127
3153
  */
3128
- declare function isKeyframed<T>(value: AnimatableValue<T>): value is {
3129
- keyframes: TemplateKeyframe<T>[];
3130
- };
3154
+ declare function splitTextContent(text: string, mode: SplitMode): SplitUnit[];
3131
3155
  /**
3132
- * Get the static value or evaluate keyframes at a specific time
3156
+ * Evaluate kinetic transforms for all split units at animation progress t (0 to 1).
3133
3157
  */
3134
- declare function evaluateAnimatable<T>(value: AnimatableValue<T>, time: number, templateDuration: number): T;
3158
+ declare function evaluateSplitTextTransforms(units: SplitUnit[], animator: TextSplitAnimator, progress: number, // 0 to 1
3159
+ direction?: "in" | "out"): ComputedSplitUnitTransform[];
3135
3160
  /**
3136
- * Helper to create a keyframed value
3161
+ * Finds span styling for a specific character index
3137
3162
  */
3138
- declare function createKeyframed<T>(keyframes: TemplateKeyframe<T>[]): {
3139
- keyframes: TemplateKeyframe<T>[];
3140
- };
3163
+ declare function getSpanForCharIndex(spans: TextStyleSpan[] | undefined, charIndex: number): TextStyleSpan | undefined;
3164
+
3165
+ interface ResolvedLayoutBounds {
3166
+ x: number;
3167
+ y: number;
3168
+ width: number;
3169
+ height: number;
3170
+ }
3141
3171
  /**
3142
- * Helper to add a keyframe to an animatable value
3172
+ * Computes resolved layer position based on 9-point spatial anchor config and canvas size.
3143
3173
  */
3144
- declare function addKeyframe<T>(value: AnimatableValue<T>, time: number, newValue: T, easing?: TemplateEasingFunction): {
3145
- keyframes: TemplateKeyframe<T>[];
3174
+ declare function resolveAnchorPosition(anchor: ResponsiveAnchorConfig | undefined, currentBounds: {
3175
+ x: number;
3176
+ y: number;
3177
+ width: number;
3178
+ height: number;
3179
+ }, canvasWidth: number, canvasHeight: number): {
3180
+ x: number;
3181
+ y: number;
3182
+ width: number;
3183
+ height: number;
3146
3184
  };
3147
3185
  /**
3148
- * Helper to remove a keyframe at a specific time
3186
+ * Standard aspect ratio dimensions preset
3149
3187
  */
3150
- declare function removeTemplateKeyframe<T>(value: AnimatableValue<T>, time: number): AnimatableValue<T>;
3188
+ declare const ASPECT_RATIO_PRESETS: {
3189
+ readonly "16:9": {
3190
+ readonly width: 1920;
3191
+ readonly height: 1080;
3192
+ readonly label: "16:9 Widescreen (1920x1080)";
3193
+ };
3194
+ readonly "9:16": {
3195
+ readonly width: 1080;
3196
+ readonly height: 1920;
3197
+ readonly label: "9:16 Vertical (1080x1920)";
3198
+ };
3199
+ readonly "1:1": {
3200
+ readonly width: 1080;
3201
+ readonly height: 1080;
3202
+ readonly label: "1:1 Square (1080x1080)";
3203
+ };
3204
+ readonly "4:5": {
3205
+ readonly width: 1080;
3206
+ readonly height: 1350;
3207
+ readonly label: "4:5 Social (1080x1350)";
3208
+ };
3209
+ };
3210
+
3211
+ declare function canonicalTemplateHash(value: unknown): string;
3212
+ declare function normalizeTextTemplateArtifact(input: unknown): TextTemplateArtifact;
3213
+
3214
+ interface TextTemplateDiagnostic {
3215
+ severity: "error" | "warning";
3216
+ code: string;
3217
+ message: string;
3218
+ nodeId?: string;
3219
+ }
3220
+ declare function validateTextTemplateArtifact(artifact: TextTemplateArtifact): TextTemplateDiagnostic[];
3221
+ declare function assertValidTextTemplateArtifact(artifact: TextTemplateArtifact): void;
3222
+
3223
+ declare function compileTextTemplate(artifact: TextTemplateArtifact, context: TemplateRenderContext): CompiledTextTemplate;
3151
3224
 
3152
3225
  /**
3153
3226
  * @deprecated This file has been moved to @clypra/runtime/project
@@ -3718,7 +3791,7 @@ declare function getClipLayout(clip: {
3718
3791
  layout?: any;
3719
3792
  }, sourceSize: Size, projectFrame: Size): MediaLayout;
3720
3793
 
3721
- type ConformMode = 'fit' | 'fill' | 'none' | 'smart';
3794
+ type ConformMode = 'fit' | 'fill' | 'none' | 'smart' | 'stretch';
3722
3795
  interface ClipConform {
3723
3796
  mode: ConformMode;
3724
3797
  /** Captured ONCE when the source's real dimensions become known — never re-read live */
@@ -3732,7 +3805,7 @@ interface ClipConform {
3732
3805
  /**
3733
3806
  * Computes a clip's final position/size against the project canvas.
3734
3807
  * This is the ONLY place fit math should happen — never inline at a render call site.
3735
- * Mirrors FCP's Fit/Fill/None and Resolve's Scale-to-Fit exactly.
3808
+ * Mirrors FCP's Fit/Fill/None/Stretch and Resolve's Scale-to-Fit/Fill/Stretch exactly.
3736
3809
  */
3737
3810
  declare function resolveConform(conform: ClipConform, canvasWidth: number, canvasHeight: number): {
3738
3811
  x: number;
@@ -4191,6 +4264,10 @@ interface SpatialAnchorConfig {
4191
4264
  offsetX?: number;
4192
4265
  offsetY?: number;
4193
4266
  }
4267
+ interface NodeSizingPolicy {
4268
+ width?: "fixed" | "hug-content";
4269
+ height?: "fixed" | "hug-content";
4270
+ }
4194
4271
  interface SceneNodeBase {
4195
4272
  id: string;
4196
4273
  name: string;
@@ -4199,6 +4276,7 @@ interface SceneNodeBase {
4199
4276
  y: number;
4200
4277
  width: number;
4201
4278
  height: number;
4279
+ sizingPolicy?: NodeSizingPolicy;
4202
4280
  rotation?: number;
4203
4281
  visible?: boolean;
4204
4282
  locked?: boolean;
@@ -4222,6 +4300,14 @@ interface FrameNode extends SceneNodeBase {
4222
4300
  interface PrimitiveTextNode extends SceneNodeBase {
4223
4301
  type: "text";
4224
4302
  text: string;
4303
+ /** Optional pinned Clypra text-effect dependency used by text templates. */
4304
+ textEffectRef?: {
4305
+ effectId: string;
4306
+ revisionId: string;
4307
+ contentHash: string;
4308
+ parameterOverrides?: Record<string, unknown>;
4309
+ snapshot?: unknown;
4310
+ };
4225
4311
  }
4226
4312
  type ShapeKind = "rectangle" | "rounded-rectangle" | "circle" | "ellipse" | "triangle" | "polygon" | "star" | "arrow" | "chevron" | "hexagon" | "diamond" | "line" | "divider" | "custom-path";
4227
4313
  interface PrimitiveShapeNode extends SceneNodeBase {
@@ -7024,12 +7110,24 @@ declare class MediaImageEngine {
7024
7110
  static computeCircularAvatarFitting(diameter: number, intrinsicWidth: number, intrinsicHeight: number, focalPoint?: FocalPoint): ImageFittingResult;
7025
7111
  }
7026
7112
 
7113
+ type SceneCanvasContext = CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D;
7114
+ /**
7115
+ * The renderer-neutral evaluated-scene raster contract used by overlays,
7116
+ * templates, thumbnails, and the native compositor bridge. It deliberately
7117
+ * accepts an already evaluated scene so playback never re-runs document
7118
+ * resolution or layout while pixels are being prepared.
7119
+ */
7120
+ declare function renderEvaluatedSceneToCanvas(scene: EvaluatedScene, ctx: SceneCanvasContext, options?: {
7121
+ clear?: boolean;
7122
+ background?: boolean;
7123
+ }): void;
7124
+
7027
7125
  /**
7028
7126
  * @clypra-studio/engine — Canvas 2D text effects, Lottie tooling, and animation engine.
7029
7127
  * @version 0.1.0
7030
7128
  * @packageDocumentation
7031
7129
  */
7032
7130
  /** Package version */
7033
- declare const VERSION = "0.1.0";
7131
+ declare const VERSION = "1.4.0";
7034
7132
 
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 };
7133
+ 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 };