@micrio/client 5.1.5 → 5.1.6-b
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 +25 -1
- package/micrio.min.js +2 -2
- package/package.json +1 -1
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.
|
|
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;
|
|
@@ -1172,6 +1172,13 @@ declare module '@micrio/client' {
|
|
|
1172
1172
|
gridTransitionDuration?: number;
|
|
1173
1173
|
/** Grid: transition duration going back, in seconds */
|
|
1174
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;
|
|
1175
1182
|
};
|
|
1176
1183
|
type GallerySettings = {
|
|
1177
1184
|
/** Gallery has an associated .bin archive with thumbnails */
|
|
@@ -2054,6 +2061,23 @@ declare module '@micrio/client' {
|
|
|
2054
2061
|
}
|
|
2055
2062
|
}
|
|
2056
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
|
+
}
|
|
2057
2081
|
/**
|
|
2058
2082
|
* Micrio user input event handler
|
|
2059
2083
|
* @author Marcel Duin <marcel@micr.io>
|