@dcl/ecs 1.0.0-2462113196.commit-0b88de0 → 1.0.0-2536021667.commit-17c845c

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/index.d.ts CHANGED
@@ -8,6 +8,12 @@ export declare function ArrayType<T>(type: EcsType<T>): EcsType<Array<T>>;
8
8
  */
9
9
  export declare type ByteBuffer = ReturnType<typeof createByteBuffer>;
10
10
 
11
+ declare interface Color3 {
12
+ r: number;
13
+ g: number;
14
+ b: number;
15
+ }
16
+
11
17
  /**
12
18
  * @public
13
19
  */
@@ -183,8 +189,10 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
183
189
  AudioStream: ComponentDefinition<EcsType<PBAudioStream>>;
184
190
  BoxShape: ComponentDefinition<EcsType<PBBoxShape>>;
185
191
  CylinderShape: ComponentDefinition<EcsType<PBCylinderShape>>;
192
+ NFTShape: ComponentDefinition<EcsType<PBNFTShape>>;
186
193
  PlaneShape: ComponentDefinition<EcsType<PBPlaneShape>>;
187
194
  SphereShape: ComponentDefinition<EcsType<PBSphereShape>>;
195
+ TextShape: ComponentDefinition<EcsType<PBTextShape>>;
188
196
  Transform: ComponentDefinition<EcsType<Transform>>;
189
197
  };
190
198
 
@@ -1110,6 +1118,16 @@ declare interface PBCylinderShape {
1110
1118
  radiusBottom: number;
1111
1119
  }
1112
1120
 
1121
+ declare interface PBNFTShape {
1122
+ withCollisions: boolean;
1123
+ isPointerBlocker: boolean;
1124
+ visible: boolean;
1125
+ src: string;
1126
+ assetId: string;
1127
+ style: number;
1128
+ color: Color3 | undefined;
1129
+ }
1130
+
1113
1131
  declare interface PBPlaneShape {
1114
1132
  withCollisions: boolean;
1115
1133
  isPointerBlocker: boolean;
@@ -1123,6 +1141,33 @@ declare interface PBSphereShape {
1123
1141
  visible: boolean;
1124
1142
  }
1125
1143
 
1144
+ declare interface PBTextShape {
1145
+ text: string;
1146
+ visible: boolean;
1147
+ font: string;
1148
+ opacity: number;
1149
+ fontSize: number;
1150
+ fontAutoSize: boolean;
1151
+ hTextAlign: string;
1152
+ vTextAlign: string;
1153
+ width: number;
1154
+ height: number;
1155
+ paddingTop: number;
1156
+ paddingRight: number;
1157
+ paddingBottom: number;
1158
+ paddingLeft: number;
1159
+ lineSpacing: number;
1160
+ lineCount: number;
1161
+ textWrapping: boolean;
1162
+ shadowBlur: number;
1163
+ shadowOffsetX: number;
1164
+ shadowOffsetY: number;
1165
+ outlineWidth: number;
1166
+ shadowColor: Color3 | undefined;
1167
+ outlineColor: Color3 | undefined;
1168
+ textColor: Color3 | undefined;
1169
+ }
1170
+
1126
1171
  /**
1127
1172
  * Represens a plane by the equation ax + by + cz + d = 0
1128
1173
  * @public