@rendley/sdk 1.11.4 → 1.11.6

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.
Files changed (45) hide show
  1. package/dist/Engine.d.ts +1 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/modules/clip/Clip.d.ts +1 -0
  5. package/dist/modules/clip/clips/audio/AudioClip.d.ts +1 -0
  6. package/dist/modules/clip/clips/video/VideoClip.d.ts +1 -0
  7. package/dist/modules/effect/EffectBase.d.ts +2 -0
  8. package/dist/modules/effect/built-in-effects/BuiltInAdjustmentEffect.d.ts +16 -0
  9. package/dist/modules/effect/built-in-effects/BuiltInAdvancedBloomEffect.d.ts +14 -0
  10. package/dist/modules/effect/built-in-effects/BuiltInAsciiEffect.d.ts +9 -0
  11. package/dist/modules/effect/built-in-effects/BuiltInBevelEffect.d.ts +14 -0
  12. package/dist/modules/effect/built-in-effects/BuiltInBloomEffect.d.ts +12 -0
  13. package/dist/modules/effect/built-in-effects/BuiltInBulgePinchEffect.d.ts +13 -0
  14. package/dist/modules/effect/built-in-effects/BuiltInCRTEffect.d.ts +20 -0
  15. package/dist/modules/effect/built-in-effects/BuiltInChromaKey.d.ts +12 -0
  16. package/dist/modules/effect/built-in-effects/BuiltInColorOverlayEffect.d.ts +10 -0
  17. package/dist/modules/effect/built-in-effects/BuiltInColorReplaceEffect.d.ts +11 -0
  18. package/dist/modules/effect/built-in-effects/BuiltInCrossHatchEffect.d.ts +8 -0
  19. package/dist/modules/effect/built-in-effects/BuiltInDotEffect.d.ts +11 -0
  20. package/dist/modules/effect/built-in-effects/BuiltInDropShadowEffect.d.ts +15 -0
  21. package/dist/modules/effect/built-in-effects/BuiltInEmbossEffect.d.ts +9 -0
  22. package/dist/modules/effect/built-in-effects/BuiltInGlowEffect.d.ts +15 -0
  23. package/dist/modules/effect/built-in-effects/BuiltInGlowEffect2.d.ts +17 -0
  24. package/dist/modules/effect/built-in-effects/BuiltInGodrayEffect.d.ts +17 -0
  25. package/dist/modules/effect/built-in-effects/BuiltInHSLAdjustmentEffect.d.ts +13 -0
  26. package/dist/modules/effect/built-in-effects/BuiltInMotionBlurEffect.d.ts +11 -0
  27. package/dist/modules/effect/built-in-effects/BuiltInOldFilmEffect.d.ts +18 -0
  28. package/dist/modules/effect/built-in-effects/BuiltInOutlineEffect.d.ts +13 -0
  29. package/dist/modules/effect/built-in-effects/BuiltInPixelateEffect.d.ts +9 -0
  30. package/dist/modules/effect/built-in-effects/BuiltInRGBSplitEffect.d.ts +11 -0
  31. package/dist/modules/effect/built-in-effects/BuiltInRadialBlurEffect.d.ts +13 -0
  32. package/dist/modules/effect/built-in-effects/BuiltInReflectionEffect.d.ts +16 -0
  33. package/dist/modules/effect/built-in-effects/BuiltInShockwaveEffect.d.ts +17 -0
  34. package/dist/modules/effect/built-in-effects/BuiltInTiltShiftEffect.d.ts +12 -0
  35. package/dist/modules/effect/built-in-effects/BuiltInTwistEffect.d.ts +11 -0
  36. package/dist/modules/effect/built-in-effects/BuiltInZoomBlurEffect.d.ts +12 -0
  37. package/dist/modules/effect/built-in-effects/rendley/chroma-key/ChromaKeyFilter.d.ts +41 -0
  38. package/dist/modules/effect/built-in-effects/rendley/glow/GlowFilter2.d.ts +114 -0
  39. package/dist/modules/library/BuiltInEffectDefines.d.ts +28 -1
  40. package/dist/modules/library/types/Property.types.d.ts +4 -0
  41. package/dist/modules/renderer/Renderer.d.ts +1 -0
  42. package/dist/modules/settings/Settings.d.ts +23 -0
  43. package/dist/modules/timeline/Timeline.d.ts +1 -0
  44. package/dist/utils/math/wrapValue.d.ts +1 -0
  45. 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;
