@clypra-studio/engine 1.0.7 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-S24UVNPZ.js → chunk-Y4FMAOTW.js} +1 -1
- package/dist/chunk-Y4FMAOTW.js.map +1 -0
- package/dist/{index-lNWEWqab.d.cts → index-D6GAXDBy.d.cts} +20 -1
- package/dist/{index-lNWEWqab.d.ts → index-D6GAXDBy.d.ts} +20 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +41 -41
- package/dist/textEffects/index.cjs.map +1 -1
- package/dist/textEffects/index.d.cts +1 -1
- package/dist/textEffects/index.d.ts +1 -1
- package/dist/textEffects/index.js +1 -1
- package/package.json +11 -11
- package/dist/chunk-S24UVNPZ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
export { j as AnimationPreset, C as CUSTOM_ENGINE_IDS, k as
|
|
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-D6GAXDBy.cjs';
|
|
2
|
+
export { j as AnimationPreset, C as CUSTOM_ENGINE_IDS, k as CanvasBackgroundConfig, l as CompositorFromScene, m as CompositorSettings, n as CustomEngineId, D as DEFAULT_CANVAS_HEIGHT, o as DEFAULT_CANVAS_WIDTH, p as DEFAULT_DURATION, q as DEFAULT_FONT_SIZE, r as DEFAULT_FPS, s as ENGINE_ID_TO_LEGACY, t as EffectBevel, u as EffectFill, v as EffectFullDefinition, w as EffectGlow, x as EffectIndexItem, y as EffectLayerType, z as EffectPanel, B as EffectShadow, F as EffectStack, H as EffectStroke, I as EvaluateOptions, J as EvaluatedTextLayer, L as FontDescriptor, M as FontLoadResult, N as FontLoader, O as FontVariant, Q as LEGACY_RENDERER_MAP, R as LayerAnimation, U as LayerTarget, V as SCENE_VERSION, W as SceneCanvas, X as SceneText, Y as TemplateImageLayer, Z as TemplateShapeLayer, _ as TemplateTextLayer, $ as TextEffectRenderer, a0 as Timeline, a1 as WebGLCompositor, a2 as _buildConfig, a3 as advanceSceneTime, a4 as builtInPresets, a5 as checkFontVariant, a6 as createEmptyScene, a7 as defaultConfig, a8 as disposeSharedCompositor, a9 as ensureFontsLoaded, aa as evaluateConfig, ab as evaluateScene, ac as getFontLoader, ad as getSceneTime, ae as initializeFontSystem, af as injectFontVariantRules, ag as layerToTextEffectConfig, ah as mergeSceneIntoConfig, ai as newLayerId, aj as renderTextEffectCore, ak as resetFontLoader, al as resetSceneTime, am as resolveCustomEngineId, an as resolveFontFamilyName, ao as sceneToConfig, ap as setSceneTime, aq as syncCompositorFromScene, ar as textEffectConfigToScene } from './index-D6GAXDBy.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { PixiRenderer } from './videoEffects/index.cjs';
|
|
5
5
|
export { AppliedEffect, AppliedOverlay, BlendMode, CameraEffects, EFFECTS_REGISTRY, EffectCategory, EffectEngine, EffectGraph, EffectMetadata, EffectParameters, EffectPreset, EffectRenderer, EffectRendererType, ExamplePixiEffects, 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';
|
|
@@ -24,8 +24,8 @@ declare const GradientStopSchema: z.ZodObject<{
|
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
declare const EffectFillSchema: z.ZodObject<{
|
|
26
26
|
type: z.ZodEnum<{
|
|
27
|
-
linear: "linear";
|
|
28
27
|
solid: "solid";
|
|
28
|
+
linear: "linear";
|
|
29
29
|
radial: "radial";
|
|
30
30
|
pattern: "pattern";
|
|
31
31
|
none: "none";
|
|
@@ -213,8 +213,8 @@ declare const EffectFullDefinitionSchema: z.ZodObject<{
|
|
|
213
213
|
}, z.core.$strip>;
|
|
214
214
|
fills: z.ZodArray<z.ZodObject<{
|
|
215
215
|
type: z.ZodEnum<{
|
|
216
|
-
linear: "linear";
|
|
217
216
|
solid: "solid";
|
|
217
|
+
linear: "linear";
|
|
218
218
|
radial: "radial";
|
|
219
219
|
pattern: "pattern";
|
|
220
220
|
none: "none";
|
|
@@ -389,8 +389,8 @@ declare const TextEffectDefinitionSchema: z.ZodObject<{
|
|
|
389
389
|
}, z.core.$strip>;
|
|
390
390
|
fills: z.ZodArray<z.ZodObject<{
|
|
391
391
|
type: z.ZodEnum<{
|
|
392
|
-
linear: "linear";
|
|
393
392
|
solid: "solid";
|
|
393
|
+
linear: "linear";
|
|
394
394
|
radial: "radial";
|
|
395
395
|
pattern: "pattern";
|
|
396
396
|
none: "none";
|
|
@@ -556,7 +556,7 @@ declare function validateEffectDefinition(data: unknown): z.ZodSafeParseResult<{
|
|
|
556
556
|
lineHeight: number;
|
|
557
557
|
};
|
|
558
558
|
fills: {
|
|
559
|
-
type: "
|
|
559
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
560
560
|
color?: string;
|
|
561
561
|
gradient?: {
|
|
562
562
|
angle: number;
|
|
@@ -692,7 +692,7 @@ declare function validateEffectDefinitionStrict(data: unknown): {
|
|
|
692
692
|
lineHeight: number;
|
|
693
693
|
};
|
|
694
694
|
fills: {
|
|
695
|
-
type: "
|
|
695
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
696
696
|
color?: string;
|
|
697
697
|
gradient?: {
|
|
698
698
|
angle: number;
|
|
@@ -827,7 +827,7 @@ declare function validateTextEffectDefinition(data: unknown): z.ZodSafeParseResu
|
|
|
827
827
|
lineHeight: number;
|
|
828
828
|
};
|
|
829
829
|
fills: {
|
|
830
|
-
type: "
|
|
830
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
831
831
|
color?: string;
|
|
832
832
|
gradient?: {
|
|
833
833
|
angle: number;
|
|
@@ -964,7 +964,7 @@ declare function validateTextEffectDefinitionStrict(data: unknown): {
|
|
|
964
964
|
lineHeight: number;
|
|
965
965
|
};
|
|
966
966
|
fills: {
|
|
967
|
-
type: "
|
|
967
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
968
968
|
color?: string;
|
|
969
969
|
gradient?: {
|
|
970
970
|
angle: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
export { j as AnimationPreset, C as CUSTOM_ENGINE_IDS, k as
|
|
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-D6GAXDBy.js';
|
|
2
|
+
export { j as AnimationPreset, C as CUSTOM_ENGINE_IDS, k as CanvasBackgroundConfig, l as CompositorFromScene, m as CompositorSettings, n as CustomEngineId, D as DEFAULT_CANVAS_HEIGHT, o as DEFAULT_CANVAS_WIDTH, p as DEFAULT_DURATION, q as DEFAULT_FONT_SIZE, r as DEFAULT_FPS, s as ENGINE_ID_TO_LEGACY, t as EffectBevel, u as EffectFill, v as EffectFullDefinition, w as EffectGlow, x as EffectIndexItem, y as EffectLayerType, z as EffectPanel, B as EffectShadow, F as EffectStack, H as EffectStroke, I as EvaluateOptions, J as EvaluatedTextLayer, L as FontDescriptor, M as FontLoadResult, N as FontLoader, O as FontVariant, Q as LEGACY_RENDERER_MAP, R as LayerAnimation, U as LayerTarget, V as SCENE_VERSION, W as SceneCanvas, X as SceneText, Y as TemplateImageLayer, Z as TemplateShapeLayer, _ as TemplateTextLayer, $ as TextEffectRenderer, a0 as Timeline, a1 as WebGLCompositor, a2 as _buildConfig, a3 as advanceSceneTime, a4 as builtInPresets, a5 as checkFontVariant, a6 as createEmptyScene, a7 as defaultConfig, a8 as disposeSharedCompositor, a9 as ensureFontsLoaded, aa as evaluateConfig, ab as evaluateScene, ac as getFontLoader, ad as getSceneTime, ae as initializeFontSystem, af as injectFontVariantRules, ag as layerToTextEffectConfig, ah as mergeSceneIntoConfig, ai as newLayerId, aj as renderTextEffectCore, ak as resetFontLoader, al as resetSceneTime, am as resolveCustomEngineId, an as resolveFontFamilyName, ao as sceneToConfig, ap as setSceneTime, aq as syncCompositorFromScene, ar as textEffectConfigToScene } from './index-D6GAXDBy.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { PixiRenderer } from './videoEffects/index.js';
|
|
5
5
|
export { AppliedEffect, AppliedOverlay, BlendMode, CameraEffects, EFFECTS_REGISTRY, EffectCategory, EffectEngine, EffectGraph, EffectMetadata, EffectParameters, EffectPreset, EffectRenderer, EffectRendererType, ExamplePixiEffects, 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';
|
|
@@ -24,8 +24,8 @@ declare const GradientStopSchema: z.ZodObject<{
|
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
declare const EffectFillSchema: z.ZodObject<{
|
|
26
26
|
type: z.ZodEnum<{
|
|
27
|
-
linear: "linear";
|
|
28
27
|
solid: "solid";
|
|
28
|
+
linear: "linear";
|
|
29
29
|
radial: "radial";
|
|
30
30
|
pattern: "pattern";
|
|
31
31
|
none: "none";
|
|
@@ -213,8 +213,8 @@ declare const EffectFullDefinitionSchema: z.ZodObject<{
|
|
|
213
213
|
}, z.core.$strip>;
|
|
214
214
|
fills: z.ZodArray<z.ZodObject<{
|
|
215
215
|
type: z.ZodEnum<{
|
|
216
|
-
linear: "linear";
|
|
217
216
|
solid: "solid";
|
|
217
|
+
linear: "linear";
|
|
218
218
|
radial: "radial";
|
|
219
219
|
pattern: "pattern";
|
|
220
220
|
none: "none";
|
|
@@ -389,8 +389,8 @@ declare const TextEffectDefinitionSchema: z.ZodObject<{
|
|
|
389
389
|
}, z.core.$strip>;
|
|
390
390
|
fills: z.ZodArray<z.ZodObject<{
|
|
391
391
|
type: z.ZodEnum<{
|
|
392
|
-
linear: "linear";
|
|
393
392
|
solid: "solid";
|
|
393
|
+
linear: "linear";
|
|
394
394
|
radial: "radial";
|
|
395
395
|
pattern: "pattern";
|
|
396
396
|
none: "none";
|
|
@@ -556,7 +556,7 @@ declare function validateEffectDefinition(data: unknown): z.ZodSafeParseResult<{
|
|
|
556
556
|
lineHeight: number;
|
|
557
557
|
};
|
|
558
558
|
fills: {
|
|
559
|
-
type: "
|
|
559
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
560
560
|
color?: string;
|
|
561
561
|
gradient?: {
|
|
562
562
|
angle: number;
|
|
@@ -692,7 +692,7 @@ declare function validateEffectDefinitionStrict(data: unknown): {
|
|
|
692
692
|
lineHeight: number;
|
|
693
693
|
};
|
|
694
694
|
fills: {
|
|
695
|
-
type: "
|
|
695
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
696
696
|
color?: string;
|
|
697
697
|
gradient?: {
|
|
698
698
|
angle: number;
|
|
@@ -827,7 +827,7 @@ declare function validateTextEffectDefinition(data: unknown): z.ZodSafeParseResu
|
|
|
827
827
|
lineHeight: number;
|
|
828
828
|
};
|
|
829
829
|
fills: {
|
|
830
|
-
type: "
|
|
830
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
831
831
|
color?: string;
|
|
832
832
|
gradient?: {
|
|
833
833
|
angle: number;
|
|
@@ -964,7 +964,7 @@ declare function validateTextEffectDefinitionStrict(data: unknown): {
|
|
|
964
964
|
lineHeight: number;
|
|
965
965
|
};
|
|
966
966
|
fills: {
|
|
967
|
-
type: "
|
|
967
|
+
type: "solid" | "linear" | "radial" | "pattern" | "none";
|
|
968
968
|
color?: string;
|
|
969
969
|
gradient?: {
|
|
970
970
|
angle: number;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ALL_TRANSITIONS,
|
|
3
|
+
ChromaticPushTransition,
|
|
4
|
+
CrossDissolveTransition,
|
|
5
|
+
DepthPushTransition,
|
|
6
|
+
DirectionalDissolveTransition,
|
|
7
|
+
ElasticSnapCutTransition,
|
|
8
|
+
FilmBurnWipeTransition,
|
|
9
|
+
FoldTurnTransition,
|
|
10
|
+
FrameHoldStutterTransition,
|
|
11
|
+
GlitchTransition,
|
|
12
|
+
GravityDropTransition,
|
|
13
|
+
IrisRevealTransition,
|
|
14
|
+
LightLeakSweepTransition,
|
|
15
|
+
LumaWipeTransition,
|
|
16
|
+
ParallaxLayerSplitTransition,
|
|
17
|
+
PixelateCollapseTransition,
|
|
18
|
+
PushTransition,
|
|
19
|
+
RackFocusBlendTransition,
|
|
20
|
+
RefractionWarpTransition,
|
|
21
|
+
ShatterBurstTransition,
|
|
22
|
+
StrobeCutTransition,
|
|
23
|
+
TRANSITION_CATEGORIES,
|
|
24
|
+
TRANSITION_PRESETS,
|
|
25
|
+
TransitionRenderer,
|
|
26
|
+
ZoomTransition,
|
|
27
|
+
getAllTransitionTags,
|
|
28
|
+
getAllTransitions,
|
|
29
|
+
getRecommendedDuration,
|
|
30
|
+
getTransitionById,
|
|
31
|
+
getTransitionByRenderer,
|
|
32
|
+
getTransitionCategories,
|
|
33
|
+
getTransitionCountByCategory,
|
|
34
|
+
getTransitionEffect,
|
|
35
|
+
getTransitionsByCategory,
|
|
36
|
+
getTransitionsByTags,
|
|
37
|
+
searchTransitions,
|
|
38
|
+
transitionEffects,
|
|
39
|
+
transitionEffectsById
|
|
40
|
+
} from "./chunk-FIJBB3MH.js";
|
|
1
41
|
import {
|
|
2
42
|
COMPOSITION_PRESETS,
|
|
3
43
|
CUSTOM_ENGINE_IDS,
|
|
@@ -71,47 +111,7 @@ import {
|
|
|
71
111
|
syncCompositorFromScene,
|
|
72
112
|
textEffectConfigToScene,
|
|
73
113
|
wrapTextToWidth
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import {
|
|
76
|
-
ALL_TRANSITIONS,
|
|
77
|
-
ChromaticPushTransition,
|
|
78
|
-
CrossDissolveTransition,
|
|
79
|
-
DepthPushTransition,
|
|
80
|
-
DirectionalDissolveTransition,
|
|
81
|
-
ElasticSnapCutTransition,
|
|
82
|
-
FilmBurnWipeTransition,
|
|
83
|
-
FoldTurnTransition,
|
|
84
|
-
FrameHoldStutterTransition,
|
|
85
|
-
GlitchTransition,
|
|
86
|
-
GravityDropTransition,
|
|
87
|
-
IrisRevealTransition,
|
|
88
|
-
LightLeakSweepTransition,
|
|
89
|
-
LumaWipeTransition,
|
|
90
|
-
ParallaxLayerSplitTransition,
|
|
91
|
-
PixelateCollapseTransition,
|
|
92
|
-
PushTransition,
|
|
93
|
-
RackFocusBlendTransition,
|
|
94
|
-
RefractionWarpTransition,
|
|
95
|
-
ShatterBurstTransition,
|
|
96
|
-
StrobeCutTransition,
|
|
97
|
-
TRANSITION_CATEGORIES,
|
|
98
|
-
TRANSITION_PRESETS,
|
|
99
|
-
TransitionRenderer,
|
|
100
|
-
ZoomTransition,
|
|
101
|
-
getAllTransitionTags,
|
|
102
|
-
getAllTransitions,
|
|
103
|
-
getRecommendedDuration,
|
|
104
|
-
getTransitionById,
|
|
105
|
-
getTransitionByRenderer,
|
|
106
|
-
getTransitionCategories,
|
|
107
|
-
getTransitionCountByCategory,
|
|
108
|
-
getTransitionEffect,
|
|
109
|
-
getTransitionsByCategory,
|
|
110
|
-
getTransitionsByTags,
|
|
111
|
-
searchTransitions,
|
|
112
|
-
transitionEffects,
|
|
113
|
-
transitionEffectsById
|
|
114
|
-
} from "./chunk-FIJBB3MH.js";
|
|
114
|
+
} from "./chunk-Y4FMAOTW.js";
|
|
115
115
|
import {
|
|
116
116
|
EFFECTS_REGISTRY,
|
|
117
117
|
EffectEngine,
|