@dcl/js-runtime 7.5.3 → 7.5.4-9583437273.commit-b701277

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.
Files changed (2) hide show
  1. package/apis.d.ts +19 -0
  2. package/package.json +2 -2
package/apis.d.ts CHANGED
@@ -1493,6 +1493,21 @@ declare module "~system/Testing" {
1493
1493
  }
1494
1494
 
1495
1495
  // Function declaration section
1496
+ export interface TakeAndCompareScreenshotRequest {
1497
+ /**
1498
+ * the source path in the scene where the screenshot is stored,
1499
+ * the snapshot taken is compared with the stored one
1500
+ */
1501
+ srcStoredSnapshot: string;
1502
+ /** the camera position where is set before and while taking the screenshot, relative to base scene */
1503
+ cameraPosition: Vector3 | undefined;
1504
+ /** the camera position where is target to before and while taking the screenshot, relative to base scene */
1505
+ cameraTarget: Vector3 | undefined;
1506
+ /** width x height screenshot size */
1507
+ screenshotSize: Vector2 | undefined;
1508
+ greyPixelDiff?: TakeAndCompareScreenshotRequest_ComparisonMethodGreyPixelDiff | undefined;
1509
+ snapshotMode: TakeAndCompareScreenshotRequest_SnapshotMode;
1510
+ }
1496
1511
  export enum TakeAndCompareScreenshotRequest_SnapshotMode {
1497
1512
  /** SM_3D_AND_UI - only visible 3d scene and ui scene */
1498
1513
  SM_3D_AND_UI = 0,
@@ -1504,6 +1519,10 @@ declare module "~system/Testing" {
1504
1519
  }
1505
1520
  export interface TakeAndCompareScreenshotRequest_ComparisonMethodGreyPixelDiff {
1506
1521
  }
1522
+ export interface TakeAndCompareScreenshotResponse {
1523
+ storedSnapshotFound: boolean;
1524
+ greyPixelDiff?: TakeAndCompareScreenshotResponse_ComparisonMethodGreyPixelDiffResult | undefined;
1525
+ }
1507
1526
  export interface TakeAndCompareScreenshotResponse_ComparisonMethodGreyPixelDiffResult {
1508
1527
  similarity: number;
1509
1528
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/js-runtime",
3
3
  "description": "JavaScript runtime definitions for Decentraland environments",
4
- "version": "7.5.3",
4
+ "version": "7.5.4-9583437273.commit-b701277",
5
5
  "author": "",
6
6
  "files": [
7
7
  "index.d.ts",
@@ -20,5 +20,5 @@
20
20
  },
21
21
  "types": "./index.d.ts",
22
22
  "typings": "./index.d.ts",
23
- "commit": "df2f989c1b9c05a767dc1de628ab1318f4cdadec"
23
+ "commit": "b701277939f21021c5b0cfe33e85cb4c56f4d797"
24
24
  }