@dcl/sdk 7.0.0-3244243254.commit-d5804ee → 7.0.0-3252840030.commit-001810b
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 +36 -19
- package/dist/ecs7/index.js +133 -82
- 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 +36 -19
package/dist/ecs7/index.d.ts
CHANGED
@@ -6,6 +6,9 @@ export declare const Animator: ComponentDefinition<ISchema<PBAnimator>, PBAnimat
|
|
6
6
|
/** @public */
|
7
7
|
export declare const AudioSource: ComponentDefinition<ISchema<PBAudioSource>, PBAudioSource>;
|
8
8
|
|
9
|
+
/** @public */
|
10
|
+
export declare const AudioStream: ComponentDefinition<ISchema<PBAudioStream>, PBAudioStream>;
|
11
|
+
|
9
12
|
declare const enum AvatarAnchorPointType {
|
10
13
|
AAPT_POSITION = 0,
|
11
14
|
AAPT_NAME_TAG = 1,
|
@@ -30,6 +33,11 @@ export declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>, PB
|
|
30
33
|
/** @public */
|
31
34
|
export declare const Billboard: ComponentDefinition<ISchema<PBBillboard>, PBBillboard>;
|
32
35
|
|
36
|
+
declare const enum BillboardMode {
|
37
|
+
BM_ALL_AXES = 0,
|
38
|
+
BM_Y_AXE = 1
|
39
|
+
}
|
40
|
+
|
33
41
|
/**
|
34
42
|
* @public
|
35
43
|
*/
|
@@ -200,6 +208,8 @@ export declare namespace Components {
|
|
200
208
|
/** @public */
|
201
209
|
const AudioSource: ComponentDefinition<ISchema<PBAudioSource>, PBAudioSource>;
|
202
210
|
/** @public */
|
211
|
+
const AudioStream: ComponentDefinition<ISchema<PBAudioStream>, PBAudioStream>;
|
212
|
+
/** @public */
|
203
213
|
const AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>, PBAvatarAttach>;
|
204
214
|
/** @public */
|
205
215
|
const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>, PBAvatarModifierArea>;
|
@@ -438,6 +448,7 @@ declare function defineSdkComponents(engine: PreEngine): {
|
|
438
448
|
MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, Partial<PBMeshCollider>>;
|
439
449
|
Animator: ComponentDefinition<ISchema<PBAnimator>, PBAnimator>;
|
440
450
|
AudioSource: ComponentDefinition<ISchema<PBAudioSource>, PBAudioSource>;
|
451
|
+
AudioStream: ComponentDefinition<ISchema<PBAudioStream>, PBAudioStream>;
|
441
452
|
AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>, PBAvatarAttach>;
|
442
453
|
AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>, PBAvatarModifierArea>;
|
443
454
|
AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>, PBAvatarShape>;
|
@@ -1833,6 +1844,13 @@ declare interface PBAudioSource {
|
|
1833
1844
|
audioClipUrl: string;
|
1834
1845
|
}
|
1835
1846
|
|
1847
|
+
declare interface PBAudioStream {
|
1848
|
+
playing?: boolean | undefined;
|
1849
|
+
/** default=1.0f */
|
1850
|
+
volume?: number | undefined;
|
1851
|
+
url: string;
|
1852
|
+
}
|
1853
|
+
|
1836
1854
|
declare interface PBAvatarAttach {
|
1837
1855
|
avatarId: string;
|
1838
1856
|
anchorPointId: AvatarAnchorPointType;
|
@@ -1875,12 +1893,10 @@ declare interface PBAvatarShape {
|
|
1875
1893
|
}
|
1876
1894
|
|
1877
1895
|
declare interface PBBillboard {
|
1878
|
-
/** default=
|
1879
|
-
|
1880
|
-
/** default=
|
1881
|
-
|
1882
|
-
/** default=true */
|
1883
|
-
z?: boolean | undefined;
|
1896
|
+
/** default=BM_ALL_AXES */
|
1897
|
+
billboardMode?: BillboardMode | undefined;
|
1898
|
+
/** default=false */
|
1899
|
+
oppositeDirection?: boolean | undefined;
|
1884
1900
|
}
|
1885
1901
|
|
1886
1902
|
declare interface PBCameraMode {
|
@@ -2057,18 +2073,13 @@ declare interface PBRaycastResult {
|
|
2057
2073
|
|
2058
2074
|
declare interface PBTextShape {
|
2059
2075
|
text: string;
|
2060
|
-
/**
|
2061
|
-
|
2062
|
-
font?: string | undefined;
|
2063
|
-
/** default=1.0f */
|
2064
|
-
opacity?: number | undefined;
|
2076
|
+
/** default=F_SANS_SERIF */
|
2077
|
+
font?: Font | undefined;
|
2065
2078
|
/** default=10 */
|
2066
2079
|
fontSize?: number | undefined;
|
2067
2080
|
fontAutoSize?: boolean | undefined;
|
2068
|
-
/** default=
|
2069
|
-
|
2070
|
-
/** default='center' */
|
2071
|
-
vTextAlign?: string | undefined;
|
2081
|
+
/** default=TAM_CENTER_CENTER */
|
2082
|
+
textAlign?: TextAlignMode | undefined;
|
2072
2083
|
/** default=1 */
|
2073
2084
|
width?: number | undefined;
|
2074
2085
|
/** default=1 */
|
@@ -2089,7 +2100,7 @@ declare interface PBTextShape {
|
|
2089
2100
|
/** default=(1.0,1.0,1.0) */
|
2090
2101
|
outlineColor?: Color3 | undefined;
|
2091
2102
|
/** default=(1.0,1.0,1.0) */
|
2092
|
-
textColor?:
|
2103
|
+
textColor?: Color4 | undefined;
|
2093
2104
|
}
|
2094
2105
|
|
2095
2106
|
declare interface PBUiBackground {
|
@@ -2614,9 +2625,15 @@ export declare interface Spec {
|
|
2614
2625
|
export declare type SystemFn = (dt: number) => void;
|
2615
2626
|
|
2616
2627
|
declare const enum TextAlignMode {
|
2617
|
-
|
2618
|
-
|
2619
|
-
|
2628
|
+
TAM_TOP_LEFT = 0,
|
2629
|
+
TAM_TOP_CENTER = 1,
|
2630
|
+
TAM_TOP_RIGHT = 2,
|
2631
|
+
TAM_MIDDLE_LEFT = 3,
|
2632
|
+
TAM_MIDDLE_CENTER = 4,
|
2633
|
+
TAM_MIDDLE_RIGHT = 5,
|
2634
|
+
TAM_BOTTOM_LEFT = 6,
|
2635
|
+
TAM_BOTTOM_CENTER = 7,
|
2636
|
+
TAM_BOTTOM_RIGHT = 8
|
2620
2637
|
}
|
2621
2638
|
|
2622
2639
|
/** @public */
|