@clypra-studio/engine 1.10.2 → 2.2.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.js CHANGED
@@ -1,3 +1,20 @@
1
+ import {
2
+ BUILT_IN_CAPTION_PRESETS,
3
+ CAPTION_PRESET_BOLD_PUNCH,
4
+ CAPTION_PRESET_CINEMATIC_GOLD,
5
+ CAPTION_PRESET_CLASSIC_SUBTITLE,
6
+ CAPTION_PRESET_CLEAN_MINIMAL,
7
+ CAPTION_PRESET_KARAOKE_POP,
8
+ CAPTION_PRESET_NEON_GLOW,
9
+ CaptionEngine,
10
+ DEFAULT_MAX_LINES,
11
+ DEFAULT_MAX_WORDS_PER_LINE,
12
+ DEFAULT_PAUSE_BREAK_MS,
13
+ PAUSE_RELEASE_THRESHOLD_MS,
14
+ getCaptionPreset,
15
+ hashCaptionPreset,
16
+ renderCaptionToCanvas
17
+ } from "./chunk-5DNPTBGA.js";
1
18
  import {
2
19
  CANONICAL_RENDERER_VERSION,
3
20
  CANONICAL_SCHEMA_VERSION,
@@ -6,6 +23,7 @@ import {
6
23
  TEXT_TEMPLATE_SCHEMA_VERSION,
7
24
  addKeyframe,
8
25
  applyEasing,
26
+ assertCompatibleTextTemplateRenderer,
9
27
  assertValidTextTemplateArtifact,
10
28
  canonicalContentHash,
11
29
  canonicalTemplateHash,
@@ -33,6 +51,7 @@ import {
33
51
  interpolateColorString,
34
52
  interpolateValue,
35
53
  isKeyframed,
54
+ isTextTemplateRendererVersionNewer,
36
55
  normalizeTextEffect,
37
56
  normalizeTextTemplate,
38
57
  normalizeTextTemplateArtifact,
@@ -52,23 +71,7 @@ import {
52
71
  splitTextContent,
53
72
  validateBubbleAssetDefinition,
54
73
  validateTextTemplateArtifact
55
- } from "./chunk-ZV3RQAUJ.js";
56
- import {
57
- ALL_TRANSITIONS,
58
- TRANSITION_CATEGORIES,
59
- TRANSITION_PRESETS,
60
- TransitionRenderer,
61
- getAllTransitionTags,
62
- getAllTransitions,
63
- getRecommendedDuration,
64
- getTransitionById,
65
- getTransitionByRenderer,
66
- getTransitionCategories,
67
- getTransitionCountByCategory,
68
- getTransitionsByCategory,
69
- getTransitionsByTags,
70
- searchTransitions
71
- } from "./chunk-PU3Q4QI7.js";
74
+ } from "./chunk-3AVGIISI.js";
72
75
  import {
73
76
  FontLoader,
74
77
  checkFontVariant,
@@ -77,7 +80,7 @@ import {
77
80
  initializeFontSystem,
78
81
  injectFontVariantRules,
79
82
  resetFontLoader
80
- } from "./chunk-V5VSY64D.js";
83
+ } from "./chunk-IZH6P7WL.js";
81
84
  import {
82
85
  COMPOSITION_PRESETS,
83
86
  CanvasDevice,
@@ -138,7 +141,7 @@ import {
138
141
  syncCompositorFromScene,
139
142
  textEffectConfigToScene,
140
143
  wrapTextToWidth
141
- } from "./chunk-YBOYDQU5.js";
144
+ } from "./chunk-4AT7MAXU.js";
142
145
  import {
143
146
  EFFECTS_REGISTRY,
144
147
  EffectEngine,
@@ -163,6 +166,22 @@ import {
163
166
  searchEffectsForApi,
164
167
  withContext
165
168
  } from "./chunk-XHHAW7MS.js";
169
+ import {
170
+ ALL_TRANSITIONS,
171
+ TRANSITION_CATEGORIES,
172
+ TRANSITION_PRESETS,
173
+ TransitionRenderer,
174
+ getAllTransitionTags,
175
+ getAllTransitions,
176
+ getRecommendedDuration,
177
+ getTransitionById,
178
+ getTransitionByRenderer,
179
+ getTransitionCategories,
180
+ getTransitionCountByCategory,
181
+ getTransitionsByCategory,
182
+ getTransitionsByTags,
183
+ searchTransitions
184
+ } from "./chunk-PU3Q4QI7.js";
166
185
 
167
186
  // src/validation.ts
168
187
  import { z } from "zod";
@@ -17826,11 +17845,19 @@ export {
17826
17845
  AnimationValidator,
17827
17846
  AssetRegistry,
17828
17847
  BUILTIN_CANVAS_TEMPLATES,
17848
+ BUILT_IN_CAPTION_PRESETS,
17829
17849
  BoundingBoxSchema,
17830
17850
  CANONICAL_RENDERER_VERSION,
17831
17851
  CANONICAL_SCHEMA_VERSION,
17852
+ CAPTION_PRESET_BOLD_PUNCH,
17853
+ CAPTION_PRESET_CINEMATIC_GOLD,
17854
+ CAPTION_PRESET_CLASSIC_SUBTITLE,
17855
+ CAPTION_PRESET_CLEAN_MINIMAL,
17856
+ CAPTION_PRESET_KARAOKE_POP,
17857
+ CAPTION_PRESET_NEON_GLOW,
17832
17858
  COMPOSITION_PRESETS,
17833
17859
  CanvasDevice,
17860
+ CaptionEngine,
17834
17861
  CommandBufferBuilder,
17835
17862
  CommandExecutor,
17836
17863
  CommandHistory,
@@ -17839,6 +17866,9 @@ export {
17839
17866
  DEFAULT_DURATION,
17840
17867
  DEFAULT_FONT_SIZE,
17841
17868
  DEFAULT_FPS,
17869
+ DEFAULT_MAX_LINES,
17870
+ DEFAULT_MAX_WORDS_PER_LINE,
17871
+ DEFAULT_PAUSE_BREAK_MS,
17842
17872
  DEFAULT_TEXT_STYLE,
17843
17873
  DataBindingAuthoringEngine,
17844
17874
  DataBindingEngine,
@@ -17891,6 +17921,7 @@ export {
17891
17921
  Mp4VideoEncoder,
17892
17922
  NodeRegistry,
17893
17923
  NullBackend,
17924
+ PAUSE_RELEASE_THRESHOLD_MS,
17894
17925
  PngSequenceEncoder,
17895
17926
  PrimitiveRegistry,
17896
17927
  ProResVideoEncoder,
@@ -17956,6 +17987,7 @@ export {
17956
17987
  applyStyleToLottie,
17957
17988
  applyStyleToLottieLayer,
17958
17989
  applyTimelineAtTime,
17990
+ assertCompatibleTextTemplateRenderer,
17959
17991
  assertValidTextTemplateArtifact,
17960
17992
  assetRegistry,
17961
17993
  bakeAnimationIntoLayer,
@@ -18060,6 +18092,7 @@ export {
18060
18092
  getAnimatableParamsForLayer,
18061
18093
  getCanvasTemplatePreset,
18062
18094
  getCanvasTemplatesByCategory,
18095
+ getCaptionPreset,
18063
18096
  getClipLayout,
18064
18097
  getDefaultText,
18065
18098
  getEffectByIdForApi,
@@ -18088,6 +18121,7 @@ export {
18088
18121
  getTransitionsByCategory,
18089
18122
  getTransitionsByTags,
18090
18123
  getWebMFrameCount,
18124
+ hashCaptionPreset,
18091
18125
  hexToLottieColor,
18092
18126
  hexToLottieRgb,
18093
18127
  hexToRgba,
@@ -18106,6 +18140,7 @@ export {
18106
18140
  interpolateValue,
18107
18141
  isKeyframed,
18108
18142
  isMp4ExportSupported,
18143
+ isTextTemplateRendererVersionNewer,
18109
18144
  isWebMExportSupported,
18110
18145
  layerToTextEffectConfig,
18111
18146
  layoutEngine,
@@ -18145,6 +18180,7 @@ export {
18145
18180
  renderBubbleBackground,
18146
18181
  renderBubblePresetBackground,
18147
18182
  renderCanonicalToCanvas,
18183
+ renderCaptionToCanvas,
18148
18184
  renderEvaluatedSceneToCanvas,
18149
18185
  renderPngSequence,
18150
18186
  renderSceneWebM,