@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
|
@@ -15,10 +15,29 @@ type CustomEngineId = "ink";
|
|
|
15
15
|
declare const CUSTOM_ENGINE_IDS: CustomEngineId[];
|
|
16
16
|
declare const LEGACY_RENDERER_MAP: Record<string, CustomEngineId>;
|
|
17
17
|
declare const ENGINE_ID_TO_LEGACY: Record<CustomEngineId, string>;
|
|
18
|
+
interface CanvasBackgroundConfig {
|
|
19
|
+
type: "solid" | "gradient" | "shader" | "media";
|
|
20
|
+
color?: string;
|
|
21
|
+
gradient?: {
|
|
22
|
+
type: "linear" | "radial";
|
|
23
|
+
stops: GradientStop[];
|
|
24
|
+
angle?: number;
|
|
25
|
+
};
|
|
26
|
+
shader?: {
|
|
27
|
+
presetId: "liquid_aurora" | "neon_grid" | "particle_dust" | "gradient_wave";
|
|
28
|
+
speed?: number;
|
|
29
|
+
intensity?: number;
|
|
30
|
+
colors?: string[];
|
|
31
|
+
};
|
|
32
|
+
mediaUrl?: string;
|
|
33
|
+
opacity?: number;
|
|
34
|
+
isTransparent?: boolean;
|
|
35
|
+
}
|
|
18
36
|
interface SceneCanvas {
|
|
19
37
|
width: number;
|
|
20
38
|
height: number;
|
|
21
39
|
background: string;
|
|
40
|
+
backgroundConfig?: CanvasBackgroundConfig;
|
|
22
41
|
}
|
|
23
42
|
interface SceneText {
|
|
24
43
|
content: string;
|
|
@@ -630,4 +649,4 @@ declare function getSceneTime(doc: SceneDocument): number;
|
|
|
630
649
|
declare function setSceneTime(doc: SceneDocument, time: number): void;
|
|
631
650
|
declare function resetSceneTime(doc: SceneDocument): void;
|
|
632
651
|
|
|
633
|
-
export {
|
|
652
|
+
export { TextEffectRenderer as $, type AnimTrack as A, type EffectShadow as B, CUSTOM_ENGINE_IDS as C, DEFAULT_CANVAS_HEIGHT as D, type EffectLayer as E, type EffectStack as F, type GlowLayer as G, type EffectStroke as H, type EvaluateOptions as I, type EvaluatedTextLayer as J, type Keyframe as K, type FontDescriptor as L, type FontLoadResult as M, FontLoader as N, type FontVariant as O, type Preset as P, LEGACY_RENDERER_MAP as Q, type LayerAnimation as R, type SceneDocument as S, type TextEffectConfig as T, type LayerTarget as U, SCENE_VERSION as V, type SceneCanvas as W, type SceneText as X, type TemplateImageLayer as Y, type TemplateShapeLayer as Z, type TemplateTextLayer as _, type StyleRecipe as a, type Timeline as a0, WebGLCompositor as a1, _buildConfig as a2, advanceSceneTime as a3, builtInPresets as a4, checkFontVariant as a5, createEmptyScene as a6, defaultConfig as a7, disposeSharedCompositor as a8, ensureFontsLoaded as a9, evaluateConfig as aa, evaluateScene as ab, getFontLoader as ac, getSceneTime as ad, initializeFontSystem as ae, injectFontVariantRules as af, layerToTextEffectConfig as ag, mergeSceneIntoConfig as ah, newLayerId as ai, renderTextEffectCore as aj, resetFontLoader as ak, resetSceneTime as al, resolveCustomEngineId as am, resolveFontFamilyName as an, sceneToConfig as ao, setSceneTime as ap, syncCompositorFromScene as aq, textEffectConfigToScene as ar, type TextEffectDefinition as b, type GradientStop as c, type TextTemplate as d, type TemplateLayer as e, type TemplateCategory as f, type AnimatableValue as g, type TemplateEasingFunction as h, type TemplateKeyframe as i, type AnimationPreset as j, type CanvasBackgroundConfig as k, type CompositorFromScene as l, type CompositorSettings as m, type CustomEngineId as n, DEFAULT_CANVAS_WIDTH as o, DEFAULT_DURATION as p, DEFAULT_FONT_SIZE as q, DEFAULT_FPS as r, ENGINE_ID_TO_LEGACY as s, type EffectBevel as t, type EffectFill as u, type EffectFullDefinition as v, type EffectGlow as w, type EffectIndexItem as x, type EffectLayerType as y, type EffectPanel as z };
|
|
@@ -15,10 +15,29 @@ type CustomEngineId = "ink";
|
|
|
15
15
|
declare const CUSTOM_ENGINE_IDS: CustomEngineId[];
|
|
16
16
|
declare const LEGACY_RENDERER_MAP: Record<string, CustomEngineId>;
|
|
17
17
|
declare const ENGINE_ID_TO_LEGACY: Record<CustomEngineId, string>;
|
|
18
|
+
interface CanvasBackgroundConfig {
|
|
19
|
+
type: "solid" | "gradient" | "shader" | "media";
|
|
20
|
+
color?: string;
|
|
21
|
+
gradient?: {
|
|
22
|
+
type: "linear" | "radial";
|
|
23
|
+
stops: GradientStop[];
|
|
24
|
+
angle?: number;
|
|
25
|
+
};
|
|
26
|
+
shader?: {
|
|
27
|
+
presetId: "liquid_aurora" | "neon_grid" | "particle_dust" | "gradient_wave";
|
|
28
|
+
speed?: number;
|
|
29
|
+
intensity?: number;
|
|
30
|
+
colors?: string[];
|
|
31
|
+
};
|
|
32
|
+
mediaUrl?: string;
|
|
33
|
+
opacity?: number;
|
|
34
|
+
isTransparent?: boolean;
|
|
35
|
+
}
|
|
18
36
|
interface SceneCanvas {
|
|
19
37
|
width: number;
|
|
20
38
|
height: number;
|
|
21
39
|
background: string;
|
|
40
|
+
backgroundConfig?: CanvasBackgroundConfig;
|
|
22
41
|
}
|
|
23
42
|
interface SceneText {
|
|
24
43
|
content: string;
|
|
@@ -630,4 +649,4 @@ declare function getSceneTime(doc: SceneDocument): number;
|
|
|
630
649
|
declare function setSceneTime(doc: SceneDocument, time: number): void;
|
|
631
650
|
declare function resetSceneTime(doc: SceneDocument): void;
|
|
632
651
|
|
|
633
|
-
export {
|
|
652
|
+
export { TextEffectRenderer as $, type AnimTrack as A, type EffectShadow as B, CUSTOM_ENGINE_IDS as C, DEFAULT_CANVAS_HEIGHT as D, type EffectLayer as E, type EffectStack as F, type GlowLayer as G, type EffectStroke as H, type EvaluateOptions as I, type EvaluatedTextLayer as J, type Keyframe as K, type FontDescriptor as L, type FontLoadResult as M, FontLoader as N, type FontVariant as O, type Preset as P, LEGACY_RENDERER_MAP as Q, type LayerAnimation as R, type SceneDocument as S, type TextEffectConfig as T, type LayerTarget as U, SCENE_VERSION as V, type SceneCanvas as W, type SceneText as X, type TemplateImageLayer as Y, type TemplateShapeLayer as Z, type TemplateTextLayer as _, type StyleRecipe as a, type Timeline as a0, WebGLCompositor as a1, _buildConfig as a2, advanceSceneTime as a3, builtInPresets as a4, checkFontVariant as a5, createEmptyScene as a6, defaultConfig as a7, disposeSharedCompositor as a8, ensureFontsLoaded as a9, evaluateConfig as aa, evaluateScene as ab, getFontLoader as ac, getSceneTime as ad, initializeFontSystem as ae, injectFontVariantRules as af, layerToTextEffectConfig as ag, mergeSceneIntoConfig as ah, newLayerId as ai, renderTextEffectCore as aj, resetFontLoader as ak, resetSceneTime as al, resolveCustomEngineId as am, resolveFontFamilyName as an, sceneToConfig as ao, setSceneTime as ap, syncCompositorFromScene as aq, textEffectConfigToScene as ar, type TextEffectDefinition as b, type GradientStop as c, type TextTemplate as d, type TemplateLayer as e, type TemplateCategory as f, type AnimatableValue as g, type TemplateEasingFunction as h, type TemplateKeyframe as i, type AnimationPreset as j, type CanvasBackgroundConfig as k, type CompositorFromScene as l, type CompositorSettings as m, type CustomEngineId as n, DEFAULT_CANVAS_WIDTH as o, DEFAULT_DURATION as p, DEFAULT_FONT_SIZE as q, DEFAULT_FPS as r, ENGINE_ID_TO_LEGACY as s, type EffectBevel as t, type EffectFill as u, type EffectFullDefinition as v, type EffectGlow as w, type EffectIndexItem as x, type EffectLayerType as y, type EffectPanel as z };
|