@@ -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;
@@ -6,4 +6,6 @@ export declare abstract class EffectBase {
6
6
  update(currentTime: number): void;
7
7
  abstract setProperty(propertyName: string, value: any): void;
8
8
  abstract getProperty(propertyName: string): any;
9
+ init(): void;
10
+ destroy(): void;
9
11
  }
@@ -0,0 +1,16 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInAdjustmentEffectPropertiesEnum {
3
+ ALPHA = "alpha",
4
+ BLUE = "blue",
5
+ BRIGHTNESS = "brightness",
6
+ CONTRAST = "contrast",
7
+ GAMMA = "gamma",
8
+ GREEN = "green",
9
+ RED = "red",
10
+ SATURATION = "saturation"
11
+ }
12
+ export declare class BuiltInAdjustmentEffect extends EffectBase {
13
+ constructor(properties: Map<string, any>);
14
+ setProperty(propertyName: string, value: any): void;
15
+ getProperty(propertyName: string): number | null;
16
+ }
@@ -0,0 +1,14 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInAdvancedBloomEffectPropertiesEnum {
3
+ BLOOM_SCALE = "bloomScale",
4
+ BLUR = "blur",
5
+ BRIGHTNESS = "brightness",
6
+ PIXEL_SIZE = "pixelSize",
7
+ QUALITY = "quality",
8
+ THRESHOLD = "threshold"
9
+ }
10
+ export declare class BuiltInAdvancedBloomEffect extends EffectBase {
11
+ constructor(properties: Map<string, any>);
12
+ setProperty(propertyName: string, value: any): void;
13
+ getProperty(propertyName: string): number | number[] | null;
14
+ }
@@ -0,0 +1,9 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInAsciiEffectPropertiesEnum {
3
+ SIZE = "size"
4
+ }
5
+ export declare class BuiltInAsciiEffect extends EffectBase {
6
+ constructor(properties: Map<string, any>);
7
+ setProperty(propertyName: string, value: any): void;
8
+ getProperty(propertyName: string): number | null;
9
+ }
@@ -0,0 +1,14 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInBevelEffectPropertiesEnum {
3
+ LIGHT_ALPHA = "lightAlpha",
4
+ LIGHT_COLOR = "lightColor",
5
+ ROTATION = "rotation",
6
+ SHADOW_ALPHA = "shadowAlpha",
7
+ SHADOW_COLOR = "shadowColor",
8
+ THICKNESS = "thickness"
9
+ }
10
+ export declare class BuiltInBevelEffect extends EffectBase {
11
+ constructor(properties: Map<string, any>);
12
+ setProperty(propertyName: string, value: any): void;
13
+ getProperty(propertyName: string): number | number[] | null;
14
+ }
@@ -0,0 +1,12 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInBloomEffectPropertiesEnum {
3
+ STRENGTH = "strength",
4
+ QUALITY = "quality",
5
+ RESOLUTION = "resolution",
6
+ KERNEL_SIZE = "kernelSize"
7
+ }
8
+ export declare class BuiltInBloomEffect extends EffectBase {
9
+ constructor(properties: Map<string, any>);
10
+ setProperty(propertyName: string, value: any): void;
11
+ getProperty(propertyName: string): number | null;
12
+ }
@@ -0,0 +1,13 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInBulgePinchEffectPropertiesEnum {
3
+ CENTER = "center",
4
+ CENTER_X = "centerX",
5
+ CENTER_Y = "centerY",
6
+ RADIUS = "radius",
7
+ STRENGTH = "strength"
8
+ }
9
+ export declare class BuiltInBulgePinchEffect extends EffectBase {
10
+ constructor(properties: Map<string, any>);
11
+ setProperty(propertyName: string, value: any): void;
12
+ getProperty(propertyName: string): number | number[] | null;
13
+ }
@@ -0,0 +1,20 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInCRTEffectPropertiesEnum {
3
+ curvature = "curvature",
4
+ lineContrast = "lineContrast",
5
+ lineWidth = "lineWidth",
6
+ noise = "noise",
7
+ noiseSize = "noiseSize",
8
+ verticalLine = "verticalLine",
9
+ vignetting = "vignetting",
10
+ vignettingAlpha = "vignettingAlpha",
11
+ vignettingBlur = "vignettingBlur",
12
+ timeScale = "timeScale"
13
+ }
14
+ export declare class BuiltInCRTEffect extends EffectBase {
15
+ timeScale: number;
16
+ constructor(properties: Map<string, any>);
17
+ setProperty(propertyName: string, value: any): void;
18
+ getProperty(propertyName: string): number | boolean | null;
19
+ update(currentTime: number): void;
20
+ }
@@ -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,10 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInColorOverlayEffectPropertiesEnum {
3
+ ALPHA = "alpha",
4
+ COLOR = "color"
5
+ }
6
+ export declare class BuiltInColorOverlayEffect extends EffectBase {
7
+ constructor(properties: Map<string, any>);
8
+ setProperty(propertyName: string, value: any): void;
9
+ getProperty(propertyName: string): number | number[] | null;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInColorReplaceEffectPropertiesEnum {
3
+ ORIGINAL_COLOR = "originalColor",
4
+ NEW_COLOR = "newColor",
5
+ EPSILON = "epsilon"
6
+ }
7
+ export declare class BuiltInColorReplaceEffect extends EffectBase {
8
+ constructor(properties: Map<string, any>);
9
+ setProperty(propertyName: string, value: any): void;
10
+ getProperty(propertyName: string): number | number[] | null;
11
+ }
@@ -0,0 +1,8 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInCrossHatchEffectPropertiesEnum {
3
+ }
4
+ export declare class BuiltInCrossHatchEffect extends EffectBase {
5
+ constructor(_properties: Map<string, any>);
6
+ setProperty(propertyName: string, value: any): void;
7
+ getProperty(propertyName: string): null;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInDotEffectPropertiesEnum {
3
+ angle = "angle",
4
+ scale = "scale",
5
+ grayscale = "grayscale"
6
+ }
7
+ export declare class BuiltInDotEffect extends EffectBase {
8
+ constructor(properties: Map<string, any>);
9
+ setProperty(propertyName: string, value: any): void;
10
+ getProperty(propertyName: string): number | boolean | null;
11
+ }
@@ -0,0 +1,15 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInDropShadowEffectPropertiesEnum {
3
+ alpha = "alpha",
4
+ blur = "blur",
5
+ color = "color",
6
+ offset = "offset",
7
+ pixelSize = "pixelSize",
8
+ quality = "quality",
9
+ shadowOnly = "shadowOnly"
10
+ }
11
+ export declare class BuiltInDropShadowEffect extends EffectBase {
12
+ constructor(properties: Map<string, any>);
13
+ setProperty(propertyName: string, value: any): void;
14
+ getProperty(propertyName: string): number | boolean | number[] | null;
15
+ }
@@ -0,0 +1,9 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInEmbossEffectPropertiesEnum {
3
+ strength = "strength"
4
+ }
5
+ export declare class BuiltInEmbossEffect extends EffectBase {
6
+ constructor(properties: Map<string, any>);
7
+ setProperty(propertyName: string, value: any): void;
8
+ getProperty(propertyName: string): number | null;
9
+ }
@@ -0,0 +1,15 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInGlowEffectPropertiesEnum {
3
+ alpha = "alpha",
4
+ color = "color",
5
+ distance = "distance",
6
+ innerStrength = "innerStrength",
7
+ knockout = "knockout",
8
+ outerStrength = "outerStrength",
9
+ quality = "quality"
10
+ }
11
+ export declare class BuiltInGlowEffect extends EffectBase {
12
+ constructor(properties: Map<string, any>);
13
+ setProperty(propertyName: string, value: any): void;
14
+ getProperty(propertyName: string): number | boolean | number[] | null;
15
+ }
@@ -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,17 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInGodrayEffectPropertiesEnum {
3
+ alpha = "alpha",
4
+ angle = "angle",
5
+ center = "center",
6
+ gain = "gain",
7
+ lacunarity = "lacunarity",
8
+ parallel = "parallel",
9
+ timeScale = "timeScale"
10
+ }
11
+ export declare class BuiltInGodrayEffect extends EffectBase {
12
+ timeScale: number;
13
+ constructor(properties: Map<string, any>);
14
+ setProperty(propertyName: string, value: any): void;
15
+ getProperty(propertyName: string): number | boolean | number[] | null;
16
+ update(currentTime: number): void;
17
+ }
@@ -0,0 +1,13 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInHSLAdjustmentEffectPropertiesEnum {
3
+ alpha = "alpha",
4
+ colorize = "colorize",
5
+ hue = "hue",
6
+ lightness = "lightness",
7
+ saturation = "saturation"
8
+ }
9
+ export declare class BuiltInHSLAdjustmentEffect extends EffectBase {
10
+ constructor(properties: Map<string, any>);
11
+ setProperty(propertyName: string, value: any): void;
12
+ getProperty(propertyName: string): number | boolean | null;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInMotionBlurEffectPropertiesEnum {
3
+ kernelSize = "kernelSize",
4
+ offset = "offset",
5
+ velocity = "velocity"
6
+ }
7
+ export declare class BuiltInMotionBlurEffect extends EffectBase {
8
+ constructor(properties: Map<string, any>);
9
+ setProperty(propertyName: string, value: any): void;
10
+ getProperty(propertyName: string): number | number[] | null;
11
+ }
@@ -0,0 +1,18 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInOldFilmEffectPropertiesEnum {
3
+ noise = "noise",
4
+ noiseSize = "noiseSize",
5
+ scratch = "scratch",
6
+ scratchDensity = "scratchDensity",
7
+ scratchWidth = "scratchWidth",
8
+ sepia = "sepia",
9
+ vignetting = "vignetting",
10
+ vignettingAlpha = "vignettingAlpha",
11
+ vignettingBlur = "vignettingBlur"
12
+ }
13
+ export declare class BuiltInOldFilmEffect extends EffectBase {
14
+ constructor(properties: Map<string, any>);
15
+ setProperty(propertyName: string, value: any): void;
16
+ getProperty(propertyName: string): number | null;
17
+ update(currentTime: number): void;
18
+ }
@@ -0,0 +1,13 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInOutlineEffectPropertiesEnum {
3
+ alpha = "alpha",
4
+ color = "color",
5
+ knockout = "knockout",
6
+ quality = "quality",
7
+ thickness = "thickness"
8
+ }
9
+ export declare class BuiltInOutlineEffect extends EffectBase {
10
+ constructor(properties: Map<string, any>);
11
+ setProperty(propertyName: string, value: any): void;
12
+ getProperty(propertyName: string): number | boolean | number[] | null;
13
+ }
@@ -0,0 +1,9 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInPixelateEffectPropertiesEnum {
3
+ size = "size"
4
+ }
5
+ export declare class BuiltInPixelateEffect extends EffectBase {
6
+ constructor(properties: Map<string, any>);
7
+ setProperty(propertyName: string, value: any): void;
8
+ getProperty(propertyName: string): number[] | null;
9
+ }
@@ -0,0 +1,11 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInRGBSplitEffectPropertiesEnum {
3
+ red = "red",
4
+ green = "green",
5
+ blue = "blue"
6
+ }
7
+ export declare class BuiltInRGBSplitEffect extends EffectBase {
8
+ constructor(properties: Map<string, any>);
9
+ setProperty(propertyName: string, value: any): void;
10
+ getProperty(propertyName: string): number[] | null;
11
+ }
@@ -0,0 +1,13 @@
1
+ import * as PIXI from "pixi.js";
2
+ import { EffectBase } from "../EffectBase";
3
+ export declare enum BuiltInRadialBlurEffectPropertiesEnum {
4
+ angle = "angle",
5
+ center = "center",
6
+ kernelSize = "kernelSize",
7
+ radius = "radius"
8
+ }
9
+ export declare class BuiltInRadialBlurEffect extends EffectBase {
10
+ constructor(properties: Map<string, any>);
11
+ setProperty(propertyName: string, value: any): void;
12
+ getProperty(propertyName: string): number | (number[] | PIXI.Point) | null;
13
+ }
@@ -0,0 +1,16 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInReflectionEffectPropertiesEnum {
3
+ alpha = "alpha",
4
+ amplitude = "amplitude",
5
+ boundary = "boundary",
6
+ mirror = "mirror",
7
+ waveLength = "waveLength",
8
+ timeScale = "timeScale"
9
+ }
10
+ export declare class BuiltInReflectionEffect extends EffectBase {
11
+ timeScale: number;
12
+ constructor(properties: Map<string, any>);
13
+ setProperty(propertyName: string, value: any): void;
14
+ getProperty(propertyName: string): number | boolean | (number[] | Float32Array) | null;
15
+ update(currentTime: number): void;
16
+ }
@@ -0,0 +1,17 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInShockwaveEffectPropertiesEnum {
3
+ amplitude = "amplitude",
4
+ brightness = "brightness",
5
+ center = "center",
6
+ radius = "radius",
7
+ speed = "speed",
8
+ wavelength = "wavelength",
9
+ timeScale = "timeScale"
10
+ }
11
+ export declare class BuiltInShockwaveEffect extends EffectBase {
12
+ timeScale: number;
13
+ constructor(properties: Map<string, any>);
14
+ setProperty(propertyName: string, value: any): void;
15
+ getProperty(propertyName: string): number | number[] | null;
16
+ update(currentTime: number): void;
17
+ }
@@ -0,0 +1,12 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInTiltShiftEffectPropertiesEnum {
3
+ blur = "blur",
4
+ end = "end",
5
+ gradientBlur = "gradientBlur",
6
+ start = "start"
7
+ }
8
+ export declare class BuiltInTiltShiftEffect 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,11 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInTwistEffectPropertiesEnum {
3
+ angle = "angle",
4
+ offset = "offset",
5
+ radius = "radius"
6
+ }
7
+ export declare class BuiltInTwistEffect extends EffectBase {
8
+ constructor(properties: Map<string, any>);
9
+ setProperty(propertyName: string, value: any): void;
10
+ getProperty(propertyName: string): number | number[] | null;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { EffectBase } from "../EffectBase";
2
+ export declare enum BuiltInZoomBlurEffectPropertiesEnum {
3
+ center = "center",
4
+ innerRadius = "innerRadius",
5
+ radius = "radius",
6
+ strength = "strength"
7
+ }
8
+ export declare class BuiltInZoomBlurEffect 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,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
+ * ![original](../tools/screenshots/dist/original.png)![filter](../tools/screenshots/dist/drop-shadow.png)
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 };
@@ -1,7 +1,34 @@
1
1
  import { EffectDataOptions } from "./EffectData";
2
2
  export declare enum BuiltInEffectIdEnum {
3
+ ADJUSTMENT = "builtin-adjustment",
4
+ ADVANCED_BLOOM = "builtin-advanced-bloom",
5
+ ASCII = "builtin-ascii",
6
+ BEVEL = "builtin-bevel",
7
+ BLOOM = "builtin-bloom",
3
8
  BLUR = "builtin-blur",
4
- GLOW = "builtin-glow"
9
+ BULGE_PINCH = "builtin-bulge-pinch",
10
+ CHROMA_KEY = "builtin-chroma-key",
11
+ COLOR_OVERLAY = "builtin-color-overlay",
12
+ COLOR_REPLACEMENT = "builtin-color-replacement",
13
+ CROSS_HATCH = "builtin-cross-hatch",
14
+ CRT = "builtin-crt",
15
+ DOT = "builtin-dot",
16
+ DROP_SHADOW = "builtin-drop-shadow",
17
+ EMBOSS = "builtin-emboss",
18
+ GLOW = "builtin-glow",
19
+ GODRAY = "builtin-godray",
20
+ HSL_ADJUSTMENT = "builtin-hsl-adjustment",
21
+ MOTION_BLUR = "builtin-motion-blur",
22
+ OLD_FILM = "builtin-old-film",
23
+ OUTLINE = "builtin-outline",
24
+ PIXELATE = "builtin-pixelate",
25
+ RADIAL_BLUR = "builtin-radial-blur",
26
+ REFLECTION = "builtin-reflection",
27
+ RGB_SPLIT = "builtin-rgb-split",
28
+ SHOCKWAVE = "builtin-shockwave",
29
+ TILT_SHIFT = "builtin-tilt-shift",
30
+ TWIST = "builtin-twist",
31
+ ZOOM_BLUR = "builtin-zoom-blur"
5
32
  }
6
33
  export declare const BuiltInEffectIds: BuiltInEffectIdEnum[];
7
34
  export declare const BuiltInEffectOptions: EffectDataOptions[];