@micrio/client 7.3.7 → 7.3.9
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.core.min.js +4 -3
- package/micrio.min.d.ts +27 -5
- package/micrio.min.js +4 -3
- package/package.json +1 -1
package/micrio.min.d.ts
CHANGED
|
@@ -1738,7 +1738,6 @@ declare module '@micrio/client' {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
|
|
1740
1740
|
|
|
1741
|
-
export { GRID_COLS, GRID_ROWS, VERTEX_COUNT } from "book/core/settings";
|
|
1742
1741
|
export interface EdgeConstraint {
|
|
1743
1742
|
_i: number;
|
|
1744
1743
|
_j: number;
|
|
@@ -1758,8 +1757,6 @@ declare module '@micrio/client' {
|
|
|
1758
1757
|
export function addGridConstraints(baseIdx: number, add: (i: number, j: number) => void): void;
|
|
1759
1758
|
|
|
1760
1759
|
|
|
1761
|
-
export { GRID_COLS, GRID_ROWS, VERTEX_COUNT } from "book/core/settings";
|
|
1762
|
-
export type { EdgeConstraint, BendingConstraint, TriangleData };
|
|
1763
1760
|
export class PaperMesh {
|
|
1764
1761
|
_restPositions: Float32Array;
|
|
1765
1762
|
_positions: Float32Array;
|
|
@@ -2793,6 +2790,12 @@ declare module '@micrio/client' {
|
|
|
2793
2790
|
export {};
|
|
2794
2791
|
|
|
2795
2792
|
|
|
2793
|
+
/** Props injected into a `<micrio-grid>` element by the gallery controller. */
|
|
2794
|
+
interface GridProps {
|
|
2795
|
+
micrio: HTMLMicrioElement;
|
|
2796
|
+
image: MicrioImage;
|
|
2797
|
+
gallery: Gallery;
|
|
2798
|
+
}
|
|
2796
2799
|
/** The main Grid controller that arranges {@link MicrioImage} instances into a CSS grid layout. */
|
|
2797
2800
|
export class Grid extends MicrioElement<GridProps> {
|
|
2798
2801
|
#private;
|
|
@@ -2837,6 +2840,7 @@ declare module '@micrio/client' {
|
|
|
2837
2840
|
/** Enlarge a specific grid cell to span the given number of columns/rows, re-laying out without history. */
|
|
2838
2841
|
enlarge(idx: number, width: number, height?: number): Promise<MicrioImage[]>;
|
|
2839
2842
|
}
|
|
2843
|
+
export {};
|
|
2840
2844
|
|
|
2841
2845
|
|
|
2842
2846
|
export {};
|
|
@@ -3040,9 +3044,27 @@ declare module '@micrio/client' {
|
|
|
3040
3044
|
* Re-ported to TypeScript for the Micrio engine.
|
|
3041
3045
|
*
|
|
3042
3046
|
* @license MIT
|
|
3043
|
-
* @internal
|
|
3044
3047
|
*/
|
|
3045
|
-
|
|
3048
|
+
/**
|
|
3049
|
+
* Represents a 4x4 matrix, tailored for WebGL operations.
|
|
3050
|
+
*
|
|
3051
|
+
* The matrix is stored as a single `Float32Array(16)` in column-major order,
|
|
3052
|
+
* directly usable with WebGL `uniformMatrix4fv` (via {@link Mat4.arr}):
|
|
3053
|
+
* ```
|
|
3054
|
+
* arr[0] arr[4] arr[8] arr[12]
|
|
3055
|
+
* arr[1] arr[5] arr[9] arr[13]
|
|
3056
|
+
* arr[2] arr[6] arr[10] arr[14]
|
|
3057
|
+
* arr[3] arr[7] arr[11] arr[15]
|
|
3058
|
+
* ```
|
|
3059
|
+
*/
|
|
3060
|
+
export class Mat4 {
|
|
3061
|
+
/** Float32Array holding the matrix, for direct use with WebGL uniformMatrix4fv. */
|
|
3062
|
+
readonly arr: Float32Array;
|
|
3063
|
+
/**
|
|
3064
|
+
* Creates a new Mat4 (defaults to the identity matrix).
|
|
3065
|
+
*/
|
|
3066
|
+
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);
|
|
3067
|
+
}
|
|
3046
3068
|
|
|
3047
3069
|
|
|
3048
3070
|
export {};
|