@rendley/sdk 1.11.5 → 1.11.7
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +1 -0
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +2 -0
- package/dist/modules/clip/clips/video/VideoClip.d.ts +2 -0
- package/dist/modules/effect/built-in-effects/BuiltInChromaKey.d.ts +12 -0
- package/dist/modules/effect/built-in-effects/BuiltInGlowEffect2.d.ts +17 -0
- package/dist/modules/effect/built-in-effects/rendley/chroma-key/ChromaKeyFilter.d.ts +41 -0
- package/dist/modules/effect/built-in-effects/rendley/glow/GlowFilter2.d.ts +114 -0
- package/dist/modules/library/BuiltInEffectDefines.d.ts +1 -0
- package/dist/modules/timeline/Timeline.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1160,6 +1160,7 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1160
1160
|
getHasTransition(): boolean;
|
|
1161
1161
|
getMediaId(): string | undefined;
|
|
1162
1162
|
getIsProcessing(): boolean;
|
|
1163
|
+
discardProcessing(): void;
|
|
1163
1164
|
addFilter(filter: Filter): Filter;
|
|
1164
1165
|
addFilter(filterId: string): Filter;
|
|
1165
1166
|
removeFilter(id: string): void;
|
|
@@ -19,6 +19,7 @@ export declare class AudioClip extends Clip {
|
|
|
19
19
|
init(layerId: string): Promise<void>;
|
|
20
20
|
private getGlobalTimeToClipTime;
|
|
21
21
|
getIsProcessing(): boolean;
|
|
22
|
+
discardProcessing(): void;
|
|
22
23
|
updateMediaData(newMediaId?: string): Promise<boolean>;
|
|
23
24
|
preload(currentTime: number): void;
|
|
24
25
|
addActionToQueue(action: string, params?: object): void;
|
|
@@ -34,6 +35,7 @@ export declare class AudioClip extends Clip {
|
|
|
34
35
|
getVolume(): number;
|
|
35
36
|
private play;
|
|
36
37
|
private pause;
|
|
38
|
+
private willSeekAtTime;
|
|
37
39
|
private seek;
|
|
38
40
|
onPlay(currentTime: number): Promise<void>;
|
|
39
41
|
onPause(currentTime: number): Promise<void>;
|
|
@@ -32,6 +32,7 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
32
32
|
getRightRenderBound(): number;
|
|
33
33
|
private getGlobalTimeToClipTime;
|
|
34
34
|
getIsProcessing(): boolean;
|
|
35
|
+
discardProcessing(): void;
|
|
35
36
|
updateMediaData(newMediaId?: string): Promise<boolean>;
|
|
36
37
|
preload(currentTime: number): void;
|
|
37
38
|
private addActionToQueue;
|
|
@@ -50,6 +51,7 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
50
51
|
private play;
|
|
51
52
|
private pause;
|
|
52
53
|
private renderSeek;
|
|
54
|
+
private willSeekAtTime;
|
|
53
55
|
private seek;
|
|
54
56
|
private renderVideoFrameOutputCallback;
|
|
55
57
|
private getNextRenderPacket;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EffectBase } from "../EffectBase";
|
|
2
|
+
export declare enum BuiltInChromaKeyEffectPropertiesEnum {
|
|
3
|
+
keyColor = "keyColor",
|
|
4
|
+
similarity = "similarity",
|
|
5
|
+
smoothness = "smoothness",
|
|
6
|
+
spill = "spill"
|
|
7
|
+
}
|
|
8
|
+
export declare class BuiltInChromaKeyEffect extends EffectBase {
|
|
9
|
+
constructor(properties: Map<string, any>);
|
|
10
|
+
setProperty(propertyName: string, value: any): void;
|
|
11
|
+
getProperty(propertyName: string): number | number[] | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EffectBase } from "../EffectBase";
|
|
2
|
+
export declare enum BuiltInGlowEffectPropertiesEnum {
|
|
3
|
+
glow = "glow",
|
|
4
|
+
innerStrength = "innerStrength",
|
|
5
|
+
outerStrength = "outerStrength",
|
|
6
|
+
innerColor = "innerColor",
|
|
7
|
+
outerColor = "outerColor",
|
|
8
|
+
offset = "offset",
|
|
9
|
+
pixelSize = "pixelSize",
|
|
10
|
+
quality = "quality",
|
|
11
|
+
glowOnly = "glowOnly"
|
|
12
|
+
}
|
|
13
|
+
export declare class BuiltInGlowEffect2 extends EffectBase {
|
|
14
|
+
constructor(properties: Map<string, any>);
|
|
15
|
+
setProperty(propertyName: string, value: any): void;
|
|
16
|
+
getProperty(propertyName: string): number | boolean | number[] | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Filter } from "@pixi/core";
|
|
2
|
+
interface ChromaKeyOptions {
|
|
3
|
+
keyColor: number[];
|
|
4
|
+
similarity: number;
|
|
5
|
+
smoothness: number;
|
|
6
|
+
spill: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class ChromaKeyFilter extends Filter {
|
|
9
|
+
/** Default constructor options. */
|
|
10
|
+
static readonly defaults: ChromaKeyOptions;
|
|
11
|
+
constructor(options?: Partial<ChromaKeyOptions>);
|
|
12
|
+
/**
|
|
13
|
+
* The color used for the keying effect.
|
|
14
|
+
* This should be a color that is present in the background you want to remove.
|
|
15
|
+
* @default [0.012, 0.729, 0.137] (green)
|
|
16
|
+
*/
|
|
17
|
+
get keyColor(): number[];
|
|
18
|
+
set keyColor(value: number[]);
|
|
19
|
+
/**
|
|
20
|
+
* The similarity threshold for the keying effect.
|
|
21
|
+
* Higher values will remove more colors similar to the key color.
|
|
22
|
+
* @default 0.15
|
|
23
|
+
*/
|
|
24
|
+
get similarity(): number;
|
|
25
|
+
set similarity(value: number);
|
|
26
|
+
/**
|
|
27
|
+
* The smoothness threshold for the keying effect.
|
|
28
|
+
* Higher values will remove more colors similar to the key color.
|
|
29
|
+
* @default 0.18
|
|
30
|
+
*/
|
|
31
|
+
get smoothness(): number;
|
|
32
|
+
set smoothness(value: number);
|
|
33
|
+
/**
|
|
34
|
+
* The spill threshold for the keying effect.
|
|
35
|
+
* Higher values will remove more colors similar to the key color.
|
|
36
|
+
* @default 0.25
|
|
37
|
+
*/
|
|
38
|
+
get spill(): number;
|
|
39
|
+
set spill(value: number);
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Filter } from "@pixi/core";
|
|
2
|
+
import { IPoint, CLEAR_MODES, FilterSystem, RenderTexture } from "@pixi/core";
|
|
3
|
+
type PixelSizeValue = number | number[] | IPoint;
|
|
4
|
+
interface GlowFilter2Options {
|
|
5
|
+
innerColor: number;
|
|
6
|
+
outerColor: number;
|
|
7
|
+
innerStrength: number;
|
|
8
|
+
outerStrength: number;
|
|
9
|
+
glowOnly: boolean;
|
|
10
|
+
glow: number;
|
|
11
|
+
quality: number;
|
|
12
|
+
kernels: number[] | null;
|
|
13
|
+
pixelSize: PixelSizeValue;
|
|
14
|
+
resolution: number | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Drop shadow filter.<br>
|
|
18
|
+
* 
|
|
19
|
+
* @class
|
|
20
|
+
* @extends PIXI.Filter
|
|
21
|
+
* @see {@link https://www.npmjs.com/package/@pixi/filter-drop-shadow|@pixi/filter-drop-shadow}
|
|
22
|
+
* @see {@link https://www.npmjs.com/package/pixi-filters|pixi-filters}
|
|
23
|
+
*/
|
|
24
|
+
declare class GlowFilter2 extends Filter {
|
|
25
|
+
/** Default constructor options. */
|
|
26
|
+
static readonly defaults: GlowFilter2Options;
|
|
27
|
+
private readonly _tintFilter;
|
|
28
|
+
private readonly _blurFilter;
|
|
29
|
+
private readonly _finalFilter;
|
|
30
|
+
protected _resolution: number | null;
|
|
31
|
+
/**
|
|
32
|
+
* @param {object} [options] - Filter options
|
|
33
|
+
* @param {number} [options.innerColor=0xffffff] - The inner color of the glow.
|
|
34
|
+
* @param {number} [options.outerColor=0xffffff] - The outer color of the glow.
|
|
35
|
+
* @param {number} [options.innerStrength=0] - The strength of the inner glow.
|
|
36
|
+
* @param {number} [options.outerStrength=1] - The strength of the outer glow.
|
|
37
|
+
* @param {boolean} [options.glowOnly=false] - Whether render shadow only
|
|
38
|
+
* @param {number} [options.glow=2] - Sets the strength of the Blur properties simultaneously
|
|
39
|
+
* @param {number} [options.quality=5] - The quality of the Blur filter.
|
|
40
|
+
* @param {number[]} [options.kernels=null] - The kernels of the Blur filter.
|
|
41
|
+
* @param {number|number[]|PIXI.Point} [options.pixelSize=1] - the pixelSize of the Blur filter.
|
|
42
|
+
* @param {number} [options.resolution=PIXI.Filter.defaultResolution] - The resolution of the Blur filter.
|
|
43
|
+
*/
|
|
44
|
+
constructor(options?: Partial<GlowFilter2Options>);
|
|
45
|
+
apply(filterManager: FilterSystem, input: RenderTexture, output: RenderTexture, clear: CLEAR_MODES): void;
|
|
46
|
+
/**
|
|
47
|
+
* Recalculate the proper padding amount.
|
|
48
|
+
* @private
|
|
49
|
+
*/
|
|
50
|
+
private _updatePadding;
|
|
51
|
+
/**
|
|
52
|
+
* The resolution of the filter.
|
|
53
|
+
* @default PIXI.settings.FILTER_RESOLUTION
|
|
54
|
+
*/
|
|
55
|
+
get resolution(): number | null;
|
|
56
|
+
set resolution(value: number | null);
|
|
57
|
+
/**
|
|
58
|
+
* The inner color of the glow.
|
|
59
|
+
* @default 0xffffff
|
|
60
|
+
*/
|
|
61
|
+
get innerColor(): number;
|
|
62
|
+
set innerColor(value: number);
|
|
63
|
+
/**
|
|
64
|
+
* The outer color of the glow.
|
|
65
|
+
* @default 0xffffff
|
|
66
|
+
*/
|
|
67
|
+
get outerColor(): number;
|
|
68
|
+
set outerColor(value: number);
|
|
69
|
+
/**
|
|
70
|
+
* The strength of the inner glow.
|
|
71
|
+
* @default 0
|
|
72
|
+
*/
|
|
73
|
+
get innerStrength(): number;
|
|
74
|
+
set innerStrength(value: number);
|
|
75
|
+
/**
|
|
76
|
+
* The strength of the outer glow.
|
|
77
|
+
* @default 1
|
|
78
|
+
*/
|
|
79
|
+
get outerStrength(): number;
|
|
80
|
+
set outerStrength(value: number);
|
|
81
|
+
/**
|
|
82
|
+
* Sets the kernels of the Blur Filter
|
|
83
|
+
*/
|
|
84
|
+
get kernels(): number[];
|
|
85
|
+
set kernels(value: number[]);
|
|
86
|
+
/**
|
|
87
|
+
* The blur of the glow
|
|
88
|
+
* @default 2
|
|
89
|
+
*/
|
|
90
|
+
get glow(): number;
|
|
91
|
+
set glow(value: number);
|
|
92
|
+
/**
|
|
93
|
+
* Sets if only the glow should be rendered, without the original texture.
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
96
|
+
get glowOnly(): boolean;
|
|
97
|
+
set glowOnly(value: boolean);
|
|
98
|
+
/**
|
|
99
|
+
* Sets the quality of the Blur Filter
|
|
100
|
+
* @default 7
|
|
101
|
+
*/
|
|
102
|
+
get quality(): number;
|
|
103
|
+
set quality(value: number);
|
|
104
|
+
/**
|
|
105
|
+
* Sets the pixelSize of the Kawase Blur filter
|
|
106
|
+
*
|
|
107
|
+
* @member {number|number[]|PIXI.Point}
|
|
108
|
+
* @default 1
|
|
109
|
+
*/
|
|
110
|
+
get pixelSize(): PixelSizeValue;
|
|
111
|
+
set pixelSize(value: PixelSizeValue);
|
|
112
|
+
}
|
|
113
|
+
export { GlowFilter2 };
|
|
114
|
+
export type { GlowFilter2Options };
|
|
@@ -7,6 +7,7 @@ export declare enum BuiltInEffectIdEnum {
|
|
|
7
7
|
BLOOM = "builtin-bloom",
|
|
8
8
|
BLUR = "builtin-blur",
|
|
9
9
|
BULGE_PINCH = "builtin-bulge-pinch",
|
|
10
|
+
CHROMA_KEY = "builtin-chroma-key",
|
|
10
11
|
COLOR_OVERLAY = "builtin-color-overlay",
|
|
11
12
|
COLOR_REPLACEMENT = "builtin-color-replacement",
|
|
12
13
|
CROSS_HATCH = "builtin-cross-hatch",
|
|
@@ -150,6 +150,7 @@ export declare class Timeline {
|
|
|
150
150
|
stop(): void;
|
|
151
151
|
seek(value: number): void;
|
|
152
152
|
getClips(): Clip[];
|
|
153
|
+
discardProcessing(): void;
|
|
153
154
|
getIsProcessing(): boolean;
|
|
154
155
|
setSubtitles(subtitlesId: string, offset: number, clipIds?: string[]): void;
|
|
155
156
|
removeClip(clipId: string): boolean;
|