@dcl/sdk 7.0.0-3038080345.commit-de046a3 → 7.0.0-3040969877.commit-184260d
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 +45 -5
- package/dist/ecs7/index.js +183 -57
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/Raycast.proto +19 -0
- package/dist/ecs7/proto-definitions/RaycastResult.proto +2 -1
- package/dist/ecs7/proto-definitions/UiText.proto +16 -2
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +45 -5
package/dist/ecs7/index.d.ts
CHANGED
@@ -231,7 +231,7 @@ export declare namespace Components {
|
|
231
231
|
/** @public */
|
232
232
|
const Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
|
233
233
|
/** @public */
|
234
|
-
const MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider
|
234
|
+
const MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, Partial<PBMeshCollider>>;
|
235
235
|
/** @public */
|
236
236
|
const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, Partial<PBMeshRenderer>>;
|
237
237
|
/** @public */
|
@@ -253,6 +253,8 @@ export declare namespace Components {
|
|
253
253
|
/** @public */
|
254
254
|
const PointerLock: ComponentDefinition<ISchema<PBPointerLock>, PBPointerLock>;
|
255
255
|
/** @public */
|
256
|
+
const Raycast: ComponentDefinition<ISchema<PBRaycast>, PBRaycast>;
|
257
|
+
/** @public */
|
256
258
|
const RaycastResult: ComponentDefinition<ISchema<PBRaycastResult>, PBRaycastResult>;
|
257
259
|
/** @public */
|
258
260
|
const SphereShape: ComponentDefinition<ISchema<PBSphereShape>, PBSphereShape>;
|
@@ -469,6 +471,7 @@ export declare type DeepReadonlySet<T> = ReadonlySet<DeepReadonly<T>>;
|
|
469
471
|
declare function defineSdkComponents(engine: PreEngine): {
|
470
472
|
Transform: ComponentDefinition<ISchema<TransformType>, Partial<TransformType>>;
|
471
473
|
MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, Partial<PBMeshRenderer>>;
|
474
|
+
MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, Partial<PBMeshCollider>>;
|
472
475
|
Animator: ComponentDefinition<ISchema<PBAnimator>, PBAnimator>;
|
473
476
|
AudioSource: ComponentDefinition<ISchema<PBAudioSource>, PBAudioSource>;
|
474
477
|
AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>, PBAvatarAttach>;
|
@@ -481,7 +484,6 @@ declare function defineSdkComponents(engine: PreEngine): {
|
|
481
484
|
CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>, PBCylinderShape>;
|
482
485
|
GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>, PBGLTFShape>;
|
483
486
|
Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
|
484
|
-
MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
|
485
487
|
NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
|
486
488
|
OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>, PBOnPointerDown>;
|
487
489
|
OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>, PBOnPointerDownResult>;
|
@@ -491,6 +493,7 @@ declare function defineSdkComponents(engine: PreEngine): {
|
|
491
493
|
PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
|
492
494
|
PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
|
493
495
|
PointerLock: ComponentDefinition<ISchema<PBPointerLock>, PBPointerLock>;
|
496
|
+
Raycast: ComponentDefinition<ISchema<PBRaycast>, PBRaycast>;
|
494
497
|
RaycastResult: ComponentDefinition<ISchema<PBRaycastResult>, PBRaycastResult>;
|
495
498
|
SphereShape: ComponentDefinition<ISchema<PBSphereShape>, PBSphereShape>;
|
496
499
|
TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
|
@@ -555,6 +558,12 @@ export declare type float = number;
|
|
555
558
|
/** @public */
|
556
559
|
export declare type FloatArray = number[];
|
557
560
|
|
561
|
+
declare const enum Font {
|
562
|
+
LiberationSans = 0,
|
563
|
+
SansSerif = 1,
|
564
|
+
UNRECOGNIZED = -1
|
565
|
+
}
|
566
|
+
|
558
567
|
/** @public */
|
559
568
|
export declare const GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>, PBGLTFShape>;
|
560
569
|
|
@@ -1449,7 +1458,7 @@ declare namespace Matrix {
|
|
1449
1458
|
}
|
1450
1459
|
|
1451
1460
|
/** @public */
|
1452
|
-
export declare const MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider
|
1461
|
+
export declare const MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, Partial<PBMeshCollider>>;
|
1453
1462
|
|
1454
1463
|
/** @public */
|
1455
1464
|
export declare const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, Partial<PBMeshRenderer>>;
|
@@ -2138,6 +2147,14 @@ declare interface PBPointerLock {
|
|
2138
2147
|
isPointerLocked: boolean;
|
2139
2148
|
}
|
2140
2149
|
|
2150
|
+
declare interface PBRaycast {
|
2151
|
+
timestamp: number;
|
2152
|
+
origin: Vector3_2 | undefined;
|
2153
|
+
direction: Vector3_2 | undefined;
|
2154
|
+
maxDistance: number;
|
2155
|
+
queryType: RaycastQueryType;
|
2156
|
+
}
|
2157
|
+
|
2141
2158
|
declare interface PBRaycastResult {
|
2142
2159
|
timestamp: number;
|
2143
2160
|
origin: Vector3_2 | undefined;
|
@@ -2192,8 +2209,15 @@ declare interface PBTextShape {
|
|
2192
2209
|
}
|
2193
2210
|
|
2194
2211
|
declare interface PBUiText {
|
2195
|
-
|
2196
|
-
|
2212
|
+
value: string;
|
2213
|
+
/** default=(1.0,1.0,1.0) */
|
2214
|
+
color?: Color3 | undefined;
|
2215
|
+
/** default='center' */
|
2216
|
+
textAlign?: TextAlign | undefined;
|
2217
|
+
/** default=0 */
|
2218
|
+
font?: Font | undefined;
|
2219
|
+
/** default=10 */
|
2220
|
+
fontSize?: number | undefined;
|
2197
2221
|
}
|
2198
2222
|
|
2199
2223
|
declare interface PBUiTransform {
|
@@ -2586,6 +2610,9 @@ export declare namespace Quaternion {
|
|
2586
2610
|
*/
|
2587
2611
|
export declare const RAD2DEG: number;
|
2588
2612
|
|
2613
|
+
/** @public */
|
2614
|
+
export declare const Raycast: ComponentDefinition<ISchema<PBRaycast>, PBRaycast>;
|
2615
|
+
|
2589
2616
|
/** Position will be relative to the scene */
|
2590
2617
|
declare interface RaycastHit {
|
2591
2618
|
position: Vector3_2 | undefined;
|
@@ -2597,6 +2624,12 @@ declare interface RaycastHit {
|
|
2597
2624
|
entityId?: number | undefined;
|
2598
2625
|
}
|
2599
2626
|
|
2627
|
+
declare const enum RaycastQueryType {
|
2628
|
+
HIT_FIRST = 0,
|
2629
|
+
QUERY_ALL = 1,
|
2630
|
+
UNRECOGNIZED = -1
|
2631
|
+
}
|
2632
|
+
|
2600
2633
|
/** @public */
|
2601
2634
|
export declare const RaycastResult: ComponentDefinition<ISchema<PBRaycastResult>, PBRaycastResult>;
|
2602
2635
|
|
@@ -2682,6 +2715,13 @@ export declare const SphereShape: ComponentDefinition<ISchema<PBSphereShape>, PB
|
|
2682
2715
|
*/
|
2683
2716
|
export declare type SystemFn = (dt: number) => void;
|
2684
2717
|
|
2718
|
+
declare const enum TextAlign {
|
2719
|
+
Center = 0,
|
2720
|
+
Left = 1,
|
2721
|
+
Right = 2,
|
2722
|
+
UNRECOGNIZED = -1
|
2723
|
+
}
|
2724
|
+
|
2685
2725
|
/** @public */
|
2686
2726
|
export declare const TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
|
2687
2727
|
|