@dcl/playground-assets 7.5.3-9489898545.commit-df2f989 → 7.5.4-9583175884.commit-4a0210f

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.
@@ -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
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.5.3-9489898545.commit-df2f989",
4
+ "version": "7.5.4-9583175884.commit-4a0210f",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
7
  "@dcl/ecs": "file:../ecs",
@@ -35,5 +35,5 @@
35
35
  },
36
36
  "types": "./index.d.ts",
37
37
  "typings": "./index.d.ts",
38
- "commit": "df2f989c1b9c05a767dc1de628ab1318f4cdadec"
38
+ "commit": "4a0210f3621fb67a74dd10a2576bee25f30b3c73"
39
39
  }
@@ -5279,7 +5279,7 @@ export declare namespace PBUiInputResult {
5279
5279
  * @public
5280
5280
  */
5281
5281
  export declare interface PBUiText {
5282
- /** the text content */
5282
+ /** the text content, tag <b> and <i> are supported */
5283
5283
  value: string;
5284
5284
  /** RGBA color (default: opaque white) */
5285
5285
  color?: PBColor4 | undefined;
@@ -5289,6 +5289,8 @@ export declare interface PBUiText {
5289
5289
  font?: Font | undefined;
5290
5290
  /** size of the text (default: 10) */
5291
5291
  fontSize?: number | undefined;
5292
+ /** wrap text when the border is reached (default: TW_WRAP) */
5293
+ textWrap?: TextWrap | undefined;
5292
5294
  }
5293
5295
 
5294
5296
  /**
@@ -6911,6 +6913,14 @@ export declare const enum TextureWrapMode {
6911
6913
  */
6912
6914
  export declare type TextureWrapType = 'repeat' | 'clamp' | 'mirror';
6913
6915
 
6916
+ /**
6917
+ * @public
6918
+ */
6919
+ export declare const enum TextWrap {
6920
+ TW_WRAP = 0,
6921
+ TW_NO_WRAP = 1
6922
+ }
6923
+
6914
6924
  /**
6915
6925
  * Constant used to convert a value to gamma space
6916
6926
  * @public
@@ -7168,6 +7178,8 @@ export declare interface UiLabelProps {
7168
7178
  textAlign?: TextAlignType | undefined;
7169
7179
  /** Label font type. @defaultValue 'sans-serif' */
7170
7180
  font?: UiFontType | undefined;
7181
+ /** Behaviour when text reached. @defaultValue 'wrap' */
7182
+ textWrap?: UiTextWrapType | undefined;
7171
7183
  }
7172
7184
 
7173
7185
  /**
@@ -7188,6 +7200,11 @@ export declare type UiTexture = {
7188
7200
  filterMode?: TextureFilterType;
7189
7201
  };
7190
7202
 
7203
+ /**
7204
+ * @public
7205
+ */
7206
+ export declare type UiTextWrapType = 'wrap' | 'nowrap';
7207
+
7191
7208
  /** @public */
7192
7209
  export declare const UiTransform: LastWriteWinElementSetComponentDefinition<PBUiTransform>;
7193
7210
 
@@ -50393,10 +50393,42 @@
50393
50393
  "endIndex": 3
50394
50394
  }
50395
50395
  },
