@micrio/client 5.1.32 → 5.1.34

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.32";
3
+ export const VERSION = "5.1.34";
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;
@@ -448,6 +448,8 @@ declare module '@micrio/client' {
448
448
  getOmniRotation(): number;
449
449
  /** [Omni] Get the corresponding frame number to current rotation */
450
450
  getOmniFrame(rot?: number): number | undefined;
451
+ /** [Omni] Get the corresponding screen coordinates based on xyz coords */
452
+ getOmniXY(x: number, y: number, z: number): Float64Array;
451
453
  setOmniSettings(): void;
452
454
  }
453
455
  export const BASEPATH_V5: string;
@@ -2271,6 +2273,29 @@ declare module '@micrio/client' {
2271
2273
  */
2272
2274
  constructor(micrio: HTMLMicrioElement);
2273
2275
  }
2276
+ /** In-WebGL rendered embedded videos, used in <Embed /> */
2277
+ export class GLEmbedVideo {
2278
+ private wasm;
2279
+ private image;
2280
+ private embed;
2281
+ private paused;
2282
+ private moved;
2283
+ private ism3u;
2284
+ private hlsPlayer;
2285
+ private usVid;
2286
+ private vidRepeatTo;
2287
+ private placeTo;
2288
+ private autoplay;
2289
+ _vid: HTMLVideoElement | undefined;
2290
+ isMounted: boolean;
2291
+ constructor(wasm: Wasm, image: MicrioImage, embed: Models.ImageData.Embed, paused: boolean, moved: () => void);
2292
+ unmount(): void;
2293
+ private setPlaying;
2294
+ private load;
2295
+ private events;
2296
+ private hook;
2297
+ private unhook;
2298
+ }
2274
2299
  }declare module "svelte/store" {
2275
2300
  /** Callback to inform of a value updates.
2276
2301
  */