@srsergio/taptapp-ar 1.0.92 → 1.0.93

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.
@@ -1,13 +1,31 @@
1
1
  /**
2
2
  * Construye una lista de imágenes con diferentes escalas para detección de características
3
- * @param {Object} inputImage - Imagen de entrada con propiedades width, height y data
4
- * @returns {Array<Object>} Lista de imágenes escaladas con propiedades data, width, height y scale
3
+ * @param {{width: number, height: number, data: any}} inputImage - Imagen de entrada con propiedades width, height y data
4
+ * @returns {Array<{data: Uint8Array, width: number, height: number, scale: number}>} Lista de imágenes escaladas con propiedades data, width, height y scale
5
5
  */
6
- export function buildImageList(inputImage: Object): Array<Object>;
6
+ export function buildImageList(inputImage: {
7
+ width: number;
8
+ height: number;
9
+ data: any;
10
+ }): Array<{
11
+ data: Uint8Array;
12
+ width: number;
13
+ height: number;
14
+ scale: number;
15
+ }>;
7
16
  /**
8
17
  * Construye una lista optimizada de imágenes para tracking
9
18
  * Genera dos versiones escaladas (256px y 128px) para tracking eficiente
10
- * @param {Object} inputImage - Imagen de entrada con propiedades width, height y data
11
- * @returns {Array<Object>} Lista de imágenes escaladas para tracking
19
+ * @param {{width: number, height: number, data: any}} inputImage - Imagen de entrada con propiedades width, height y data
20
+ * @returns {Array<{data: Uint8Array, width: number, height: number, scale: number}>} Lista de imágenes escaladas para tracking
12
21
  */
13
- export function buildTrackingImageList(inputImage: Object): Array<Object>;
22
+ export function buildTrackingImageList(inputImage: {
23
+ width: number;
24
+ height: number;
25
+ data: any;
26
+ }): Array<{
27
+ data: Uint8Array;
28
+ width: number;
29
+ height: number;
30
+ scale: number;
31
+ }>;
@@ -8,8 +8,8 @@ import { AR_CONFIG } from "./constants.js";
8
8
  const MIN_IMAGE_PIXEL_SIZE = AR_CONFIG.MIN_IMAGE_PIXEL_SIZE;
9
9
  /**
10
10
  * Construye una lista de imágenes con diferentes escalas para detección de características
11
- * @param {Object} inputImage - Imagen de entrada con propiedades width, height y data
12
- * @returns {Array<Object>} Lista de imágenes escaladas con propiedades data, width, height y scale
11
+ * @param {{width: number, height: number, data: any}} inputImage - Imagen de entrada con propiedades width, height y data
12
+ * @returns {Array<{data: Uint8Array, width: number, height: number, scale: number}>} Lista de imágenes escaladas con propiedades data, width, height y scale
13
13
  */
14
14
  const buildImageList = (inputImage) => {
15
15
  const minScale = MIN_IMAGE_PIXEL_SIZE / Math.min(inputImage.width, inputImage.height);
@@ -36,8 +36,8 @@ const buildImageList = (inputImage) => {
36
36
  /**
37
37
  * Construye una lista optimizada de imágenes para tracking
38
38
  * Genera dos versiones escaladas (256px y 128px) para tracking eficiente
39
- * @param {Object} inputImage - Imagen de entrada con propiedades width, height y data
40
- * @returns {Array<Object>} Lista de imágenes escaladas para tracking
39
+ * @param {{width: number, height: number, data: any}} inputImage - Imagen de entrada con propiedades width, height y data
40
+ * @returns {Array<{data: Uint8Array, width: number, height: number, scale: number}>} Lista de imágenes escaladas para tracking
41
41
  */
42
42
  const buildTrackingImageList = (inputImage) => {
43
43
  const minDimension = Math.min(inputImage.width, inputImage.height);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srsergio/taptapp-ar",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "description": "Ultra-fast Augmented Reality (AR) SDK for Node.js and Browser. Image tracking with 100% pure JavaScript, zero-dependencies, and high-performance compilation.",
5
5
  "keywords": [
6
6
  "augmented reality",
@@ -12,8 +12,8 @@ const MIN_IMAGE_PIXEL_SIZE = AR_CONFIG.MIN_IMAGE_PIXEL_SIZE;
12
12
 
13
13
  /**
14
14
  * Construye una lista de imágenes con diferentes escalas para detección de características
15
- * @param {Object} inputImage - Imagen de entrada con propiedades width, height y data
16
- * @returns {Array<Object>} Lista de imágenes escaladas con propiedades data, width, height y scale
15
+ * @param {{width: number, height: number, data: any}} inputImage - Imagen de entrada con propiedades width, height y data
16
+ * @returns {Array<{data: Uint8Array, width: number, height: number, scale: number}>} Lista de imágenes escaladas con propiedades data, width, height y scale
17
17
  */
18
18
  const buildImageList = (inputImage) => {
19
19
  const minScale = MIN_IMAGE_PIXEL_SIZE / Math.min(inputImage.width, inputImage.height);
@@ -45,8 +45,8 @@ const buildImageList = (inputImage) => {
45
45
  /**
46
46
  * Construye una lista optimizada de imágenes para tracking
47
47
  * Genera dos versiones escaladas (256px y 128px) para tracking eficiente
48
- * @param {Object} inputImage - Imagen de entrada con propiedades width, height y data
49
- * @returns {Array<Object>} Lista de imágenes escaladas para tracking
48
+ * @param {{width: number, height: number, data: any}} inputImage - Imagen de entrada con propiedades width, height y data
49
+ * @returns {Array<{data: Uint8Array, width: number, height: number, scale: number}>} Lista de imágenes escaladas para tracking
50
50
  */
51
51
  const buildTrackingImageList = (inputImage) => {
52
52
  const minDimension = Math.min(inputImage.width, inputImage.height);