50396
+ {
50397
+ "kind": "PropertySignature",
50398
+ "canonicalReference": "@dcl/playground-assets!PBUiText#textWrap:member",
50399
+ "docComment": "/**\n * wrap text when the border is reached (default: TW_WRAP)\n */\n",
50400
+ "excerptTokens": [
50401
+ {
50402
+ "kind": "Content",
50403
+ "text": "textWrap?: "
50404
+ },
50405
+ {
50406
+ "kind": "Reference",
50407
+ "text": "TextWrap",
50408
+ "canonicalReference": "@dcl/playground-assets!TextWrap:enum"
50409
+ },
50410
+ {
50411
+ "kind": "Content",
50412
+ "text": " | undefined"
50413
+ },
50414
+ {
50415
+ "kind": "Content",
50416
+ "text": ";"
50417
+ }
50418
+ ],
50419
+ "isReadonly": false,
50420
+ "isOptional": true,
50421
+ "releaseTag": "Public",
50422
+ "name": "textWrap",
50423
+ "propertyTypeTokenRange": {
50424
+ "startIndex": 1,
50425
+ "endIndex": 3
50426
+ }
50427
+ },
50396
50428
  {
50397
50429
  "kind": "PropertySignature",
50398
50430
  "canonicalReference": "@dcl/playground-assets!PBUiText#value:member",
50399
- "docComment": "/**\n * the text content\n */\n",
50431
+ "docComment": "/**\n * the text content, tag <b> and <i> are supported\n */\n",
50400
50432
  "excerptTokens": [
50401
50433
  {
50402
50434
  "kind": "Content",
@@ -65845,6 +65877,65 @@
65845
65877
  "endIndex": 2
65846
65878
  }
65847
65879
  },
65880
+ {
65881
+ "kind": "Enum",
65882
+ "canonicalReference": "@dcl/playground-assets!TextWrap:enum",
65883
+ "docComment": "/**\n * @public\n */\n",
65884
+ "excerptTokens": [
65885
+ {
65886
+ "kind": "Content",
65887
+ "text": "export declare const enum TextWrap "
65888
+ }
65889
+ ],
65890
+ "fileUrlPath": "../ecs/dist/components/generated/pb/decentraland/sdk/components/ui_text.gen.d.ts",
65891
+ "releaseTag": "Public",
65892
+ "name": "TextWrap",
65893
+ "preserveMemberOrder": false,
65894
+ "members": [
65895
+ {
65896
+ "kind": "EnumMember",
65897
+ "canonicalReference": "@dcl/playground-assets!TextWrap.TW_NO_WRAP:member",
65898
+ "docComment": "",
65899
+ "excerptTokens": [
65900
+ {
65901
+ "kind": "Content",
65902
+ "text": "TW_NO_WRAP = "
65903
+ },
65904
+ {
65905
+ "kind": "Content",
65906
+ "text": "1"
65907
+ }
65908
+ ],
65909
+ "initializerTokenRange": {
65910
+ "startIndex": 1,
65911
+ "endIndex": 2
65912
+ },
65913
+ "releaseTag": "Public",
65914
+ "name": "TW_NO_WRAP"
65915
+ },
65916
+ {
65917
+ "kind": "EnumMember",
65918
+ "canonicalReference": "@dcl/playground-assets!TextWrap.TW_WRAP:member",
65919
+ "docComment": "",
65920
+ "excerptTokens": [
65921
+ {
65922
+ "kind": "Content",
65923
+ "text": "TW_WRAP = "
65924
+ },
65925
+ {
65926
+ "kind": "Content",
65927
+ "text": "0"
65928
+ }
65929
+ ],
65930
+ "initializerTokenRange": {
65931
+ "startIndex": 1,
65932
+ "endIndex": 2
65933
+ },
65934
+ "releaseTag": "Public",
65935
+ "name": "TW_WRAP"
65936
+ }
65937
+ ]
65938
+ },
65848
65939
  {
65849
65940
  "kind": "Variable",
65850
65941
  "canonicalReference": "@dcl/playground-assets!ToGammaSpace:var",
@@ -68170,6 +68261,38 @@
68170
68261
  "endIndex": 3
68171
68262
  }
68172
68263
  },
68264
+ {
68265
+ "kind": "PropertySignature",
68266
+ "canonicalReference": "@dcl/playground-assets!UiLabelProps#textWrap:member",
68267
+ "docComment": "/**\n * Behaviour when text reached.\n *\n * @defaultValue\n *\n * 'wrap'\n */\n",
68268
+ "excerptTokens": [
68269
+ {
68270
+ "kind": "Content",
68271
+ "text": "textWrap?: "
68272
+ },
68273
+ {
68274
+ "kind": "Reference",
68275
+ "text": "UiTextWrapType",
68276
+ "canonicalReference": "@dcl/playground-assets!UiTextWrapType:type"
68277
+ },
68278
+ {
68279
+ "kind": "Content",
68280
+ "text": " | undefined"
68281
+ },
68282
+ {
68283
+ "kind": "Content",
68284
+ "text": ";"
68285
+ }
68286
+ ],
68287
+ "isReadonly": false,
68288
+ "isOptional": true,
68289
+ "releaseTag": "Public",
68290
+ "name": "textWrap",
68291
+ "propertyTypeTokenRange": {
68292
+ "startIndex": 1,
68293
+ "endIndex": 3
68294
+ }
68295
+ },
68173
68296
  {
68174
68297
  "kind": "PropertySignature",
68175
68298
  "canonicalReference": "@dcl/playground-assets!UiLabelProps#value:member",
@@ -68307,6 +68430,32 @@
68307
68430
  "endIndex": 6
68308
68431
  }
