@lappis/cg-manager 0.0.25 → 0.0.27
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/LICENSE +20 -20
- package/dist/basic.d.ts +22 -22
- package/dist/command.d.ts +48 -48
- package/dist/commands/add.d.ts +4 -4
- package/dist/commands/call.d.ts +9 -9
- package/dist/commands/cg.d.ts +20 -20
- package/dist/commands/clear.d.ts +5 -5
- package/dist/commands/load.d.ts +4 -4
- package/dist/commands/loadbg.d.ts +42 -42
- package/dist/commands/mixer.d.ts +89 -89
- package/dist/commands/pause.d.ts +4 -4
- package/dist/commands/play.d.ts +4 -4
- package/dist/commands/print.d.ts +4 -4
- package/dist/commands/remove.d.ts +4 -4
- package/dist/commands/resume.d.ts +4 -4
- package/dist/commands/stop.d.ts +4 -4
- package/dist/commands/swap.d.ts +15 -15
- package/dist/commands.d.ts +14 -14
- package/dist/effect.d.ts +47 -47
- package/dist/executor.d.ts +64 -64
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/layers.d.ts +66 -66
- package/dist/plugin.d.ts +54 -55
- package/dist/transform.d.ts +46 -46
- package/dist/types/caspar/executor.d.ts +11 -11
- package/dist/types/caspar/process.d.ts +14 -14
- package/dist/types/index.d.ts +4 -4
- package/dist/types/log.d.ts +19 -19
- package/dist/types/manager.d.ts +37 -37
- package/dist/types/plugin.d.ts +10 -10
- package/dist/types/routes.d.ts +46 -47
- package/dist/types/rundown.d.ts +27 -27
- package/dist/types/scanner/db.d.ts +74 -74
- package/dist/types/scanner/dir.d.ts +16 -16
- package/dist/types/scanner/scanner.d.ts +7 -7
- package/dist/types/server.d.ts +15 -15
- package/dist/types/ui.d.ts +21 -20
- package/package.json +49 -49
package/dist/commands.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { AddCommand } from './commands/add';
|
|
2
|
-
export { CallCommand } from './commands/call';
|
|
3
|
-
export { CgCommand } from './commands/cg';
|
|
4
|
-
export { ClearCommand } from './commands/clear';
|
|
5
|
-
export { LoadCommand } from './commands/load';
|
|
6
|
-
export { LoadBGCommand, PlayoutOptions } from './commands/loadbg';
|
|
7
|
-
export { MixerCommand } from './commands/mixer';
|
|
8
|
-
export { PauseCommand } from './commands/pause';
|
|
9
|
-
export { PlayCommand } from './commands/play';
|
|
10
|
-
export { PrintCommand } from './commands/print';
|
|
11
|
-
export { RemoveCommand } from './commands/remove';
|
|
12
|
-
export { ResumeCommand } from './commands/resume';
|
|
13
|
-
export { StopCommand } from './commands/stop';
|
|
14
|
-
export { SwapCommand } from './commands/swap';
|
|
1
|
+
export { AddCommand } from './commands/add';
|
|
2
|
+
export { CallCommand } from './commands/call';
|
|
3
|
+
export { CgCommand } from './commands/cg';
|
|
4
|
+
export { ClearCommand } from './commands/clear';
|
|
5
|
+
export { LoadCommand } from './commands/load';
|
|
6
|
+
export { LoadBGCommand, PlayoutOptions } from './commands/loadbg';
|
|
7
|
+
export { MixerCommand } from './commands/mixer';
|
|
8
|
+
export { PauseCommand } from './commands/pause';
|
|
9
|
+
export { PlayCommand } from './commands/play';
|
|
10
|
+
export { PrintCommand } from './commands/print';
|
|
11
|
+
export { RemoveCommand } from './commands/remove';
|
|
12
|
+
export { ResumeCommand } from './commands/resume';
|
|
13
|
+
export { StopCommand } from './commands/stop';
|
|
14
|
+
export { SwapCommand } from './commands/swap';
|
package/dist/effect.d.ts
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Transform } from './transform';
|
|
3
|
-
import { EffectGroup, Layer } from './layers';
|
|
4
|
-
import { Command } from './command';
|
|
5
|
-
import { EventEmitter } from 'events';
|
|
6
|
-
export declare abstract class Effect extends EventEmitter {
|
|
7
|
-
private _active;
|
|
8
|
-
private _disposed;
|
|
9
|
-
readonly id: string;
|
|
10
|
-
get active(): boolean;
|
|
11
|
-
protected transform: Transform;
|
|
12
|
-
getTransform(): Transform;
|
|
13
|
-
setTransform(transform: Transform): void;
|
|
14
|
-
protected applyTransform(): void;
|
|
15
|
-
protected effectGroup: EffectGroup;
|
|
16
|
-
get group(): EffectGroup;
|
|
17
|
-
get executor(): import("./executor").CommandExecutor;
|
|
18
|
-
protected constructor(effectGroup: EffectGroup);
|
|
19
|
-
activate(): any;
|
|
20
|
-
deactivate(): any;
|
|
21
|
-
dispose(): void;
|
|
22
|
-
protected layers: Layer[];
|
|
23
|
-
getLayers(): Layer[];
|
|
24
|
-
protected allocateLayers(count?: number): Layer[];
|
|
25
|
-
protected deallocateLayers(layers: Layer[]): void;
|
|
26
|
-
updatePositions(): Command[];
|
|
27
|
-
getName(): string;
|
|
28
|
-
getMetadata(): {};
|
|
29
|
-
toJSON(): {
|
|
30
|
-
id: string;
|
|
31
|
-
type: string;
|
|
32
|
-
active: boolean;
|
|
33
|
-
metadata: {};
|
|
34
|
-
layers: {
|
|
35
|
-
id: string;
|
|
36
|
-
effect: string;
|
|
37
|
-
}[];
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export type EffectConstructor = (group: EffectGroup, options: Record<string, any>) => Effect;
|
|
41
|
-
export declare class EffectRegistry {
|
|
42
|
-
private effects;
|
|
43
|
-
register(name: string, effect: EffectConstructor): void;
|
|
44
|
-
unregister(name: string): void;
|
|
45
|
-
get(name: string): EffectConstructor;
|
|
46
|
-
create(name: string, group: EffectGroup, options: Record<string, any>): Effect;
|
|
47
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Transform } from './transform';
|
|
3
|
+
import { EffectGroup, Layer } from './layers';
|
|
4
|
+
import { Command } from './command';
|
|
5
|
+
import { EventEmitter } from 'events';
|
|
6
|
+
export declare abstract class Effect extends EventEmitter {
|
|
7
|
+
private _active;
|
|
8
|
+
private _disposed;
|
|
9
|
+
readonly id: string;
|
|
10
|
+
get active(): boolean;
|
|
11
|
+
protected transform: Transform;
|
|
12
|
+
getTransform(): Transform;
|
|
13
|
+
setTransform(transform: Transform): void;
|
|
14
|
+
protected applyTransform(): void;
|
|
15
|
+
protected effectGroup: EffectGroup;
|
|
16
|
+
get group(): EffectGroup;
|
|
17
|
+
get executor(): import("./executor").CommandExecutor;
|
|
18
|
+
protected constructor(effectGroup: EffectGroup);
|
|
19
|
+
activate(): any;
|
|
20
|
+
deactivate(): any;
|
|
21
|
+
dispose(): void;
|
|
22
|
+
protected layers: Layer[];
|
|
23
|
+
getLayers(): Layer[];
|
|
24
|
+
protected allocateLayers(count?: number): Layer[];
|
|
25
|
+
protected deallocateLayers(layers: Layer[]): void;
|
|
26
|
+
updatePositions(): Command[];
|
|
27
|
+
getName(): string;
|
|
28
|
+
getMetadata(): {};
|
|
29
|
+
toJSON(): {
|
|
30
|
+
id: string;
|
|
31
|
+
type: string;
|
|
32
|
+
active: boolean;
|
|
33
|
+
metadata: {};
|
|
34
|
+
layers: {
|
|
35
|
+
id: string;
|
|
36
|
+
effect: string;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export type EffectConstructor = (group: EffectGroup, options: Record<string, any>) => Effect;
|
|
41
|
+
export declare class EffectRegistry {
|
|
42
|
+
private effects;
|
|
43
|
+
register(name: string, effect: EffectConstructor): void;
|
|
44
|
+
unregister(name: string): void;
|
|
45
|
+
get(name: string): EffectConstructor;
|
|
46
|
+
create(name: string, group: EffectGroup, options: Record<string, any>): Effect;
|
|
47
|
+
}
|
package/dist/executor.d.ts
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { Channel } from './layers';
|
|
2
|
-
import { Command } from './command';
|
|
3
|
-
import { Effect } from './effect';
|
|
4
|
-
export interface TemplateInfo {
|
|
5
|
-
id: string;
|
|
6
|
-
path: string;
|
|
7
|
-
type: string;
|
|
8
|
-
gdd?: any;
|
|
9
|
-
error?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface CommandListener {
|
|
12
|
-
command: string;
|
|
13
|
-
success: (data: string[], code: number) => void;
|
|
14
|
-
error: (data: string[], code: number) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare class CommandExecutor {
|
|
17
|
-
protected templates: TemplateInfo[];
|
|
18
|
-
private lastFetch;
|
|
19
|
-
private fetchPromise;
|
|
20
|
-
get connected(): boolean;
|
|
21
|
-
protected _fetchTemplates(): Promise<any[]>;
|
|
22
|
-
protected fetchTemplates(): Promise<TemplateInfo[]>;
|
|
23
|
-
getTemplates(force?: boolean): Promise<TemplateInfo[]>;
|
|
24
|
-
resolveTemplates(): TemplateInfo[];
|
|
25
|
-
promise(command: string): Promise<{
|
|
26
|
-
data: string[];
|
|
27
|
-
code: number;
|
|
28
|
-
}>;
|
|
29
|
-
/** @description NOTE: only use this function when you are certain that the server won't respond */
|
|
30
|
-
executePassive(command: Command): void;
|
|
31
|
-
execute(command: Command): Promise<{
|
|
32
|
-
data: string[];
|
|
33
|
-
code: number;
|
|
34
|
-
}[]>;
|
|
35
|
-
channels: Map<number, Channel>;
|
|
36
|
-
getChannel(casparChannel: number): Channel;
|
|
37
|
-
getChannels(): Channel[];
|
|
38
|
-
allocateChannel(casparChannel: number): Channel;
|
|
39
|
-
executeAllocations(): void;
|
|
40
|
-
protected send(data: string): void;
|
|
41
|
-
private readData;
|
|
42
|
-
protected receive(data: string): string;
|
|
43
|
-
protected listeners: CommandListener[];
|
|
44
|
-
protected addListener(listener: CommandListener): void;
|
|
45
|
-
protected removeListener(listener: CommandListener): void;
|
|
46
|
-
protected executeListeners(code: number, cmd: string, data: string[]): void;
|
|
47
|
-
protected onEvent(code: number, cmd: string, data: string[]): void;
|
|
48
|
-
protected effects: Map<string, Effect>;
|
|
49
|
-
getEffects(): Effect[];
|
|
50
|
-
getEffect(effect: string): Effect;
|
|
51
|
-
toJSON(): {
|
|
52
|
-
channels: {
|
|
53
|
-
channel: number;
|
|
54
|
-
layers: {
|
|
55
|
-
id: string;
|
|
56
|
-
effect: string;
|
|
57
|
-
}[];
|
|
58
|
-
groups: {
|
|
59
|
-
name: string;
|
|
60
|
-
effects: string[];
|
|
61
|
-
}[];
|
|
62
|
-
}[];
|
|
63
|
-
};
|
|
64
|
-
}
|
|
1
|
+
import { Channel } from './layers';
|
|
2
|
+
import { Command } from './command';
|
|
3
|
+
import { Effect } from './effect';
|
|
4
|
+
export interface TemplateInfo {
|
|
5
|
+
id: string;
|
|
6
|
+
path: string;
|
|
7
|
+
type: string;
|
|
8
|
+
gdd?: any;
|
|
9
|
+
error?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CommandListener {
|
|
12
|
+
command: string;
|
|
13
|
+
success: (data: string[], code: number) => void;
|
|
14
|
+
error: (data: string[], code: number) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare class CommandExecutor {
|
|
17
|
+
protected templates: TemplateInfo[];
|
|
18
|
+
private lastFetch;
|
|
19
|
+
private fetchPromise;
|
|
20
|
+
get connected(): boolean;
|
|
21
|
+
protected _fetchTemplates(): Promise<any[]>;
|
|
22
|
+
protected fetchTemplates(): Promise<TemplateInfo[]>;
|
|
23
|
+
getTemplates(force?: boolean): Promise<TemplateInfo[]>;
|
|
24
|
+
resolveTemplates(): TemplateInfo[];
|
|
25
|
+
promise(command: string): Promise<{
|
|
26
|
+
data: string[];
|
|
27
|
+
code: number;
|
|
28
|
+
}>;
|
|
29
|
+
/** @description NOTE: only use this function when you are certain that the server won't respond */
|
|
30
|
+
executePassive(command: Command): void;
|
|
31
|
+
execute(command: Command): Promise<{
|
|
32
|
+
data: string[];
|
|
33
|
+
code: number;
|
|
34
|
+
}[]>;
|
|
35
|
+
channels: Map<number, Channel>;
|
|
36
|
+
getChannel(casparChannel: number): Channel;
|
|
37
|
+
getChannels(): Channel[];
|
|
38
|
+
allocateChannel(casparChannel: number): Channel;
|
|
39
|
+
executeAllocations(): void;
|
|
40
|
+
protected send(data: string): void;
|
|
41
|
+
private readData;
|
|
42
|
+
protected receive(data: string): string;
|
|
43
|
+
protected listeners: CommandListener[];
|
|
44
|
+
protected addListener(listener: CommandListener): void;
|
|
45
|
+
protected removeListener(listener: CommandListener): void;
|
|
46
|
+
protected executeListeners(code: number, cmd: string, data: string[]): void;
|
|
47
|
+
protected onEvent(code: number, cmd: string, data: string[]): void;
|
|
48
|
+
protected effects: Map<string, Effect>;
|
|
49
|
+
getEffects(): Effect[];
|
|
50
|
+
getEffect(effect: string): Effect;
|
|
51
|
+
toJSON(): {
|
|
52
|
+
channels: {
|
|
53
|
+
channel: number;
|
|
54
|
+
layers: {
|
|
55
|
+
id: string;
|
|
56
|
+
effect: string;
|
|
57
|
+
}[];
|
|
58
|
+
groups: {
|
|
59
|
+
name: string;
|
|
60
|
+
effects: string[];
|
|
61
|
+
}[];
|
|
62
|
+
}[];
|
|
63
|
+
};
|
|
64
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export * from './basic';
|
|
3
|
-
export * from './command';
|
|
4
|
-
export * from './commands';
|
|
5
|
-
export * from './effect';
|
|
6
|
-
export * from './executor';
|
|
7
|
-
export * from './layers';
|
|
8
|
-
export * from './plugin';
|
|
9
|
-
export * from './transform';
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './basic';
|
|
3
|
+
export * from './command';
|
|
4
|
+
export * from './commands';
|
|
5
|
+
export * from './effect';
|
|
6
|
+
export * from './executor';
|
|
7
|
+
export * from './layers';
|
|
8
|
+
export * from './plugin';
|
|
9
|
+
export * from './transform';
|