@dcl/ecs 7.23.4-26723618219.commit-ea97433 → 7.23.4-26770223094.commit-52b9415

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.
@@ -19,6 +19,14 @@ export interface PBUiCanvasInformation {
19
19
  * on the contrary, if the chat UI is shown, the rect would be smaller.
20
20
  */
21
21
  interactableArea: BorderRect | undefined;
22
+ /**
23
+ * informs the sdk about the screen inset area (safe margins). these are the
24
+ * insets from each edge of the screen that are reserved by the device or
25
+ * platform UI (for example: the notch, status bar, home indicator, or rounded
26
+ * corners on mobile). scenes should avoid placing critical UI within these
27
+ * insets to ensure it is not occluded. on desktop this is typically (0, 0, 0, 0).
28
+ */
29
+ screenInsetArea?: BorderRect | undefined;
22
30
  }
23
31
  /**
24
32
  * @public
@@ -3,7 +3,7 @@ import _m0 from "protobufjs/minimal";
3
3
  import { BorderRect } from "../../common/border_rect.gen";
4
4
  const protobufPackageSarasa = "decentraland.sdk.components";
5
5
  function createBasePBUiCanvasInformation() {
6
- return { devicePixelRatio: 0, width: 0, height: 0, interactableArea: undefined };
6
+ return { devicePixelRatio: 0, width: 0, height: 0, interactableArea: undefined, screenInsetArea: undefined };
7
7
  }
8
8
  /**
9
9
  * @public
@@ -23,6 +23,9 @@ export var PBUiCanvasInformation;
23
23
  if (message.interactableArea !== undefined) {
24
24
  BorderRect.encode(message.interactableArea, writer.uint32(34).fork()).ldelim();
25
25
  }
26
+ if (message.screenInsetArea !== undefined) {
27
+ BorderRect.encode(message.screenInsetArea, writer.uint32(42).fork()).ldelim();
28
+ }
26
29
  return writer;
27
30
  }
28
31
  PBUiCanvasInformation.encode = encode;
@@ -57,6 +60,12 @@ export var PBUiCanvasInformation;
57
60
  }
58
61
  message.interactableArea = BorderRect.decode(reader, reader.uint32());
59
62
  continue;
63
+ case 5:
64
+ if (tag !== 42) {
65
+ break;
66
+ }
67
+ message.screenInsetArea = BorderRect.decode(reader, reader.uint32());
68
+ continue;
60
69
  }
61
70
  if ((tag & 7) === 4 || tag === 0) {
62
71
  break;
@@ -19,6 +19,14 @@ export interface PBUiCanvasInformation {
19
19
  * on the contrary, if the chat UI is shown, the rect would be smaller.
20
20
  */
21
21
  interactableArea: BorderRect | undefined;
22
+ /**
23
+ * informs the sdk about the screen inset area (safe margins). these are the
24
+ * insets from each edge of the screen that are reserved by the device or
25
+ * platform UI (for example: the notch, status bar, home indicator, or rounded
26
+ * corners on mobile). scenes should avoid placing critical UI within these
27
+ * insets to ensure it is not occluded. on desktop this is typically (0, 0, 0, 0).
28
+ */
29
+ screenInsetArea?: BorderRect | undefined;
22
30
  }
23
31
  /**
24
32
  * @public
@@ -9,7 +9,7 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
9
  const border_rect_gen_1 = require("../../common/border_rect.gen");
10
10
  const protobufPackageSarasa = "decentraland.sdk.components";
11
11
  function createBasePBUiCanvasInformation() {
12
- return { devicePixelRatio: 0, width: 0, height: 0, interactableArea: undefined };
12
+ return { devicePixelRatio: 0, width: 0, height: 0, interactableArea: undefined, screenInsetArea: undefined };
13
13
  }
14
14
  /**
15
15
  * @public
@@ -29,6 +29,9 @@ var PBUiCanvasInformation;
29
29
  if (message.interactableArea !== undefined) {
30
30
  border_rect_gen_1.BorderRect.encode(message.interactableArea, writer.uint32(34).fork()).ldelim();
31
31
  }
32
+ if (message.screenInsetArea !== undefined) {
33
+ border_rect_gen_1.BorderRect.encode(message.screenInsetArea, writer.uint32(42).fork()).ldelim();
34
+ }
32
35
  return writer;
33
36
  }
34
37
  PBUiCanvasInformation.encode = encode;
@@ -63,6 +66,12 @@ var PBUiCanvasInformation;
63
66
  }
64
67
  message.interactableArea = border_rect_gen_1.BorderRect.decode(reader, reader.uint32());
65
68
  continue;
69
+ case 5:
70
+ if (tag !== 42) {
71
+ break;
72
+ }
73
+ message.screenInsetArea = border_rect_gen_1.BorderRect.decode(reader, reader.uint32());
74
+ continue;
66
75
  }
67
76
  if ((tag & 7) === 4 || tag === 0) {
68
77
  break;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/ecs",
3
3
  "description": "Decentraland ECS",
4
- "version": "7.23.4-26723618219.commit-ea97433",
4
+ "version": "7.23.4-26770223094.commit-52b9415",
5
5
  "author": "DCL",
6
6
  "bugs": "https://github.com/decentraland/ecs/issues",
7
7
  "files": [
@@ -34,5 +34,5 @@
34
34
  "dependencies": {},
35
35
  "types": "./dist/index.d.ts",
36
36
  "typings": "./dist/index.d.ts",
37
- "commit": "ea974331caffe948877a5bfadb0dc458ae60e15a"
37
+ "commit": "52b9415ebab8c77313e9fbc0725fd2e5f916d3c3"
38
38
  }