@clypra/engine 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +859 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +260 -2
- package/dist/index.d.ts +260 -2
- package/dist/index.js +848 -31
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -462,7 +462,7 @@ interface CompositionPreset {
|
|
|
462
462
|
description?: string;
|
|
463
463
|
}
|
|
464
464
|
declare const COMPOSITION_PRESETS: CompositionPreset[];
|
|
465
|
-
/** Soft-wrap paragraphs to fit safe width */
|
|
465
|
+
/** Soft-wrap paragraphs to fit safe width character-by-character */
|
|
466
466
|
declare function wrapTextToWidth(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, text: string, maxWidth: number, letterSpacing: number): string[];
|
|
467
467
|
declare function measureTextFits(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, cfg: TextEffectConfig, fontSize: number, lines: string[]): boolean;
|
|
468
468
|
declare function computeAutoFitFontSize(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, cfg: TextEffectConfig, wrappedLines: string[]): number;
|
|
@@ -1042,6 +1042,264 @@ declare function updateKeyframe(doc: SceneDocument, trackIndex: number, keyframe
|
|
|
1042
1042
|
declare function removeKeyframe(doc: SceneDocument, trackIndex: number, keyframeIndex: number): SceneDocument;
|
|
1043
1043
|
declare function duplicateTrackAtPlayhead(doc: SceneDocument, trackIndex: number, previewTime: number): SceneDocument;
|
|
1044
1044
|
|
|
1045
|
+
/**
|
|
1046
|
+
* Updates text properties on a SceneDocument and its cached legacy config.
|
|
1047
|
+
*/
|
|
1048
|
+
declare function updateSceneText(doc: SceneDocument, patch: Partial<{
|
|
1049
|
+
content: string;
|
|
1050
|
+
fontFamily: string;
|
|
1051
|
+
fontWeight: number;
|
|
1052
|
+
fontStyle: "normal" | "italic";
|
|
1053
|
+
fontSize: number;
|
|
1054
|
+
letterSpacing: number;
|
|
1055
|
+
lineHeight: number;
|
|
1056
|
+
textPosX: "left" | "center" | "right";
|
|
1057
|
+
textPosY: "top" | "middle" | "bottom";
|
|
1058
|
+
wrapText: boolean;
|
|
1059
|
+
autoFitText: boolean;
|
|
1060
|
+
perCharFillEnabled: boolean;
|
|
1061
|
+
charFillColors: string[];
|
|
1062
|
+
}>): SceneDocument;
|
|
1063
|
+
/**
|
|
1064
|
+
* Updates or creates the Background Panel (bounding plate) in a SceneDocument.
|
|
1065
|
+
*/
|
|
1066
|
+
declare function updateScenePanel(doc: SceneDocument, patch: Partial<{
|
|
1067
|
+
enabled: boolean;
|
|
1068
|
+
color: string;
|
|
1069
|
+
opacity: number;
|
|
1070
|
+
radius: number;
|
|
1071
|
+
paddingX: number;
|
|
1072
|
+
paddingY: number;
|
|
1073
|
+
strokeEnabled: boolean;
|
|
1074
|
+
strokeColor: string;
|
|
1075
|
+
strokeWidth: number;
|
|
1076
|
+
}>): SceneDocument;
|
|
1077
|
+
/**
|
|
1078
|
+
* Updates or creates the Stroke (outline styling) in a SceneDocument.
|
|
1079
|
+
*/
|
|
1080
|
+
declare function updateSceneStroke(doc: SceneDocument, patch: Partial<{
|
|
1081
|
+
enabled: boolean;
|
|
1082
|
+
strokeColor: string;
|
|
1083
|
+
strokeWidth: number;
|
|
1084
|
+
strokePosition: "outside" | "center" | "inside";
|
|
1085
|
+
strokeOpacity: number;
|
|
1086
|
+
strokeLineJoin: "round" | "miter" | "bevel";
|
|
1087
|
+
strokeBlur: number;
|
|
1088
|
+
strokeType: "single" | "double" | "neon";
|
|
1089
|
+
strokeColorSecondary: string;
|
|
1090
|
+
strokeWidthSecondary: number;
|
|
1091
|
+
strokeFadeRange: number;
|
|
1092
|
+
}>): SceneDocument;
|
|
1093
|
+
/**
|
|
1094
|
+
* Updates or creates the Shadow in a SceneDocument.
|
|
1095
|
+
*/
|
|
1096
|
+
declare function updateSceneShadow(doc: SceneDocument, patch: Partial<{
|
|
1097
|
+
enabled: boolean;
|
|
1098
|
+
shadowColor: string;
|
|
1099
|
+
shadowBlur: number;
|
|
1100
|
+
shadowOffsetX: number;
|
|
1101
|
+
shadowOffsetY: number;
|
|
1102
|
+
shadowOpacity: number;
|
|
1103
|
+
shadowType: "drop" | "inner";
|
|
1104
|
+
}>): SceneDocument;
|
|
1105
|
+
/**
|
|
1106
|
+
* Updates or creates the 3D Bevel/Extrusion in a SceneDocument.
|
|
1107
|
+
*/
|
|
1108
|
+
declare function updateSceneBevel(doc: SceneDocument, patch: Partial<{
|
|
1109
|
+
enabled: boolean;
|
|
1110
|
+
bevelDepth: number;
|
|
1111
|
+
bevelHighlight: string;
|
|
1112
|
+
bevelShadow: string;
|
|
1113
|
+
bevelDirection: "bottom-right" | "bottom" | "right";
|
|
1114
|
+
bevelCoreColor: string;
|
|
1115
|
+
bevelEdgeColor: string;
|
|
1116
|
+
bevelEdgeWidth: number;
|
|
1117
|
+
bevelBlur: number;
|
|
1118
|
+
bevelBlurColor: string;
|
|
1119
|
+
bevelPerspectiveEnabled: boolean;
|
|
1120
|
+
bevelVanishingPointX: number;
|
|
1121
|
+
bevelVanishingPointY: number;
|
|
1122
|
+
bevelFocalLength: number;
|
|
1123
|
+
}>): SceneDocument;
|
|
1124
|
+
/**
|
|
1125
|
+
* Updates or creates the Stack Extrusion (multi-layer overlaps) in a SceneDocument.
|
|
1126
|
+
*/
|
|
1127
|
+
declare function updateSceneStack(doc: SceneDocument, patch: Partial<{
|
|
1128
|
+
enabled: boolean;
|
|
1129
|
+
stackCount: number;
|
|
1130
|
+
stackOffsetX: number;
|
|
1131
|
+
stackOffsetY: number;
|
|
1132
|
+
stackOpacityDecay: number;
|
|
1133
|
+
stackColor1: string;
|
|
1134
|
+
stackColor2: string;
|
|
1135
|
+
stackColor3: string;
|
|
1136
|
+
stackColor4: string;
|
|
1137
|
+
}>): SceneDocument;
|
|
1138
|
+
/**
|
|
1139
|
+
* Updates or creates the Fill layer in a SceneDocument.
|
|
1140
|
+
*/
|
|
1141
|
+
declare function updateSceneFill(doc: SceneDocument, patch: Partial<{
|
|
1142
|
+
fillType: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
1143
|
+
fillColor: string;
|
|
1144
|
+
fillGradientAngle: number;
|
|
1145
|
+
fillGradientStops: GradientStop[];
|
|
1146
|
+
patternType: "chalk" | "noise" | "grunge" | "carbon" | "stripes" | "film" | "brushed" | "marble" | "halftone" | "paper";
|
|
1147
|
+
perCharFillEnabled: boolean;
|
|
1148
|
+
charFillColors: string[];
|
|
1149
|
+
}>): SceneDocument;
|
|
1150
|
+
/**
|
|
1151
|
+
* Updates a specific Glow layer in a SceneDocument by index.
|
|
1152
|
+
* If the index is out of bounds, appends new default glow layers until reached.
|
|
1153
|
+
*/
|
|
1154
|
+
declare function updateSceneGlow(doc: SceneDocument, index: number, patch: Partial<GlowLayer>): SceneDocument;
|
|
1155
|
+
/**
|
|
1156
|
+
* Updates Canvas dimensions on a SceneDocument.
|
|
1157
|
+
*/
|
|
1158
|
+
declare function updateSceneCanvas(doc: SceneDocument, patch: Partial<{
|
|
1159
|
+
width: number;
|
|
1160
|
+
height: number;
|
|
1161
|
+
background: string;
|
|
1162
|
+
}>): SceneDocument;
|
|
1163
|
+
/**
|
|
1164
|
+
* Updates Custom/Procedural Engine parameters (like Ink Brush) on a SceneDocument.
|
|
1165
|
+
*/
|
|
1166
|
+
declare function updateSceneCustomEngine(doc: SceneDocument, patch: Partial<{
|
|
1167
|
+
customRenderer: string;
|
|
1168
|
+
inkColor: string;
|
|
1169
|
+
bristleDensity: number;
|
|
1170
|
+
bristleSkipRate: number;
|
|
1171
|
+
dripRate: number;
|
|
1172
|
+
dripMaxLength: number;
|
|
1173
|
+
grainDensity: number;
|
|
1174
|
+
skewX: number;
|
|
1175
|
+
}>): SceneDocument;
|
|
1176
|
+
/**
|
|
1177
|
+
* Fluent API builder class designed to easily construct, update, and export
|
|
1178
|
+
* text effects programmatically.
|
|
1179
|
+
*/
|
|
1180
|
+
declare class TextEffectBuilder {
|
|
1181
|
+
private config;
|
|
1182
|
+
constructor(initialConfig?: Partial<TextEffectConfig>);
|
|
1183
|
+
/** Load builder from an existing TextEffectConfig object */
|
|
1184
|
+
static fromConfig(config: TextEffectConfig): TextEffectBuilder;
|
|
1185
|
+
/** Load builder from an existing SceneDocument */
|
|
1186
|
+
static fromScene(scene: SceneDocument): TextEffectBuilder;
|
|
1187
|
+
/**
|
|
1188
|
+
* Load builder from a downloaded TextEffectDefinition.
|
|
1189
|
+
* Resolves the styling definition structure to a flat engine config.
|
|
1190
|
+
*/
|
|
1191
|
+
static fromDefinition(effect: TextEffectDefinition, text?: string, fontSize?: number, canvasWidth?: number, canvasHeight?: number): TextEffectBuilder;
|
|
1192
|
+
/** Set text string content */
|
|
1193
|
+
setText(text: string): this;
|
|
1194
|
+
/** Configure Font and alignment settings */
|
|
1195
|
+
setFont(font: Partial<{
|
|
1196
|
+
family: string;
|
|
1197
|
+
weight: number;
|
|
1198
|
+
style: "normal" | "italic";
|
|
1199
|
+
size: number;
|
|
1200
|
+
letterSpacing: number;
|
|
1201
|
+
lineHeight: number;
|
|
1202
|
+
}>): this;
|
|
1203
|
+
/** Configure Background Panel (bounding plate) */
|
|
1204
|
+
setPanel(panel: Partial<{
|
|
1205
|
+
enabled: boolean;
|
|
1206
|
+
color: string;
|
|
1207
|
+
opacity: number;
|
|
1208
|
+
radius: number;
|
|
1209
|
+
paddingX: number;
|
|
1210
|
+
paddingY: number;
|
|
1211
|
+
strokeEnabled: boolean;
|
|
1212
|
+
strokeColor: string;
|
|
1213
|
+
strokeWidth: number;
|
|
1214
|
+
}>): this;
|
|
1215
|
+
/** Configure outline / stroke styling */
|
|
1216
|
+
setStroke(stroke: Partial<{
|
|
1217
|
+
enabled: boolean;
|
|
1218
|
+
color: string;
|
|
1219
|
+
width: number;
|
|
1220
|
+
position: "outside" | "center" | "inside";
|
|
1221
|
+
opacity: number;
|
|
1222
|
+
lineJoin: "round" | "miter" | "bevel";
|
|
1223
|
+
blur: number;
|
|
1224
|
+
type: "single" | "double" | "neon";
|
|
1225
|
+
colorSecondary: string;
|
|
1226
|
+
widthSecondary: number;
|
|
1227
|
+
fadeRange: number;
|
|
1228
|
+
}>): this;
|
|
1229
|
+
/** Configure drop shadow / inner shadow styling */
|
|
1230
|
+
setShadow(shadow: Partial<{
|
|
1231
|
+
enabled: boolean;
|
|
1232
|
+
color: string;
|
|
1233
|
+
blur: number;
|
|
1234
|
+
offsetX: number;
|
|
1235
|
+
offsetY: number;
|
|
1236
|
+
opacity: number;
|
|
1237
|
+
type: "drop" | "inner";
|
|
1238
|
+
}>): this;
|
|
1239
|
+
/** Configure a specific glow layer by index */
|
|
1240
|
+
setGlow(index: number, glow: Partial<GlowLayer>): this;
|
|
1241
|
+
/** Configure solid color fill */
|
|
1242
|
+
setFillColor(color: string): this;
|
|
1243
|
+
/** Configure linear gradient fill */
|
|
1244
|
+
setFillGradient(angle: number, stops: GradientStop[]): this;
|
|
1245
|
+
/** Configure texture pattern fill */
|
|
1246
|
+
setFillPattern(patternType: NonNullable<TextEffectConfig["patternType"]>): this;
|
|
1247
|
+
/** Configure per-character solid color fill overrides */
|
|
1248
|
+
setPerCharFill(enabled: boolean, colors: string[]): this;
|
|
1249
|
+
/** Configure 3D extrusion/bevel settings */
|
|
1250
|
+
setBevel(bevel: Partial<{
|
|
1251
|
+
enabled: boolean;
|
|
1252
|
+
depth: number;
|
|
1253
|
+
highlight: string;
|
|
1254
|
+
bevelShadow: string;
|
|
1255
|
+
direction: "bottom-right" | "bottom" | "right";
|
|
1256
|
+
coreColor: string;
|
|
1257
|
+
edgeColor: string;
|
|
1258
|
+
edgeWidth: number;
|
|
1259
|
+
blur: number;
|
|
1260
|
+
blurColor: string;
|
|
1261
|
+
perspectiveEnabled: boolean;
|
|
1262
|
+
vanishingPointX: number;
|
|
1263
|
+
vanishingPointY: number;
|
|
1264
|
+
focalLength: number;
|
|
1265
|
+
}>): this;
|
|
1266
|
+
/** Configure multi-stack duplicate extrusion */
|
|
1267
|
+
setStack(stack: Partial<{
|
|
1268
|
+
enabled: boolean;
|
|
1269
|
+
count: number;
|
|
1270
|
+
offsetX: number;
|
|
1271
|
+
offsetY: number;
|
|
1272
|
+
opacityDecay: number;
|
|
1273
|
+
color1: string;
|
|
1274
|
+
color2: string;
|
|
1275
|
+
color3: string;
|
|
1276
|
+
color4: string;
|
|
1277
|
+
}>): this;
|
|
1278
|
+
/** Configure canvas viewport size, alignment positioning, and wrapping behavior */
|
|
1279
|
+
setCanvas(canvas: Partial<{
|
|
1280
|
+
width: number;
|
|
1281
|
+
height: number;
|
|
1282
|
+
posX: "left" | "center" | "right";
|
|
1283
|
+
posY: "top" | "middle" | "bottom";
|
|
1284
|
+
wrapText: boolean;
|
|
1285
|
+
autoFitText: boolean;
|
|
1286
|
+
}>): this;
|
|
1287
|
+
/** Configure procedural InkBrushEngine variables (when customRenderer = InkBrushEngine) */
|
|
1288
|
+
setInkBrush(ink: Partial<{
|
|
1289
|
+
inkColor: string;
|
|
1290
|
+
bristleDensity: number;
|
|
1291
|
+
bristleSkipRate: number;
|
|
1292
|
+
dripRate: number;
|
|
1293
|
+
dripMaxLength: number;
|
|
1294
|
+
grainDensity: number;
|
|
1295
|
+
skewX: number;
|
|
1296
|
+
}>): this;
|
|
1297
|
+
/** Build and return a copy of the updated TextEffectConfig */
|
|
1298
|
+
buildConfig(): TextEffectConfig;
|
|
1299
|
+
/** Build and return a SceneDocument prepared for rendering with evaluateScene */
|
|
1300
|
+
buildScene(): SceneDocument;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1045
1303
|
/**
|
|
1046
1304
|
* Platform Capability Detection
|
|
1047
1305
|
*
|
|
@@ -1183,4 +1441,4 @@ declare class InkBrushEngine {
|
|
|
1183
1441
|
drawFrame(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D): void;
|
|
1184
1442
|
}
|
|
1185
1443
|
|
|
1186
|
-
export { type AnimBuildOpts, type AnimKeyframe, type AnimTrack, type AnimTrackDef, type AnimatableParamDef, type AnimationCategory, type BatchInjection, COMPOSITION_PRESETS, CUSTOM_ENGINE_IDS, CanvasDevice, type CompositionPreset, type CompositorFromScene, type CompositorSettings, type CustomEngineId, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_DURATION, DEFAULT_FONT_SIZE, DEFAULT_FPS, DEFAULT_TEXT_STYLE, type DotLottieManifest, type DrawPerCharTextOptions, EMPHASIS_PRESETS, ENGINE_ID_TO_LEGACY, ENTRANCE_PRESETS, EXIT_PRESETS, type EasingControlPoint, type EffectFullDefinition, type EffectIndexItem, type EffectLayer, type EffectLayerType, type EvaluateOptions, type EvaluatedTextLayer, FONT_WEIGHT_OPTIONS, type FillType, type FontDescriptor, type FontLoadResult, FontLoader, type FontVariant, type GifExportOptions, type GifFrame, type GlowLayer, type GradientDir, type GradientStop, InkBrushEngine, type Keyframe, LEGACY_RENDERER_MAP, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, type LayerTarget, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottiePropertyPath, type LottieTemplatePreset, type ParsedTextLayer, type PngSequenceFrame, type PngSequenceOptions, type Preset, SCENE_VERSION, SUPPORTED_FONT_FAMILIES, type SceneCanvas, type SceneDocument, type SceneText, type StyleRecipe, TEMPLATE_CATEGORIES, type TemplatePresetCategory, type TextAlign, type TextCustomization, type TextEffectConfig, type TextEffectDefinition, TextEffectRenderer, type TextLayerConfig, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, type TextStyleOverride, type Timeline, WEBM_EXPORT_MAX_FRAMES, WebGLCompositor, type WebMExportOptions, _buildConfig, _resetPlatformCache, addImageLayer, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, advanceSceneTime, alignToLottieJ, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, bakeAnimationIntoLayer, blendConfigs, blendScenes, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInPresets, builtInRecipes, captureLottieFrames, checkFontVariant, clearAnimationFromLayer, clearFontCache, clearRecipeCache, cloneSceneWithNewIds, computeAutoFitFontSize, computeFitZoom, computeTextLayout, countTextGlyphs, createBlankLottie, createCanvas, createDefaultRevealTrack, createEmptyScene, createPulseOpacityTrack, defaultConfig, deleteKeyframe, disposeSharedCompositor, downloadDotLottie, downloadLottieJson, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, enableKeyframing, encodeGif, ensureDefaultTimeline, ensureFontInLottie, ensureFontsLoaded, evaluateConfig, evaluateScene, findTrackIndex, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getDefaultText, getFontLoader, getLayerById, getPresetScene, getSceneTime, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getWebMFrameCount, hexToLottieColor, hexToLottieRgb, initializeFontSystem, injectBatch, injectColor, injectFontVariantRules, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, isWebMExportSupported, layerToTextEffectConfig, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, mergeSceneIntoConfig, moveKeyframe, newLayerId, parseHistorySnapshot, parseLottieJson, preloadGoogleFont, presetToRecipe, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, removeKeyframe, removeTrack, renderPngSequence, renderSceneWebM, renderTextEffectCore, resetFontLoader, resetSceneTime, resizeCharFillColors, resolveAnimatedScalar, resolveCustomEngineId, resolveFontFamilyName, restoreLetterSpacing, scanLottieFonts, scanTextLayers, sceneToConfig, setCharFillColor, setSceneTime, setTracks, shouldUsePerCharFill, snapshotScene, sortKeyframes, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, supportsWebGL2, syncCompositorFromScene, textEffectConfigToScene, trackId, updateKeyframe, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, waitForFontsReady, wrapTextToWidth };
|
|
1444
|
+
export { type AnimBuildOpts, type AnimKeyframe, type AnimTrack, type AnimTrackDef, type AnimatableParamDef, type AnimationCategory, type BatchInjection, COMPOSITION_PRESETS, CUSTOM_ENGINE_IDS, CanvasDevice, type CompositionPreset, type CompositorFromScene, type CompositorSettings, type CustomEngineId, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_DURATION, DEFAULT_FONT_SIZE, DEFAULT_FPS, DEFAULT_TEXT_STYLE, type DotLottieManifest, type DrawPerCharTextOptions, EMPHASIS_PRESETS, ENGINE_ID_TO_LEGACY, ENTRANCE_PRESETS, EXIT_PRESETS, type EasingControlPoint, type EffectFullDefinition, type EffectIndexItem, type EffectLayer, type EffectLayerType, type EvaluateOptions, type EvaluatedTextLayer, FONT_WEIGHT_OPTIONS, type FillType, type FontDescriptor, type FontLoadResult, FontLoader, type FontVariant, type GifExportOptions, type GifFrame, type GlowLayer, type GradientDir, type GradientStop, InkBrushEngine, type Keyframe, LEGACY_RENDERER_MAP, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, type LayerTarget, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottiePropertyPath, type LottieTemplatePreset, type ParsedTextLayer, type PngSequenceFrame, type PngSequenceOptions, type Preset, SCENE_VERSION, SUPPORTED_FONT_FAMILIES, type SceneCanvas, type SceneDocument, type SceneText, type StyleRecipe, TEMPLATE_CATEGORIES, type TemplatePresetCategory, type TextAlign, type TextCustomization, TextEffectBuilder, type TextEffectConfig, type TextEffectDefinition, TextEffectRenderer, type TextLayerConfig, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, type TextStyleOverride, type Timeline, WEBM_EXPORT_MAX_FRAMES, WebGLCompositor, type WebMExportOptions, _buildConfig, _resetPlatformCache, addImageLayer, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, advanceSceneTime, alignToLottieJ, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, bakeAnimationIntoLayer, blendConfigs, blendScenes, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInPresets, builtInRecipes, captureLottieFrames, checkFontVariant, clearAnimationFromLayer, clearFontCache, clearRecipeCache, cloneSceneWithNewIds, computeAutoFitFontSize, computeFitZoom, computeTextLayout, countTextGlyphs, createBlankLottie, createCanvas, createDefaultRevealTrack, createEmptyScene, createPulseOpacityTrack, defaultConfig, deleteKeyframe, disposeSharedCompositor, downloadDotLottie, downloadLottieJson, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, enableKeyframing, encodeGif, ensureDefaultTimeline, ensureFontInLottie, ensureFontsLoaded, evaluateConfig, evaluateScene, findTrackIndex, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getDefaultText, getFontLoader, getLayerById, getPresetScene, getSceneTime, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getWebMFrameCount, hexToLottieColor, hexToLottieRgb, initializeFontSystem, injectBatch, injectColor, injectFontVariantRules, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, isWebMExportSupported, layerToTextEffectConfig, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, mergeSceneIntoConfig, moveKeyframe, newLayerId, parseHistorySnapshot, parseLottieJson, preloadGoogleFont, presetToRecipe, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, removeKeyframe, removeTrack, renderPngSequence, renderSceneWebM, renderTextEffectCore, resetFontLoader, resetSceneTime, resizeCharFillColors, resolveAnimatedScalar, resolveCustomEngineId, resolveFontFamilyName, restoreLetterSpacing, scanLottieFonts, scanTextLayers, sceneToConfig, setCharFillColor, setSceneTime, setTracks, shouldUsePerCharFill, snapshotScene, sortKeyframes, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, supportsWebGL2, syncCompositorFromScene, textEffectConfigToScene, trackId, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneCustomEngine, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, waitForFontsReady, wrapTextToWidth };
|
package/dist/index.d.ts
CHANGED
|
@@ -462,7 +462,7 @@ interface CompositionPreset {
|
|
|
462
462
|
description?: string;
|
|
463
463
|
}
|
|
464
464
|
declare const COMPOSITION_PRESETS: CompositionPreset[];
|
|
465
|
-
/** Soft-wrap paragraphs to fit safe width */
|
|
465
|
+
/** Soft-wrap paragraphs to fit safe width character-by-character */
|
|
466
466
|
declare function wrapTextToWidth(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, text: string, maxWidth: number, letterSpacing: number): string[];
|
|
467
467
|
declare function measureTextFits(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, cfg: TextEffectConfig, fontSize: number, lines: string[]): boolean;
|
|
468
468
|
declare function computeAutoFitFontSize(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, cfg: TextEffectConfig, wrappedLines: string[]): number;
|
|
@@ -1042,6 +1042,264 @@ declare function updateKeyframe(doc: SceneDocument, trackIndex: number, keyframe
|
|
|
1042
1042
|
declare function removeKeyframe(doc: SceneDocument, trackIndex: number, keyframeIndex: number): SceneDocument;
|
|
1043
1043
|
declare function duplicateTrackAtPlayhead(doc: SceneDocument, trackIndex: number, previewTime: number): SceneDocument;
|
|
1044
1044
|
|
|
1045
|
+
/**
|
|
1046
|
+
* Updates text properties on a SceneDocument and its cached legacy config.
|
|
1047
|
+
*/
|
|
1048
|
+
declare function updateSceneText(doc: SceneDocument, patch: Partial<{
|
|
1049
|
+
content: string;
|
|
1050
|
+
fontFamily: string;
|
|
1051
|
+
fontWeight: number;
|
|
1052
|
+
fontStyle: "normal" | "italic";
|
|
1053
|
+
fontSize: number;
|
|
1054
|
+
letterSpacing: number;
|
|
1055
|
+
lineHeight: number;
|
|
1056
|
+
textPosX: "left" | "center" | "right";
|
|
1057
|
+
textPosY: "top" | "middle" | "bottom";
|
|
1058
|
+
wrapText: boolean;
|
|
1059
|
+
autoFitText: boolean;
|
|
1060
|
+
perCharFillEnabled: boolean;
|
|
1061
|
+
charFillColors: string[];
|
|
1062
|
+
}>): SceneDocument;
|
|
1063
|
+
/**
|
|
1064
|
+
* Updates or creates the Background Panel (bounding plate) in a SceneDocument.
|
|
1065
|
+
*/
|
|
1066
|
+
declare function updateScenePanel(doc: SceneDocument, patch: Partial<{
|
|
1067
|
+
enabled: boolean;
|
|
1068
|
+
color: string;
|
|
1069
|
+
opacity: number;
|
|
1070
|
+
radius: number;
|
|
1071
|
+
paddingX: number;
|
|
1072
|
+
paddingY: number;
|
|
1073
|
+
strokeEnabled: boolean;
|
|
1074
|
+
strokeColor: string;
|
|
1075
|
+
strokeWidth: number;
|
|
1076
|
+
}>): SceneDocument;
|
|
1077
|
+
/**
|
|
1078
|
+
* Updates or creates the Stroke (outline styling) in a SceneDocument.
|
|
1079
|
+
*/
|
|
1080
|
+
declare function updateSceneStroke(doc: SceneDocument, patch: Partial<{
|
|
1081
|
+
enabled: boolean;
|
|
1082
|
+
strokeColor: string;
|
|
1083
|
+
strokeWidth: number;
|
|
1084
|
+
strokePosition: "outside" | "center" | "inside";
|
|
1085
|
+
strokeOpacity: number;
|
|
1086
|
+
strokeLineJoin: "round" | "miter" | "bevel";
|
|
1087
|
+
strokeBlur: number;
|
|
1088
|
+
strokeType: "single" | "double" | "neon";
|
|
1089
|
+
strokeColorSecondary: string;
|
|
1090
|
+
strokeWidthSecondary: number;
|
|
1091
|
+
strokeFadeRange: number;
|
|
1092
|
+
}>): SceneDocument;
|
|
1093
|
+
/**
|
|
1094
|
+
* Updates or creates the Shadow in a SceneDocument.
|
|
1095
|
+
*/
|
|
1096
|
+
declare function updateSceneShadow(doc: SceneDocument, patch: Partial<{
|
|
1097
|
+
enabled: boolean;
|
|
1098
|
+
shadowColor: string;
|
|
1099
|
+
shadowBlur: number;
|
|
1100
|
+
shadowOffsetX: number;
|
|
1101
|
+
shadowOffsetY: number;
|
|
1102
|
+
shadowOpacity: number;
|
|
1103
|
+
shadowType: "drop" | "inner";
|
|
1104
|
+
}>): SceneDocument;
|
|
1105
|
+
/**
|
|
1106
|
+
* Updates or creates the 3D Bevel/Extrusion in a SceneDocument.
|
|
1107
|
+
*/
|
|
1108
|
+
declare function updateSceneBevel(doc: SceneDocument, patch: Partial<{
|
|
1109
|
+
enabled: boolean;
|
|
1110
|
+
bevelDepth: number;
|
|
1111
|
+
bevelHighlight: string;
|
|
1112
|
+
bevelShadow: string;
|
|
1113
|
+
bevelDirection: "bottom-right" | "bottom" | "right";
|
|
1114
|
+
bevelCoreColor: string;
|
|
1115
|
+
bevelEdgeColor: string;
|
|
1116
|
+
bevelEdgeWidth: number;
|
|
1117
|
+
bevelBlur: number;
|
|
1118
|
+
bevelBlurColor: string;
|
|
1119
|
+
bevelPerspectiveEnabled: boolean;
|
|
1120
|
+
bevelVanishingPointX: number;
|
|
1121
|
+
bevelVanishingPointY: number;
|
|
1122
|
+
bevelFocalLength: number;
|
|
1123
|
+
}>): SceneDocument;
|
|
1124
|
+
/**
|
|
1125
|
+
* Updates or creates the Stack Extrusion (multi-layer overlaps) in a SceneDocument.
|
|
1126
|
+
*/
|
|
1127
|
+
declare function updateSceneStack(doc: SceneDocument, patch: Partial<{
|
|
1128
|
+
enabled: boolean;
|
|
1129
|
+
stackCount: number;
|
|
1130
|
+
stackOffsetX: number;
|
|
1131
|
+
stackOffsetY: number;
|
|
1132
|
+
stackOpacityDecay: number;
|
|
1133
|
+
stackColor1: string;
|
|
1134
|
+
stackColor2: string;
|
|
1135
|
+
stackColor3: string;
|
|
1136
|
+
stackColor4: string;
|
|
1137
|
+
}>): SceneDocument;
|
|
1138
|
+
/**
|
|
1139
|
+
* Updates or creates the Fill layer in a SceneDocument.
|
|
1140
|
+
*/
|
|
1141
|
+
declare function updateSceneFill(doc: SceneDocument, patch: Partial<{
|
|
1142
|
+
fillType: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
1143
|
+
fillColor: string;
|
|
1144
|
+
fillGradientAngle: number;
|
|
1145
|
+
fillGradientStops: GradientStop[];
|
|
1146
|
+
patternType: "chalk" | "noise" | "grunge" | "carbon" | "stripes" | "film" | "brushed" | "marble" | "halftone" | "paper";
|
|
1147
|
+
perCharFillEnabled: boolean;
|
|
1148
|
+
charFillColors: string[];
|
|
1149
|
+
}>): SceneDocument;
|
|
1150
|
+
/**
|
|
1151
|
+
* Updates a specific Glow layer in a SceneDocument by index.
|
|
1152
|
+
* If the index is out of bounds, appends new default glow layers until reached.
|
|
1153
|
+
*/
|
|
1154
|
+
declare function updateSceneGlow(doc: SceneDocument, index: number, patch: Partial<GlowLayer>): SceneDocument;
|
|
1155
|
+
/**
|
|
1156
|
+
* Updates Canvas dimensions on a SceneDocument.
|
|
1157
|
+
*/
|
|
1158
|
+
declare function updateSceneCanvas(doc: SceneDocument, patch: Partial<{
|
|
1159
|
+
width: number;
|
|
1160
|
+
height: number;
|
|
1161
|
+
background: string;
|
|
1162
|
+
}>): SceneDocument;
|
|
1163
|
+
/**
|
|
1164
|
+
* Updates Custom/Procedural Engine parameters (like Ink Brush) on a SceneDocument.
|
|
1165
|
+
*/
|
|
1166
|
+
declare function updateSceneCustomEngine(doc: SceneDocument, patch: Partial<{
|
|
1167
|
+
customRenderer: string;
|
|
1168
|
+
inkColor: string;
|
|
1169
|
+
bristleDensity: number;
|
|
1170
|
+
bristleSkipRate: number;
|
|
1171
|
+
dripRate: number;
|
|
1172
|
+
dripMaxLength: number;
|
|
1173
|
+
grainDensity: number;
|
|
1174
|
+
skewX: number;
|
|
1175
|
+
}>): SceneDocument;
|
|
1176
|
+
/**
|
|
1177
|
+
* Fluent API builder class designed to easily construct, update, and export
|
|
1178
|
+
* text effects programmatically.
|
|
1179
|
+
*/
|
|
1180
|
+
declare class TextEffectBuilder {
|
|
1181
|
+
private config;
|
|
1182
|
+
constructor(initialConfig?: Partial<TextEffectConfig>);
|
|
1183
|
+
/** Load builder from an existing TextEffectConfig object */
|
|
1184
|
+
static fromConfig(config: TextEffectConfig): TextEffectBuilder;
|
|
1185
|
+
/** Load builder from an existing SceneDocument */
|
|
1186
|
+
static fromScene(scene: SceneDocument): TextEffectBuilder;
|
|
1187
|
+
/**
|
|
1188
|
+
* Load builder from a downloaded TextEffectDefinition.
|
|
1189
|
+
* Resolves the styling definition structure to a flat engine config.
|
|
1190
|
+
*/
|
|
1191
|
+
static fromDefinition(effect: TextEffectDefinition, text?: string, fontSize?: number, canvasWidth?: number, canvasHeight?: number): TextEffectBuilder;
|
|
1192
|
+
/** Set text string content */
|
|
1193
|
+
setText(text: string): this;
|
|
1194
|
+
/** Configure Font and alignment settings */
|
|
1195
|
+
setFont(font: Partial<{
|
|
1196
|
+
family: string;
|
|
1197
|
+
weight: number;
|
|
1198
|
+
style: "normal" | "italic";
|
|
1199
|
+
size: number;
|
|
1200
|
+
letterSpacing: number;
|
|
1201
|
+
lineHeight: number;
|
|
1202
|
+
}>): this;
|
|
1203
|
+
/** Configure Background Panel (bounding plate) */
|
|
1204
|
+
setPanel(panel: Partial<{
|
|
1205
|
+
enabled: boolean;
|
|
1206
|
+
color: string;
|
|
1207
|
+
opacity: number;
|
|
1208
|
+
radius: number;
|
|
1209
|
+
paddingX: number;
|
|
1210
|
+
paddingY: number;
|
|
1211
|
+
strokeEnabled: boolean;
|
|
1212
|
+
strokeColor: string;
|
|
1213
|
+
strokeWidth: number;
|
|
1214
|
+
}>): this;
|
|
1215
|
+
/** Configure outline / stroke styling */
|
|
1216
|
+
setStroke(stroke: Partial<{
|
|
1217
|
+
enabled: boolean;
|
|
1218
|
+
color: string;
|
|
1219
|
+
width: number;
|
|
1220
|
+
position: "outside" | "center" | "inside";
|
|
1221
|
+
opacity: number;
|
|
1222
|
+
lineJoin: "round" | "miter" | "bevel";
|
|
1223
|
+
blur: number;
|
|
1224
|
+
type: "single" | "double" | "neon";
|
|
1225
|
+
colorSecondary: string;
|
|
1226
|
+
widthSecondary: number;
|
|
1227
|
+
fadeRange: number;
|
|
1228
|
+
}>): this;
|
|
1229
|
+
/** Configure drop shadow / inner shadow styling */
|
|
1230
|
+
setShadow(shadow: Partial<{
|
|
1231
|
+
enabled: boolean;
|
|
1232
|
+
color: string;
|
|
1233
|
+
blur: number;
|
|
1234
|
+
offsetX: number;
|
|
1235
|
+
offsetY: number;
|
|
1236
|
+
opacity: number;
|
|
1237
|
+
type: "drop" | "inner";
|
|
1238
|
+
}>): this;
|
|
1239
|
+
/** Configure a specific glow layer by index */
|
|
1240
|
+
setGlow(index: number, glow: Partial<GlowLayer>): this;
|
|
1241
|
+
/** Configure solid color fill */
|
|
1242
|
+
setFillColor(color: string): this;
|
|
1243
|
+
/** Configure linear gradient fill */
|
|
1244
|
+
setFillGradient(angle: number, stops: GradientStop[]): this;
|
|
1245
|
+
/** Configure texture pattern fill */
|
|
1246
|
+
setFillPattern(patternType: NonNullable<TextEffectConfig["patternType"]>): this;
|
|
1247
|
+
/** Configure per-character solid color fill overrides */
|
|
1248
|
+
setPerCharFill(enabled: boolean, colors: string[]): this;
|
|
1249
|
+
/** Configure 3D extrusion/bevel settings */
|
|
1250
|
+
setBevel(bevel: Partial<{
|
|
1251
|
+
enabled: boolean;
|
|
1252
|
+
depth: number;
|
|
1253
|
+
highlight: string;
|
|
1254
|
+
bevelShadow: string;
|
|
1255
|
+
direction: "bottom-right" | "bottom" | "right";
|
|
1256
|
+
coreColor: string;
|
|
1257
|
+
edgeColor: string;
|
|
1258
|
+
edgeWidth: number;
|
|
1259
|
+
blur: number;
|
|
1260
|
+
blurColor: string;
|
|
1261
|
+
perspectiveEnabled: boolean;
|
|
1262
|
+
vanishingPointX: number;
|
|
1263
|
+
vanishingPointY: number;
|
|
1264
|
+
focalLength: number;
|
|
1265
|
+
}>): this;
|
|
1266
|
+
/** Configure multi-stack duplicate extrusion */
|
|
1267
|
+
setStack(stack: Partial<{
|
|
1268
|
+
enabled: boolean;
|
|
1269
|
+
count: number;
|
|
1270
|
+
offsetX: number;
|
|
1271
|
+
offsetY: number;
|
|
1272
|
+
opacityDecay: number;
|
|
1273
|
+
color1: string;
|
|
1274
|
+
color2: string;
|
|
1275
|
+
color3: string;
|
|
1276
|
+
color4: string;
|
|
1277
|
+
}>): this;
|
|
1278
|
+
/** Configure canvas viewport size, alignment positioning, and wrapping behavior */
|
|
1279
|
+
setCanvas(canvas: Partial<{
|
|
1280
|
+
width: number;
|
|
1281
|
+
height: number;
|
|
1282
|
+
posX: "left" | "center" | "right";
|
|
1283
|
+
posY: "top" | "middle" | "bottom";
|
|
1284
|
+
wrapText: boolean;
|
|
1285
|
+
autoFitText: boolean;
|
|
1286
|
+
}>): this;
|
|
1287
|
+
/** Configure procedural InkBrushEngine variables (when customRenderer = InkBrushEngine) */
|
|
1288
|
+
setInkBrush(ink: Partial<{
|
|
1289
|
+
inkColor: string;
|
|
1290
|
+
bristleDensity: number;
|
|
1291
|
+
bristleSkipRate: number;
|
|
1292
|
+
dripRate: number;
|
|
1293
|
+
dripMaxLength: number;
|
|
1294
|
+
grainDensity: number;
|
|
1295
|
+
skewX: number;
|
|
1296
|
+
}>): this;
|
|
1297
|
+
/** Build and return a copy of the updated TextEffectConfig */
|
|
1298
|
+
buildConfig(): TextEffectConfig;
|
|
1299
|
+
/** Build and return a SceneDocument prepared for rendering with evaluateScene */
|
|
1300
|
+
buildScene(): SceneDocument;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1045
1303
|
/**
|
|
1046
1304
|
* Platform Capability Detection
|
|
1047
1305
|
*
|
|
@@ -1183,4 +1441,4 @@ declare class InkBrushEngine {
|
|
|
1183
1441
|
drawFrame(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D): void;
|
|
1184
1442
|
}
|
|
1185
1443
|
|
|
1186
|
-
export { type AnimBuildOpts, type AnimKeyframe, type AnimTrack, type AnimTrackDef, type AnimatableParamDef, type AnimationCategory, type BatchInjection, COMPOSITION_PRESETS, CUSTOM_ENGINE_IDS, CanvasDevice, type CompositionPreset, type CompositorFromScene, type CompositorSettings, type CustomEngineId, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_DURATION, DEFAULT_FONT_SIZE, DEFAULT_FPS, DEFAULT_TEXT_STYLE, type DotLottieManifest, type DrawPerCharTextOptions, EMPHASIS_PRESETS, ENGINE_ID_TO_LEGACY, ENTRANCE_PRESETS, EXIT_PRESETS, type EasingControlPoint, type EffectFullDefinition, type EffectIndexItem, type EffectLayer, type EffectLayerType, type EvaluateOptions, type EvaluatedTextLayer, FONT_WEIGHT_OPTIONS, type FillType, type FontDescriptor, type FontLoadResult, FontLoader, type FontVariant, type GifExportOptions, type GifFrame, type GlowLayer, type GradientDir, type GradientStop, InkBrushEngine, type Keyframe, LEGACY_RENDERER_MAP, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, type LayerTarget, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottiePropertyPath, type LottieTemplatePreset, type ParsedTextLayer, type PngSequenceFrame, type PngSequenceOptions, type Preset, SCENE_VERSION, SUPPORTED_FONT_FAMILIES, type SceneCanvas, type SceneDocument, type SceneText, type StyleRecipe, TEMPLATE_CATEGORIES, type TemplatePresetCategory, type TextAlign, type TextCustomization, type TextEffectConfig, type TextEffectDefinition, TextEffectRenderer, type TextLayerConfig, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, type TextStyleOverride, type Timeline, WEBM_EXPORT_MAX_FRAMES, WebGLCompositor, type WebMExportOptions, _buildConfig, _resetPlatformCache, addImageLayer, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, advanceSceneTime, alignToLottieJ, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, bakeAnimationIntoLayer, blendConfigs, blendScenes, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInPresets, builtInRecipes, captureLottieFrames, checkFontVariant, clearAnimationFromLayer, clearFontCache, clearRecipeCache, cloneSceneWithNewIds, computeAutoFitFontSize, computeFitZoom, computeTextLayout, countTextGlyphs, createBlankLottie, createCanvas, createDefaultRevealTrack, createEmptyScene, createPulseOpacityTrack, defaultConfig, deleteKeyframe, disposeSharedCompositor, downloadDotLottie, downloadLottieJson, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, enableKeyframing, encodeGif, ensureDefaultTimeline, ensureFontInLottie, ensureFontsLoaded, evaluateConfig, evaluateScene, findTrackIndex, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getDefaultText, getFontLoader, getLayerById, getPresetScene, getSceneTime, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getWebMFrameCount, hexToLottieColor, hexToLottieRgb, initializeFontSystem, injectBatch, injectColor, injectFontVariantRules, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, isWebMExportSupported, layerToTextEffectConfig, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, mergeSceneIntoConfig, moveKeyframe, newLayerId, parseHistorySnapshot, parseLottieJson, preloadGoogleFont, presetToRecipe, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, removeKeyframe, removeTrack, renderPngSequence, renderSceneWebM, renderTextEffectCore, resetFontLoader, resetSceneTime, resizeCharFillColors, resolveAnimatedScalar, resolveCustomEngineId, resolveFontFamilyName, restoreLetterSpacing, scanLottieFonts, scanTextLayers, sceneToConfig, setCharFillColor, setSceneTime, setTracks, shouldUsePerCharFill, snapshotScene, sortKeyframes, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, supportsWebGL2, syncCompositorFromScene, textEffectConfigToScene, trackId, updateKeyframe, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, waitForFontsReady, wrapTextToWidth };
|
|
1444
|
+
export { type AnimBuildOpts, type AnimKeyframe, type AnimTrack, type AnimTrackDef, type AnimatableParamDef, type AnimationCategory, type BatchInjection, COMPOSITION_PRESETS, CUSTOM_ENGINE_IDS, CanvasDevice, type CompositionPreset, type CompositorFromScene, type CompositorSettings, type CustomEngineId, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_DURATION, DEFAULT_FONT_SIZE, DEFAULT_FPS, DEFAULT_TEXT_STYLE, type DotLottieManifest, type DrawPerCharTextOptions, EMPHASIS_PRESETS, ENGINE_ID_TO_LEGACY, ENTRANCE_PRESETS, EXIT_PRESETS, type EasingControlPoint, type EffectFullDefinition, type EffectIndexItem, type EffectLayer, type EffectLayerType, type EvaluateOptions, type EvaluatedTextLayer, FONT_WEIGHT_OPTIONS, type FillType, type FontDescriptor, type FontLoadResult, FontLoader, type FontVariant, type GifExportOptions, type GifFrame, type GlowLayer, type GradientDir, type GradientStop, InkBrushEngine, type Keyframe, LEGACY_RENDERER_MAP, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, type LayerTarget, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottiePropertyPath, type LottieTemplatePreset, type ParsedTextLayer, type PngSequenceFrame, type PngSequenceOptions, type Preset, SCENE_VERSION, SUPPORTED_FONT_FAMILIES, type SceneCanvas, type SceneDocument, type SceneText, type StyleRecipe, TEMPLATE_CATEGORIES, type TemplatePresetCategory, type TextAlign, type TextCustomization, TextEffectBuilder, type TextEffectConfig, type TextEffectDefinition, TextEffectRenderer, type TextLayerConfig, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, type TextStyleOverride, type Timeline, WEBM_EXPORT_MAX_FRAMES, WebGLCompositor, type WebMExportOptions, _buildConfig, _resetPlatformCache, addImageLayer, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, advanceSceneTime, alignToLottieJ, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, bakeAnimationIntoLayer, blendConfigs, blendScenes, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInPresets, builtInRecipes, captureLottieFrames, checkFontVariant, clearAnimationFromLayer, clearFontCache, clearRecipeCache, cloneSceneWithNewIds, computeAutoFitFontSize, computeFitZoom, computeTextLayout, countTextGlyphs, createBlankLottie, createCanvas, createDefaultRevealTrack, createEmptyScene, createPulseOpacityTrack, defaultConfig, deleteKeyframe, disposeSharedCompositor, downloadDotLottie, downloadLottieJson, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, enableKeyframing, encodeGif, ensureDefaultTimeline, ensureFontInLottie, ensureFontsLoaded, evaluateConfig, evaluateScene, findTrackIndex, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getDefaultText, getFontLoader, getLayerById, getPresetScene, getSceneTime, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getWebMFrameCount, hexToLottieColor, hexToLottieRgb, initializeFontSystem, injectBatch, injectColor, injectFontVariantRules, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, isWebMExportSupported, layerToTextEffectConfig, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, mergeSceneIntoConfig, moveKeyframe, newLayerId, parseHistorySnapshot, parseLottieJson, preloadGoogleFont, presetToRecipe, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, removeKeyframe, removeTrack, renderPngSequence, renderSceneWebM, renderTextEffectCore, resetFontLoader, resetSceneTime, resizeCharFillColors, resolveAnimatedScalar, resolveCustomEngineId, resolveFontFamilyName, restoreLetterSpacing, scanLottieFonts, scanTextLayers, sceneToConfig, setCharFillColor, setSceneTime, setTracks, shouldUsePerCharFill, snapshotScene, sortKeyframes, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, supportsWebGL2, syncCompositorFromScene, textEffectConfigToScene, trackId, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneCustomEngine, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, waitForFontsReady, wrapTextToWidth };
|