@dcl/playground-assets 7.0.6-3803395793.commit-999a6b9 → 7.0.6-3808564125.commit-7a2650b
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 +269 -70
- package/dist/beta.d.ts +269 -70
- package/dist/index.bundled.d.ts +269 -70
- package/dist/index.js +950 -276
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground/snippets/info.json +1 -1
- package/dist/playground/snippets/pointer-events.ts +6 -4
- package/dist/playground/snippets/ui-backgrounds.tsx +192 -0
- package/dist/playground/snippets/ui-dropdown.tsx +32 -0
- package/dist/playground/snippets/ui.tsx +17 -14
- package/dist/playground-assets.d.ts +270 -71
- package/etc/playground-assets.api.json +2891 -884
- package/etc/playground-assets.api.md +253 -82
- package/package.json +3 -3
package/dist/alpha.d.ts
CHANGED
|
@@ -93,6 +93,27 @@ export declare const AvatarTexture: {
|
|
|
93
93
|
decode(input: _m0.Reader | Uint8Array, length?: number): AvatarTexture;
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
+
export declare const enum BackgroundTextureMode {
|
|
97
|
+
/**
|
|
98
|
+
* NINE_SLICES - https://docs.unity3d.com/Manual/UIE-USS-SupportedProperties.html (Slicing section)
|
|
99
|
+
* https://forum.unity.com/threads/how-does-slicing-in-ui-tookkit-works.1235863/
|
|
100
|
+
* https://docs.unity3d.com/Manual/9SliceSprites.html
|
|
101
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
|
|
102
|
+
*/
|
|
103
|
+
NINE_SLICES = 0,
|
|
104
|
+
/**
|
|
105
|
+
* CENTER - CENTER enables the texture to be rendered centered in relation to the
|
|
106
|
+
* element. If the element is smaller than the texture then the background
|
|
107
|
+
* should use the element as stencil to cut off the out-of-bounds area
|
|
108
|
+
*/
|
|
109
|
+
CENTER = 1,
|
|
110
|
+
/**
|
|
111
|
+
* STRETCH - STRETCH enables the texture to cover all the area of the container,
|
|
112
|
+
* adopting its aspect ratio.
|
|
113
|
+
*/
|
|
114
|
+
STRETCH = 2
|
|
115
|
+
}
|
|
116
|
+
|
|
96
117
|
/** @public */
|
|
97
118
|
export declare const Billboard: ComponentDefinition<PBBillboard>;
|
|
98
119
|
|
|
@@ -101,6 +122,27 @@ export declare const enum BillboardMode {
|
|
|
101
122
|
BM_Y_AXE = 1
|
|
102
123
|
}
|
|
103
124
|
|
|
125
|
+
/** Defines indents from respective edges */
|
|
126
|
+
export declare interface BorderRect {
|
|
127
|
+
top: number;
|
|
128
|
+
left: number;
|
|
129
|
+
right: number;
|
|
130
|
+
bottom: number;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Internal
|
|
135
|
+
*/
|
|
136
|
+
export declare const BorderRect: {
|
|
137
|
+
encode(message: BorderRect, writer?: _m0.Writer): _m0.Writer;
|
|
138
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BorderRect;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
export declare function Button(props: EntityPropTypes & UiButtonProps): ReactEcs.JSX.Element;
|
|
145
|
+
|
|
104
146
|
/**
|
|
105
147
|
* @public
|
|
106
148
|
*/
|
|
@@ -148,6 +190,7 @@ export declare type ByteBuffer = {
|
|
|
148
190
|
readUint32(): number;
|
|
149
191
|
readUint64(): bigint;
|
|
150
192
|
readBuffer(): Uint8Array;
|
|
193
|
+
readUtf8String(): string;
|
|
151
194
|
/**
|
|
152
195
|
* Writing purpose
|
|
153
196
|
*/
|
|
@@ -175,6 +218,7 @@ export declare type ByteBuffer = {
|
|
|
175
218
|
* @returns The subarray from 0 to offset.
|
|
176
219
|
*/
|
|
177
220
|
toCopiedBinary(): Uint8Array;
|
|
221
|
+
writeUtf8String(value: string, writeLength?: boolean): void;
|
|
178
222
|
writeBuffer(value: Uint8Array, writeLength?: boolean): void;
|
|
179
223
|
writeFloat32(value: number): void;
|
|
180
224
|
writeFloat64(value: number): void;
|
|
@@ -208,6 +252,8 @@ export declare type ByteBuffer = {
|
|
|
208
252
|
setUint64(offset: number, value: bigint): void;
|
|
209
253
|
};
|
|
210
254
|
|
|
255
|
+
export declare type Callback = () => void;
|
|
256
|
+
|
|
211
257
|
/** @public */
|
|
212
258
|
export declare const CameraMode: ComponentDefinition<PBCameraMode>;
|
|
213
259
|
|
|
@@ -221,7 +267,7 @@ export declare const enum CameraType {
|
|
|
221
267
|
|
|
222
268
|
export declare const CANVAS_ROOT_ENTITY = 0;
|
|
223
269
|
|
|
224
|
-
export declare type Children =
|
|
270
|
+
export declare type Children = unknown;
|
|
225
271
|
|
|
226
272
|
export declare const enum ColliderLayer {
|
|
227
273
|
CL_NONE = 0,
|
|
@@ -1009,10 +1055,6 @@ export declare type ComponentSchema<T extends [ComponentDefinition<any>, ...Comp
|
|
|
1009
1055
|
[K in keyof T]: T[K] extends ComponentDefinition<any> ? ReturnType<T[K]['getMutable']> : never;
|
|
1010
1056
|
};
|
|
1011
1057
|
|
|
1012
|
-
export declare function Container({ width, height, children }: ContainerPropTypes): ReactEcs.JSX.Element;
|
|
1013
|
-
|
|
1014
|
-
export declare type ContainerPropTypes = Partial<CommonProps> & EntityPropTypes['uiTransform'];
|
|
1015
|
-
|
|
1016
1058
|
export declare function createEthereumProvider(): {
|
|
1017
1059
|
send(message: RPCSendableMessage, callback?: ((error: Error | null, result?: any) => void) | undefined): void;
|
|
1018
1060
|
sendAsync(message: RPCSendableMessage, callback: (error: Error | null, result?: any) => void): void;
|
|
@@ -1042,7 +1084,7 @@ export declare function createPointerEventSystem(engine: IEngine, inputSystem: I
|
|
|
1042
1084
|
* @param cb - Function to execute when click fires
|
|
1043
1085
|
* @param opts - Opts to trigger Feedback and Button
|
|
1044
1086
|
*/
|
|
1045
|
-
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
1087
|
+
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1046
1088
|
/**
|
|
1047
1089
|
* @public
|
|
1048
1090
|
* Execute callback when the user releases the InputButton pointing at the entity
|
|
@@ -1050,7 +1092,7 @@ export declare function createPointerEventSystem(engine: IEngine, inputSystem: I
|
|
|
1050
1092
|
* @param cb - Function to execute when click fires
|
|
1051
1093
|
* @param opts - Opts to trigger Feedback and Button
|
|
1052
1094
|
*/
|
|
1053
|
-
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
1095
|
+
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1054
1096
|
};
|
|
1055
1097
|
|
|
1056
1098
|
export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
|
|
@@ -1106,8 +1148,13 @@ export declare function defineComponent<T>(componentId: number, spec: ISchema<T>
|
|
|
1106
1148
|
*/
|
|
1107
1149
|
export declare const DEG2RAD: number;
|
|
1108
1150
|
|
|
1151
|
+
/**
|
|
1152
|
+
* @public
|
|
1153
|
+
*/
|
|
1154
|
+
export declare function Dropdown(props: EntityPropTypes & UiDropdownProps): ReactEcs.JSX.Element;
|
|
1155
|
+
|
|
1109
1156
|
export declare type EcsElements = {
|
|
1110
|
-
entity: Partial<
|
|
1157
|
+
entity: Partial<EntityComponents & CommonProps>;
|
|
1111
1158
|
};
|
|
1112
1159
|
|
|
1113
1160
|
/**
|
|
@@ -1131,7 +1178,10 @@ export declare type EntityComponents = {
|
|
|
1131
1178
|
uiTransform: PBUiTransform;
|
|
1132
1179
|
uiText: PBUiText;
|
|
1133
1180
|
uiBackground: PBUiBackground;
|
|
1134
|
-
|
|
1181
|
+
uiInput: PBUiInput;
|
|
1182
|
+
uiDropdown: PBUiDropdown;
|
|
1183
|
+
onMouseDown: Callback;
|
|
1184
|
+
onMouseUp: Callback;
|
|
1135
1185
|
};
|
|
1136
1186
|
|
|
1137
1187
|
export declare function EntityContainer(): {
|
|
@@ -1146,9 +1196,8 @@ export declare function EntityContainer(): {
|
|
|
1146
1196
|
*/
|
|
1147
1197
|
export declare type EntityPropTypes = {
|
|
1148
1198
|
uiTransform?: UiTransformProps;
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
};
|
|
1199
|
+
uiBackground?: UiBackgroundProps;
|
|
1200
|
+
} & Listeners;
|
|
1152
1201
|
|
|
1153
1202
|
/**
|
|
1154
1203
|
* Constant used to define the minimal number value in Babylon.js
|
|
@@ -1159,9 +1208,10 @@ export declare const Epsilon = 0.000001;
|
|
|
1159
1208
|
export declare type EventSystemCallback = (event: PBPointerEventsResult_PointerCommand) => void;
|
|
1160
1209
|
|
|
1161
1210
|
export declare type EventSystemOptions = {
|
|
1162
|
-
button
|
|
1211
|
+
button: InputAction;
|
|
1163
1212
|
hoverText?: string;
|
|
1164
1213
|
maxDistance?: number;
|
|
1214
|
+
showFeedback?: boolean;
|
|
1165
1215
|
};
|
|
1166
1216
|
|
|
1167
1217
|
/** Excludes property keys from T where the property is assignable to U */
|
|
@@ -1535,6 +1585,11 @@ export declare type IncludeUndefined<T> = {
|
|
|
1535
1585
|
[P in keyof T]: undefined extends T[P] ? P : never;
|
|
1536
1586
|
}[keyof T];
|
|
1537
1587
|
|
|
1588
|
+
/**
|
|
1589
|
+
* @public
|
|
1590
|
+
*/
|
|
1591
|
+
export declare function Input(props: EntityPropTypes & Partial<UiInputProps>): ReactEcs.JSX.Element;
|
|
1592
|
+
|
|
1538
1593
|
export declare const enum InputAction {
|
|
1539
1594
|
IA_POINTER = 0,
|
|
1540
1595
|
IA_PRIMARY = 1,
|
|
@@ -1583,11 +1638,10 @@ export declare type ISchema<T = any> = {
|
|
|
1583
1638
|
extend?: (base?: T) => T;
|
|
1584
1639
|
};
|
|
1585
1640
|
|
|
1586
|
-
export declare const isListener: (key: string) => key is
|
|
1641
|
+
export declare const isListener: (key: string) => key is keyof Listeners;
|
|
1587
1642
|
|
|
1588
1643
|
export declare namespace JSX {
|
|
1589
|
-
export
|
|
1590
|
-
}
|
|
1644
|
+
export type Element = {} | null;
|
|
1591
1645
|
export type IntrinsicElements = EcsElements;
|
|
1592
1646
|
export interface Component {
|
|
1593
1647
|
}
|
|
@@ -1595,8 +1649,14 @@ export declare namespace JSX {
|
|
|
1595
1649
|
|
|
1596
1650
|
export declare type Key = number | string;
|
|
1597
1651
|
|
|
1652
|
+
/**
|
|
1653
|
+
* @public
|
|
1654
|
+
*/
|
|
1655
|
+
export declare function Label(props: EntityPropTypes & UiTextProps): ReactEcs.JSX.Element;
|
|
1656
|
+
|
|
1598
1657
|
export declare type Listeners = {
|
|
1599
|
-
|
|
1658
|
+
onMouseDown?: Callback;
|
|
1659
|
+
onMouseUp?: Callback;
|
|
1600
1660
|
};
|
|
1601
1661
|
|
|
1602
1662
|
export declare interface MapComponentDefinition<T> extends ComponentDefinition<T> {
|
|
@@ -3081,82 +3141,82 @@ export declare const PBNftShape: {
|
|
|
3081
3141
|
decode(input: _m0.Reader | Uint8Array, length?: number): PBNftShape;
|
|
3082
3142
|
};
|
|
3083
3143
|
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
/** a list of the last N pointer commands (from the engine) */
|
|
3087
|
-
commands: PBPointerEventsResult_PointerCommand[];
|
|
3144
|
+
export declare interface PBPointerEvents {
|
|
3145
|
+
pointerEvents: PBPointerEvents_Entry[];
|
|
3088
3146
|
}
|
|
3089
3147
|
|
|
3090
3148
|
/**
|
|
3091
3149
|
* Internal
|
|
3092
3150
|
*/
|
|
3093
|
-
export declare const
|
|
3094
|
-
encode(message:
|
|
3095
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3151
|
+
export declare const PBPointerEvents: {
|
|
3152
|
+
encode(message: PBPointerEvents, writer?: _m0.Writer): _m0.Writer;
|
|
3153
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents;
|
|
3096
3154
|
};
|
|
3097
3155
|
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
button: InputAction;
|
|
3102
|
-
hit: RaycastHit | undefined;
|
|
3103
|
-
state: PointerEventType;
|
|
3104
|
-
/** could be a Lamport timestamp */
|
|
3105
|
-
timestamp: number;
|
|
3106
|
-
/** if the input is analog then we store it here */
|
|
3107
|
-
analog?: number | undefined;
|
|
3156
|
+
export declare interface PBPointerEvents_Entry {
|
|
3157
|
+
eventType: PointerEventType;
|
|
3158
|
+
eventInfo: PBPointerEvents_Info | undefined;
|
|
3108
3159
|
}
|
|
3109
3160
|
|
|
3110
3161
|
/**
|
|
3111
3162
|
* Internal
|
|
3112
3163
|
*/
|
|
3113
|
-
export declare const
|
|
3114
|
-
encode(message:
|
|
3115
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3164
|
+
export declare const PBPointerEvents_Entry: {
|
|
3165
|
+
encode(message: PBPointerEvents_Entry, writer?: _m0.Writer): _m0.Writer;
|
|
3166
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Entry;
|
|
3116
3167
|
};
|
|
3117
3168
|
|
|
3118
|
-
export declare interface
|
|
3119
|
-
|
|
3169
|
+
export declare interface PBPointerEvents_Info {
|
|
3170
|
+
/** default=InputAction.ANY */
|
|
3171
|
+
button?: InputAction | undefined;
|
|
3172
|
+
/** default='Interact' */
|
|
3173
|
+
hoverText?: string | undefined;
|
|
3174
|
+
/** default=10 */
|
|
3175
|
+
maxDistance?: number | undefined;
|
|
3176
|
+
/** default=true */
|
|
3177
|
+
showFeedback?: boolean | undefined;
|
|
3120
3178
|
}
|
|
3121
3179
|
|
|
3122
3180
|
/**
|
|
3123
3181
|
* Internal
|
|
3124
3182
|
*/
|
|
3125
|
-
export declare const
|
|
3126
|
-
encode(message:
|
|
3127
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3183
|
+
export declare const PBPointerEvents_Info: {
|
|
3184
|
+
encode(message: PBPointerEvents_Info, writer?: _m0.Writer): _m0.Writer;
|
|
3185
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Info;
|
|
3128
3186
|
};
|
|
3129
3187
|
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3188
|
+
/** the renderer will set this component to the root entity once per frame with all the events */
|
|
3189
|
+
export declare interface PBPointerEventsResult {
|
|
3190
|
+
/** a list of the last N pointer commands (from the engine) */
|
|
3191
|
+
commands: PBPointerEventsResult_PointerCommand[];
|
|
3133
3192
|
}
|
|
3134
3193
|
|
|
3135
3194
|
/**
|
|
3136
3195
|
* Internal
|
|
3137
3196
|
*/
|
|
3138
|
-
export declare const
|
|
3139
|
-
encode(message:
|
|
3140
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3197
|
+
export declare const PBPointerEventsResult: {
|
|
3198
|
+
encode(message: PBPointerEventsResult, writer?: _m0.Writer): _m0.Writer;
|
|
3199
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEventsResult;
|
|
3141
3200
|
};
|
|
3142
3201
|
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3202
|
+
/** this message represents a pointer event, used both for UP and DOWN actions */
|
|
3203
|
+
export declare interface PBPointerEventsResult_PointerCommand {
|
|
3204
|
+
/** identifier of the input */
|
|
3205
|
+
button: InputAction;
|
|
3206
|
+
hit: RaycastHit | undefined;
|
|
3207
|
+
state: PointerEventType;
|
|
3208
|
+
/** could be a Lamport timestamp */
|
|
3209
|
+
timestamp: number;
|
|
3210
|
+
/** if the input is analog then we store it here */
|
|
3211
|
+
analog?: number | undefined;
|
|
3152
3212
|
}
|
|
3153
3213
|
|
|
3154
3214
|
/**
|
|
3155
3215
|
* Internal
|
|
3156
3216
|
*/
|
|
3157
|
-
export declare const
|
|
3158
|
-
encode(message:
|
|
3159
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3217
|
+
export declare const PBPointerEventsResult_PointerCommand: {
|
|
3218
|
+
encode(message: PBPointerEventsResult_PointerCommand, writer?: _m0.Writer): _m0.Writer;
|
|
3219
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEventsResult_PointerCommand;
|
|
3160
3220
|
};
|
|
3161
3221
|
|
|
3162
3222
|
export declare interface PBPointerLock {
|
|
@@ -3259,8 +3319,14 @@ export declare const PBTextShape: {
|
|
|
3259
3319
|
};
|
|
3260
3320
|
|
|
3261
3321
|
export declare interface PBUiBackground {
|
|
3262
|
-
/** default=(
|
|
3263
|
-
|
|
3322
|
+
/** default=(1.0, 1.0, 1.0, 1.0), pixel = color * sample2D(texture, uv) */
|
|
3323
|
+
color?: PBColor4 | undefined;
|
|
3324
|
+
texture?: TextureUnion | undefined;
|
|
3325
|
+
textureMode: BackgroundTextureMode;
|
|
3326
|
+
/** default=(1/3, 1/3, 1/3, 1/3) */
|
|
3327
|
+
textureSlices?: BorderRect | undefined;
|
|
3328
|
+
/** default=[0,0,0,1,1,0,1,0]: starting from bottom-left vertex clock-wise */
|
|
3329
|
+
uvs: number[];
|
|
3264
3330
|
}
|
|
3265
3331
|
|
|
3266
3332
|
/**
|
|
@@ -3271,6 +3337,78 @@ export declare const PBUiBackground: {
|
|
|
3271
3337
|
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
|
3272
3338
|
};
|
|
3273
3339
|
|
|
3340
|
+
export declare interface PBUiDropdown {
|
|
3341
|
+
acceptEmpty: boolean;
|
|
3342
|
+
emptyLabel?: string | undefined;
|
|
3343
|
+
options: string[];
|
|
3344
|
+
/** default=null when accept_empty==true; default=0 when accept_empty==false */
|
|
3345
|
+
selectedIndex?: number | undefined;
|
|
3346
|
+
disabled: boolean;
|
|
3347
|
+
/** default=(0.0,0.0,0.0,1.0) */
|
|
3348
|
+
color?: PBColor4 | undefined;
|
|
3349
|
+
/** default='center' */
|
|
3350
|
+
textAlign?: TextAlignMode | undefined;
|
|
3351
|
+
/** default=0 */
|
|
3352
|
+
font?: Font | undefined;
|
|
3353
|
+
/** default=10 */
|
|
3354
|
+
fontSize?: number | undefined;
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
/**
|
|
3358
|
+
* Internal
|
|
3359
|
+
*/
|
|
3360
|
+
export declare const PBUiDropdown: {
|
|
3361
|
+
encode(message: PBUiDropdown, writer?: _m0.Writer): _m0.Writer;
|
|
3362
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdown;
|
|
3363
|
+
};
|
|
3364
|
+
|
|
3365
|
+
export declare interface PBUiDropdownResult {
|
|
3366
|
+
value: number;
|
|
3367
|
+
}
|
|
3368
|
+
|
|
3369
|
+
/**
|
|
3370
|
+
* Internal
|
|
3371
|
+
*/
|
|
3372
|
+
export declare const PBUiDropdownResult: {
|
|
3373
|
+
encode(message: PBUiDropdownResult, writer?: _m0.Writer): _m0.Writer;
|
|
3374
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdownResult;
|
|
3375
|
+
};
|
|
3376
|
+
|
|
3377
|
+
export declare interface PBUiInput {
|
|
3378
|
+
placeholder: string;
|
|
3379
|
+
/** default=(0.0,0.0,0.0,1.0) */
|
|
3380
|
+
color?: PBColor4 | undefined;
|
|
3381
|
+
/** default=(0.3,0.3,0.3,1.0) */
|
|
3382
|
+
placeholderColor?: PBColor4 | undefined;
|
|
3383
|
+
disabled: boolean;
|
|
3384
|
+
/** default='center' */
|
|
3385
|
+
textAlign?: TextAlignMode | undefined;
|
|
3386
|
+
/** default=0 */
|
|
3387
|
+
font?: Font | undefined;
|
|
3388
|
+
/** default=10 */
|
|
3389
|
+
fontSize?: number | undefined;
|
|
3390
|
+
}
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* Internal
|
|
3394
|
+
*/
|
|
3395
|
+
export declare const PBUiInput: {
|
|
3396
|
+
encode(message: PBUiInput, writer?: _m0.Writer): _m0.Writer;
|
|
3397
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
|
|
3398
|
+
};
|
|
3399
|
+
|
|
3400
|
+
export declare interface PBUiInputResult {
|
|
3401
|
+
value: string;
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* Internal
|
|
3406
|
+
*/
|
|
3407
|
+
export declare const PBUiInputResult: {
|
|
3408
|
+
encode(message: PBUiInputResult, writer?: _m0.Writer): _m0.Writer;
|
|
3409
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
|
3410
|
+
};
|
|
3411
|
+
|
|
3274
3412
|
export declare interface PBUiText {
|
|
3275
3413
|
value: string;
|
|
3276
3414
|
/** default=(1.0,1.0,1.0,1.0) */
|
|
@@ -3540,6 +3678,9 @@ export declare namespace Plane {
|
|
|
3540
3678
|
export function signedDistanceTo(plane: ReadonlyPlane, point: Vector3.ReadonlyVector3): number;
|
|
3541
3679
|
}
|
|
3542
3680
|
|
|
3681
|
+
/** @public */
|
|
3682
|
+
export declare const PointerEvents: ComponentDefinition<PBPointerEvents>;
|
|
3683
|
+
|
|
3543
3684
|
/** @public */
|
|
3544
3685
|
export declare const PointerEventsResult: ComponentDefinition<PBPointerEventsResult>;
|
|
3545
3686
|
|
|
@@ -3549,9 +3690,9 @@ export declare const pointerEventsSystem: {
|
|
|
3549
3690
|
removeOnClick(entity: unknown): void;
|
|
3550
3691
|
removeOnPointerDown(entity: unknown): void;
|
|
3551
3692
|
removeOnPointerUp(entity: unknown): void;
|
|
3552
|
-
onClick(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3553
|
-
onPointerDown(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3554
|
-
onPointerUp(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3693
|
+
onClick(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3694
|
+
onPointerDown(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3695
|
+
onPointerUp(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3555
3696
|
};
|
|
3556
3697
|
|
|
3557
3698
|
export declare const enum PointerEventType {
|
|
@@ -3561,9 +3702,6 @@ export declare const enum PointerEventType {
|
|
|
3561
3702
|
PET_HOVER_LEAVE = 3
|
|
3562
3703
|
}
|
|
3563
3704
|
|
|
3564
|
-
/** @public */
|
|
3565
|
-
export declare const PointerHoverFeedback: ComponentDefinition<PBPointerHoverFeedback>;
|
|
3566
|
-
|
|
3567
3705
|
/** @public */
|
|
3568
3706
|
export declare const PointerLock: ComponentDefinition<PBPointerLock>;
|
|
3569
3707
|
|
|
@@ -3885,8 +4023,7 @@ export declare type ReactBasedUiSystem = {
|
|
|
3885
4023
|
|
|
3886
4024
|
export declare namespace ReactEcs {
|
|
3887
4025
|
export namespace JSX {
|
|
3888
|
-
export
|
|
3889
|
-
}
|
|
4026
|
+
export type Element = {} | null;
|
|
3890
4027
|
export type IntrinsicElements = EcsElements;
|
|
3891
4028
|
export interface Component {
|
|
3892
4029
|
}
|
|
@@ -4303,19 +4440,81 @@ export declare type Transport = {
|
|
|
4303
4440
|
|
|
4304
4441
|
export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
|
4305
4442
|
|
|
4443
|
+
/**
|
|
4444
|
+
* @public
|
|
4445
|
+
*/
|
|
4446
|
+
export declare type UiAvatarTexture = {
|
|
4447
|
+
avatarTexture?: AvatarTexture;
|
|
4448
|
+
};
|
|
4449
|
+
|
|
4306
4450
|
/** @public */
|
|
4307
4451
|
export declare const UiBackground: ComponentDefinition<PBUiBackground>;
|
|
4308
4452
|
|
|
4453
|
+
/**
|
|
4454
|
+
* @public
|
|
4455
|
+
*/
|
|
4456
|
+
export declare type UiBackgroundProps = Partial<Omit<PBUiBackground, 'texture'>> & UiTextureUnion;
|
|
4457
|
+
|
|
4458
|
+
/**
|
|
4459
|
+
* @public
|
|
4460
|
+
*/
|
|
4461
|
+
export declare type UiButtonProps = PBUiText & {
|
|
4462
|
+
type?: 'primary' | 'secondary';
|
|
4463
|
+
};
|
|
4464
|
+
|
|
4309
4465
|
export declare type UiComponent = () => JSX.Element;
|
|
4310
4466
|
|
|
4467
|
+
/** @public */
|
|
4468
|
+
export declare const UiDropdown: ComponentDefinition<PBUiDropdown>;
|
|
4469
|
+
|
|
4470
|
+
/**
|
|
4471
|
+
* @public
|
|
4472
|
+
*/
|
|
4473
|
+
export declare type UiDropdownProps = Partial<PBUiDropdown> & {
|
|
4474
|
+
onChange?(value: number): void;
|
|
4475
|
+
};
|
|
4476
|
+
|
|
4477
|
+
/** @public */
|
|
4478
|
+
export declare const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
|
|
4479
|
+
|
|
4311
4480
|
/**
|
|
4312
4481
|
* @public
|
|
4313
4482
|
*/
|
|
4314
4483
|
export declare function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
|
|
4315
4484
|
|
|
4485
|
+
/** @public */
|
|
4486
|
+
export declare const UiInput: ComponentDefinition<PBUiInput>;
|
|
4487
|
+
|
|
4488
|
+
/**
|
|
4489
|
+
* @public
|
|
4490
|
+
*/
|
|
4491
|
+
export declare type UiInputProps = PBUiInput & {
|
|
4492
|
+
onChange?(value: string): void;
|
|
4493
|
+
};
|
|
4494
|
+
|
|
4495
|
+
/** @public */
|
|
4496
|
+
export declare const UiInputResult: ComponentDefinition<PBUiInputResult>;
|
|
4497
|
+
|
|
4316
4498
|
/** @public */
|
|
4317
4499
|
export declare const UiText: ComponentDefinition<PBUiText>;
|
|
4318
4500
|
|
|
4501
|
+
/**
|
|
4502
|
+
* @public
|
|
4503
|
+
*/
|
|
4504
|
+
export declare type UiTextProps = PBUiText;
|
|
4505
|
+
|
|
4506
|
+
/**
|
|
4507
|
+
* @public
|
|
4508
|
+
*/
|
|
4509
|
+
export declare type UiTexture = {
|
|
4510
|
+
texture?: Texture;
|
|
4511
|
+
};
|
|
4512
|
+
|
|
4513
|
+
/**
|
|
4514
|
+
* @public
|
|
4515
|
+
*/
|
|
4516
|
+
export declare type UiTextureUnion = UiAvatarTexture | UiTexture;
|
|
4517
|
+
|
|
4319
4518
|
/** @public */
|
|
4320
4519
|
export declare const UiTransform: ComponentDefinition<PBUiTransform>;
|
|
4321
4520
|
|