@micrio/client 5.1.18 → 5.1.19
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 +11 -4
- package/micrio.min.js +3 -3
- 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.19";
|
|
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;
|
|
@@ -278,7 +278,6 @@ declare module '@micrio/client' {
|
|
|
278
278
|
getXY: (x: number, y: number, abs?: boolean, radius?: number, rotation?: number, noTrueNorth?: boolean) => Float64Array;
|
|
279
279
|
/** Get the current image scale */
|
|
280
280
|
getScale: () => number;
|
|
281
|
-
getQuad(cX: number, cY: number, w: number, h: number, rotX?: number, rotY?: number, rotZ?: number, scaleX?: number, scaleY?: number): Float32Array;
|
|
282
281
|
/** Get a custom matrix for 360 placed embeds
|
|
283
282
|
* @param x The X coordinate
|
|
284
283
|
* @param y The Y coordinate
|
|
@@ -288,6 +287,8 @@ declare module '@micrio/client' {
|
|
|
288
287
|
* @param rotY The object Y rotation in radians
|
|
289
288
|
* @param rotZ The object Z rotation in radians
|
|
290
289
|
* @param transY Optional Y translation in 3d space
|
|
290
|
+
* @param scaleX Optional X scaling
|
|
291
|
+
* @param scaleY Optional Y scaling
|
|
291
292
|
* @returns The resulting 4x4 matrix
|
|
292
293
|
*/
|
|
293
294
|
getMatrix(x: number, y: number, scale?: number, radius?: number, rotX?: number, rotY?: number, rotZ?: number, transY?: number, scaleX?: number, scaleY?: number): Float32Array;
|
|
@@ -435,7 +436,6 @@ declare module '@micrio/client' {
|
|
|
435
436
|
getOmniRotation(): number;
|
|
436
437
|
/** [Omni] Get the corresponding frame number to current rotation */
|
|
437
438
|
getOmniFrame(rot?: number): number | undefined;
|
|
438
|
-
getOmniXY(x: number, y: number, z: number): Float64Array;
|
|
439
439
|
setOmniSettings(): void;
|
|
440
440
|
}
|
|
441
441
|
export const BASEPATH_V5: string;
|
|
@@ -2187,7 +2187,9 @@ declare module '@micrio/client' {
|
|
|
2187
2187
|
static jsonCache: Map<string, Object>;
|
|
2188
2188
|
/** All available canvases */
|
|
2189
2189
|
readonly canvases: MicrioImage[];
|
|
2190
|
-
/** Current main {@link MicrioImage} store Writable. Its value can be referred to using the {@link $current} property
|
|
2190
|
+
/** Current main {@link MicrioImage} store Writable. Its value can be referred to using the {@link $current} property.
|
|
2191
|
+
* A lot of the app is reactive to this, so only set this using <micr-io>.open();
|
|
2192
|
+
*/
|
|
2191
2193
|
readonly current: Writable<MicrioImage | undefined>;
|
|
2192
2194
|
/** Currently visible canvases */
|
|
2193
2195
|
readonly visible: Writable<MicrioImage[]>;
|
|
@@ -2238,6 +2240,11 @@ declare module '@micrio/client' {
|
|
|
2238
2240
|
* @param img The currently visible {@link MicrioImage}
|
|
2239
2241
|
*/
|
|
2240
2242
|
close(img: MicrioImage): void;
|
|
2243
|
+
/** Parse a gallery string ([micrioId,width?,height?,type?,format?], ';'-separated)
|
|
2244
|
+
* and load all relevant image data needed.
|
|
2245
|
+
* A gallery is basically one giant wide MicrioImage, that has each individual gallery
|
|
2246
|
+
* image embedded within itself.
|
|
2247
|
+
*/
|
|
2241
2248
|
private loadGallery;
|
|
2242
2249
|
gridInfoData: {
|
|
2243
2250
|
images: Models.ImageInfo.ImageInfo[];
|