@micrio/client 7.3.8 → 7.3.10

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
@@ -1310,8 +1310,6 @@ declare module '@micrio/client' {
1310
1310
  'tour-start': ImageData.Tour;
1311
1311
  /** A tour has been successfully stopped */
1312
1312
  'tour-stop': ImageData.Tour;
1313
- /** A tour's UI interface has automatically minimized */
1314
- 'tour-minimize': boolean;
1315
1313
  /** Fires for each marker step in a marker tour */
1316
1314
  'tour-step': ImageData.MarkerTour | ImageData.VideoTour;
1317
1315
  /** A multi-image tour is played/resumed */
@@ -1738,7 +1736,6 @@ declare module '@micrio/client' {
1738
1736
  }
1739
1737
 
1740
1738
 
1741
- export { GRID_COLS, GRID_ROWS, VERTEX_COUNT } from "book/core/settings";
1742
1739
  export interface EdgeConstraint {
1743
1740
  _i: number;
1744
1741
  _j: number;
@@ -1758,8 +1755,6 @@ declare module '@micrio/client' {
1758
1755
  export function addGridConstraints(baseIdx: number, add: (i: number, j: number) => void): void;
1759
1756
 
1760
1757
 
1761
- export { GRID_COLS, GRID_ROWS, VERTEX_COUNT } from "book/core/settings";
1762
- export type { EdgeConstraint, BendingConstraint, TriangleData };
1763
1758
  export class PaperMesh {
1764
1759
  _restPositions: Float32Array;
1765
1760
  _positions: Float32Array;
@@ -2793,6 +2788,12 @@ declare module '@micrio/client' {
2793
2788
  export {};
2794
2789
 
2795
2790
 
2791
+ /** Props injected into a `<micrio-grid>` element by the gallery controller. */
2792
+ interface GridProps {
2793
+ micrio: HTMLMicrioElement;
2794
+ image: MicrioImage;
2795
+ gallery: Gallery;
2796
+ }
2796
2797
  /** The main Grid controller that arranges {@link MicrioImage} instances into a CSS grid layout. */
2797
2798
  export class Grid extends MicrioElement<GridProps> {
2798
2799
  #private;
@@ -2837,6 +2838,7 @@ declare module '@micrio/client' {
2837
2838
  /** Enlarge a specific grid cell to span the given number of columns/rows, re-laying out without history. */
2838
2839
  enlarge(idx: number, width: number, height?: number): Promise<MicrioImage[]>;
2839
2840
  }
2841
+ export {};
2840
2842
 
2841
2843
 
2842
2844
  export {};
@@ -3040,9 +3042,27 @@ declare module '@micrio/client' {
3040
3042
  * Re-ported to TypeScript for the Micrio engine.
3041
3043
  *
3042
3044
  * @license MIT
3043
- * @internal
3044
3045
  */
3045
- export {};
3046
+ /**
3047
+ * Represents a 4x4 matrix, tailored for WebGL operations.
3048
+ *
3049
+ * The matrix is stored as a single `Float32Array(16)` in column-major order,
3050
+ * directly usable with WebGL `uniformMatrix4fv` (via {@link Mat4.arr}):
3051
+ * ```
3052
+ * arr[0] arr[4] arr[8] arr[12]
3053
+ * arr[1] arr[5] arr[9] arr[13]
3054
+ * arr[2] arr[6] arr[10] arr[14]
3055
+ * arr[3] arr[7] arr[11] arr[15]
3056
+ * ```
3057
+ */
3058
+ export class Mat4 {
3059
+ /** Float32Array holding the matrix, for direct use with WebGL uniformMatrix4fv. */
3060
+ readonly arr: Float32Array;
3061
+ /**
3062
+ * Creates a new Mat4 (defaults to the identity matrix).
3063
+ */
3064
+ constructor(a0?: number, a1?: number, a2?: number, a3?: number, a4?: number, a5?: number, a6?: number, a7?: number, a8?: number, a9?: number, a10?: number, a11?: number, a12?: number, a13?: number, a14?: number, a15?: number);
3065
+ }
3046
3066
 
3047
3067
 
3048
3068
  export {};