@lappis/cg-manager 0.0.26 → 0.0.28
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 +22 -21
- package/package.json +49 -49
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Lapplandsveckan
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Lapplandsveckan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/dist/basic.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Allocation } from './command';
|
|
2
|
-
export declare class BasicChannel {
|
|
3
|
-
protected readonly casparChannel: number;
|
|
4
|
-
constructor(casparChannel: number);
|
|
5
|
-
getCasparChannel(): number;
|
|
6
|
-
getCommandString(): string;
|
|
7
|
-
}
|
|
8
|
-
export declare class BasicLayer {
|
|
9
|
-
protected channel: BasicChannel;
|
|
10
|
-
protected casparLayer: number;
|
|
11
|
-
constructor(channel: BasicChannel);
|
|
12
|
-
static caspar(channel: BasicLayer): any;
|
|
13
|
-
static caspar(channel: BasicChannel, layer?: number): any;
|
|
14
|
-
static caspar(channel: number, layer?: number): any;
|
|
15
|
-
static from(channel: Allocation, layer?: number): BasicChannel | BasicLayer;
|
|
16
|
-
protected setChannel(channel: BasicChannel): void;
|
|
17
|
-
protected setCasparLayer(layer: number): void;
|
|
18
|
-
protected onMove(): void;
|
|
19
|
-
getCasparLayer(): number;
|
|
20
|
-
getCasparChannel(): number;
|
|
21
|
-
getCommandString(): string;
|
|
22
|
-
}
|
|
1
|
+
import { Allocation } from './command';
|
|
2
|
+
export declare class BasicChannel {
|
|
3
|
+
protected readonly casparChannel: number;
|
|
4
|
+
constructor(casparChannel: number);
|
|
5
|
+
getCasparChannel(): number;
|
|
6
|
+
getCommandString(): string;
|
|
7
|
+
}
|
|
8
|
+
export declare class BasicLayer {
|
|
9
|
+
protected channel: BasicChannel;
|
|
10
|
+
protected casparLayer: number;
|
|
11
|
+
constructor(channel: BasicChannel);
|
|
12
|
+
static caspar(channel: BasicLayer): any;
|
|
13
|
+
static caspar(channel: BasicChannel, layer?: number): any;
|
|
14
|
+
static caspar(channel: number, layer?: number): any;
|
|
15
|
+
static from(channel: Allocation, layer?: number): BasicChannel | BasicLayer;
|
|
16
|
+
protected setChannel(channel: BasicChannel): void;
|
|
17
|
+
protected setCasparLayer(layer: number): void;
|
|
18
|
+
protected onMove(): void;
|
|
19
|
+
getCasparLayer(): number;
|
|
20
|
+
getCasparChannel(): number;
|
|
21
|
+
getCommandString(): string;
|
|
22
|
+
}
|
package/dist/command.d.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { BasicChannel, BasicLayer } from './basic';
|
|
2
|
-
export declare abstract class Command {
|
|
3
|
-
abstract getCommand(): string | undefined | void;
|
|
4
|
-
}
|
|
5
|
-
export type ChannelResolvable = BasicChannel | number;
|
|
6
|
-
export type Allocation = BasicLayer | ChannelResolvable;
|
|
7
|
-
export declare abstract class BasicCommand {
|
|
8
|
-
protected abstract getCommandType(): string;
|
|
9
|
-
protected abstract getArguments(): string[];
|
|
10
|
-
private static create;
|
|
11
|
-
private static parseQuotes;
|
|
12
|
-
private static parseArguments;
|
|
13
|
-
static from(command: string): ReturnType<typeof BasicCommand.create>;
|
|
14
|
-
static interpret(command: string): ReturnType<typeof BasicCommand.create>[];
|
|
15
|
-
protected compileArgs(): string;
|
|
16
|
-
getCommand(): string;
|
|
17
|
-
}
|
|
18
|
-
export declare abstract class LayeredCommand extends BasicCommand {
|
|
19
|
-
protected allocation?: BasicLayer | BasicChannel;
|
|
20
|
-
constructor(allocation?: BasicLayer | BasicChannel);
|
|
21
|
-
allocate(channel: Allocation): any;
|
|
22
|
-
allocate(channel: ChannelResolvable, layer: number): any;
|
|
23
|
-
protected isChannel(): boolean;
|
|
24
|
-
protected isLayer(): boolean;
|
|
25
|
-
protected getPosition(): string;
|
|
26
|
-
}
|
|
27
|
-
export declare abstract class SimpleCommand extends LayeredCommand {
|
|
28
|
-
protected getArguments(): string[];
|
|
29
|
-
}
|
|
30
|
-
export declare abstract class SimpleArgsCommand extends SimpleCommand {
|
|
31
|
-
protected args: string[];
|
|
32
|
-
constructor(...args: string[]);
|
|
33
|
-
setArgs(...args: string[]): this;
|
|
34
|
-
protected getArguments(): string[];
|
|
35
|
-
}
|
|
36
|
-
export declare class CommandGroup extends Command {
|
|
37
|
-
protected readonly commands: Command[];
|
|
38
|
-
protected allocation?: BasicLayer | BasicChannel;
|
|
39
|
-
constructor(commands: Command[]);
|
|
40
|
-
allocate(channel: Allocation): any;
|
|
41
|
-
allocate(channel: ChannelResolvable, layer: number): any;
|
|
42
|
-
getCommand(): string;
|
|
43
|
-
}
|
|
44
|
-
export declare class RawCommand extends Command {
|
|
45
|
-
private readonly command;
|
|
46
|
-
constructor(command: string);
|
|
47
|
-
getCommand(): string;
|
|
48
|
-
}
|
|
1
|
+
import { BasicChannel, BasicLayer } from './basic';
|
|
2
|
+
export declare abstract class Command {
|
|
3
|
+
abstract getCommand(): string | undefined | void;
|
|
4
|
+
}
|
|
5
|
+
export type ChannelResolvable = BasicChannel | number;
|
|
6
|
+
export type Allocation = BasicLayer | ChannelResolvable;
|
|
7
|
+
export declare abstract class BasicCommand {
|
|
8
|
+
protected abstract getCommandType(): string;
|
|
9
|
+
protected abstract getArguments(): string[];
|
|
10
|
+
private static create;
|
|
11
|
+
private static parseQuotes;
|
|
12
|
+
private static parseArguments;
|
|
13
|
+
static from(command: string): ReturnType<typeof BasicCommand.create>;
|
|
14
|
+
static interpret(command: string): ReturnType<typeof BasicCommand.create>[];
|
|
15
|
+
protected compileArgs(): string;
|
|
16
|
+
getCommand(): string;
|
|
17
|
+
}
|
|
18
|
+
export declare abstract class LayeredCommand extends BasicCommand {
|
|
19
|
+
protected allocation?: BasicLayer | BasicChannel;
|
|
20
|
+
constructor(allocation?: BasicLayer | BasicChannel);
|
|
21
|
+
allocate(channel: Allocation): any;
|
|
22
|
+
allocate(channel: ChannelResolvable, layer: number): any;
|
|
23
|
+
protected isChannel(): boolean;
|
|
24
|
+
protected isLayer(): boolean;
|
|
25
|
+
protected getPosition(): string;
|
|
26
|
+
}
|
|
27
|
+
export declare abstract class SimpleCommand extends LayeredCommand {
|
|
28
|
+
protected getArguments(): string[];
|
|
29
|
+
}
|
|
30
|
+
export declare abstract class SimpleArgsCommand extends SimpleCommand {
|
|
31
|
+
protected args: string[];
|
|
32
|
+
constructor(...args: string[]);
|
|
33
|
+
setArgs(...args: string[]): this;
|
|
34
|
+
protected getArguments(): string[];
|
|
35
|
+
}
|
|
36
|
+
export declare class CommandGroup extends Command {
|
|
37
|
+
protected readonly commands: Command[];
|
|
38
|
+
protected allocation?: BasicLayer | BasicChannel;
|
|
39
|
+
constructor(commands: Command[]);
|
|
40
|
+
allocate(channel: Allocation): any;
|
|
41
|
+
allocate(channel: ChannelResolvable, layer: number): any;
|
|
42
|
+
getCommand(): string;
|
|
43
|
+
}
|
|
44
|
+
export declare class RawCommand extends Command {
|
|
45
|
+
private readonly command;
|
|
46
|
+
constructor(command: string);
|
|
47
|
+
getCommand(): string;
|
|
48
|
+
}
|
package/dist/commands/add.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleArgsCommand } from '../command';
|
|
2
|
-
export declare class AddCommand extends SimpleArgsCommand {
|
|
3
|
-
protected getCommandType(): string;
|
|
4
|
-
}
|
|
1
|
+
import { SimpleArgsCommand } from '../command';
|
|
2
|
+
export declare class AddCommand extends SimpleArgsCommand {
|
|
3
|
+
protected getCommandType(): string;
|
|
4
|
+
}
|
package/dist/commands/call.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LayeredCommand } from '../command';
|
|
2
|
-
export declare class CallCommand extends LayeredCommand {
|
|
3
|
-
private method;
|
|
4
|
-
constructor(method?: string);
|
|
5
|
-
static call(method: string): CallCommand;
|
|
6
|
-
setMethod(method: string): this;
|
|
7
|
-
protected getCommandType(): string;
|
|
8
|
-
protected getArguments(): string[];
|
|
9
|
-
}
|
|
1
|
+
import { LayeredCommand } from '../command';
|
|
2
|
+
export declare class CallCommand extends LayeredCommand {
|
|
3
|
+
private method;
|
|
4
|
+
constructor(method?: string);
|
|
5
|
+
static call(method: string): CallCommand;
|
|
6
|
+
setMethod(method: string): this;
|
|
7
|
+
protected getCommandType(): string;
|
|
8
|
+
protected getArguments(): string[];
|
|
9
|
+
}
|
package/dist/commands/cg.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { LayeredCommand } from '../command';
|
|
2
|
-
export declare class CgCommand extends LayeredCommand {
|
|
3
|
-
private cmd;
|
|
4
|
-
private cgLayer?;
|
|
5
|
-
private arguments;
|
|
6
|
-
constructor();
|
|
7
|
-
setLayer(layer: number): this;
|
|
8
|
-
private static single;
|
|
9
|
-
static add(templateName: string, playOnLoad?: boolean, data?: any): CgCommand;
|
|
10
|
-
static play(): CgCommand;
|
|
11
|
-
static stop(): CgCommand;
|
|
12
|
-
static next(): CgCommand;
|
|
13
|
-
static remove(): CgCommand;
|
|
14
|
-
static clear(): CgCommand;
|
|
15
|
-
static update(data: any): CgCommand;
|
|
16
|
-
static invoke(method: string): CgCommand;
|
|
17
|
-
static info(): CgCommand;
|
|
18
|
-
getCommandType(): string;
|
|
19
|
-
getArguments(): string[];
|
|
20
|
-
}
|
|
1
|
+
import { LayeredCommand } from '../command';
|
|
2
|
+
export declare class CgCommand extends LayeredCommand {
|
|
3
|
+
private cmd;
|
|
4
|
+
private cgLayer?;
|
|
5
|
+
private arguments;
|
|
6
|
+
constructor();
|
|
7
|
+
setLayer(layer: number): this;
|
|
8
|
+
private static single;
|
|
9
|
+
static add(templateName: string, playOnLoad?: boolean, data?: any): CgCommand;
|
|
10
|
+
static play(): CgCommand;
|
|
11
|
+
static stop(): CgCommand;
|
|
12
|
+
static next(): CgCommand;
|
|
13
|
+
static remove(): CgCommand;
|
|
14
|
+
static clear(): CgCommand;
|
|
15
|
+
static update(data: any): CgCommand;
|
|
16
|
+
static invoke(method: string): CgCommand;
|
|
17
|
+
static info(): CgCommand;
|
|
18
|
+
getCommandType(): string;
|
|
19
|
+
getArguments(): string[];
|
|
20
|
+
}
|
package/dist/commands/clear.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RawCommand, SimpleCommand } from '../command';
|
|
2
|
-
export declare class ClearCommand extends SimpleCommand {
|
|
3
|
-
protected getCommandType(): string;
|
|
4
|
-
static all(): RawCommand;
|
|
5
|
-
}
|
|
1
|
+
import { RawCommand, SimpleCommand } from '../command';
|
|
2
|
+
export declare class ClearCommand extends SimpleCommand {
|
|
3
|
+
protected getCommandType(): string;
|
|
4
|
+
static all(): RawCommand;
|
|
5
|
+
}
|
package/dist/commands/load.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LoadBGCommand } from './loadbg';
|
|
2
|
-
export declare class LoadCommand extends LoadBGCommand {
|
|
3
|
-
protected getCommandType(): string;
|
|
4
|
-
}
|
|
1
|
+
import { LoadBGCommand } from './loadbg';
|
|
2
|
+
export declare class LoadCommand extends LoadBGCommand {
|
|
3
|
+
protected getCommandType(): string;
|
|
4
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { LayeredCommand } from '../command';
|
|
2
|
-
import { BasicChannel, BasicLayer } from '../basic';
|
|
3
|
-
export declare enum Transition {
|
|
4
|
-
CUT = "CUT",
|
|
5
|
-
MIX = "MIX",
|
|
6
|
-
SLIDE = "SLIDE"
|
|
7
|
-
}
|
|
8
|
-
export declare enum Tween {
|
|
9
|
-
Linear = "Linear"
|
|
10
|
-
}
|
|
11
|
-
export declare enum Direction {
|
|
12
|
-
LEFT = "LEFT",
|
|
13
|
-
RIGHT = "RIGHT"
|
|
14
|
-
}
|
|
15
|
-
export interface PlayoutOptions {
|
|
16
|
-
duration?: number;
|
|
17
|
-
transition?: Transition;
|
|
18
|
-
tween?: Tween;
|
|
19
|
-
direction?: Direction;
|
|
20
|
-
seek?: number;
|
|
21
|
-
length?: number;
|
|
22
|
-
filter?: string;
|
|
23
|
-
loop?: boolean;
|
|
24
|
-
auto?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare class Color {
|
|
27
|
-
static RGBA(r: number, g: number, b: number, a?: number): string;
|
|
28
|
-
}
|
|
29
|
-
export declare class Video {
|
|
30
|
-
static getVideoArguments(options?: PlayoutOptions): string[];
|
|
31
|
-
}
|
|
32
|
-
export declare class LoadBGCommand extends LayeredCommand {
|
|
33
|
-
private arguments;
|
|
34
|
-
protected getCommandType(): string;
|
|
35
|
-
protected getArguments(): string[];
|
|
36
|
-
constructor();
|
|
37
|
-
private setArguments;
|
|
38
|
-
static video(video: string, options?: PlayoutOptions): LoadBGCommand;
|
|
39
|
-
static decklink(device: number, format: string): LoadBGCommand;
|
|
40
|
-
static route(source: BasicLayer | BasicChannel): LoadBGCommand;
|
|
41
|
-
static color(color: string): LoadBGCommand;
|
|
42
|
-
}
|
|
1
|
+
import { LayeredCommand } from '../command';
|
|
2
|
+
import { BasicChannel, BasicLayer } from '../basic';
|
|
3
|
+
export declare enum Transition {
|
|
4
|
+
CUT = "CUT",
|
|
5
|
+
MIX = "MIX",
|
|
6
|
+
SLIDE = "SLIDE"
|
|
7
|
+
}
|
|
8
|
+
export declare enum Tween {
|
|
9
|
+
Linear = "Linear"
|
|
10
|
+
}
|
|
11
|
+
export declare enum Direction {
|
|
12
|
+
LEFT = "LEFT",
|
|
13
|
+
RIGHT = "RIGHT"
|
|
14
|
+
}
|
|
15
|
+
export interface PlayoutOptions {
|
|
16
|
+
duration?: number;
|
|
17
|
+
transition?: Transition;
|
|
18
|
+
tween?: Tween;
|
|
19
|
+
direction?: Direction;
|
|
20
|
+
seek?: number;
|
|
21
|
+
length?: number;
|
|
22
|
+
filter?: string;
|
|
23
|
+
loop?: boolean;
|
|
24
|
+
auto?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare class Color {
|
|
27
|
+
static RGBA(r: number, g: number, b: number, a?: number): string;
|
|
28
|
+
}
|
|
29
|
+
export declare class Video {
|
|
30
|
+
static getVideoArguments(options?: PlayoutOptions): string[];
|
|
31
|
+
}
|
|
32
|
+
export declare class LoadBGCommand extends LayeredCommand {
|
|
33
|
+
private arguments;
|
|
34
|
+
protected getCommandType(): string;
|
|
35
|
+
protected getArguments(): string[];
|
|
36
|
+
constructor();
|
|
37
|
+
private setArguments;
|
|
38
|
+
static video(video: string, options?: PlayoutOptions): LoadBGCommand;
|
|
39
|
+
static decklink(device: number, format: string): LoadBGCommand;
|
|
40
|
+
static route(source: BasicLayer | BasicChannel): LoadBGCommand;
|
|
41
|
+
static color(color: string): LoadBGCommand;
|
|
42
|
+
}
|
package/dist/commands/mixer.d.ts
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import { CommandGroup } from '../command';
|
|
2
|
-
interface ChromaEnabled {
|
|
3
|
-
enabled: true;
|
|
4
|
-
target_hue: number;
|
|
5
|
-
hue_width: number;
|
|
6
|
-
min_saturation: number;
|
|
7
|
-
min_brightness: number;
|
|
8
|
-
softness: number;
|
|
9
|
-
spill_suppress: number;
|
|
10
|
-
spill_suppress_saturation: number;
|
|
11
|
-
show_mask: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface ChromaDisabled {
|
|
14
|
-
enabled: false;
|
|
15
|
-
}
|
|
16
|
-
type Chrome = ChromaEnabled | ChromaDisabled;
|
|
17
|
-
interface Levels {
|
|
18
|
-
min_input: number;
|
|
19
|
-
max_input: number;
|
|
20
|
-
gamma: number;
|
|
21
|
-
min_output: number;
|
|
22
|
-
max_output: number;
|
|
23
|
-
}
|
|
24
|
-
interface Fill {
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
x_scale: number;
|
|
28
|
-
y_scale: number;
|
|
29
|
-
}
|
|
30
|
-
interface Clip {
|
|
31
|
-
x: number;
|
|
32
|
-
y: number;
|
|
33
|
-
width: number;
|
|
34
|
-
height: number;
|
|
35
|
-
}
|
|
36
|
-
interface Anchor {
|
|
37
|
-
x: number;
|
|
38
|
-
y: number;
|
|
39
|
-
}
|
|
40
|
-
interface Crop {
|
|
41
|
-
left_edge: number;
|
|
42
|
-
top_edge: number;
|
|
43
|
-
right_edge: number;
|
|
44
|
-
bottom_edge: number;
|
|
45
|
-
}
|
|
46
|
-
interface Perspective {
|
|
47
|
-
top_left: Anchor;
|
|
48
|
-
top_right: Anchor;
|
|
49
|
-
bottom_right: Anchor;
|
|
50
|
-
bottom_left: Anchor;
|
|
51
|
-
}
|
|
52
|
-
export type Tween = {
|
|
53
|
-
type?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
54
|
-
duration: number;
|
|
55
|
-
} | number;
|
|
56
|
-
export interface EdgeBlendOptions {
|
|
57
|
-
edgeblend: [number, number, number, number];
|
|
58
|
-
g?: number;
|
|
59
|
-
p?: number;
|
|
60
|
-
a?: number;
|
|
61
|
-
}
|
|
62
|
-
export declare class MixerCommand extends CommandGroup {
|
|
63
|
-
constructor(shouldClear?: boolean);
|
|
64
|
-
protected single(command: string, args?: string[], tween?: Tween): this;
|
|
65
|
-
static create(): MixerCommand;
|
|
66
|
-
static clear(): MixerCommand;
|
|
67
|
-
keyer(keyer: number): this;
|
|
68
|
-
chroma(chroma: Chrome, tween?: Tween): this;
|
|
69
|
-
blend(blend: string): this;
|
|
70
|
-
invert(invert: boolean): this;
|
|
71
|
-
opacity(opacity: number, tween?: Tween): this;
|
|
72
|
-
brightness(brightness: number, tween?: Tween): this;
|
|
73
|
-
saturation(saturation: number, tween?: Tween): this;
|
|
74
|
-
contrast(contrast: number, tween?: Tween): this;
|
|
75
|
-
levels(levels: Levels, tween?: Tween): this;
|
|
76
|
-
fill(fill: Fill, tween?: Tween): this;
|
|
77
|
-
clip(clip: Clip, tween?: Tween): this;
|
|
78
|
-
anchor(anchor: Anchor, tween?: Tween): this;
|
|
79
|
-
crop(crop: Crop, tween?: Tween): this;
|
|
80
|
-
rotation(angle: number, tween?: Tween): this;
|
|
81
|
-
perspective(perspective: Perspective, tween?: Tween): this;
|
|
82
|
-
mipmap(mipmap: boolean): this;
|
|
83
|
-
volume(volume: number, tween?: Tween): this;
|
|
84
|
-
mastervolume(volume: number): this;
|
|
85
|
-
straightAlphaOutput(enabled: boolean): this;
|
|
86
|
-
edgeblend(edgeblend: EdgeBlendOptions): this;
|
|
87
|
-
clear(): this;
|
|
88
|
-
}
|
|
89
|
-
export {};
|
|
1
|
+
import { CommandGroup } from '../command';
|
|
2
|
+
interface ChromaEnabled {
|
|
3
|
+
enabled: true;
|
|
4
|
+
target_hue: number;
|
|
5
|
+
hue_width: number;
|
|
6
|
+
min_saturation: number;
|
|
7
|
+
min_brightness: number;
|
|
8
|
+
softness: number;
|
|
9
|
+
spill_suppress: number;
|
|
10
|
+
spill_suppress_saturation: number;
|
|
11
|
+
show_mask: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface ChromaDisabled {
|
|
14
|
+
enabled: false;
|
|
15
|
+
}
|
|
16
|
+
type Chrome = ChromaEnabled | ChromaDisabled;
|
|
17
|
+
interface Levels {
|
|
18
|
+
min_input: number;
|
|
19
|
+
max_input: number;
|
|
20
|
+
gamma: number;
|
|
21
|
+
min_output: number;
|
|
22
|
+
max_output: number;
|
|
23
|
+
}
|
|
24
|
+
interface Fill {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
x_scale: number;
|
|
28
|
+
y_scale: number;
|
|
29
|
+
}
|
|
30
|
+
interface Clip {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
}
|
|
36
|
+
interface Anchor {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
}
|
|
40
|
+
interface Crop {
|
|
41
|
+
left_edge: number;
|
|
42
|
+
top_edge: number;
|
|
43
|
+
right_edge: number;
|
|
44
|
+
bottom_edge: number;
|
|
45
|
+
}
|
|
46
|
+
interface Perspective {
|
|
47
|
+
top_left: Anchor;
|
|
48
|
+
top_right: Anchor;
|
|
49
|
+
bottom_right: Anchor;
|
|
50
|
+
bottom_left: Anchor;
|
|
51
|
+
}
|
|
52
|
+
export type Tween = {
|
|
53
|
+
type?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
54
|
+
duration: number;
|
|
55
|
+
} | number;
|
|
56
|
+
export interface EdgeBlendOptions {
|
|
57
|
+
edgeblend: [number, number, number, number];
|
|
58
|
+
g?: number;
|
|
59
|
+
p?: number;
|
|
60
|
+
a?: number;
|
|
61
|
+
}
|
|
62
|
+
export declare class MixerCommand extends CommandGroup {
|
|
63
|
+
constructor(shouldClear?: boolean);
|
|
64
|
+
protected single(command: string, args?: string[], tween?: Tween): this;
|
|
65
|
+
static create(): MixerCommand;
|
|
66
|
+
static clear(): MixerCommand;
|
|
67
|
+
keyer(keyer: number): this;
|
|
68
|
+
chroma(chroma: Chrome, tween?: Tween): this;
|
|
69
|
+
blend(blend: string): this;
|
|
70
|
+
invert(invert: boolean): this;
|
|
71
|
+
opacity(opacity: number, tween?: Tween): this;
|
|
72
|
+
brightness(brightness: number, tween?: Tween): this;
|
|
73
|
+
saturation(saturation: number, tween?: Tween): this;
|
|
74
|
+
contrast(contrast: number, tween?: Tween): this;
|
|
75
|
+
levels(levels: Levels, tween?: Tween): this;
|
|
76
|
+
fill(fill: Fill, tween?: Tween): this;
|
|
77
|
+
clip(clip: Clip, tween?: Tween): this;
|
|
78
|
+
anchor(anchor: Anchor, tween?: Tween): this;
|
|
79
|
+
crop(crop: Crop, tween?: Tween): this;
|
|
80
|
+
rotation(angle: number, tween?: Tween): this;
|
|
81
|
+
perspective(perspective: Perspective, tween?: Tween): this;
|
|
82
|
+
mipmap(mipmap: boolean): this;
|
|
83
|
+
volume(volume: number, tween?: Tween): this;
|
|
84
|
+
mastervolume(volume: number): this;
|
|
85
|
+
straightAlphaOutput(enabled: boolean): this;
|
|
86
|
+
edgeblend(edgeblend: EdgeBlendOptions): this;
|
|
87
|
+
clear(): this;
|
|
88
|
+
}
|
|
89
|
+
export {};
|
package/dist/commands/pause.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleCommand } from '../command';
|
|
2
|
-
export declare class PauseCommand extends SimpleCommand {
|
|
3
|
-
protected getCommandType(): string;
|
|
4
|
-
}
|
|
1
|
+
import { SimpleCommand } from '../command';
|
|
2
|
+
export declare class PauseCommand extends SimpleCommand {
|
|
3
|
+
protected getCommandType(): string;
|
|
4
|
+
}
|
package/dist/commands/play.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LoadBGCommand } from './loadbg';
|
|
2
|
-
export declare class PlayCommand extends LoadBGCommand {
|
|
3
|
-
protected getCommandType(): string;
|
|
4
|
-
}
|
|
1
|
+
import { LoadBGCommand } from './loadbg';
|
|
2
|
+
export declare class PlayCommand extends LoadBGCommand {
|
|
3
|
+
protected getCommandType(): string;
|
|
4
|
+
}
|
package/dist/commands/print.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleCommand } from '../command';
|
|
2
|
-
export declare class PrintCommand extends SimpleCommand {
|
|
3
|
-
protected getCommandType(): string;
|
|
4
|
-
}
|
|
1
|
+
import { SimpleCommand } from '../command';
|
|
2
|
+
export declare class PrintCommand extends SimpleCommand {
|
|
3
|
+
protected getCommandType(): string;
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleArgsCommand } from '../command';
|
|
2
|
-
export declare class RemoveCommand extends SimpleArgsCommand {
|
|
3
|
-
protected getCommandType(): string;
|
|
4
|
-
}
|
|
1
|
+
import { SimpleArgsCommand } from '../command';
|
|
2
|
+
export declare class RemoveCommand extends SimpleArgsCommand {
|
|
3
|
+
protected getCommandType(): string;
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleCommand } from '../command';
|
|
2
|
-
export declare class ResumeCommand extends SimpleCommand {
|
|
3
|
-
protected getCommandType(): string;
|
|
4
|
-
}
|
|
1
|
+
import { SimpleCommand } from '../command';
|
|
2
|
+
export declare class ResumeCommand extends SimpleCommand {
|
|
3
|
+
protected getCommandType(): string;
|
|
4
|
+
}
|
package/dist/commands/stop.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleCommand } from '../command';
|
|
2
|
-
export declare class StopCommand extends SimpleCommand {
|
|
3
|
-
protected getCommandType(): string;
|
|
4
|
-
}
|
|
1
|
+
import { SimpleCommand } from '../command';
|
|
2
|
+
export declare class StopCommand extends SimpleCommand {
|
|
3
|
+
protected getCommandType(): string;
|
|
4
|
+
}
|
package/dist/commands/swap.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Allocation, BasicCommand, ChannelResolvable } from '../command';
|
|
2
|
-
import { BasicChannel, BasicLayer } from '../basic';
|
|
3
|
-
export declare class SwapCommand extends BasicCommand {
|
|
4
|
-
protected allocation1?: BasicLayer | BasicChannel;
|
|
5
|
-
protected allocation2?: BasicLayer | BasicChannel;
|
|
6
|
-
protected transforms: boolean;
|
|
7
|
-
constructor();
|
|
8
|
-
constructor(allocation1: Allocation, allocation2: Allocation, transforms?: boolean);
|
|
9
|
-
allocate1(channel: Allocation): any;
|
|
10
|
-
allocate1(channel: ChannelResolvable, layer: number): any;
|
|
11
|
-
allocate2(channel: Allocation): any;
|
|
12
|
-
allocate2(channel: ChannelResolvable, layer: number): any;
|
|
13
|
-
protected getCommandType(): string;
|
|
14
|
-
protected getArguments(): string[];
|
|
15
|
-
}
|
|
1
|
+
import { Allocation, BasicCommand, ChannelResolvable } from '../command';
|
|
2
|
+
import { BasicChannel, BasicLayer } from '../basic';
|
|
3
|
+
export declare class SwapCommand extends BasicCommand {
|
|
4
|
+
protected allocation1?: BasicLayer | BasicChannel;
|
|
5
|
+
protected allocation2?: BasicLayer | BasicChannel;
|
|
6
|
+
protected transforms: boolean;
|
|
7
|
+
constructor();
|
|
8
|
+
constructor(allocation1: Allocation, allocation2: Allocation, transforms?: boolean);
|
|
9
|
+
allocate1(channel: Allocation): any;
|
|
10
|
+
allocate1(channel: ChannelResolvable, layer: number): any;
|
|
11
|
+
allocate2(channel: Allocation): any;
|
|
12
|
+
allocate2(channel: ChannelResolvable, layer: number): any;
|
|
13
|
+
protected getCommandType(): string;
|
|
14
|
+
protected getArguments(): string[];
|
|
15
|
+
}
|