@codingfactory/mediables-vue 2.0.5 → 2.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/PixiFrameExporter-CaDjKfAG.cjs +2 -0
- package/dist/{PixiFrameExporter-BTXhmL54.cjs.map → PixiFrameExporter-CaDjKfAG.cjs.map} +1 -1
- package/dist/{PixiFrameExporter-B5tJ62bD.js → PixiFrameExporter-CvKLKOXx.js} +60 -60
- package/dist/{PixiFrameExporter-B5tJ62bD.js.map → PixiFrameExporter-CvKLKOXx.js.map} +1 -1
- package/dist/composables/useFloatingPills.d.ts +2 -0
- package/dist/composables/useVideoEditor.d.ts +3 -2
- package/dist/filters/index.d.ts +3 -3
- package/dist/filters/registry.d.ts +15 -0
- package/dist/index-CXQ4ykVw.cjs +39 -0
- package/dist/index-CXQ4ykVw.cjs.map +1 -0
- package/dist/{index-BsOWbGbb.js → index-DBM_ViWA.js} +1629 -1562
- package/dist/index-DBM_ViWA.js.map +1 -0
- package/dist/{index-CWcyKIOz.js → index-DRQBqLZX.js} +8593 -8668
- package/dist/index-DRQBqLZX.js.map +1 -0
- package/dist/index-HREFg1jF.cjs +42 -0
- package/dist/index-HREFg1jF.cjs.map +1 -0
- package/dist/mediables-vanilla.cjs +1 -1
- package/dist/mediables-vanilla.mjs +1 -1
- package/dist/mediables-vue.cjs +1 -1
- package/dist/mediables-vue.mjs +2 -2
- package/dist/render-page/assets/{index-hBfvGPpt.js → index-SU1f_egA.js} +45095 -22643
- package/dist/render-page/index.html +1 -1
- package/dist/style.css +1 -1
- package/dist/types/video.d.ts +1 -0
- package/dist/video-engine/adapters/MediablesCompositionAdapter.d.ts +2 -1
- package/dist/video-engine/index.d.ts +0 -2
- package/package.json +17 -18
- package/dist/PixiFrameExporter-BTXhmL54.cjs +0 -2
- package/dist/index-BsOWbGbb.js.map +0 -1
- package/dist/index-CWcyKIOz.js.map +0 -1
- package/dist/index-C_X9_ptj.cjs +0 -42
- package/dist/index-C_X9_ptj.cjs.map +0 -1
- package/dist/index-DVJg3EKN.cjs +0 -76
- package/dist/index-DVJg3EKN.cjs.map +0 -1
- package/dist/video-engine/adapters/CSSFilterAdapter.d.ts +0 -106
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CSS Filter Adapter for Video Composition
|
|
3
|
-
* Replaces PIXI filters with native CSS filters for reliable video export
|
|
4
|
-
*/
|
|
5
|
-
import * as core from '../core/mediables-engine.js';
|
|
6
|
-
import type { VideoRecipe, AppliedFilter } from '../../types/video';
|
|
7
|
-
export declare class CSSFilterCompositionAdapter {
|
|
8
|
-
readonly composition: core.Composition;
|
|
9
|
-
private clips;
|
|
10
|
-
private clipTimelineStart;
|
|
11
|
-
private initPromise;
|
|
12
|
-
private fitMode;
|
|
13
|
-
private fps;
|
|
14
|
-
private resizeObserver;
|
|
15
|
-
private clipFilterManagers;
|
|
16
|
-
private currentFilterString;
|
|
17
|
-
private originalComputeFrame;
|
|
18
|
-
private renderCanvas;
|
|
19
|
-
private renderContext;
|
|
20
|
-
constructor(width?: number, height?: number, fps?: number, options?: {
|
|
21
|
-
fitMode?: 'none' | 'contain' | 'cover';
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* Setup render interception to apply CSS filters
|
|
25
|
-
*/
|
|
26
|
-
private setupRenderInterception;
|
|
27
|
-
/**
|
|
28
|
-
* Apply CSS filters to the composition's canvas
|
|
29
|
-
*/
|
|
30
|
-
private applyCSSFiltersToCanvas;
|
|
31
|
-
/**
|
|
32
|
-
* Get the currently active clip ID based on playback position
|
|
33
|
-
*/
|
|
34
|
-
private getCurrentClipId;
|
|
35
|
-
/**
|
|
36
|
-
* Load a recipe and create the composition
|
|
37
|
-
*/
|
|
38
|
-
loadRecipe(recipe: VideoRecipe, mediaUrls?: Record<string, string>): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Convenience alias used by legacy callers.
|
|
41
|
-
* Resolves the media URL and delegates to `loadRecipe()`.
|
|
42
|
-
*/
|
|
43
|
-
loadFromRecipe(recipe: VideoRecipe): Promise<void>;
|
|
44
|
-
/**
|
|
45
|
-
* Move a clip to a new timeline start (seconds).
|
|
46
|
-
*/
|
|
47
|
-
moveClip(clipId: string, newTimelineStart: number): void;
|
|
48
|
-
/**
|
|
49
|
-
* Trim a clip's source range (seconds).
|
|
50
|
-
* Only applies to video clips.
|
|
51
|
-
*/
|
|
52
|
-
trimClip(clipId: string, sourceIn: number, sourceOut: number): void;
|
|
53
|
-
/**
|
|
54
|
-
* Apply CSS filters to a clip
|
|
55
|
-
*/
|
|
56
|
-
private applyFiltersToClip;
|
|
57
|
-
/**
|
|
58
|
-
* Update filters for a clip
|
|
59
|
-
*/
|
|
60
|
-
setClipFilters(clipId: string, filters: AppliedFilter[]): void;
|
|
61
|
-
/**
|
|
62
|
-
* Get CSS filter string for export
|
|
63
|
-
* This is crucial for video export to work correctly
|
|
64
|
-
*/
|
|
65
|
-
getCSSFilterStringForExport(frame: number): string;
|
|
66
|
-
/**
|
|
67
|
-
* Add a timeline clip
|
|
68
|
-
*/
|
|
69
|
-
private addTimelineClip;
|
|
70
|
-
/**
|
|
71
|
-
* Add text overlay
|
|
72
|
-
*/
|
|
73
|
-
private addTextOverlay;
|
|
74
|
-
/**
|
|
75
|
-
* Apply fit mode to clip
|
|
76
|
-
*/
|
|
77
|
-
private applyFitToClip;
|
|
78
|
-
/**
|
|
79
|
-
* Attach player element
|
|
80
|
-
*/
|
|
81
|
-
attachPlayer(element: HTMLDivElement): Promise<void>;
|
|
82
|
-
/**
|
|
83
|
-
* Playback controls
|
|
84
|
-
*/
|
|
85
|
-
play(): void;
|
|
86
|
-
pause(): void;
|
|
87
|
-
seek(frame: number): void;
|
|
88
|
-
seekToTime(seconds: number): void;
|
|
89
|
-
/**
|
|
90
|
-
* Export helpers
|
|
91
|
-
*/
|
|
92
|
-
get duration(): core.Timestamp;
|
|
93
|
-
get durationInSeconds(): number;
|
|
94
|
-
get currentTimeInSeconds(): number;
|
|
95
|
-
get width(): number;
|
|
96
|
-
get height(): number;
|
|
97
|
-
setFitMode(mode: 'none' | 'contain' | 'cover'): void;
|
|
98
|
-
/**
|
|
99
|
-
* Clean up
|
|
100
|
-
*/
|
|
101
|
-
dispose(): void;
|
|
102
|
-
/**
|
|
103
|
-
* Legacy alias for `dispose()`.
|
|
104
|
-
*/
|
|
105
|
-
destroy(): void;
|
|
106
|
-
}
|