@designcombo/video 0.1.14 → 0.1.16
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/{SharedSystems-G3yTQS7R.js → SharedSystems-c89R2YB4.js} +1 -1
- package/dist/{WebGLRenderer-6R3JtiJK.js → WebGLRenderer-yczU8Q7o.js} +2 -2
- package/dist/{WebGPURenderer-DwcNXLNH.js → WebGPURenderer-Dm2y598C.js} +2 -2
- package/dist/{browserAll-CY6fP_g4.js → browserAll-hKruQd3x.js} +2 -2
- package/dist/{index-D8oGyWjX.js → index-CmsRjoEr.js} +8552 -8424
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +46 -46
- package/dist/studio/selection-manager.d.ts +1 -0
- package/dist/studio/transport.d.ts +8 -0
- package/dist/studio.d.ts +29 -0
- package/dist/{webworkerAll-AI9nt7c5.js → webworkerAll-BQqf01s5.js} +1 -1
- package/package.json +11 -5
- package/src/index.ts +0 -47
|
@@ -38,6 +38,7 @@ export declare class SelectionManager {
|
|
|
38
38
|
selectClipsByIds(ids: string[]): void;
|
|
39
39
|
setSelection(clips: IClip[]): void;
|
|
40
40
|
deselectClip(): void;
|
|
41
|
+
move(dx: number, dy: number): Promise<void>;
|
|
41
42
|
clear(): void;
|
|
42
43
|
private recreateTransformer;
|
|
43
44
|
private destroyTransformer;
|
|
@@ -31,6 +31,14 @@ export declare class Transport {
|
|
|
31
31
|
* Seek to a specific time (in microseconds)
|
|
32
32
|
*/
|
|
33
33
|
seek(time: number): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Move to the next frame
|
|
36
|
+
*/
|
|
37
|
+
frameNext(): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Move to the previous frame
|
|
40
|
+
*/
|
|
41
|
+
framePrev(): Promise<void>;
|
|
34
42
|
private renderLoop;
|
|
35
43
|
isPlaybackCapable(clip: any): clip is IPlaybackCapable;
|
|
36
44
|
}
|
package/dist/studio.d.ts
CHANGED
|
@@ -178,6 +178,7 @@ export declare class Studio extends EventEmitter<StudioEvents> {
|
|
|
178
178
|
/**
|
|
179
179
|
* Update studio dimensions
|
|
180
180
|
*/
|
|
181
|
+
setSize(width: number, height: number): void;
|
|
181
182
|
updateDimensions(width: number, height: number): void;
|
|
182
183
|
private handleResize;
|
|
183
184
|
private updateArtboardLayout;
|
|
@@ -211,6 +212,26 @@ export declare class Studio extends EventEmitter<StudioEvents> {
|
|
|
211
212
|
*/
|
|
212
213
|
getClipById(id: string): IClip | undefined;
|
|
213
214
|
updateClip(id: string, updates: Partial<IClip>): Promise<void>;
|
|
215
|
+
/**
|
|
216
|
+
* Centers object vertically and horizontally in the studio
|
|
217
|
+
*/
|
|
218
|
+
centerClip(clipOrId: IClip | string): Promise<void>;
|
|
219
|
+
/**
|
|
220
|
+
* Centers object horizontally in the studio
|
|
221
|
+
*/
|
|
222
|
+
centerClipH(clipOrId: IClip | string): Promise<void>;
|
|
223
|
+
/**
|
|
224
|
+
* Centers object vertically in the studio
|
|
225
|
+
*/
|
|
226
|
+
centerClipV(clipOrId: IClip | string): Promise<void>;
|
|
227
|
+
/**
|
|
228
|
+
* Scale clip to fit within the studio dimensions while maintaining aspect ratio
|
|
229
|
+
*/
|
|
230
|
+
scaleToFit(clipOrId: IClip | string): Promise<void>;
|
|
231
|
+
/**
|
|
232
|
+
* Scale clip to fill the studio dimensions while maintaining aspect ratio
|
|
233
|
+
*/
|
|
234
|
+
scaleToCover(clipOrId: IClip | string): Promise<void>;
|
|
214
235
|
updateClips(updates: {
|
|
215
236
|
id: string;
|
|
216
237
|
updates: Partial<IClip>;
|
|
@@ -262,6 +283,14 @@ export declare class Studio extends EventEmitter<StudioEvents> {
|
|
|
262
283
|
* Seek to a specific time (in microseconds)
|
|
263
284
|
*/
|
|
264
285
|
seek(time: number): Promise<void>;
|
|
286
|
+
/**
|
|
287
|
+
* Move to the next frame
|
|
288
|
+
*/
|
|
289
|
+
frameNext(): Promise<void>;
|
|
290
|
+
/**
|
|
291
|
+
* Move to the previous frame
|
|
292
|
+
*/
|
|
293
|
+
framePrev(): Promise<void>;
|
|
265
294
|
/**
|
|
266
295
|
* Get current playback time (in microseconds)
|
|
267
296
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as p, U as Ne, T as ee, F as je, G as he, v as fe, M as P, l as C, d as pe, I as v, t as w, a8 as $, R as N, w as L, H as me, a5 as G, a6 as ge, c as F, B as T, D as j, S as M, y as D, af as qe, ag as q, L as Y, ah as U, s as Q, a0 as Qe, $ as X, n as xe, q as _e, aa as be, ad as ye, o as Je, p as Ze, ab as et, ac as tt, ae as rt, ai as nt, aj as st, ak as it, al as H, am as at, an as ot, m as ve, ao as te, ap as k, e as b, aq as ut } from "./index-
|
|
1
|
+
import { E as p, U as Ne, T as ee, F as je, G as he, v as fe, M as P, l as C, d as pe, I as v, t as w, a8 as $, R as N, w as L, H as me, a5 as G, a6 as ge, c as F, B as T, D as j, S as M, y as D, af as qe, ag as q, L as Y, ah as U, s as Q, a0 as Qe, $ as X, n as xe, q as _e, aa as be, ad as ye, o as Je, p as Ze, ab as et, ac as tt, ae as rt, ai as nt, aj as st, ak as it, al as H, am as at, an as ot, m as ve, ao as te, ap as k, e as b, aq as ut } from "./index-CmsRjoEr.js";
|
|
2
2
|
import { c as z, a as lt, b as ct, B as Te } from "./colorToUniform-C2jGzNe1.js";
|
|
3
3
|
class Pe {
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designcombo/video",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Video rendering and processing library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -21,10 +21,16 @@
|
|
|
21
21
|
"files": [
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
|
-
"main": "
|
|
25
|
-
"module": "
|
|
26
|
-
"types": "
|
|
27
|
-
|
|
24
|
+
"main": "dist/index.umd.js",
|
|
25
|
+
"module": "dist/index.es.js",
|
|
26
|
+
"types": "dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.es.js",
|
|
31
|
+
"require": "./dist/index.umd.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
28
34
|
"scripts": {
|
|
29
35
|
"dev": "vite",
|
|
30
36
|
"build": "tsc && vite build"
|
package/src/index.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export { fastConcatMP4, fixFMP4Duration, mixinMP4AndAudio } from './mp4-utils';
|
|
2
|
-
export { createChromakey } from './utils/chromakey';
|
|
3
|
-
export { renderTxt2ImgBitmap } from './utils/dom';
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
Audio,
|
|
7
|
-
Caption,
|
|
8
|
-
Image,
|
|
9
|
-
Video,
|
|
10
|
-
Text,
|
|
11
|
-
Effect,
|
|
12
|
-
Transition,
|
|
13
|
-
Placeholder,
|
|
14
|
-
} from './clips';
|
|
15
|
-
|
|
16
|
-
// Export types
|
|
17
|
-
export type { IClip, IMP4ClipOpts } from './clips';
|
|
18
|
-
|
|
19
|
-
// Constants
|
|
20
|
-
export { DEFAULT_AUDIO_CONF } from './clips/iclip';
|
|
21
|
-
|
|
22
|
-
// Keep MP4Clip as alias for backward compatibility
|
|
23
|
-
export { Video as MP4Clip } from './clips';
|
|
24
|
-
export { Compositor } from './compositor';
|
|
25
|
-
export type { ICompositorOpts } from './compositor';
|
|
26
|
-
export { Studio } from './studio';
|
|
27
|
-
export type { IStudioOpts } from './studio';
|
|
28
|
-
|
|
29
|
-
export { Log } from './utils/log';
|
|
30
|
-
export {
|
|
31
|
-
clipToJSON,
|
|
32
|
-
jsonToClip,
|
|
33
|
-
type ClipJSON,
|
|
34
|
-
type ProjectJSON,
|
|
35
|
-
} from './json-serialization';
|
|
36
|
-
|
|
37
|
-
export { fontManager } from './utils/fonts';
|
|
38
|
-
|
|
39
|
-
// Effects
|
|
40
|
-
export { makeEffect } from './effect/effect';
|
|
41
|
-
export type { EffectKey } from './effect/glsl/gl-effect';
|
|
42
|
-
export { GL_EFFECT_OPTIONS } from './effect/glsl/gl-effect';
|
|
43
|
-
|
|
44
|
-
// Transitions
|
|
45
|
-
export { makeTransition } from './transition/transition';
|
|
46
|
-
export type { TransitionKey } from './transition/glsl/gl-transition';
|
|
47
|
-
export { GL_TRANSITION_OPTIONS } from './transition/glsl/gl-transition';
|