@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
|
@@ -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;
|
|
@@ -1046,7 +1088,7 @@ export declare function createPointerEventSystem(engine: IEngine, inputSystem: I
|
|
|
1046
1088
|
* @param cb - Function to execute when onPointerDown fires
|
|
1047
1089
|
* @param opts - Opts to trigger Feedback and Button
|
|
1048
1090
|
*/
|
|
1049
|
-
onClick(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
1091
|
+
onClick(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1050
1092
|
/**
|
|
1051
1093
|
* @public
|
|
1052
1094
|
* Execute callback when the user press the InputButton pointing at the entity
|
|
@@ -1054,7 +1096,7 @@ export declare function createPointerEventSystem(engine: IEngine, inputSystem: I
|
|
|
1054
1096
|
* @param cb - Function to execute when click fires
|
|
1055
1097
|
* @param opts - Opts to trigger Feedback and Button
|
|
1056
1098
|
*/
|
|
1057
|
-
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
1099
|
+
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1058
1100
|
/**
|
|
1059
1101
|
* @public
|
|
1060
1102
|
* Execute callback when the user releases the InputButton pointing at the entity
|
|
@@ -1062,7 +1104,7 @@ export declare function createPointerEventSystem(engine: IEngine, inputSystem: I
|
|
|
1062
1104
|
* @param cb - Function to execute when click fires
|
|
1063
1105
|
* @param opts - Opts to trigger Feedback and Button
|
|
1064
1106
|
*/
|
|
1065
|
-
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: EventSystemOptions): void;
|
|
1107
|
+
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1066
1108
|
};
|
|
1067
1109
|
|
|
1068
1110
|
export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
|
|
@@ -1118,8 +1160,13 @@ export declare function defineComponent<T>(componentId: number, spec: ISchema<T>
|
|
|
1118
1160
|
*/
|
|
1119
1161
|
export declare const DEG2RAD: number;
|
|
1120
1162
|
|
|
1163
|
+
/**
|
|
1164
|
+
* @public
|
|
1165
|
+
*/
|
|
1166
|
+
export declare function Dropdown(props: EntityPropTypes & UiDropdownProps): ReactEcs.JSX.Element;
|
|
1167
|
+
|
|
1121
1168
|
export declare type EcsElements = {
|
|
1122
|
-
entity: Partial<
|
|
1169
|
+
entity: Partial<EntityComponents & CommonProps>;
|
|
1123
1170
|
};
|
|
1124
1171
|
|
|
1125
1172
|
/**
|
|
@@ -1143,7 +1190,10 @@ export declare type EntityComponents = {
|
|
|
1143
1190
|
uiTransform: PBUiTransform;
|
|
1144
1191
|
uiText: PBUiText;
|
|
1145
1192
|
uiBackground: PBUiBackground;
|
|
1146
|
-
|
|
1193
|
+
uiInput: PBUiInput;
|
|
1194
|
+
uiDropdown: PBUiDropdown;
|
|
1195
|
+
onMouseDown: Callback;
|
|
1196
|
+
onMouseUp: Callback;
|
|
1147
1197
|
};
|
|
1148
1198
|
|
|
1149
1199
|
export declare function EntityContainer(): {
|
|
@@ -1158,9 +1208,8 @@ export declare function EntityContainer(): {
|
|
|
1158
1208
|
*/
|
|
1159
1209
|
export declare type EntityPropTypes = {
|
|
1160
1210
|
uiTransform?: UiTransformProps;
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
};
|
|
1211
|
+
uiBackground?: UiBackgroundProps;
|
|
1212
|
+
} & Listeners;
|
|
1164
1213
|
|
|
1165
1214
|
/**
|
|
1166
1215
|
* Constant used to define the minimal number value in Babylon.js
|
|
@@ -1171,9 +1220,10 @@ export declare const Epsilon = 0.000001;
|
|
|
1171
1220
|
export declare type EventSystemCallback = (event: PBPointerEventsResult_PointerCommand) => void;
|
|
1172
1221
|
|
|
1173
1222
|
export declare type EventSystemOptions = {
|
|
1174
|
-
button
|
|
1223
|
+
button: InputAction;
|
|
1175
1224
|
hoverText?: string;
|
|
1176
1225
|
maxDistance?: number;
|
|
1226
|
+
showFeedback?: boolean;
|
|
1177
1227
|
};
|
|
1178
1228
|
|
|
1179
1229
|
/** Excludes property keys from T where the property is assignable to U */
|
|
@@ -1547,6 +1597,11 @@ export declare type IncludeUndefined<T> = {
|
|
|
1547
1597
|
[P in keyof T]: undefined extends T[P] ? P : never;
|
|
1548
1598
|
}[keyof T];
|
|
1549
1599
|
|
|
1600
|
+
/**
|
|
1601
|
+
* @public
|
|
1602
|
+
*/
|
|
1603
|
+
export declare function Input(props: EntityPropTypes & Partial<UiInputProps>): ReactEcs.JSX.Element;
|
|
1604
|
+
|
|
1550
1605
|
export declare const enum InputAction {
|
|
1551
1606
|
IA_POINTER = 0,
|
|
1552
1607
|
IA_PRIMARY = 1,
|
|
@@ -1595,11 +1650,10 @@ export declare type ISchema<T = any> = {
|
|
|
1595
1650
|
extend?: (base?: T) => T;
|
|
1596
1651
|
};
|
|
1597
1652
|
|
|
1598
|
-
export declare const isListener: (key: string) => key is
|
|
1653
|
+
export declare const isListener: (key: string) => key is keyof Listeners;
|
|
1599
1654
|
|
|
1600
1655
|
export declare namespace JSX {
|
|
1601
|
-
export
|
|
1602
|
-
}
|
|
1656
|
+
export type Element = {} | null;
|
|
1603
1657
|
export type IntrinsicElements = EcsElements;
|
|
1604
1658
|
export interface Component {
|
|
1605
1659
|
}
|
|
@@ -1607,8 +1661,14 @@ export declare namespace JSX {
|
|
|
1607
1661
|
|
|
1608
1662
|
export declare type Key = number | string;
|
|
1609
1663
|
|
|
1664
|
+
/**
|
|
1665
|
+
* @public
|
|
1666
|
+
*/
|
|
1667
|
+
export declare function Label(props: EntityPropTypes & UiTextProps): ReactEcs.JSX.Element;
|
|
1668
|
+
|
|
1610
1669
|
export declare type Listeners = {
|
|
1611
|
-
|
|
1670
|
+
onMouseDown?: Callback;
|
|
1671
|
+
onMouseUp?: Callback;
|
|
1612
1672
|
};
|
|
1613
1673
|
|
|
1614
1674
|
export declare interface MapComponentDefinition<T> extends ComponentDefinition<T> {
|
|
@@ -3093,82 +3153,82 @@ export declare const PBNftShape: {
|
|
|
3093
3153
|
decode(input: _m0.Reader | Uint8Array, length?: number): PBNftShape;
|
|
3094
3154
|
};
|
|
3095
3155
|
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
/** a list of the last N pointer commands (from the engine) */
|
|
3099
|
-
commands: PBPointerEventsResult_PointerCommand[];
|
|
3156
|
+
export declare interface PBPointerEvents {
|
|
3157
|
+
pointerEvents: PBPointerEvents_Entry[];
|
|
3100
3158
|
}
|
|
3101
3159
|
|
|
3102
3160
|
/**
|
|
3103
3161
|
* Internal
|
|
3104
3162
|
*/
|
|
3105
|
-
export declare const
|
|
3106
|
-
encode(message:
|
|
3107
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3163
|
+
export declare const PBPointerEvents: {
|
|
3164
|
+
encode(message: PBPointerEvents, writer?: _m0.Writer): _m0.Writer;
|
|
3165
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents;
|
|
3108
3166
|
};
|
|
3109
3167
|
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
button: InputAction;
|
|
3114
|
-
hit: RaycastHit | undefined;
|
|
3115
|
-
state: PointerEventType;
|
|
3116
|
-
/** could be a Lamport timestamp */
|
|
3117
|
-
timestamp: number;
|
|
3118
|
-
/** if the input is analog then we store it here */
|
|
3119
|
-
analog?: number | undefined;
|
|
3168
|
+
export declare interface PBPointerEvents_Entry {
|
|
3169
|
+
eventType: PointerEventType;
|
|
3170
|
+
eventInfo: PBPointerEvents_Info | undefined;
|
|
3120
3171
|
}
|
|
3121
3172
|
|
|
3122
3173
|
/**
|
|
3123
3174
|
* Internal
|
|
3124
3175
|
*/
|
|
3125
|
-
export declare const
|
|
3126
|
-
encode(message:
|
|
3127
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3176
|
+
export declare const PBPointerEvents_Entry: {
|
|
3177
|
+
encode(message: PBPointerEvents_Entry, writer?: _m0.Writer): _m0.Writer;
|
|
3178
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Entry;
|
|
3128
3179
|
};
|
|
3129
3180
|
|
|
3130
|
-
export declare interface
|
|
3131
|
-
|
|
3181
|
+
export declare interface PBPointerEvents_Info {
|
|
3182
|
+
/** default=InputAction.ANY */
|
|
3183
|
+
button?: InputAction | undefined;
|
|
3184
|
+
/** default='Interact' */
|
|
3185
|
+
hoverText?: string | undefined;
|
|
3186
|
+
/** default=10 */
|
|
3187
|
+
maxDistance?: number | undefined;
|
|
3188
|
+
/** default=true */
|
|
3189
|
+
showFeedback?: boolean | undefined;
|
|
3132
3190
|
}
|
|
3133
3191
|
|
|
3134
3192
|
/**
|
|
3135
3193
|
* Internal
|
|
3136
3194
|
*/
|
|
3137
|
-
export declare const
|
|
3138
|
-
encode(message:
|
|
3139
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3195
|
+
export declare const PBPointerEvents_Info: {
|
|
3196
|
+
encode(message: PBPointerEvents_Info, writer?: _m0.Writer): _m0.Writer;
|
|
3197
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Info;
|
|
3140
3198
|
};
|
|
3141
3199
|
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3200
|
+
/** the renderer will set this component to the root entity once per frame with all the events */
|
|
3201
|
+
export declare interface PBPointerEventsResult {
|
|
3202
|
+
/** a list of the last N pointer commands (from the engine) */
|
|
3203
|
+
commands: PBPointerEventsResult_PointerCommand[];
|
|
3145
3204
|
}
|
|
3146
3205
|
|
|
3147
3206
|
/**
|
|
3148
3207
|
* Internal
|
|
3149
3208
|
*/
|
|
3150
|
-
export declare const
|
|
3151
|
-
encode(message:
|
|
3152
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3209
|
+
export declare const PBPointerEventsResult: {
|
|
3210
|
+
encode(message: PBPointerEventsResult, writer?: _m0.Writer): _m0.Writer;
|
|
3211
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEventsResult;
|
|
3153
3212
|
};
|
|
3154
3213
|
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3214
|
+
/** this message represents a pointer event, used both for UP and DOWN actions */
|
|
3215
|
+
export declare interface PBPointerEventsResult_PointerCommand {
|
|
3216
|
+
/** identifier of the input */
|
|
3217
|
+
button: InputAction;
|
|
3218
|
+
hit: RaycastHit | undefined;
|
|
3219
|
+
state: PointerEventType;
|
|
3220
|
+
/** could be a Lamport timestamp */
|
|
3221
|
+
timestamp: number;
|
|
3222
|
+
/** if the input is analog then we store it here */
|
|
3223
|
+
analog?: number | undefined;
|
|
3164
3224
|
}
|
|
3165
3225
|
|
|
3166
3226
|
/**
|
|
3167
3227
|
* Internal
|
|
3168
3228
|
*/
|
|
3169
|
-
export declare const
|
|
3170
|
-
encode(message:
|
|
3171
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
3229
|
+
export declare const PBPointerEventsResult_PointerCommand: {
|
|
3230
|
+
encode(message: PBPointerEventsResult_PointerCommand, writer?: _m0.Writer): _m0.Writer;
|
|
3231
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEventsResult_PointerCommand;
|
|
3172
3232
|
};
|
|
3173
3233
|
|
|
3174
3234
|
export declare interface PBPointerLock {
|
|
@@ -3271,8 +3331,14 @@ export declare const PBTextShape: {
|
|
|
3271
3331
|
};
|
|
3272
3332
|
|
|
3273
3333
|
export declare interface PBUiBackground {
|
|
3274
|
-
/** default=(
|
|
3275
|
-
|
|
3334
|
+
/** default=(1.0, 1.0, 1.0, 1.0), pixel = color * sample2D(texture, uv) */
|
|
3335
|
+
color?: PBColor4 | undefined;
|
|
3336
|
+
texture?: TextureUnion | undefined;
|
|
3337
|
+
textureMode: BackgroundTextureMode;
|
|
3338
|
+
/** default=(1/3, 1/3, 1/3, 1/3) */
|
|
3339
|
+
textureSlices?: BorderRect | undefined;
|
|
3340
|
+
/** default=[0,0,0,1,1,0,1,0]: starting from bottom-left vertex clock-wise */
|
|
3341
|
+
uvs: number[];
|
|
3276
3342
|
}
|
|
3277
3343
|
|
|
3278
3344
|
/**
|
|
@@ -3283,6 +3349,78 @@ export declare const PBUiBackground: {
|
|
|
3283
3349
|
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
|
3284
3350
|
};
|
|
3285
3351
|
|
|
3352
|
+
export declare interface PBUiDropdown {
|
|
3353
|
+
acceptEmpty: boolean;
|
|
3354
|
+
emptyLabel?: string | undefined;
|
|
3355
|
+
options: string[];
|
|
3356
|
+
/** default=null when accept_empty==true; default=0 when accept_empty==false */
|
|
3357
|
+
selectedIndex?: number | undefined;
|
|
3358
|
+
disabled: boolean;
|
|
3359
|
+
/** default=(0.0,0.0,0.0,1.0) */
|
|
3360
|
+
color?: PBColor4 | undefined;
|
|
3361
|
+
/** default='center' */
|
|
3362
|
+
textAlign?: TextAlignMode | undefined;
|
|
3363
|
+
/** default=0 */
|
|
3364
|
+
font?: Font | undefined;
|
|
3365
|
+
/** default=10 */
|
|
3366
|
+
fontSize?: number | undefined;
|
|
3367
|
+
}
|
|
3368
|
+
|
|
3369
|
+
/**
|
|
3370
|
+
* Internal
|
|
3371
|
+
*/
|
|
3372
|
+
export declare const PBUiDropdown: {
|
|
3373
|
+
encode(message: PBUiDropdown, writer?: _m0.Writer): _m0.Writer;
|
|
3374
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdown;
|
|
3375
|
+
};
|
|
3376
|
+
|
|
3377
|
+
export declare interface PBUiDropdownResult {
|
|
3378
|
+
value: number;
|
|
3379
|
+
}
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* Internal
|
|
3383
|
+
*/
|
|
3384
|
+
export declare const PBUiDropdownResult: {
|
|
3385
|
+
encode(message: PBUiDropdownResult, writer?: _m0.Writer): _m0.Writer;
|
|
3386
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdownResult;
|
|
3387
|
+
};
|
|
3388
|
+
|
|
3389
|
+
export declare interface PBUiInput {
|
|
3390
|
+
placeholder: string;
|
|
3391
|
+
/** default=(0.0,0.0,0.0,1.0) */
|
|
3392
|
+
color?: PBColor4 | undefined;
|
|
3393
|
+
/** default=(0.3,0.3,0.3,1.0) */
|
|
3394
|
+
placeholderColor?: PBColor4 | undefined;
|
|
3395
|
+
disabled: boolean;
|
|
3396
|
+
/** default='center' */
|
|
3397
|
+
textAlign?: TextAlignMode | undefined;
|
|
3398
|
+
/** default=0 */
|
|
3399
|
+
font?: Font | undefined;
|
|
3400
|
+
/** default=10 */
|
|
3401
|
+
fontSize?: number | undefined;
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* Internal
|
|
3406
|
+
*/
|
|
3407
|
+
export declare const PBUiInput: {
|
|
3408
|
+
encode(message: PBUiInput, writer?: _m0.Writer): _m0.Writer;
|
|
3409
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
|
|
3410
|
+
};
|
|
3411
|
+
|
|
3412
|
+
export declare interface PBUiInputResult {
|
|
3413
|
+
value: string;
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* Internal
|
|
3418
|
+
*/
|
|
3419
|
+
export declare const PBUiInputResult: {
|
|
3420
|
+
encode(message: PBUiInputResult, writer?: _m0.Writer): _m0.Writer;
|
|
3421
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
|
3422
|
+
};
|
|
3423
|
+
|
|
3286
3424
|
export declare interface PBUiText {
|
|
3287
3425
|
value: string;
|
|
3288
3426
|
/** default=(1.0,1.0,1.0,1.0) */
|
|
@@ -3552,6 +3690,9 @@ export declare namespace Plane {
|
|
|
3552
3690
|
export function signedDistanceTo(plane: ReadonlyPlane, point: Vector3.ReadonlyVector3): number;
|
|
3553
3691
|
}
|
|
3554
3692
|
|
|
3693
|
+
/** @public */
|
|
3694
|
+
export declare const PointerEvents: ComponentDefinition<PBPointerEvents>;
|
|
3695
|
+
|
|
3555
3696
|
/** @public */
|
|
3556
3697
|
export declare const PointerEventsResult: ComponentDefinition<PBPointerEventsResult>;
|
|
3557
3698
|
|
|
@@ -3561,9 +3702,9 @@ export declare const pointerEventsSystem: {
|
|
|
3561
3702
|
removeOnClick(entity: unknown): void;
|
|
3562
3703
|
removeOnPointerDown(entity: unknown): void;
|
|
3563
3704
|
removeOnPointerUp(entity: unknown): void;
|
|
3564
|
-
onClick(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3565
|
-
onPointerDown(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3566
|
-
onPointerUp(entity: unknown, cb: EventSystemCallback, opts?: EventSystemOptions | undefined): void;
|
|
3705
|
+
onClick(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3706
|
+
onPointerDown(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3707
|
+
onPointerUp(entity: unknown, cb: EventSystemCallback, opts?: Partial<EventSystemOptions> | undefined): void;
|
|
3567
3708
|
};
|
|
3568
3709
|
|
|
3569
3710
|
export declare const enum PointerEventType {
|
|
@@ -3573,9 +3714,6 @@ export declare const enum PointerEventType {
|
|
|
3573
3714
|
PET_HOVER_LEAVE = 3
|
|
3574
3715
|
}
|
|
3575
3716
|
|
|
3576
|
-
/** @public */
|
|
3577
|
-
export declare const PointerHoverFeedback: ComponentDefinition<PBPointerHoverFeedback>;
|
|
3578
|
-
|
|
3579
3717
|
/** @public */
|
|
3580
3718
|
export declare const PointerLock: ComponentDefinition<PBPointerLock>;
|
|
3581
3719
|
|
|
@@ -3897,8 +4035,7 @@ export declare type ReactBasedUiSystem = {
|
|
|
3897
4035
|
|
|
3898
4036
|
export declare namespace ReactEcs {
|
|
3899
4037
|
export namespace JSX {
|
|
3900
|
-
export
|
|
3901
|
-
}
|
|
4038
|
+
export type Element = {} | null;
|
|
3902
4039
|
export type IntrinsicElements = EcsElements;
|
|
3903
4040
|
export interface Component {
|
|
3904
4041
|
}
|
|
@@ -4315,19 +4452,81 @@ export declare type Transport = {
|
|
|
4315
4452
|
|
|
4316
4453
|
export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
|
4317
4454
|
|
|
4455
|
+
/**
|
|
4456
|
+
* @public
|
|
4457
|
+
*/
|
|
4458
|
+
export declare type UiAvatarTexture = {
|
|
4459
|
+
avatarTexture?: AvatarTexture;
|
|
4460
|
+
};
|
|
4461
|
+
|
|
4318
4462
|
/** @public */
|
|
4319
4463
|
export declare const UiBackground: ComponentDefinition<PBUiBackground>;
|
|
4320
4464
|
|
|
4465
|
+
/**
|
|
4466
|
+
* @public
|
|
4467
|
+
*/
|
|
4468
|
+
export declare type UiBackgroundProps = Partial<Omit<PBUiBackground, 'texture'>> & UiTextureUnion;
|
|
4469
|
+
|
|
4470
|
+
/**
|
|
4471
|
+
* @public
|
|
4472
|
+
*/
|
|
4473
|
+
export declare type UiButtonProps = PBUiText & {
|
|
4474
|
+
type?: 'primary' | 'secondary';
|
|
4475
|
+
};
|
|
4476
|
+
|
|
4321
4477
|
export declare type UiComponent = () => JSX.Element;
|
|
4322
4478
|
|
|
4479
|
+
/** @public */
|
|
4480
|
+
export declare const UiDropdown: ComponentDefinition<PBUiDropdown>;
|
|
4481
|
+
|
|
4482
|
+
/**
|
|
4483
|
+
* @public
|
|
4484
|
+
*/
|
|
4485
|
+
export declare type UiDropdownProps = Partial<PBUiDropdown> & {
|
|
4486
|
+
onChange?(value: number): void;
|
|
4487
|
+
};
|
|
4488
|
+
|
|
4489
|
+
/** @public */
|
|
4490
|
+
export declare const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
|
|
4491
|
+
|
|
4323
4492
|
/**
|
|
4324
4493
|
* @public
|
|
4325
4494
|
*/
|
|
4326
4495
|
export declare function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
|
|
4327
4496
|
|
|
4497
|
+
/** @public */
|
|
4498
|
+
export declare const UiInput: ComponentDefinition<PBUiInput>;
|
|
4499
|
+
|
|
4500
|
+
/**
|
|
4501
|
+
* @public
|
|
4502
|
+
*/
|
|
4503
|
+
export declare type UiInputProps = PBUiInput & {
|
|
4504
|
+
onChange?(value: string): void;
|
|
4505
|
+
};
|
|
4506
|
+
|
|
4507
|
+
/** @public */
|
|
4508
|
+
export declare const UiInputResult: ComponentDefinition<PBUiInputResult>;
|
|
4509
|
+
|
|
4328
4510
|
/** @public */
|
|
4329
4511
|
export declare const UiText: ComponentDefinition<PBUiText>;
|
|
4330
4512
|
|
|
4513
|
+
/**
|
|
4514
|
+
* @public
|
|
4515
|
+
*/
|
|
4516
|
+
export declare type UiTextProps = PBUiText;
|
|
4517
|
+
|
|
4518
|
+
/**
|
|
4519
|
+
* @public
|
|
4520
|
+
*/
|
|
4521
|
+
export declare type UiTexture = {
|
|
4522
|
+
texture?: Texture;
|
|
4523
|
+
};
|
|
4524
|
+
|
|
4525
|
+
/**
|
|
4526
|
+
* @public
|
|
4527
|
+
*/
|
|
4528
|
+
export declare type UiTextureUnion = UiAvatarTexture | UiTexture;
|
|
4529
|
+
|
|
4331
4530
|
/** @public */
|
|
4332
4531
|
export declare const UiTransform: ComponentDefinition<PBUiTransform>;
|
|
4333
4532
|
|