@micrio/client 5.3.5 → 5.3.7
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-2.js +26 -0
- package/micrio.min.d.ts +1 -16
- package/micrio.min.js +3 -3
- package/package.json +2 -2
package/micrio.min.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare module '@micrio/client' {
|
|
|
4
4
|
* Defines the current version of the Micrio library.
|
|
5
5
|
* This constant is used internally and exposed statically via `HTMLMicrioElement.VERSION`.
|
|
6
6
|
*/
|
|
7
|
-
export const VERSION = "5.3.
|
|
7
|
+
export const VERSION = "5.3.7";
|
|
8
8
|
/**
|
|
9
9
|
* Loads an image texture asynchronously. Adds the request to the queue
|
|
10
10
|
* and returns a Promise that resolves with the TextureBitmap or rejects on error.
|
|
@@ -170,21 +170,6 @@ declare module '@micrio/client' {
|
|
|
170
170
|
getXY: (x: number, y: number, abs?: boolean, radius?: number, rotation?: number, noTrueNorth?: boolean) => Float64Array;
|
|
171
171
|
/** Gets the current camera zoom scale. */
|
|
172
172
|
getScale: () => number;
|
|
173
|
-
/**
|
|
174
|
-
* Calculates the screen coordinates of the four corners of a transformed quad in 360 space.
|
|
175
|
-
* Used for positioning HTML embeds accurately on the 360 sphere.
|
|
176
|
-
* @param cX The quad center X coordinate (0-1).
|
|
177
|
-
* @param cY The quad center Y coordinate (0-1).
|
|
178
|
-
* @param w The quad relative width (0-1).
|
|
179
|
-
* @param h The quad relative height (0-1).
|
|
180
|
-
* @param rotX Rotation over X axis (radians).
|
|
181
|
-
* @param rotY Rotation over Y axis (radians).
|
|
182
|
-
* @param rotZ Rotation over Z axis (radians).
|
|
183
|
-
* @param scaleX Horizontal scale multiplier.
|
|
184
|
-
* @param scaleY Vertical scale multiplier.
|
|
185
|
-
* @returns A Float32Array containing the screen coordinates [x0,y0, x1,y1, x2,y2, x3,y3].
|
|
186
|
-
*/
|
|
187
|
-
getQuad(cX: number, cY: number, w: number, h: number, rotX?: number, rotY?: number, rotZ?: number, scaleX?: number, scaleY?: number): Float32Array;
|
|
188
173
|
/**
|
|
189
174
|
* Calculates a 4x4 transformation matrix for placing an object at specific coordinates
|
|
190
175
|
* with scale and rotation in 360 space. Used for CSS `matrix3d`.
|