@dcl/sdk 7.0.0-3277074139.commit-6059d49 → 7.0.0-3290193397.commit-3ca136b
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/ecs7/index.d.ts +6 -15
- package/dist/ecs7/index.js +148 -122
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/playground/snippets/ui.tsx +103 -12
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +6 -15
package/dist/ecs7/index.d.ts
CHANGED
@@ -1190,6 +1190,8 @@ declare type ExcludeUndefined<T> = {
|
|
1190
1190
|
[P in keyof T]: undefined extends T[P] ? never : P;
|
1191
1191
|
}[keyof T];
|
1192
1192
|
|
1193
|
+
export declare const executeTask: (task: Task<unknown>) => void;
|
1194
|
+
|
1193
1195
|
/** @public */
|
1194
1196
|
declare type FloatArray = number[];
|
1195
1197
|
|
@@ -1372,14 +1374,7 @@ export declare type ISchema<T = any> = {
|
|
1372
1374
|
create(): T;
|
1373
1375
|
};
|
1374
1376
|
|
1375
|
-
|
1376
|
-
* Check if a pointer event has been emited in the last tick-update.
|
1377
|
-
* @param entity the entity to query, for global clicks use `engine.RootEntity`
|
1378
|
-
* @param actionButton
|
1379
|
-
* @param pointerEventType
|
1380
|
-
* @returns
|
1381
|
-
*/
|
1382
|
-
export declare function isPointerEventActive(entity: Entity, actionButton: InputAction, pointerEventType: PointerEventType): boolean;
|
1377
|
+
export declare const isPointerEventActive: (entity: Entity, actionButton: InputAction, pointerEventType: PointerEventType) => boolean;
|
1383
1378
|
|
1384
1379
|
export declare function isPointerEventActiveGenerator(engine: IEngine): (entity: Entity, actionButton: InputAction, pointerEventType: PointerEventType) => boolean;
|
1385
1380
|
|
@@ -3564,6 +3559,8 @@ export declare interface Spec {
|
|
3564
3559
|
*/
|
3565
3560
|
export declare type SystemFn = (dt: number) => void;
|
3566
3561
|
|
3562
|
+
export declare type Task<T = unknown> = () => Promise<T>;
|
3563
|
+
|
3567
3564
|
declare const enum TextAlignMode {
|
3568
3565
|
TAM_TOP_LEFT = 0,
|
3569
3566
|
TAM_TOP_CENTER = 1,
|
@@ -4248,13 +4245,7 @@ declare interface Vector3_2 {
|
|
4248
4245
|
/** @public */
|
4249
4246
|
export declare const VisibilityComponent: ComponentDefinition<ISchema<PBVisibilityComponent>, PBVisibilityComponent>;
|
4250
4247
|
|
4251
|
-
|
4252
|
-
* Check if an entity emitted a clicked event
|
4253
|
-
* @param entity the entity to query, for global clicks use `engine.RootEntity`
|
4254
|
-
* @param actionButton
|
4255
|
-
* @returns true if the entity was clicked in the last tick-update
|
4256
|
-
*/
|
4257
|
-
export declare function wasEntityClicked(entity: Entity, actionButton: InputAction): boolean;
|
4248
|
+
export declare const wasEntityClicked: (entity: Entity, actionButton: InputAction) => boolean;
|
4258
4249
|
|
4259
4250
|
export declare function wasEntityClickedGenerator(engine: IEngine): (entity: Entity, actionButton: InputAction) => boolean;
|
4260
4251
|
|