@hyperframes/shader-transitions 0.6.0-alpha.1 → 0.6.0-alpha.10

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.d.cts CHANGED
@@ -7,9 +7,13 @@ declare const SHADER_NAMES: ShaderName[];
7
7
 
8
8
  interface GsapTimeline {
9
9
  paused: () => boolean;
10
- play: () => GsapTimeline;
11
- pause: () => GsapTimeline;
12
- time: () => number;
10
+ play: (from?: number, suppressEvents?: boolean) => GsapTimeline;
11
+ pause: (atTime?: number, suppressEvents?: boolean) => GsapTimeline;
12
+ time: {
13
+ (): number;
14
+ (value: number, suppressEvents?: boolean): GsapTimeline;
15
+ };
16
+ seek?: (position: number | string, suppressEvents?: boolean) => GsapTimeline;
13
17
  call: (fn: () => void, args: null, position: number) => GsapTimeline;
14
18
  to: (target: Record<string, unknown>, vars: Record<string, unknown>, position: number) => GsapTimeline;
15
19
  set: (target: string, vars: Record<string, unknown>, position?: number) => GsapTimeline;
@@ -30,7 +34,10 @@ interface HyperShaderConfig {
30
34
  transitions: TransitionConfig[];
31
35
  timeline?: GsapTimeline;
32
36
  compositionId?: string;
37
+ previewCaptureFps?: number;
33
38
  }
34
39
  declare function init(config: HyperShaderConfig): GsapTimeline;
35
40
 
36
- export { type HyperShaderConfig, SHADER_NAMES, type ShaderName, type TransitionConfig, init };
41
+ declare function isHtmlInCanvasCaptureSupported(): boolean;
42
+
43
+ export { type HyperShaderConfig, SHADER_NAMES, type ShaderName, type TransitionConfig, init, isHtmlInCanvasCaptureSupported };
package/dist/index.d.ts CHANGED
@@ -7,9 +7,13 @@ declare const SHADER_NAMES: ShaderName[];
7
7
 
8
8
  interface GsapTimeline {
9
9
  paused: () => boolean;
10
- play: () => GsapTimeline;
11
- pause: () => GsapTimeline;
12
- time: () => number;
10
+ play: (from?: number, suppressEvents?: boolean) => GsapTimeline;
11
+ pause: (atTime?: number, suppressEvents?: boolean) => GsapTimeline;
12
+ time: {
13
+ (): number;
14
+ (value: number, suppressEvents?: boolean): GsapTimeline;
15
+ };
16
+ seek?: (position: number | string, suppressEvents?: boolean) => GsapTimeline;
13
17
  call: (fn: () => void, args: null, position: number) => GsapTimeline;
14
18
  to: (target: Record<string, unknown>, vars: Record<string, unknown>, position: number) => GsapTimeline;
15
19
  set: (target: string, vars: Record<string, unknown>, position?: number) => GsapTimeline;
@@ -30,7 +34,10 @@ interface HyperShaderConfig {
30
34
  transitions: TransitionConfig[];
31
35
  timeline?: GsapTimeline;
32
36
  compositionId?: string;
37
+ previewCaptureFps?: number;
33
38
  }
34
39
  declare function init(config: HyperShaderConfig): GsapTimeline;
35
40
 
36
- export { type HyperShaderConfig, SHADER_NAMES, type ShaderName, type TransitionConfig, init };
41
+ declare function isHtmlInCanvasCaptureSupported(): boolean;
42
+
43
+ export { type HyperShaderConfig, SHADER_NAMES, type ShaderName, type TransitionConfig, init, isHtmlInCanvasCaptureSupported };