@dcl/playground-assets 7.25.1-31496802383.commit-d3168c9 → 7.25.1-31605440953.commit-08dff78
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/dist/alpha.d.ts +34 -3
- package/dist/beta.d.ts +34 -3
- package/dist/index.bundled.d.ts +34 -3
- package/dist/index.js +6 -6
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +34 -3
- package/etc/playground-assets.api.json +38 -3
- package/etc/playground-assets.api.md +6 -2
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -8148,6 +8148,16 @@ export declare interface ReactBasedUiSystem {
|
|
|
8148
8148
|
destroy(): void;
|
|
8149
8149
|
/**
|
|
8150
8150
|
* Set the main UI renderer. Optional virtual size defines the global UI scale factor.
|
|
8151
|
+
*
|
|
8152
|
+
* When no virtual size is provided, a platform default is used: 1600x720 on
|
|
8153
|
+
* mobile, 1920x1080 otherwise. Providing an invalid size disables the virtual
|
|
8154
|
+
* screen (no UI scaling): either a value \<= 0, or only one of the two
|
|
8155
|
+
* dimensions, which additionally logs a warning. On mobile, a provided 16:9
|
|
8156
|
+
* virtual size is overridden to 1600x720 to fit phone screens.
|
|
8157
|
+
*
|
|
8158
|
+
* The optional `screenInset` selects the screen area the UI is positioned in
|
|
8159
|
+
* (see {@link UiScreenInset}); it defaults to `'device'`. Pass `'none'` to
|
|
8160
|
+
* place the UI over the whole screen.
|
|
8151
8161
|
*/
|
|
8152
8162
|
setUiRenderer(ui: UiComponent, options?: UiRendererOptions): void;
|
|
8153
8163
|
/**
|
|
@@ -8162,7 +8172,10 @@ export declare interface ReactBasedUiSystem {
|
|
|
8162
8172
|
* @param entity - The entity to associate with this UI renderer. When the entity is removed,
|
|
8163
8173
|
* the UI renderer is automatically cleaned up.
|
|
8164
8174
|
* @param ui - The UI component to render
|
|
8165
|
-
* @param options - Optional virtual size used for UI scale factor when main UI has none
|
|
8175
|
+
* @param options - Optional virtual size used for UI scale factor when main UI has none.
|
|
8176
|
+
* Defaults and the mobile 16:9 override behave as in {@link ReactBasedUiSystem.setUiRenderer}.
|
|
8177
|
+
* `screenInset` is honored per renderer, independently of the main UI's value,
|
|
8178
|
+
* and defaults to `'device'` here too.
|
|
8166
8179
|
*/
|
|
8167
8180
|
addUiRenderer(entity: Entity, ui: UiComponent, options?: UiRendererOptions): void;
|
|
8168
8181
|
/**
|
|
@@ -9675,10 +9688,28 @@ export declare type uint32 = number;
|
|
|
9675
9688
|
* @public
|
|
9676
9689
|
*/
|
|
9677
9690
|
export declare type UiRendererOptions = {
|
|
9678
|
-
virtualWidth
|
|
9679
|
-
virtualHeight
|
|
9691
|
+
virtualWidth?: number;
|
|
9692
|
+
virtualHeight?: number;
|
|
9693
|
+
/**
|
|
9694
|
+
* Screen area the renderer's UI is positioned in. Defaults to `'device'`, so UI
|
|
9695
|
+
* stays inside the device safe area unless the creator opts out with `'none'`.
|
|
9696
|
+
* Each renderer honors its own value, so the main UI and additional renderers
|
|
9697
|
+
* can use different insets simultaneously.
|
|
9698
|
+
*/
|
|
9699
|
+
screenInset?: UiScreenInset;
|
|
9680
9700
|
};
|
|
9681
9701
|
|
|
9702
|
+
/**
|
|
9703
|
+
* Screen area used to position a renderer's UI entities:
|
|
9704
|
+
* - `'device'` (default): the device safe area (excludes notch, status bar,
|
|
9705
|
+
* rounded corners), reported in `UiCanvasInformation.screenInsetArea`.
|
|
9706
|
+
* - `'interactable'`: the area free of the Explorer's native HUD (minimap, chat, ...),
|
|
9707
|
+
* reported in `UiCanvasInformation.interactableArea`.
|
|
9708
|
+
* - `'none'`: the whole screen, with 0,0 at its top-left corner.
|
|
9709
|
+
* @public
|
|
9710
|
+
*/
|
|
9711
|
+
export declare type UiScreenInset = 'device' | 'interactable' | 'none';
|
|
9712
|
+
|
|
9682
9713
|
/**
|
|
9683
9714
|
* ScreenInsetArea component props
|
|
9684
9715
|
*
|
package/dist/beta.d.ts
CHANGED
|
@@ -8120,6 +8120,16 @@ export declare interface ReactBasedUiSystem {
|
|
|
8120
8120
|
destroy(): void;
|
|
8121
8121
|
/**
|
|
8122
8122
|
* Set the main UI renderer. Optional virtual size defines the global UI scale factor.
|
|
8123
|
+
*
|
|
8124
|
+
* When no virtual size is provided, a platform default is used: 1600x720 on
|
|
8125
|
+
* mobile, 1920x1080 otherwise. Providing an invalid size disables the virtual
|
|
8126
|
+
* screen (no UI scaling): either a value \<= 0, or only one of the two
|
|
8127
|
+
* dimensions, which additionally logs a warning. On mobile, a provided 16:9
|
|
8128
|
+
* virtual size is overridden to 1600x720 to fit phone screens.
|
|
8129
|
+
*
|
|
8130
|
+
* The optional `screenInset` selects the screen area the UI is positioned in
|
|
8131
|
+
* (see {@link UiScreenInset}); it defaults to `'device'`. Pass `'none'` to
|
|
8132
|
+
* place the UI over the whole screen.
|
|
8123
8133
|
*/
|
|
8124
8134
|
setUiRenderer(ui: UiComponent, options?: UiRendererOptions): void;
|
|
8125
8135
|
/**
|
|
@@ -8134,7 +8144,10 @@ export declare interface ReactBasedUiSystem {
|
|
|
8134
8144
|
* @param entity - The entity to associate with this UI renderer. When the entity is removed,
|
|
8135
8145
|
* the UI renderer is automatically cleaned up.
|
|
8136
8146
|
* @param ui - The UI component to render
|
|
8137
|
-
* @param options - Optional virtual size used for UI scale factor when main UI has none
|
|
8147
|
+
* @param options - Optional virtual size used for UI scale factor when main UI has none.
|
|
8148
|
+
* Defaults and the mobile 16:9 override behave as in {@link ReactBasedUiSystem.setUiRenderer}.
|
|
8149
|
+
* `screenInset` is honored per renderer, independently of the main UI's value,
|
|
8150
|
+
* and defaults to `'device'` here too.
|
|
8138
8151
|
*/
|
|
8139
8152
|
addUiRenderer(entity: Entity, ui: UiComponent, options?: UiRendererOptions): void;
|
|
8140
8153
|
/**
|
|
@@ -9642,10 +9655,28 @@ export declare type uint32 = number;
|
|
|
9642
9655
|
* @public
|
|
9643
9656
|
*/
|
|
9644
9657
|
export declare type UiRendererOptions = {
|
|
9645
|
-
virtualWidth
|
|
9646
|
-
virtualHeight
|
|
9658
|
+
virtualWidth?: number;
|
|
9659
|
+
virtualHeight?: number;
|
|
9660
|
+
/**
|
|
9661
|
+
* Screen area the renderer's UI is positioned in. Defaults to `'device'`, so UI
|
|
9662
|
+
* stays inside the device safe area unless the creator opts out with `'none'`.
|
|
9663
|
+
* Each renderer honors its own value, so the main UI and additional renderers
|
|
9664
|
+
* can use different insets simultaneously.
|
|
9665
|
+
*/
|
|
9666
|
+
screenInset?: UiScreenInset;
|
|
9647
9667
|
};
|
|
9648
9668
|
|
|
9669
|
+
/**
|
|
9670
|
+
* Screen area used to position a renderer's UI entities:
|
|
9671
|
+
* - `'device'` (default): the device safe area (excludes notch, status bar,
|
|
9672
|
+
* rounded corners), reported in `UiCanvasInformation.screenInsetArea`.
|
|
9673
|
+
* - `'interactable'`: the area free of the Explorer's native HUD (minimap, chat, ...),
|
|
9674
|
+
* reported in `UiCanvasInformation.interactableArea`.
|
|
9675
|
+
* - `'none'`: the whole screen, with 0,0 at its top-left corner.
|
|
9676
|
+
* @public
|
|
9677
|
+
*/
|
|
9678
|
+
export declare type UiScreenInset = 'device' | 'interactable' | 'none';
|
|
9679
|
+
|
|
9649
9680
|
/**
|
|
9650
9681
|
* ScreenInsetArea component props
|
|
9651
9682
|
*
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -8120,6 +8120,16 @@ export declare interface ReactBasedUiSystem {
|
|
|
8120
8120
|
destroy(): void;
|
|
8121
8121
|
/**
|
|
8122
8122
|
* Set the main UI renderer. Optional virtual size defines the global UI scale factor.
|
|
8123
|
+
*
|
|
8124
|
+
* When no virtual size is provided, a platform default is used: 1600x720 on
|
|
8125
|
+
* mobile, 1920x1080 otherwise. Providing an invalid size disables the virtual
|
|
8126
|
+
* screen (no UI scaling): either a value \<= 0, or only one of the two
|
|
8127
|
+
* dimensions, which additionally logs a warning. On mobile, a provided 16:9
|
|
8128
|
+
* virtual size is overridden to 1600x720 to fit phone screens.
|
|
8129
|
+
*
|
|
8130
|
+
* The optional `screenInset` selects the screen area the UI is positioned in
|
|
8131
|
+
* (see {@link UiScreenInset}); it defaults to `'device'`. Pass `'none'` to
|
|
8132
|
+
* place the UI over the whole screen.
|
|
8123
8133
|
*/
|
|
8124
8134
|
setUiRenderer(ui: UiComponent, options?: UiRendererOptions): void;
|
|
8125
8135
|
/**
|
|
@@ -8134,7 +8144,10 @@ export declare interface ReactBasedUiSystem {
|
|
|
8134
8144
|
* @param entity - The entity to associate with this UI renderer. When the entity is removed,
|
|
8135
8145
|
* the UI renderer is automatically cleaned up.
|
|
8136
8146
|
* @param ui - The UI component to render
|
|
8137
|
-
* @param options - Optional virtual size used for UI scale factor when main UI has none
|
|
8147
|
+
* @param options - Optional virtual size used for UI scale factor when main UI has none.
|
|
8148
|
+
* Defaults and the mobile 16:9 override behave as in {@link ReactBasedUiSystem.setUiRenderer}.
|
|
8149
|
+
* `screenInset` is honored per renderer, independently of the main UI's value,
|
|
8150
|
+
* and defaults to `'device'` here too.
|
|
8138
8151
|
*/
|
|
8139
8152
|
addUiRenderer(entity: Entity, ui: UiComponent, options?: UiRendererOptions): void;
|
|
8140
8153
|
/**
|
|
@@ -9642,10 +9655,28 @@ export declare type uint32 = number;
|
|
|
9642
9655
|
* @public
|
|
9643
9656
|
*/
|
|
9644
9657
|
export declare type UiRendererOptions = {
|
|
9645
|
-
virtualWidth
|
|
9646
|
-
virtualHeight
|
|
9658
|
+
virtualWidth?: number;
|
|
9659
|
+
virtualHeight?: number;
|
|
9660
|
+
/**
|
|
9661
|
+
* Screen area the renderer's UI is positioned in. Defaults to `'device'`, so UI
|
|
9662
|
+
* stays inside the device safe area unless the creator opts out with `'none'`.
|
|
9663
|
+
* Each renderer honors its own value, so the main UI and additional renderers
|
|
9664
|
+
* can use different insets simultaneously.
|
|
9665
|
+
*/
|
|
9666
|
+
screenInset?: UiScreenInset;
|
|
9647
9667
|
};
|
|
9648
9668
|
|
|
9669
|
+
/**
|
|
9670
|
+
* Screen area used to position a renderer's UI entities:
|
|
9671
|
+
* - `'device'` (default): the device safe area (excludes notch, status bar,
|
|
9672
|
+
* rounded corners), reported in `UiCanvasInformation.screenInsetArea`.
|
|
9673
|
+
* - `'interactable'`: the area free of the Explorer's native HUD (minimap, chat, ...),
|
|
9674
|
+
* reported in `UiCanvasInformation.interactableArea`.
|
|
9675
|
+
* - `'none'`: the whole screen, with 0,0 at its top-left corner.
|
|
9676
|
+
* @public
|
|
9677
|
+
*/
|
|
9678
|
+
export declare type UiScreenInset = 'device' | 'interactable' | 'none';
|
|
9679
|
+
|
|
9649
9680
|
/**
|
|
9650
9681
|
* ScreenInsetArea component props
|
|
9651
9682
|
*
|