@clypra-studio/engine 1.7.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-7VLGHWCA.js → chunk-JP44RJUI.js} +57 -4
- package/dist/chunk-JP44RJUI.js.map +1 -0
- package/dist/{chunk-NG4F55V7.js → chunk-V5VSY64D.js} +2 -2
- package/dist/{chunk-7ORA5BPW.js → chunk-YBOYDQU5.js} +199 -2
- package/dist/chunk-YBOYDQU5.js.map +1 -0
- package/dist/{index-CYeaxi3E.d.cts → index-FDQDo2pR.d.cts} +3 -0
- package/dist/{index-_pgmsrBj.d.ts → index-XWLBYyFQ.d.ts} +3 -0
- package/dist/index.cjs +594 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +360 -19
- package/dist/index.js.map +1 -1
- package/dist/rendering/index.cjs +216 -0
- package/dist/rendering/index.cjs.map +1 -1
- package/dist/rendering/index.d.cts +1 -1
- package/dist/rendering/index.d.ts +1 -1
- package/dist/rendering/index.js +2 -2
- package/dist/textEffects/index.cjs +198 -1
- package/dist/textEffects/index.cjs.map +1 -1
- package/dist/textEffects/index.js +2 -2
- package/package.json +12 -12
- package/dist/chunk-7ORA5BPW.js.map +0 -1
- package/dist/chunk-7VLGHWCA.js.map +0 -1
- /package/dist/{chunk-NG4F55V7.js.map → chunk-V5VSY64D.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -2,8 +2,8 @@ import { S as SceneDocument, K as Keyframe, f as TextEffectConfig, g as StyleRec
|
|
|
2
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-BsF33bC4.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
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-CHLTQy2v.cjs';
|
|
5
|
-
import { R as RenderPlan, T as TextTemplateArtifact, a as ResolveTemplateControlValuesOptions, b as TemplateCustomization, c as TemplateRenderContext, C as CompiledTextTemplate } from './index-
|
|
6
|
-
export { d as CANONICAL_RENDERER_VERSION, e as CANONICAL_SCHEMA_VERSION, f as CanonicalRenderContext, g as CanonicalRenderInput, h as CanonicalRenderResult, i as CapabilityReport, j as CapabilityStatus, k as CompiledTemplateRenderLayer, E as EvaluatedTemplateScene, P as PublishedRevision, l as RenderCapability, m as RenderDiagnostic, n as RenderDiagnostics, o as RenderEnvironment, p as RenderIdentity, q as RenderTarget, S as SceneDocumentV2, r as TEXT_TEMPLATE_KIND, s as TEXT_TEMPLATE_RENDERER_VERSION, t as TEXT_TEMPLATE_SCHEMA_VERSION, u as TemplateAssetRef, v as TemplateBackgroundPanel, w as TemplateCapabilityReport, x as TemplateContainerNode, y as TemplateContainerNodeStyle, z as TemplateControl, A as TemplateControlConstraints, B as TemplateControlOption, D as TemplateControlType, F as TemplateDependencyManifest, G as TemplateDurationPolicy, H as TemplateFontRef, I as TemplateImageNode, J as TemplateLayerV2, K as TemplateMetadata, L as TemplateNode, M as TemplateNodeAnimation, N as TemplatePreviewArtifacts, O as TemplatePropertyKeyframes, Q as TemplateProtectedRegion, U as TemplateRenderTarget, V as TemplateRevision, W as TemplateShapeNode, X as TemplateShapeNodeStyle, Y as TemplateStyleRef, Z as TemplateTextNode, _ as TemplateTextNodeStyle, $ as TemplateTimelineMarker, a0 as TemplateTiming, a1 as TextEffectRenderInput, a2 as TextTemplateCanvas, a3 as TextTemplateClip, a4 as TextTemplateDocument, a5 as TextTemplateDocumentV2, a6 as TextTemplateFlexLayout, a7 as TextTemplateRenderInput, a8 as canonicalContentHash, a9 as canonicalizeSceneDocument, aa as evaluateTextEffect, ab as evaluateTextTemplate, ac as getRenderCapabilities, ad as getTextTemplateControls, ae as normalizeTextEffect, af as normalizeTextTemplate, ag as renderCanonicalToCanvas, ah as renderTextEffectToCanvas, ai as renderTextTemplateToCanvas, aj as resolveTemplateFontFamily, ak as resolveTextTemplateArtifact } from './index-
|
|
5
|
+
import { R as RenderPlan, T as TextTemplateArtifact, a as ResolveTemplateControlValuesOptions, b as TemplateCustomization, c as TemplateRenderContext, C as CompiledTextTemplate } from './index-FDQDo2pR.cjs';
|
|
6
|
+
export { d as CANONICAL_RENDERER_VERSION, e as CANONICAL_SCHEMA_VERSION, f as CanonicalRenderContext, g as CanonicalRenderInput, h as CanonicalRenderResult, i as CapabilityReport, j as CapabilityStatus, k as CompiledTemplateRenderLayer, E as EvaluatedTemplateScene, P as PublishedRevision, l as RenderCapability, m as RenderDiagnostic, n as RenderDiagnostics, o as RenderEnvironment, p as RenderIdentity, q as RenderTarget, S as SceneDocumentV2, r as TEXT_TEMPLATE_KIND, s as TEXT_TEMPLATE_RENDERER_VERSION, t as TEXT_TEMPLATE_SCHEMA_VERSION, u as TemplateAssetRef, v as TemplateBackgroundPanel, w as TemplateCapabilityReport, x as TemplateContainerNode, y as TemplateContainerNodeStyle, z as TemplateControl, A as TemplateControlConstraints, B as TemplateControlOption, D as TemplateControlType, F as TemplateDependencyManifest, G as TemplateDurationPolicy, H as TemplateFontRef, I as TemplateImageNode, J as TemplateLayerV2, K as TemplateMetadata, L as TemplateNode, M as TemplateNodeAnimation, N as TemplatePreviewArtifacts, O as TemplatePropertyKeyframes, Q as TemplateProtectedRegion, U as TemplateRenderTarget, V as TemplateRevision, W as TemplateShapeNode, X as TemplateShapeNodeStyle, Y as TemplateStyleRef, Z as TemplateTextNode, _ as TemplateTextNodeStyle, $ as TemplateTimelineMarker, a0 as TemplateTiming, a1 as TextEffectRenderInput, a2 as TextTemplateCanvas, a3 as TextTemplateClip, a4 as TextTemplateDocument, a5 as TextTemplateDocumentV2, a6 as TextTemplateFlexLayout, a7 as TextTemplateRenderInput, a8 as canonicalContentHash, a9 as canonicalizeSceneDocument, aa as evaluateTextEffect, ab as evaluateTextTemplate, ac as getRenderCapabilities, ad as getTextTemplateControls, ae as normalizeTextEffect, af as normalizeTextTemplate, ag as renderCanonicalToCanvas, ah as renderTextEffectToCanvas, ai as renderTextTemplateToCanvas, aj as resolveTemplateFontFamily, ak as resolveTextTemplateArtifact } from './index-FDQDo2pR.cjs';
|
|
7
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.cjs';
|
|
8
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.cjs';
|
|
9
9
|
import { NodeCapabilities, NodeRequirements, GraphPin, GraphNode, GraphEdge, MediaProcessingGraph } from '@clypra-studio/types';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { S as SceneDocument, K as Keyframe, f as TextEffectConfig, g as StyleRec
|
|
|
2
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-BsF33bC4.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
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-9ozUyd9c.js';
|
|
5
|
-
import { R as RenderPlan, T as TextTemplateArtifact, a as ResolveTemplateControlValuesOptions, b as TemplateCustomization, c as TemplateRenderContext, C as CompiledTextTemplate } from './index-
|
|
6
|
-
export { d as CANONICAL_RENDERER_VERSION, e as CANONICAL_SCHEMA_VERSION, f as CanonicalRenderContext, g as CanonicalRenderInput, h as CanonicalRenderResult, i as CapabilityReport, j as CapabilityStatus, k as CompiledTemplateRenderLayer, E as EvaluatedTemplateScene, P as PublishedRevision, l as RenderCapability, m as RenderDiagnostic, n as RenderDiagnostics, o as RenderEnvironment, p as RenderIdentity, q as RenderTarget, S as SceneDocumentV2, r as TEXT_TEMPLATE_KIND, s as TEXT_TEMPLATE_RENDERER_VERSION, t as TEXT_TEMPLATE_SCHEMA_VERSION, u as TemplateAssetRef, v as TemplateBackgroundPanel, w as TemplateCapabilityReport, x as TemplateContainerNode, y as TemplateContainerNodeStyle, z as TemplateControl, A as TemplateControlConstraints, B as TemplateControlOption, D as TemplateControlType, F as TemplateDependencyManifest, G as TemplateDurationPolicy, H as TemplateFontRef, I as TemplateImageNode, J as TemplateLayerV2, K as TemplateMetadata, L as TemplateNode, M as TemplateNodeAnimation, N as TemplatePreviewArtifacts, O as TemplatePropertyKeyframes, Q as TemplateProtectedRegion, U as TemplateRenderTarget, V as TemplateRevision, W as TemplateShapeNode, X as TemplateShapeNodeStyle, Y as TemplateStyleRef, Z as TemplateTextNode, _ as TemplateTextNodeStyle, $ as TemplateTimelineMarker, a0 as TemplateTiming, a1 as TextEffectRenderInput, a2 as TextTemplateCanvas, a3 as TextTemplateClip, a4 as TextTemplateDocument, a5 as TextTemplateDocumentV2, a6 as TextTemplateFlexLayout, a7 as TextTemplateRenderInput, a8 as canonicalContentHash, a9 as canonicalizeSceneDocument, aa as evaluateTextEffect, ab as evaluateTextTemplate, ac as getRenderCapabilities, ad as getTextTemplateControls, ae as normalizeTextEffect, af as normalizeTextTemplate, ag as renderCanonicalToCanvas, ah as renderTextEffectToCanvas, ai as renderTextTemplateToCanvas, aj as resolveTemplateFontFamily, ak as resolveTextTemplateArtifact } from './index-
|
|
5
|
+
import { R as RenderPlan, T as TextTemplateArtifact, a as ResolveTemplateControlValuesOptions, b as TemplateCustomization, c as TemplateRenderContext, C as CompiledTextTemplate } from './index-XWLBYyFQ.js';
|
|
6
|
+
export { d as CANONICAL_RENDERER_VERSION, e as CANONICAL_SCHEMA_VERSION, f as CanonicalRenderContext, g as CanonicalRenderInput, h as CanonicalRenderResult, i as CapabilityReport, j as CapabilityStatus, k as CompiledTemplateRenderLayer, E as EvaluatedTemplateScene, P as PublishedRevision, l as RenderCapability, m as RenderDiagnostic, n as RenderDiagnostics, o as RenderEnvironment, p as RenderIdentity, q as RenderTarget, S as SceneDocumentV2, r as TEXT_TEMPLATE_KIND, s as TEXT_TEMPLATE_RENDERER_VERSION, t as TEXT_TEMPLATE_SCHEMA_VERSION, u as TemplateAssetRef, v as TemplateBackgroundPanel, w as TemplateCapabilityReport, x as TemplateContainerNode, y as TemplateContainerNodeStyle, z as TemplateControl, A as TemplateControlConstraints, B as TemplateControlOption, D as TemplateControlType, F as TemplateDependencyManifest, G as TemplateDurationPolicy, H as TemplateFontRef, I as TemplateImageNode, J as TemplateLayerV2, K as TemplateMetadata, L as TemplateNode, M as TemplateNodeAnimation, N as TemplatePreviewArtifacts, O as TemplatePropertyKeyframes, Q as TemplateProtectedRegion, U as TemplateRenderTarget, V as TemplateRevision, W as TemplateShapeNode, X as TemplateShapeNodeStyle, Y as TemplateStyleRef, Z as TemplateTextNode, _ as TemplateTextNodeStyle, $ as TemplateTimelineMarker, a0 as TemplateTiming, a1 as TextEffectRenderInput, a2 as TextTemplateCanvas, a3 as TextTemplateClip, a4 as TextTemplateDocument, a5 as TextTemplateDocumentV2, a6 as TextTemplateFlexLayout, a7 as TextTemplateRenderInput, a8 as canonicalContentHash, a9 as canonicalizeSceneDocument, aa as evaluateTextEffect, ab as evaluateTextTemplate, ac as getRenderCapabilities, ad as getTextTemplateControls, ae as normalizeTextEffect, af as normalizeTextTemplate, ag as renderCanonicalToCanvas, ah as renderTextEffectToCanvas, ai as renderTextTemplateToCanvas, aj as resolveTemplateFontFamily, ak as resolveTextTemplateArtifact } from './index-XWLBYyFQ.js';
|
|
7
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';
|
|
8
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';
|
|
9
9
|
import { NodeCapabilities, NodeRequirements, GraphPin, GraphNode, GraphEdge, MediaProcessingGraph } from '@clypra-studio/types';
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,23 @@ import {
|
|
|
6
6
|
initializeFontSystem,
|
|
7
7
|
injectFontVariantRules,
|
|
8
8
|
resetFontLoader
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V5VSY64D.js";
|
|
10
|
+
import {
|
|
11
|
+
ALL_TRANSITIONS,
|
|
12
|
+
TRANSITION_CATEGORIES,
|
|
13
|
+
TRANSITION_PRESETS,
|
|
14
|
+
TransitionRenderer,
|
|
15
|
+
getAllTransitionTags,
|
|
16
|
+
getAllTransitions,
|
|
17
|
+
getRecommendedDuration,
|
|
18
|
+
getTransitionById,
|
|
19
|
+
getTransitionByRenderer,
|
|
20
|
+
getTransitionCategories,
|
|
21
|
+
getTransitionCountByCategory,
|
|
22
|
+
getTransitionsByCategory,
|
|
23
|
+
getTransitionsByTags,
|
|
24
|
+
searchTransitions
|
|
25
|
+
} from "./chunk-PU3Q4QI7.js";
|
|
10
26
|
import {
|
|
11
27
|
CANONICAL_RENDERER_VERSION,
|
|
12
28
|
CANONICAL_SCHEMA_VERSION,
|
|
@@ -45,7 +61,7 @@ import {
|
|
|
45
61
|
solveSpring,
|
|
46
62
|
splitTextContent,
|
|
47
63
|
validateTextTemplateArtifact
|
|
48
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-JP44RJUI.js";
|
|
49
65
|
import {
|
|
50
66
|
COMPOSITION_PRESETS,
|
|
51
67
|
CanvasDevice,
|
|
@@ -106,23 +122,7 @@ import {
|
|
|
106
122
|
syncCompositorFromScene,
|
|
107
123
|
textEffectConfigToScene,
|
|
108
124
|
wrapTextToWidth
|
|
109
|
-
} from "./chunk-
|
|
110
|
-
import {
|
|
111
|
-
ALL_TRANSITIONS,
|
|
112
|
-
TRANSITION_CATEGORIES,
|
|
113
|
-
TRANSITION_PRESETS,
|
|
114
|
-
TransitionRenderer,
|
|
115
|
-
getAllTransitionTags,
|
|
116
|
-
getAllTransitions,
|
|
117
|
-
getRecommendedDuration,
|
|
118
|
-
getTransitionById,
|
|
119
|
-
getTransitionByRenderer,
|
|
120
|
-
getTransitionCategories,
|
|
121
|
-
getTransitionCountByCategory,
|
|
122
|
-
getTransitionsByCategory,
|
|
123
|
-
getTransitionsByTags,
|
|
124
|
-
searchTransitions
|
|
125
|
-
} from "./chunk-PU3Q4QI7.js";
|
|
125
|
+
} from "./chunk-YBOYDQU5.js";
|
|
126
126
|
import {
|
|
127
127
|
EFFECTS_REGISTRY,
|
|
128
128
|
EffectEngine,
|
|
@@ -6620,6 +6620,347 @@ var BUILTIN_CANVAS_TEMPLATES = [
|
|
|
6620
6620
|
}
|
|
6621
6621
|
}
|
|
6622
6622
|
]
|
|
6623
|
+
},
|
|
6624
|
+
// ── Caption Templates (Admin-Customizable Studio Presets) ────────────────────
|
|
6625
|
+
{
|
|
6626
|
+
id: "classic-yellow",
|
|
6627
|
+
label: "Classic Yellow",
|
|
6628
|
+
category: "caption",
|
|
6629
|
+
duration: 4,
|
|
6630
|
+
canvasWidth: 1920,
|
|
6631
|
+
canvasHeight: 1080,
|
|
6632
|
+
description: "High-contrast yellow text with bold black outline \u2014 the most readable caption style for mixed backgrounds.",
|
|
6633
|
+
layers: [
|
|
6634
|
+
{
|
|
6635
|
+
kind: "text",
|
|
6636
|
+
id: "caption-text",
|
|
6637
|
+
content: "Sample Subtitle Caption",
|
|
6638
|
+
fontFamily: "Outfit Variable",
|
|
6639
|
+
fontSize: 38,
|
|
6640
|
+
fontWeight: 800,
|
|
6641
|
+
color: "#FFE600",
|
|
6642
|
+
align: "center",
|
|
6643
|
+
x: 360,
|
|
6644
|
+
y: 890,
|
|
6645
|
+
width: 1200,
|
|
6646
|
+
height: 100,
|
|
6647
|
+
role: "primary",
|
|
6648
|
+
textRole: "caption",
|
|
6649
|
+
stroke: { color: "#000000", width: 4 },
|
|
6650
|
+
shadow: { color: "rgba(0,0,0,0.6)", blur: 6, offsetX: 0, offsetY: 3 },
|
|
6651
|
+
animation: {
|
|
6652
|
+
in: "fade",
|
|
6653
|
+
out: "fade",
|
|
6654
|
+
inDuration: 0.2,
|
|
6655
|
+
outDuration: 0.2,
|
|
6656
|
+
hold: "full"
|
|
6657
|
+
},
|
|
6658
|
+
anchor: {
|
|
6659
|
+
anchorPoint: "bottom-center",
|
|
6660
|
+
maxWidthPercentage: 90
|
|
6661
|
+
}
|
|
6662
|
+
}
|
|
6663
|
+
]
|
|
6664
|
+
},
|
|
6665
|
+
{
|
|
6666
|
+
id: "dark-pill",
|
|
6667
|
+
label: "Dark Pill",
|
|
6668
|
+
category: "caption",
|
|
6669
|
+
duration: 4,
|
|
6670
|
+
canvasWidth: 1920,
|
|
6671
|
+
canvasHeight: 1080,
|
|
6672
|
+
description: "White text inside a semi-transparent dark rounded pill \u2014 works on any background.",
|
|
6673
|
+
layers: [
|
|
6674
|
+
{
|
|
6675
|
+
kind: "text",
|
|
6676
|
+
id: "caption-text",
|
|
6677
|
+
content: "Sample Subtitle Caption",
|
|
6678
|
+
fontFamily: "Inter Variable",
|
|
6679
|
+
fontSize: 34,
|
|
6680
|
+
fontWeight: 700,
|
|
6681
|
+
color: "#FFFFFF",
|
|
6682
|
+
align: "center",
|
|
6683
|
+
x: 360,
|
|
6684
|
+
y: 890,
|
|
6685
|
+
width: 1200,
|
|
6686
|
+
height: 100,
|
|
6687
|
+
role: "primary",
|
|
6688
|
+
textRole: "caption",
|
|
6689
|
+
backgroundColor: "rgba(0,0,0,0.75)",
|
|
6690
|
+
backgroundRadius: 10,
|
|
6691
|
+
padding: 10,
|
|
6692
|
+
paddingTop: 10,
|
|
6693
|
+
paddingBottom: 10,
|
|
6694
|
+
paddingLeft: 20,
|
|
6695
|
+
paddingRight: 20,
|
|
6696
|
+
shadow: { color: "rgba(0,0,0,0.5)", blur: 4, offsetX: 0, offsetY: 2 },
|
|
6697
|
+
animation: {
|
|
6698
|
+
in: "fade",
|
|
6699
|
+
out: "fade",
|
|
6700
|
+
inDuration: 0.2,
|
|
6701
|
+
outDuration: 0.2,
|
|
6702
|
+
hold: "full"
|
|
6703
|
+
},
|
|
6704
|
+
anchor: {
|
|
6705
|
+
anchorPoint: "bottom-center",
|
|
6706
|
+
maxWidthPercentage: 90
|
|
6707
|
+
}
|
|
6708
|
+
}
|
|
6709
|
+
]
|
|
6710
|
+
},
|
|
6711
|
+
{
|
|
6712
|
+
id: "outline-white",
|
|
6713
|
+
label: "Outline White",
|
|
6714
|
+
category: "caption",
|
|
6715
|
+
duration: 4,
|
|
6716
|
+
canvasWidth: 1920,
|
|
6717
|
+
canvasHeight: 1080,
|
|
6718
|
+
description: "Broadcast-standard white text with dark outline \u2014 clean and professional on any content.",
|
|
6719
|
+
layers: [
|
|
6720
|
+
{
|
|
6721
|
+
kind: "text",
|
|
6722
|
+
id: "caption-text",
|
|
6723
|
+
content: "Sample Subtitle Caption",
|
|
6724
|
+
fontFamily: "Inter Variable",
|
|
6725
|
+
fontSize: 32,
|
|
6726
|
+
fontWeight: 600,
|
|
6727
|
+
color: "#FFFFFF",
|
|
6728
|
+
align: "center",
|
|
6729
|
+
x: 360,
|
|
6730
|
+
y: 890,
|
|
6731
|
+
width: 1200,
|
|
6732
|
+
height: 100,
|
|
6733
|
+
role: "primary",
|
|
6734
|
+
textRole: "caption",
|
|
6735
|
+
stroke: { color: "#1a1a1a", width: 3 },
|
|
6736
|
+
shadow: { color: "rgba(0,0,0,0.8)", blur: 5, offsetX: 0, offsetY: 2 },
|
|
6737
|
+
animation: {
|
|
6738
|
+
in: "fade",
|
|
6739
|
+
out: "fade",
|
|
6740
|
+
inDuration: 0.2,
|
|
6741
|
+
outDuration: 0.2,
|
|
6742
|
+
hold: "full"
|
|
6743
|
+
},
|
|
6744
|
+
anchor: {
|
|
6745
|
+
anchorPoint: "bottom-center",
|
|
6746
|
+
maxWidthPercentage: 90
|
|
6747
|
+
}
|
|
6748
|
+
}
|
|
6749
|
+
]
|
|
6750
|
+
},
|
|
6751
|
+
{
|
|
6752
|
+
id: "neon-pop",
|
|
6753
|
+
label: "Neon Pop",
|
|
6754
|
+
category: "caption",
|
|
6755
|
+
duration: 4,
|
|
6756
|
+
canvasWidth: 1920,
|
|
6757
|
+
canvasHeight: 1080,
|
|
6758
|
+
description: "Electric cyan with a vivid blue glow \u2014 perfect for tech, gaming, and high-energy content.",
|
|
6759
|
+
layers: [
|
|
6760
|
+
{
|
|
6761
|
+
kind: "text",
|
|
6762
|
+
id: "caption-text",
|
|
6763
|
+
content: "Sample Subtitle Caption",
|
|
6764
|
+
fontFamily: "Outfit Variable",
|
|
6765
|
+
fontSize: 38,
|
|
6766
|
+
fontWeight: 800,
|
|
6767
|
+
color: "#00FFFF",
|
|
6768
|
+
align: "center",
|
|
6769
|
+
x: 360,
|
|
6770
|
+
y: 890,
|
|
6771
|
+
width: 1200,
|
|
6772
|
+
height: 100,
|
|
6773
|
+
role: "primary",
|
|
6774
|
+
textRole: "caption",
|
|
6775
|
+
stroke: { color: "#0044EE", width: 3 },
|
|
6776
|
+
shadow: { color: "rgba(0,68,238,0.5)", blur: 10, offsetX: 0, offsetY: 0 },
|
|
6777
|
+
animation: {
|
|
6778
|
+
in: "fade",
|
|
6779
|
+
out: "fade",
|
|
6780
|
+
inDuration: 0.2,
|
|
6781
|
+
outDuration: 0.2,
|
|
6782
|
+
hold: "full"
|
|
6783
|
+
},
|
|
6784
|
+
anchor: {
|
|
6785
|
+
anchorPoint: "bottom-center",
|
|
6786
|
+
maxWidthPercentage: 90
|
|
6787
|
+
}
|
|
6788
|
+
}
|
|
6789
|
+
]
|
|
6790
|
+
},
|
|
6791
|
+
{
|
|
6792
|
+
id: "minimal-clean",
|
|
6793
|
+
label: "Minimal Clean",
|
|
6794
|
+
category: "caption",
|
|
6795
|
+
duration: 4,
|
|
6796
|
+
canvasWidth: 1920,
|
|
6797
|
+
canvasHeight: 1080,
|
|
6798
|
+
description: "Understated white text with a soft shadow \u2014 editorial and podcast-friendly.",
|
|
6799
|
+
layers: [
|
|
6800
|
+
{
|
|
6801
|
+
kind: "text",
|
|
6802
|
+
id: "caption-text",
|
|
6803
|
+
content: "Sample Subtitle Caption",
|
|
6804
|
+
fontFamily: "Inter Variable",
|
|
6805
|
+
fontSize: 30,
|
|
6806
|
+
fontWeight: 400,
|
|
6807
|
+
color: "#FFFFFF",
|
|
6808
|
+
align: "center",
|
|
6809
|
+
x: 360,
|
|
6810
|
+
y: 890,
|
|
6811
|
+
width: 1200,
|
|
6812
|
+
height: 100,
|
|
6813
|
+
role: "primary",
|
|
6814
|
+
textRole: "caption",
|
|
6815
|
+
stroke: { color: "rgba(0,0,0,0.3)", width: 1.5 },
|
|
6816
|
+
shadow: { color: "rgba(0,0,0,0.7)", blur: 8, offsetX: 0, offsetY: 3 },
|
|
6817
|
+
animation: {
|
|
6818
|
+
in: "fade",
|
|
6819
|
+
out: "fade",
|
|
6820
|
+
inDuration: 0.2,
|
|
6821
|
+
outDuration: 0.2,
|
|
6822
|
+
hold: "full"
|
|
6823
|
+
},
|
|
6824
|
+
anchor: {
|
|
6825
|
+
anchorPoint: "bottom-center",
|
|
6826
|
+
maxWidthPercentage: 90
|
|
6827
|
+
}
|
|
6828
|
+
}
|
|
6829
|
+
]
|
|
6830
|
+
},
|
|
6831
|
+
{
|
|
6832
|
+
id: "fire-orange",
|
|
6833
|
+
label: "Fire Orange",
|
|
6834
|
+
category: "caption",
|
|
6835
|
+
duration: 4,
|
|
6836
|
+
canvasWidth: 1920,
|
|
6837
|
+
canvasHeight: 1080,
|
|
6838
|
+
description: "Bold warm orange with dark outline \u2014 energetic and attention-grabbing for action content.",
|
|
6839
|
+
layers: [
|
|
6840
|
+
{
|
|
6841
|
+
kind: "text",
|
|
6842
|
+
id: "caption-text",
|
|
6843
|
+
content: "Sample Subtitle Caption",
|
|
6844
|
+
fontFamily: "Outfit Variable",
|
|
6845
|
+
fontSize: 40,
|
|
6846
|
+
fontWeight: 900,
|
|
6847
|
+
color: "#FF6B1A",
|
|
6848
|
+
align: "center",
|
|
6849
|
+
x: 360,
|
|
6850
|
+
y: 890,
|
|
6851
|
+
width: 1200,
|
|
6852
|
+
height: 100,
|
|
6853
|
+
role: "primary",
|
|
6854
|
+
textRole: "caption",
|
|
6855
|
+
stroke: { color: "#1A0800", width: 4 },
|
|
6856
|
+
shadow: { color: "rgba(255,80,0,0.4)", blur: 8, offsetX: 0, offsetY: 0 },
|
|
6857
|
+
animation: {
|
|
6858
|
+
in: "fade",
|
|
6859
|
+
out: "fade",
|
|
6860
|
+
inDuration: 0.2,
|
|
6861
|
+
outDuration: 0.2,
|
|
6862
|
+
hold: "full"
|
|
6863
|
+
},
|
|
6864
|
+
anchor: {
|
|
6865
|
+
anchorPoint: "bottom-center",
|
|
6866
|
+
maxWidthPercentage: 90
|
|
6867
|
+
}
|
|
6868
|
+
}
|
|
6869
|
+
]
|
|
6870
|
+
},
|
|
6871
|
+
{
|
|
6872
|
+
id: "frosted-glass",
|
|
6873
|
+
label: "Frosted Glass",
|
|
6874
|
+
category: "caption",
|
|
6875
|
+
duration: 4,
|
|
6876
|
+
canvasWidth: 1920,
|
|
6877
|
+
canvasHeight: 1080,
|
|
6878
|
+
description: "Modern frosted glass pill with light text \u2014 clean, premium look for lifestyle and brand content.",
|
|
6879
|
+
layers: [
|
|
6880
|
+
{
|
|
6881
|
+
kind: "text",
|
|
6882
|
+
id: "caption-text",
|
|
6883
|
+
content: "Sample Subtitle Caption",
|
|
6884
|
+
fontFamily: "Inter Variable",
|
|
6885
|
+
fontSize: 32,
|
|
6886
|
+
fontWeight: 600,
|
|
6887
|
+
color: "#FFFFFF",
|
|
6888
|
+
align: "center",
|
|
6889
|
+
x: 360,
|
|
6890
|
+
y: 890,
|
|
6891
|
+
width: 1200,
|
|
6892
|
+
height: 100,
|
|
6893
|
+
role: "primary",
|
|
6894
|
+
textRole: "caption",
|
|
6895
|
+
backgroundColor: "rgba(255,255,255,0.12)",
|
|
6896
|
+
backgroundBorderColor: "rgba(255,255,255,0.3)",
|
|
6897
|
+
backgroundBorderWidth: 1,
|
|
6898
|
+
backgroundRadius: 14,
|
|
6899
|
+
padding: 12,
|
|
6900
|
+
paddingTop: 12,
|
|
6901
|
+
paddingBottom: 12,
|
|
6902
|
+
paddingLeft: 24,
|
|
6903
|
+
paddingRight: 24,
|
|
6904
|
+
stroke: { color: "rgba(255,255,255,0.3)", width: 1 },
|
|
6905
|
+
shadow: { color: "rgba(0,0,0,0.4)", blur: 6, offsetX: 0, offsetY: 2 },
|
|
6906
|
+
animation: {
|
|
6907
|
+
in: "fade",
|
|
6908
|
+
out: "fade",
|
|
6909
|
+
inDuration: 0.2,
|
|
6910
|
+
outDuration: 0.2,
|
|
6911
|
+
hold: "full"
|
|
6912
|
+
},
|
|
6913
|
+
anchor: {
|
|
6914
|
+
anchorPoint: "bottom-center",
|
|
6915
|
+
maxWidthPercentage: 90
|
|
6916
|
+
}
|
|
6917
|
+
}
|
|
6918
|
+
]
|
|
6919
|
+
},
|
|
6920
|
+
{
|
|
6921
|
+
id: "typewriter-mono",
|
|
6922
|
+
label: "Typewriter Mono",
|
|
6923
|
+
category: "caption",
|
|
6924
|
+
duration: 4,
|
|
6925
|
+
canvasWidth: 1920,
|
|
6926
|
+
canvasHeight: 1080,
|
|
6927
|
+
description: "Monospace typewriter style \u2014 perfect for documentary narration, tech, or interview content.",
|
|
6928
|
+
layers: [
|
|
6929
|
+
{
|
|
6930
|
+
kind: "text",
|
|
6931
|
+
id: "caption-text",
|
|
6932
|
+
content: "Sample Subtitle Caption",
|
|
6933
|
+
fontFamily: "monospace",
|
|
6934
|
+
fontSize: 28,
|
|
6935
|
+
fontWeight: 400,
|
|
6936
|
+
color: "#E8E8D8",
|
|
6937
|
+
align: "left",
|
|
6938
|
+
x: 360,
|
|
6939
|
+
y: 890,
|
|
6940
|
+
width: 1200,
|
|
6941
|
+
height: 100,
|
|
6942
|
+
role: "primary",
|
|
6943
|
+
textRole: "caption",
|
|
6944
|
+
backgroundColor: "rgba(0,0,0,0.85)",
|
|
6945
|
+
backgroundRadius: 4,
|
|
6946
|
+
padding: 10,
|
|
6947
|
+
paddingTop: 10,
|
|
6948
|
+
paddingBottom: 10,
|
|
6949
|
+
paddingLeft: 16,
|
|
6950
|
+
paddingRight: 16,
|
|
6951
|
+
animation: {
|
|
6952
|
+
in: "fade",
|
|
6953
|
+
out: "fade",
|
|
6954
|
+
inDuration: 0.2,
|
|
6955
|
+
outDuration: 0.2,
|
|
6956
|
+
hold: "full"
|
|
6957
|
+
},
|
|
6958
|
+
anchor: {
|
|
6959
|
+
anchorPoint: "bottom-center",
|
|
6960
|
+
maxWidthPercentage: 90
|
|
6961
|
+
}
|
|
6962
|
+
}
|
|
6963
|
+
]
|
|
6623
6964
|
}
|
|
6624
6965
|
];
|
|
6625
6966
|
function getCanvasTemplatePreset(id) {
|