@micrio/client 5.1.4 → 5.1.6-a

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/micrio.min.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  declare module '@micrio/client' {
2
2
  import type { Readable, Writable } from 'svelte/store';
3
- export const VERSION = "5.1.4";
3
+ export const VERSION = "5.1.7";
4
4
  export type PREDEFINED = [string, Models.ImageInfo.ImageInfo, Models.ImageData.ImageData | undefined];
5
5
  export const isFetching: (uri: string) => boolean;
6
6
  export const getLocalData: (id: string) => PREDEFINED | undefined;
@@ -20,6 +20,10 @@ declare module '@micrio/client' {
20
20
  v: Models.Spaces.DirectionVector;
21
21
  vN: Models.Spaces.DirectionVector;
22
22
  } | undefined;
23
+ /** Feature detection for native HLS video support
24
+ * @private
25
+ */
26
+ export const hasNativeHLS: (video?: HTMLMediaElement) => boolean;
23
27
  export namespace Enums {
24
28
  namespace Grid {
25
29
  /** External grid action types */
@@ -1168,6 +1172,13 @@ declare module '@micrio/client' {
1168
1172
  gridTransitionDuration?: number;
1169
1173
  /** Grid: transition duration going back, in seconds */
1170
1174
  gridTransitionDurationOut?: number;
1175
+ /** ADVANCED: A fragment shader for WebGL postprocessing
1176
+ * This shader MUST have and use:
1177
+ * uniform sampler2D u_image; // the render buffer texture
1178
+ * varying vec2 v_texCoord; // the texture coordinate
1179
+ * uniform float u_time; // elapsed time in seconds
1180
+ */
1181
+ postProcessingFragmentShader?: string;
1171
1182
  };
1172
1183
  type GallerySettings = {
1173
1184
  /** Gallery has an associated .bin archive with thumbnails */
@@ -2050,6 +2061,23 @@ declare module '@micrio/client' {
2050
2061
  }
2051
2062
  }
2052
2063
  }
2064
+ export class PostProcessor {
2065
+ private gl;
2066
+ /** Framebuffer render target for postprocessing */
2067
+ frameBuffer: WebGLFramebuffer;
2068
+ /** Frame buffer render-to-texture */
2069
+ private texture;
2070
+ /** Quad buffer for frameBuffer */
2071
+ private quad;
2072
+ /** Post processing shader */
2073
+ private program;
2074
+ private ppPositionLoc;
2075
+ private ppTexCoordLoc;
2076
+ private ppTimeLoc;
2077
+ constructor(gl: WebGL2RenderingContext | WebGLRenderingContext, micrio: HTMLMicrioElement, fragmentShader: string);
2078
+ render(): void;
2079
+ resize(): void;
2080
+ }
2053
2081
  /**
2054
2082
  * Micrio user input event handler
2055
2083
  * @author Marcel Duin <marcel@micr.io>