@dcl/sdk 7.0.0-3244243254.commit-d5804ee → 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 +23 -19
- package/dist/ecs7/index.js +55 -78
- 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 +23 -19
package/dist/ecs7/index.d.ts
CHANGED
@@ -30,6 +30,11 @@ export declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>, PB
|
|
30
30
|
/** @public */
|
31
31
|
export declare const Billboard: ComponentDefinition<ISchema<PBBillboard>, PBBillboard>;
|
32
32
|
|
33
|
+
declare const enum BillboardMode {
|
34
|
+
BM_ALL_AXES = 0,
|
35
|
+
BM_Y_AXE = 1
|
36
|
+
}
|
37
|
+
|
33
38
|
/**
|
34
39
|
* @public
|
35
40
|
*/
|
@@ -1875,12 +1880,10 @@ declare interface PBAvatarShape {
|
|
1875
1880
|
}
|
1876
1881
|
|
1877
1882
|
declare interface PBBillboard {
|
1878
|
-
/** default=
|
1879
|
-
|
1880
|
-
/** default=
|
1881
|
-
|
1882
|
-
/** default=true */
|
1883
|
-
z?: boolean | undefined;
|
1883
|
+
/** default=BM_ALL_AXES */
|
1884
|
+
billboardMode?: BillboardMode | undefined;
|
1885
|
+
/** default=false */
|
1886
|
+
oppositeDirection?: boolean | undefined;
|
1884
1887
|
}
|
1885
1888
|
|
1886
1889
|
declare interface PBCameraMode {
|
@@ -2057,18 +2060,13 @@ declare interface PBRaycastResult {
|
|
2057
2060
|
|
2058
2061
|
declare interface PBTextShape {
|
2059
2062
|
text: string;
|
2060
|
-
/**
|
2061
|
-
|
2062
|
-
font?: string | undefined;
|
2063
|
-
/** default=1.0f */
|
2064
|
-
opacity?: number | undefined;
|
2063
|
+
/** default=F_SANS_SERIF */
|
2064
|
+
font?: Font | undefined;
|
2065
2065
|
/** default=10 */
|
2066
2066
|
fontSize?: number | undefined;
|
2067
2067
|
fontAutoSize?: boolean | undefined;
|
2068
|
-
/** default=
|
2069
|
-
|
2070
|
-
/** default='center' */
|
2071
|
-
vTextAlign?: string | undefined;
|
2068
|
+
/** default=TAM_CENTER_CENTER */
|
2069
|
+
textAlign?: TextAlignMode | undefined;
|
2072
2070
|
/** default=1 */
|
2073
2071
|
width?: number | undefined;
|
2074
2072
|
/** default=1 */
|
@@ -2089,7 +2087,7 @@ declare interface PBTextShape {
|
|
2089
2087
|
/** default=(1.0,1.0,1.0) */
|
2090
2088
|
outlineColor?: Color3 | undefined;
|
2091
2089
|
/** default=(1.0,1.0,1.0) */
|
2092
|
-
textColor?:
|
2090
|
+
textColor?: Color4 | undefined;
|
2093
2091
|
}
|
2094
2092
|
|
2095
2093
|
declare interface PBUiBackground {
|
@@ -2614,9 +2612,15 @@ export declare interface Spec {
|
|
2614
2612
|
export declare type SystemFn = (dt: number) => void;
|
2615
2613
|
|
2616
2614
|
declare const enum TextAlignMode {
|
2617
|
-
|
2618
|
-
|
2619
|
-
|
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
|
2620
2624
|
}
|
2621
2625
|
|
2622
2626
|
/** @public */
|