68309
68432
  },
68433
+ {
68434
+ "kind": "TypeAlias",
68435
+ "canonicalReference": "@dcl/playground-assets!UiTextWrapType:type",
68436
+ "docComment": "/**\n * @public\n */\n",
68437
+ "excerptTokens": [
68438
+ {
68439
+ "kind": "Content",
68440
+ "text": "export type UiTextWrapType = "
68441
+ },
68442
+ {
68443
+ "kind": "Content",
68444
+ "text": "'wrap' | 'nowrap'"
68445
+ },
68446
+ {
68447
+ "kind": "Content",
68448
+ "text": ";"
68449
+ }
68450
+ ],
68451
+ "fileUrlPath": "../react-ecs/dist/components/Label/types.d.ts",
68452
+ "releaseTag": "Public",
68453
+ "name": "UiTextWrapType",
68454
+ "typeTokenRange": {
68455
+ "startIndex": 1,
68456
+ "endIndex": 2
68457
+ }
68458
+ },
68310
68459
  {
68311
68460
  "kind": "Variable",
68312
68461
  "canonicalReference": "@dcl/playground-assets!UiTransform:var",
@@ -2948,6 +2948,7 @@ export interface PBUiText {
2948
2948
  font?: Font | undefined;
2949
2949
  fontSize?: number | undefined;
2950
2950
  textAlign?: TextAlignMode | undefined;
2951
+ textWrap?: TextWrap | undefined;
2951
2952
  value: string;
2952
2953
  }
2953
2954
 
@@ -3847,6 +3848,14 @@ export const enum TextureWrapMode {
3847
3848
  // @public (undocumented)
3848
3849
  export type TextureWrapType = 'repeat' | 'clamp' | 'mirror';
3849
3850
 
3851
+ // @public (undocumented)
3852
+ export const enum TextWrap {
3853
+ // (undocumented)
3854
+ TW_NO_WRAP = 1,
3855
+ // (undocumented)
3856
+ TW_WRAP = 0
3857
+ }
3858
+
3850
3859
  // @public
3851
3860
  export const ToGammaSpace: number;
3852
3861
 
@@ -4049,6 +4058,7 @@ export interface UiLabelProps {
4049
4058
  font?: UiFontType | undefined;
4050
4059
  fontSize?: ScaleUnit | undefined;
4051
4060
  textAlign?: TextAlignType | undefined;
4061
+ textWrap?: UiTextWrapType | undefined;
4052
4062
  value: string;
4053
4063
  }
4054
4064
 
@@ -4065,6 +4075,9 @@ export type UiTexture = {
4065
4075
  filterMode?: TextureFilterType;
4066
4076
  };
4067
4077
 
4078
+ // @public (undocumented)
4079
+ export type UiTextWrapType = 'wrap' | 'nowrap';
4080
+
4068
4081
  // @public (undocumented)
4069
4082
  export const UiTransform: LastWriteWinElementSetComponentDefinition<PBUiTransform>;
4070
4083
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
3
  "description": "",
4
- "version": "7.5.3-9489898545.commit-df2f989",
4
+ "version": "7.5.4-9583175884.commit-4a0210f",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.5.3-9489898545.commit-df2f989",
8
- "@dcl/sdk": "7.5.3-9489898545.commit-df2f989"
7
+ "@dcl/js-runtime": "7.5.4-9583175884.commit-4a0210f",
8
+ "@dcl/sdk": "7.5.4-9583175884.commit-4a0210f"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@microsoft/api-extractor": "^7.33.8"
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "types": "./dist/index.d.ts",
34
34
  "typings": "./dist/index.d.ts",
35
- "commit": "df2f989c1b9c05a767dc1de628ab1318f4cdadec"
35
+ "commit": "4a0210f3621fb67a74dd10a2576bee25f30b3c73"
36
36
  }