@clypra-studio/engine 1.0.7 → 1.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.
@@ -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 { type Timeline as $, type AnimTrack as A, type EffectStack as B, CUSTOM_ENGINE_IDS as C, DEFAULT_CANVAS_HEIGHT as D, type EffectLayer as E, type EffectStroke as F, type GlowLayer as G, type EvaluateOptions as H, type EvaluatedTextLayer as I, type FontDescriptor as J, type Keyframe as K, type FontLoadResult as L, FontLoader as M, type FontVariant as N, LEGACY_RENDERER_MAP as O, type Preset as P, type LayerAnimation as Q, type LayerTarget as R, type SceneDocument as S, type TextEffectConfig as T, SCENE_VERSION as U, type SceneCanvas as V, type SceneText as W, type TemplateImageLayer as X, type TemplateShapeLayer as Y, type TemplateTextLayer as Z, TextEffectRenderer as _, type StyleRecipe as a, WebGLCompositor as a0, _buildConfig as a1, advanceSceneTime as a2, builtInPresets as a3, checkFontVariant as a4, createEmptyScene as a5, defaultConfig as a6, disposeSharedCompositor as a7, ensureFontsLoaded as a8, evaluateConfig as a9, evaluateScene as aa, getFontLoader as ab, getSceneTime as ac, initializeFontSystem as ad, injectFontVariantRules as ae, layerToTextEffectConfig as af, mergeSceneIntoConfig as ag, newLayerId as ah, renderTextEffectCore as ai, resetFontLoader as aj, resetSceneTime as ak, resolveCustomEngineId as al, resolveFontFamilyName as am, sceneToConfig as an, setSceneTime as ao, syncCompositorFromScene as ap, textEffectConfigToScene as aq, 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 CompositorFromScene as k, type CompositorSettings as l, type CustomEngineId as m, DEFAULT_CANVAS_WIDTH as n, DEFAULT_DURATION as o, DEFAULT_FONT_SIZE as p, DEFAULT_FPS as q, ENGINE_ID_TO_LEGACY as r, type EffectBevel as s, type EffectFill as t, type EffectFullDefinition as u, type EffectGlow as v, type EffectIndexItem as w, type EffectLayerType as x, type EffectPanel as y, type EffectShadow as z };
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 { type Timeline as $, type AnimTrack as A, type EffectStack as B, CUSTOM_ENGINE_IDS as C, DEFAULT_CANVAS_HEIGHT as D, type EffectLayer as E, type EffectStroke as F, type GlowLayer as G, type EvaluateOptions as H, type EvaluatedTextLayer as I, type FontDescriptor as J, type Keyframe as K, type FontLoadResult as L, FontLoader as M, type FontVariant as N, LEGACY_RENDERER_MAP as O, type Preset as P, type LayerAnimation as Q, type LayerTarget as R, type SceneDocument as S, type TextEffectConfig as T, SCENE_VERSION as U, type SceneCanvas as V, type SceneText as W, type TemplateImageLayer as X, type TemplateShapeLayer as Y, type TemplateTextLayer as Z, TextEffectRenderer as _, type StyleRecipe as a, WebGLCompositor as a0, _buildConfig as a1, advanceSceneTime as a2, builtInPresets as a3, checkFontVariant as a4, createEmptyScene as a5, defaultConfig as a6, disposeSharedCompositor as a7, ensureFontsLoaded as a8, evaluateConfig as a9, evaluateScene as aa, getFontLoader as ab, getSceneTime as ac, initializeFontSystem as ad, injectFontVariantRules as ae, layerToTextEffectConfig as af, mergeSceneIntoConfig as ag, newLayerId as ah, renderTextEffectCore as ai, resetFontLoader as aj, resetSceneTime as ak, resolveCustomEngineId as al, resolveFontFamilyName as am, sceneToConfig as an, setSceneTime as ao, syncCompositorFromScene as ap, textEffectConfigToScene as aq, 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 CompositorFromScene as k, type CompositorSettings as l, type CustomEngineId as m, DEFAULT_CANVAS_WIDTH as n, DEFAULT_DURATION as o, DEFAULT_FONT_SIZE as p, DEFAULT_FPS as q, ENGINE_ID_TO_LEGACY as r, type EffectBevel as s, type EffectFill as t, type EffectFullDefinition as u, type EffectGlow as v, type EffectIndexItem as w, type EffectLayerType as x, type EffectPanel as y, type EffectShadow as z };
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 };