@micrio/client 5.1.21 → 5.1.23
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 +13 -1
- 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.23";
|
|
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,6 +278,18 @@ 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
|
+
/** Get a rectangle in 360 space
|
|
282
|
+
* @param cX The quad center X coordinate
|
|
283
|
+
* @param cY The quad center Y coordinate
|
|
284
|
+
* @param w The quad width
|
|
285
|
+
* @param h The quad height
|
|
286
|
+
* @param rotX Rotation over X axis
|
|
287
|
+
* @param rotY Rotation over Y axis
|
|
288
|
+
* @param rotZ Rotation over Z axis
|
|
289
|
+
* @param scaleX Horizontal scale
|
|
290
|
+
* @param scaleY Vertical scale
|
|
291
|
+
*/
|
|
292
|
+
getQuad(cX: number, cY: number, w: number, h: number, rotX?: number, rotY?: number, rotZ?: number, scaleX?: number, scaleY?: number): Float32Array;
|
|
281
293
|
/** Get a custom matrix for 360 placed embeds
|
|
282
294
|
* @param x The X coordinate
|
|
283
295
|
* @param y The Y coordinate
|