@dcl/sdk 7.0.0-3244103998.commit-74d3f83 → 7.0.0-3250968661.commit-2850bf7
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 +44 -62
- package/dist/ecs7/index.js +55 -97
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/billboard.proto +10 -4
- package/dist/ecs7/proto-definitions/common/texts.proto +9 -3
- package/dist/ecs7/proto-definitions/text_shape.proto +21 -24
- package/dist/playground/snippets/billboard.ts +87 -0
- package/dist/playground/snippets/info.json +1 -1
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +44 -62
package/dist/ecs7/index.d.ts
CHANGED
@@ -10,8 +10,7 @@ declare const enum AvatarAnchorPointType {
|
|
10
10
|
AAPT_POSITION = 0,
|
11
11
|
AAPT_NAME_TAG = 1,
|
12
12
|
AAPT_LEFT_HAND = 2,
|
13
|
-
AAPT_RIGHT_HAND = 3
|
14
|
-
UNRECOGNIZED = -1
|
13
|
+
AAPT_RIGHT_HAND = 3
|
15
14
|
}
|
16
15
|
|
17
16
|
/** @public */
|
@@ -22,8 +21,7 @@ export declare const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarMod
|
|
22
21
|
|
23
22
|
declare const enum AvatarModifierType {
|
24
23
|
AMT_HIDE_AVATARS = 0,
|
25
|
-
AMT_DISABLE_PASSPORTS = 1
|
26
|
-
UNRECOGNIZED = -1
|
24
|
+
AMT_DISABLE_PASSPORTS = 1
|
27
25
|
}
|
28
26
|
|
29
27
|
/** @public */
|
@@ -32,6 +30,11 @@ export declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>, PB
|
|
32
30
|
/** @public */
|
33
31
|
export declare const Billboard: ComponentDefinition<ISchema<PBBillboard>, PBBillboard>;
|
34
32
|
|
33
|
+
declare const enum BillboardMode {
|
34
|
+
BM_ALL_AXES = 0,
|
35
|
+
BM_Y_AXE = 1
|
36
|
+
}
|
37
|
+
|
35
38
|
/**
|
36
39
|
* @public
|
37
40
|
*/
|
@@ -45,15 +48,13 @@ export declare const CameraModeArea: ComponentDefinition<ISchema<PBCameraModeAre
|
|
45
48
|
|
46
49
|
declare const enum CameraType {
|
47
50
|
CT_FIRST_PERSON = 0,
|
48
|
-
CT_THIRD_PERSON = 1
|
49
|
-
UNRECOGNIZED = -1
|
51
|
+
CT_THIRD_PERSON = 1
|
50
52
|
}
|
51
53
|
|
52
54
|
export declare const enum ColliderLayer {
|
53
55
|
CL_NONE = 0,
|
54
56
|
CL_POINTER = 1,
|
55
|
-
CL_PHYSICS = 2
|
56
|
-
UNRECOGNIZED = -1
|
57
|
+
CL_PHYSICS = 2
|
57
58
|
}
|
58
59
|
|
59
60
|
declare interface Color3 {
|
@@ -502,8 +503,7 @@ declare type FloatArray = number[];
|
|
502
503
|
|
503
504
|
declare const enum Font {
|
504
505
|
F_LIBERATION_SANS = 0,
|
505
|
-
F_SANS_SERIF = 1
|
506
|
-
UNRECOGNIZED = -1
|
506
|
+
F_SANS_SERIF = 1
|
507
507
|
}
|
508
508
|
|
509
509
|
/** @public */
|
@@ -663,8 +663,7 @@ declare const enum InputAction {
|
|
663
663
|
IA_ACTION_3 = 10,
|
664
664
|
IA_ACTION_4 = 11,
|
665
665
|
IA_ACTION_5 = 12,
|
666
|
-
IA_ACTION_6 = 13
|
667
|
-
UNRECOGNIZED = -1
|
666
|
+
IA_ACTION_6 = 13
|
668
667
|
}
|
669
668
|
|
670
669
|
/**
|
@@ -721,8 +720,7 @@ declare const enum MaterialTransparencyMode {
|
|
721
720
|
MTM_ALPHA_TEST = 1,
|
722
721
|
MTM_ALPHA_BLEND = 2,
|
723
722
|
MTM_ALPHA_TEST_AND_ALPHA_BLEND = 3,
|
724
|
-
MTM_AUTO = 4
|
725
|
-
UNRECOGNIZED = -1
|
723
|
+
MTM_AUTO = 4
|
726
724
|
}
|
727
725
|
|
728
726
|
/**
|
@@ -1499,8 +1497,7 @@ declare const enum NftFrameType {
|
|
1499
1497
|
NFT_WOOD_WIDE = 19,
|
1500
1498
|
NFT_WOOD_TWIGS = 20,
|
1501
1499
|
NFT_CANVAS = 21,
|
1502
|
-
NFT_NONE = 22
|
1503
|
-
UNRECOGNIZED = -1
|
1500
|
+
NFT_NONE = 22
|
1504
1501
|
}
|
1505
1502
|
|
1506
1503
|
/** @public */
|
@@ -1883,12 +1880,10 @@ declare interface PBAvatarShape {
|
|
1883
1880
|
}
|
1884
1881
|
|
1885
1882
|
declare interface PBBillboard {
|
1886
|
-
/** default=
|
1887
|
-
|
1888
|
-
/** default=
|
1889
|
-
|
1890
|
-
/** default=true */
|
1891
|
-
z?: boolean | undefined;
|
1883
|
+
/** default=BM_ALL_AXES */
|
1884
|
+
billboardMode?: BillboardMode | undefined;
|
1885
|
+
/** default=false */
|
1886
|
+
oppositeDirection?: boolean | undefined;
|
1892
1887
|
}
|
1893
1888
|
|
1894
1889
|
declare interface PBCameraMode {
|
@@ -2065,18 +2060,13 @@ declare interface PBRaycastResult {
|
|
2065
2060
|
|
2066
2061
|
declare interface PBTextShape {
|
2067
2062
|
text: string;
|
2068
|
-
/**
|
2069
|
-
|
2070
|
-
font?: string | undefined;
|
2071
|
-
/** default=1.0f */
|
2072
|
-
opacity?: number | undefined;
|
2063
|
+
/** default=F_SANS_SERIF */
|
2064
|
+
font?: Font | undefined;
|
2073
2065
|
/** default=10 */
|
2074
2066
|
fontSize?: number | undefined;
|
2075
2067
|
fontAutoSize?: boolean | undefined;
|
2076
|
-
/** default=
|
2077
|
-
|
2078
|
-
/** default='center' */
|
2079
|
-
vTextAlign?: string | undefined;
|
2068
|
+
/** default=TAM_CENTER_CENTER */
|
2069
|
+
textAlign?: TextAlignMode | undefined;
|
2080
2070
|
/** default=1 */
|
2081
2071
|
width?: number | undefined;
|
2082
2072
|
/** default=1 */
|
@@ -2097,7 +2087,7 @@ declare interface PBTextShape {
|
|
2097
2087
|
/** default=(1.0,1.0,1.0) */
|
2098
2088
|
outlineColor?: Color3 | undefined;
|
2099
2089
|
/** default=(1.0,1.0,1.0) */
|
2100
|
-
textColor?:
|
2090
|
+
textColor?: Color4 | undefined;
|
2101
2091
|
}
|
2102
2092
|
|
2103
2093
|
declare interface PBUiBackground {
|
@@ -2311,8 +2301,7 @@ declare const enum PointerEventType {
|
|
2311
2301
|
PET_UP = 0,
|
2312
2302
|
PET_DOWN = 1,
|
2313
2303
|
PET_HOVER_ENTER = 2,
|
2314
|
-
PET_HOVER_LEAVE = 3
|
2315
|
-
UNRECOGNIZED = -1
|
2304
|
+
PET_HOVER_LEAVE = 3
|
2316
2305
|
}
|
2317
2306
|
|
2318
2307
|
/** @public */
|
@@ -2550,8 +2539,7 @@ declare interface RaycastHit {
|
|
2550
2539
|
|
2551
2540
|
declare const enum RaycastQueryType {
|
2552
2541
|
RQT_HIT_FIRST = 0,
|
2553
|
-
RQT_QUERY_ALL = 1
|
2554
|
-
UNRECOGNIZED = -1
|
2542
|
+
RQT_QUERY_ALL = 1
|
2555
2543
|
}
|
2556
2544
|
|
2557
2545
|
/** @public */
|
@@ -2624,10 +2612,15 @@ export declare interface Spec {
|
|
2624
2612
|
export declare type SystemFn = (dt: number) => void;
|
2625
2613
|
|
2626
2614
|
declare const enum TextAlignMode {
|
2627
|
-
|
2628
|
-
|
2629
|
-
|
2630
|
-
|
2615
|
+
TAM_TOP_LEFT = 0,
|
2616
|
+
TAM_TOP_CENTER = 1,
|
2617
|
+
TAM_TOP_RIGHT = 2,
|
2618
|
+
TAM_MIDDLE_LEFT = 3,
|
2619
|
+
TAM_MIDDLE_CENTER = 4,
|
2620
|
+
TAM_MIDDLE_RIGHT = 5,
|
2621
|
+
TAM_BOTTOM_LEFT = 6,
|
2622
|
+
TAM_BOTTOM_CENTER = 7,
|
2623
|
+
TAM_BOTTOM_RIGHT = 8
|
2631
2624
|
}
|
2632
2625
|
|
2633
2626
|
/** @public */
|
@@ -2636,16 +2629,14 @@ export declare const TextShape: ComponentDefinition<ISchema<PBTextShape>, PBText
|
|
2636
2629
|
declare const enum TextureFilterMode {
|
2637
2630
|
TFM_POINT = 0,
|
2638
2631
|
TFM_BILINEAR = 1,
|
2639
|
-
TFM_TRILINEAR = 2
|
2640
|
-
UNRECOGNIZED = -1
|
2632
|
+
TFM_TRILINEAR = 2
|
2641
2633
|
}
|
2642
2634
|
|
2643
2635
|
declare const enum TextureWrapMode {
|
2644
2636
|
TWM_REPEAT = 0,
|
2645
2637
|
TWM_CLAMP = 1,
|
2646
2638
|
TWM_MIRROR = 2,
|
2647
|
-
TWM_MIRROR_ONCE = 3
|
2648
|
-
UNRECOGNIZED = -1
|
2639
|
+
TWM_MIRROR_ONCE = 3
|
2649
2640
|
}
|
2650
2641
|
|
2651
2642
|
declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
|
@@ -3303,29 +3294,25 @@ declare const enum YGAlign {
|
|
3303
3294
|
YGA_STRETCH = 4,
|
3304
3295
|
YGA_BASELINE = 5,
|
3305
3296
|
YGA_SPACE_BETWEEN = 6,
|
3306
|
-
YGA_SPACE_AROUND = 7
|
3307
|
-
UNRECOGNIZED = -1
|
3297
|
+
YGA_SPACE_AROUND = 7
|
3308
3298
|
}
|
3309
3299
|
|
3310
3300
|
declare const enum YGDirection {
|
3311
3301
|
YGD_INHERIT = 0,
|
3312
3302
|
YGD_LTR = 1,
|
3313
|
-
YGD_RTL = 2
|
3314
|
-
UNRECOGNIZED = -1
|
3303
|
+
YGD_RTL = 2
|
3315
3304
|
}
|
3316
3305
|
|
3317
3306
|
declare const enum YGDisplay {
|
3318
3307
|
YGD_FLEX = 0,
|
3319
|
-
YGD_NONE = 1
|
3320
|
-
UNRECOGNIZED = -1
|
3308
|
+
YGD_NONE = 1
|
3321
3309
|
}
|
3322
3310
|
|
3323
3311
|
declare const enum YGFlexDirection {
|
3324
3312
|
YGFD_COLUMN = 0,
|
3325
3313
|
YGFD_COLUMN_REVERSE = 1,
|
3326
3314
|
YGFD_ROW = 2,
|
3327
|
-
YGFD_ROW_REVERSE = 3
|
3328
|
-
UNRECOGNIZED = -1
|
3315
|
+
YGFD_ROW_REVERSE = 3
|
3329
3316
|
}
|
3330
3317
|
|
3331
3318
|
declare const enum YGJustify {
|
@@ -3334,37 +3321,32 @@ declare const enum YGJustify {
|
|
3334
3321
|
YGJ_FLEX_END = 2,
|
3335
3322
|
YGJ_SPACE_BETWEEN = 3,
|
3336
3323
|
YGJ_SPACE_AROUND = 4,
|
3337
|
-
YGJ_SPACE_EVENLY = 5
|
3338
|
-
UNRECOGNIZED = -1
|
3324
|
+
YGJ_SPACE_EVENLY = 5
|
3339
3325
|
}
|
3340
3326
|
|
3341
3327
|
declare const enum YGOverflow {
|
3342
3328
|
YGO_VISIBLE = 0,
|
3343
3329
|
YGO_HIDDEN = 1,
|
3344
|
-
YGO_SCROLL = 2
|
3345
|
-
UNRECOGNIZED = -1
|
3330
|
+
YGO_SCROLL = 2
|
3346
3331
|
}
|
3347
3332
|
|
3348
3333
|
declare const enum YGPositionType {
|
3349
3334
|
YGPT_STATIC = 0,
|
3350
3335
|
YGPT_RELATIVE = 1,
|
3351
|
-
YGPT_ABSOLUTE = 2
|
3352
|
-
UNRECOGNIZED = -1
|
3336
|
+
YGPT_ABSOLUTE = 2
|
3353
3337
|
}
|
3354
3338
|
|
3355
3339
|
declare const enum YGUnit {
|
3356
3340
|
YGU_UNDEFINED = 0,
|
3357
3341
|
YGU_POINT = 1,
|
3358
3342
|
YGU_PERCENT = 2,
|
3359
|
-
YGU_AUTO = 3
|
3360
|
-
UNRECOGNIZED = -1
|
3343
|
+
YGU_AUTO = 3
|
3361
3344
|
}
|
3362
3345
|
|
3363
3346
|
declare const enum YGWrap {
|
3364
3347
|
YGW_NO_WRAP = 0,
|
3365
3348
|
YGW_WRAP = 1,
|
3366
|
-
YGW_WRAP_REVERSE = 2
|
3367
|
-
UNRECOGNIZED = -1
|
3349
|
+
YGW_WRAP_REVERSE = 2
|
3368
3350
|
}
|
3369
3351
|
|
3370
3352
|
export { }
|