@clypra-studio/engine 1.8.0 → 1.9.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-B2KQXJLS.js → chunk-JP44RJUI.js} +2 -2
- package/dist/{chunk-NG4F55V7.js → chunk-V5VSY64D.js} +2 -2
- package/dist/chunk-XHHAW7MS.js +598 -0
- package/dist/chunk-XHHAW7MS.js.map +1 -0
- package/dist/{chunk-7ORA5BPW.js → chunk-YBOYDQU5.js} +199 -2
- package/dist/chunk-YBOYDQU5.js.map +1 -0
- package/dist/index.cjs +647 -1744
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +345 -9
- package/dist/index.js.map +1 -1
- package/dist/rendering/index.cjs +198 -0
- package/dist/rendering/index.cjs.map +1 -1
- package/dist/rendering/index.js +2 -3
- package/dist/textEffects/index.cjs +198 -1
- package/dist/textEffects/index.cjs.map +1 -1
- package/dist/textEffects/index.js +2 -3
- package/dist/transitions/index.js +0 -1
- package/dist/videoEffects/index.cjs +106 -1741
- package/dist/videoEffects/index.cjs.map +1 -1
- package/dist/videoEffects/index.d.cts +2 -115
- package/dist/videoEffects/index.d.ts +2 -115
- package/dist/videoEffects/index.js +1 -6
- package/package.json +12 -12
- package/dist/chunk-7ORA5BPW.js.map +0 -1
- package/dist/chunk-PZ5AY32C.js +0 -10
- package/dist/chunk-PZ5AY32C.js.map +0 -1
- package/dist/chunk-SH7HOGVX.js +0 -2235
- package/dist/chunk-SH7HOGVX.js.map +0 -1
- /package/dist/{chunk-B2KQXJLS.js.map → chunk-JP44RJUI.js.map} +0 -0
- /package/dist/{chunk-NG4F55V7.js.map → chunk-V5VSY64D.js.map} +0 -0
|
@@ -32,7 +32,7 @@ interface OverlayAsset {
|
|
|
32
32
|
placement?: "fullscreen" | "overlay";
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
type EffectRenderer$1 = "
|
|
35
|
+
type EffectRenderer$1 = "shockwave" | "ChromaticAberration" | "RgbSplit" | "FilmGrain" | "Scanlines" | "Pixelate";
|
|
36
36
|
interface EffectPreset {
|
|
37
37
|
id: string;
|
|
38
38
|
name: string;
|
|
@@ -452,117 +452,4 @@ declare function generateEffectsManifest(): {
|
|
|
452
452
|
effects: VideoEffectApiDefinition[];
|
|
453
453
|
};
|
|
454
454
|
|
|
455
|
-
|
|
456
|
-
* Shake Effect
|
|
457
|
-
*/
|
|
458
|
-
|
|
459
|
-
declare function renderShake(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* Zoom Effect
|
|
463
|
-
*/
|
|
464
|
-
|
|
465
|
-
declare function renderZoom(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* Pan Effect
|
|
469
|
-
*/
|
|
470
|
-
|
|
471
|
-
declare function renderPan(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* Rotate Effect
|
|
475
|
-
*/
|
|
476
|
-
|
|
477
|
-
declare function renderRotate(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* Dolly Effect
|
|
481
|
-
* Essentially zoom with slight rotation
|
|
482
|
-
*/
|
|
483
|
-
|
|
484
|
-
declare function renderDolly(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Camera Effects Renderers
|
|
488
|
-
*/
|
|
489
|
-
|
|
490
|
-
declare const index$1_renderDolly: typeof renderDolly;
|
|
491
|
-
declare const index$1_renderPan: typeof renderPan;
|
|
492
|
-
declare const index$1_renderRotate: typeof renderRotate;
|
|
493
|
-
declare const index$1_renderShake: typeof renderShake;
|
|
494
|
-
declare const index$1_renderZoom: typeof renderZoom;
|
|
495
|
-
declare namespace index$1 {
|
|
496
|
-
export { index$1_renderDolly as renderDolly, index$1_renderPan as renderPan, index$1_renderRotate as renderRotate, index$1_renderShake as renderShake, index$1_renderZoom as renderZoom };
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* Light Leak Effect
|
|
501
|
-
*/
|
|
502
|
-
|
|
503
|
-
declare function renderLightLeak(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Light Leak 2 Effect
|
|
507
|
-
* Animated red/orange light that moves from bottom-left → bottom-right → top-right
|
|
508
|
-
*/
|
|
509
|
-
|
|
510
|
-
declare function renderLightLeak2(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* Flash Effect
|
|
514
|
-
*/
|
|
515
|
-
|
|
516
|
-
declare function renderFlash(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* Flicker Effect
|
|
520
|
-
*/
|
|
521
|
-
|
|
522
|
-
declare function renderFlicker(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
523
|
-
|
|
524
|
-
/**
|
|
525
|
-
* Vignette Effect
|
|
526
|
-
*/
|
|
527
|
-
|
|
528
|
-
declare function renderVignette(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* Glow Effect
|
|
532
|
-
*/
|
|
533
|
-
|
|
534
|
-
declare function renderGlow(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* Fire Effect Renderer
|
|
538
|
-
* Creates animated fire effects with particles and heat distortion
|
|
539
|
-
*/
|
|
540
|
-
|
|
541
|
-
declare function renderFire(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* Particles Effect Renderer
|
|
545
|
-
* Creates floating particles with various behaviors
|
|
546
|
-
*/
|
|
547
|
-
|
|
548
|
-
declare function renderParticles(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
549
|
-
declare function renderDustParticles(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* Light Effects Renderers
|
|
553
|
-
*/
|
|
554
|
-
|
|
555
|
-
declare const index_renderDustParticles: typeof renderDustParticles;
|
|
556
|
-
declare const index_renderFire: typeof renderFire;
|
|
557
|
-
declare const index_renderFlash: typeof renderFlash;
|
|
558
|
-
declare const index_renderFlicker: typeof renderFlicker;
|
|
559
|
-
declare const index_renderGlow: typeof renderGlow;
|
|
560
|
-
declare const index_renderLightLeak: typeof renderLightLeak;
|
|
561
|
-
declare const index_renderLightLeak2: typeof renderLightLeak2;
|
|
562
|
-
declare const index_renderParticles: typeof renderParticles;
|
|
563
|
-
declare const index_renderVignette: typeof renderVignette;
|
|
564
|
-
declare namespace index {
|
|
565
|
-
export { index_renderDustParticles as renderDustParticles, index_renderFire as renderFire, index_renderFlash as renderFlash, index_renderFlicker as renderFlicker, index_renderGlow as renderGlow, index_renderLightLeak as renderLightLeak, index_renderLightLeak2 as renderLightLeak2, index_renderParticles as renderParticles, index_renderVignette as renderVignette };
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
export { type AppliedEffect, type AppliedOverlay, type BlendMode, index$1 as CameraEffects, EFFECTS_REGISTRY, type EffectCategory, EffectEngine, EffectGraph, type EffectMetadata, type EffectParameters, type EffectPreset, EffectRenderer, type EffectRenderer$1 as EffectRendererType, type FilterAsset, type GraphDefinition, index as LightEffects, type OverlayAsset, type VideoEffectApiDefinition, type VideoEffectCategory, type VideoEffectItem, type VideoEffectManifest, type VideoEffectState, addNoise, blendColors, clearCanvas, effectMetadataToApi, generateEffectsManifest, getAllEffectsForApi, getEffectByIdForApi, getEffectCategoriesSummary, getEffectMetadata, getEffectPreviewUrl, getEffectRenderer, getEffectsByCategory, getEffectsByCategoryForApi, hexToRgba, rgbaToComponents, searchEffects, searchEffectsForApi, withContext };
|
|
455
|
+
export { type AppliedEffect, type AppliedOverlay, type BlendMode, EFFECTS_REGISTRY, type EffectCategory, EffectEngine, EffectGraph, type EffectMetadata, type EffectParameters, type EffectPreset, EffectRenderer, type EffectRenderer$1 as EffectRendererType, type FilterAsset, type GraphDefinition, type OverlayAsset, type VideoEffectApiDefinition, type VideoEffectCategory, type VideoEffectItem, type VideoEffectManifest, type VideoEffectState, addNoise, blendColors, clearCanvas, effectMetadataToApi, generateEffectsManifest, getAllEffectsForApi, getEffectByIdForApi, getEffectCategoriesSummary, getEffectMetadata, getEffectPreviewUrl, getEffectRenderer, getEffectsByCategory, getEffectsByCategoryForApi, hexToRgba, rgbaToComponents, searchEffects, searchEffectsForApi, withContext };
|
|
@@ -32,7 +32,7 @@ interface OverlayAsset {
|
|
|
32
32
|
placement?: "fullscreen" | "overlay";
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
type EffectRenderer$1 = "
|
|
35
|
+
type EffectRenderer$1 = "shockwave" | "ChromaticAberration" | "RgbSplit" | "FilmGrain" | "Scanlines" | "Pixelate";
|
|
36
36
|
interface EffectPreset {
|
|
37
37
|
id: string;
|
|
38
38
|
name: string;
|
|
@@ -452,117 +452,4 @@ declare function generateEffectsManifest(): {
|
|
|
452
452
|
effects: VideoEffectApiDefinition[];
|
|
453
453
|
};
|
|
454
454
|
|
|
455
|
-
|
|
456
|
-
* Shake Effect
|
|
457
|
-
*/
|
|
458
|
-
|
|
459
|
-
declare function renderShake(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* Zoom Effect
|
|
463
|
-
*/
|
|
464
|
-
|
|
465
|
-
declare function renderZoom(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* Pan Effect
|
|
469
|
-
*/
|
|
470
|
-
|
|
471
|
-
declare function renderPan(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* Rotate Effect
|
|
475
|
-
*/
|
|
476
|
-
|
|
477
|
-
declare function renderRotate(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* Dolly Effect
|
|
481
|
-
* Essentially zoom with slight rotation
|
|
482
|
-
*/
|
|
483
|
-
|
|
484
|
-
declare function renderDolly(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Camera Effects Renderers
|
|
488
|
-
*/
|
|
489
|
-
|
|
490
|
-
declare const index$1_renderDolly: typeof renderDolly;
|
|
491
|
-
declare const index$1_renderPan: typeof renderPan;
|
|
492
|
-
declare const index$1_renderRotate: typeof renderRotate;
|
|
493
|
-
declare const index$1_renderShake: typeof renderShake;
|
|
494
|
-
declare const index$1_renderZoom: typeof renderZoom;
|
|
495
|
-
declare namespace index$1 {
|
|
496
|
-
export { index$1_renderDolly as renderDolly, index$1_renderPan as renderPan, index$1_renderRotate as renderRotate, index$1_renderShake as renderShake, index$1_renderZoom as renderZoom };
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* Light Leak Effect
|
|
501
|
-
*/
|
|
502
|
-
|
|
503
|
-
declare function renderLightLeak(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Light Leak 2 Effect
|
|
507
|
-
* Animated red/orange light that moves from bottom-left → bottom-right → top-right
|
|
508
|
-
*/
|
|
509
|
-
|
|
510
|
-
declare function renderLightLeak2(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* Flash Effect
|
|
514
|
-
*/
|
|
515
|
-
|
|
516
|
-
declare function renderFlash(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* Flicker Effect
|
|
520
|
-
*/
|
|
521
|
-
|
|
522
|
-
declare function renderFlicker(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
523
|
-
|
|
524
|
-
/**
|
|
525
|
-
* Vignette Effect
|
|
526
|
-
*/
|
|
527
|
-
|
|
528
|
-
declare function renderVignette(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* Glow Effect
|
|
532
|
-
*/
|
|
533
|
-
|
|
534
|
-
declare function renderGlow(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* Fire Effect Renderer
|
|
538
|
-
* Creates animated fire effects with particles and heat distortion
|
|
539
|
-
*/
|
|
540
|
-
|
|
541
|
-
declare function renderFire(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* Particles Effect Renderer
|
|
545
|
-
* Creates floating particles with various behaviors
|
|
546
|
-
*/
|
|
547
|
-
|
|
548
|
-
declare function renderParticles(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
549
|
-
declare function renderDustParticles(ctx: CanvasRenderingContext2D, params: EffectParameters, intensity: number, time: number): void;
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* Light Effects Renderers
|
|
553
|
-
*/
|
|
554
|
-
|
|
555
|
-
declare const index_renderDustParticles: typeof renderDustParticles;
|
|
556
|
-
declare const index_renderFire: typeof renderFire;
|
|
557
|
-
declare const index_renderFlash: typeof renderFlash;
|
|
558
|
-
declare const index_renderFlicker: typeof renderFlicker;
|
|
559
|
-
declare const index_renderGlow: typeof renderGlow;
|
|
560
|
-
declare const index_renderLightLeak: typeof renderLightLeak;
|
|
561
|
-
declare const index_renderLightLeak2: typeof renderLightLeak2;
|
|
562
|
-
declare const index_renderParticles: typeof renderParticles;
|
|
563
|
-
declare const index_renderVignette: typeof renderVignette;
|
|
564
|
-
declare namespace index {
|
|
565
|
-
export { index_renderDustParticles as renderDustParticles, index_renderFire as renderFire, index_renderFlash as renderFlash, index_renderFlicker as renderFlicker, index_renderGlow as renderGlow, index_renderLightLeak as renderLightLeak, index_renderLightLeak2 as renderLightLeak2, index_renderParticles as renderParticles, index_renderVignette as renderVignette };
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
export { type AppliedEffect, type AppliedOverlay, type BlendMode, index$1 as CameraEffects, EFFECTS_REGISTRY, type EffectCategory, EffectEngine, EffectGraph, type EffectMetadata, type EffectParameters, type EffectPreset, EffectRenderer, type EffectRenderer$1 as EffectRendererType, type FilterAsset, type GraphDefinition, index as LightEffects, type OverlayAsset, type VideoEffectApiDefinition, type VideoEffectCategory, type VideoEffectItem, type VideoEffectManifest, type VideoEffectState, addNoise, blendColors, clearCanvas, effectMetadataToApi, generateEffectsManifest, getAllEffectsForApi, getEffectByIdForApi, getEffectCategoriesSummary, getEffectMetadata, getEffectPreviewUrl, getEffectRenderer, getEffectsByCategory, getEffectsByCategoryForApi, hexToRgba, rgbaToComponents, searchEffects, searchEffectsForApi, withContext };
|
|
455
|
+
export { type AppliedEffect, type AppliedOverlay, type BlendMode, EFFECTS_REGISTRY, type EffectCategory, EffectEngine, EffectGraph, type EffectMetadata, type EffectParameters, type EffectPreset, EffectRenderer, type EffectRenderer$1 as EffectRendererType, type FilterAsset, type GraphDefinition, type OverlayAsset, type VideoEffectApiDefinition, type VideoEffectCategory, type VideoEffectItem, type VideoEffectManifest, type VideoEffectState, addNoise, blendColors, clearCanvas, effectMetadataToApi, generateEffectsManifest, getAllEffectsForApi, getEffectByIdForApi, getEffectCategoriesSummary, getEffectMetadata, getEffectPreviewUrl, getEffectRenderer, getEffectsByCategory, getEffectsByCategoryForApi, hexToRgba, rgbaToComponents, searchEffects, searchEffectsForApi, withContext };
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
EffectRenderer,
|
|
6
6
|
addNoise,
|
|
7
7
|
blendColors,
|
|
8
|
-
camera_exports,
|
|
9
8
|
clearCanvas,
|
|
10
9
|
effectMetadataToApi,
|
|
11
10
|
generateEffectsManifest,
|
|
@@ -18,20 +17,16 @@ import {
|
|
|
18
17
|
getEffectsByCategory,
|
|
19
18
|
getEffectsByCategoryForApi,
|
|
20
19
|
hexToRgba,
|
|
21
|
-
light_exports,
|
|
22
20
|
rgbaToComponents,
|
|
23
21
|
searchEffects,
|
|
24
22
|
searchEffectsForApi,
|
|
25
23
|
withContext
|
|
26
|
-
} from "../chunk-
|
|
27
|
-
import "../chunk-PZ5AY32C.js";
|
|
24
|
+
} from "../chunk-XHHAW7MS.js";
|
|
28
25
|
export {
|
|
29
|
-
camera_exports as CameraEffects,
|
|
30
26
|
EFFECTS_REGISTRY,
|
|
31
27
|
EffectEngine,
|
|
32
28
|
EffectGraph,
|
|
33
29
|
EffectRenderer,
|
|
34
|
-
light_exports as LightEffects,
|
|
35
30
|
addNoise,
|
|
36
31
|
blendColors,
|
|
37
32
|
clearCanvas,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clypra-studio/engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"clypra",
|
|
@@ -75,17 +75,9 @@
|
|
|
75
75
|
"bugs": {
|
|
76
76
|
"url": "https://github.com/AIEraDev/clypra-packages/issues"
|
|
77
77
|
},
|
|
78
|
-
"scripts": {
|
|
79
|
-
"build": "tsup",
|
|
80
|
-
"dev": "tsup --watch",
|
|
81
|
-
"clean": "rm -rf dist",
|
|
82
|
-
"lint": "tsc --noEmit",
|
|
83
|
-
"typecheck": "tsc --noEmit",
|
|
84
|
-
"test": "vitest run"
|
|
85
|
-
},
|
|
86
78
|
"dependencies": {
|
|
87
|
-
"@clypra-studio/shaders": "^0.
|
|
88
|
-
"@clypra-studio/types": "^0.
|
|
79
|
+
"@clypra-studio/shaders": "^0.2.0",
|
|
80
|
+
"@clypra-studio/types": "^0.6.1",
|
|
89
81
|
"jszip": "^3.10.1",
|
|
90
82
|
"lottie-web": "^5.13.0",
|
|
91
83
|
"zod": "^4.4.3"
|
|
@@ -128,5 +120,13 @@
|
|
|
128
120
|
],
|
|
129
121
|
"@semantic-release/github"
|
|
130
122
|
]
|
|
123
|
+
},
|
|
124
|
+
"scripts": {
|
|
125
|
+
"build": "tsup",
|
|
126
|
+
"dev": "tsup --watch",
|
|
127
|
+
"clean": "rm -rf dist",
|
|
128
|
+
"lint": "tsc --noEmit",
|
|
129
|
+
"typecheck": "tsc --noEmit",
|
|
130
|
+
"test": "vitest run"
|
|
131
131
|
}
|
|
132
|
-
}
|
|
132
|
+
}
|