@dcl/sdk 7.0.0-2706310238.commit-e895a52 → 7.0.0-2781674220.commit-d772e02

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.
@@ -21,12 +21,6 @@ declare const enum ActionButton {
21
21
  */
22
22
  export declare function ArrayType<T>(type: EcsType<T>): EcsType<Array<T>>;
23
23
 
24
- declare const enum AvatarModifier {
25
- HIDE_AVATARS = 0,
26
- DISABLE_PASSPORTS = 1,
27
- UNRECOGNIZED = -1
28
- }
29
-
30
24
  /**
31
25
  * @public
32
26
  */
@@ -227,9 +221,7 @@ export declare type DeepReadonly<T> = {
227
221
  declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>): {
228
222
  Animator: ComponentDefinition<EcsType<PBAnimator>>;
229
223
  AudioSource: ComponentDefinition<EcsType<PBAudioSource>>;
230
- AudioStream: ComponentDefinition<EcsType<PBAudioStream>>;
231
224
  AvatarAttach: ComponentDefinition<EcsType<PBAvatarAttach>>;
232
- AvatarModifierArea: ComponentDefinition<EcsType<PBAvatarModifierArea>>;
233
225
  AvatarShape: ComponentDefinition<EcsType<PBAvatarShape>>;
234
226
  Billboard: ComponentDefinition<EcsType<PBBillboard>>;
235
227
  BoxShape: ComponentDefinition<EcsType<PBBoxShape>>;
@@ -244,7 +236,6 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
244
236
  PlaneShape: ComponentDefinition<EcsType<PBPlaneShape>>;
245
237
  SphereShape: ComponentDefinition<EcsType<PBSphereShape>>;
246
238
  TextShape: ComponentDefinition<EcsType<PBTextShape>>;
247
- UiTransform: ComponentDefinition<EcsType<PBUiTransform>>;
248
239
  Transform: ComponentDefinition<EcsType<Transform>>;
249
240
  };
250
241
 
@@ -352,7 +343,7 @@ export declare type IEngine = {
352
343
  groupOf<T extends [ComponentDefinition, ...ComponentDefinition[]]>(...components: T): Iterable<[Entity, ...DeepReadonly<ComponentEcsType<T>>]>;
353
344
  getComponent<T extends EcsType>(componentId: number): ComponentDefinition<T>;
354
345
  update(dt: number): void;
355
- baseComponents: SdkComponetns;
346
+ baseComponents: SdkComponents;
356
347
  };
357
348
 
358
349
  /**
@@ -1177,23 +1168,11 @@ declare interface PBAudioSource {
1177
1168
  audioClipUrl: string;
1178
1169
  }
1179
1170
 
1180
- declare interface PBAudioStream {
1181
- playing: boolean;
1182
- volume: number;
1183
- url: string;
1184
- }
1185
-
1186
1171
  declare interface PBAvatarAttach {
1187
1172
  avatarId: string;
1188
1173
  anchorPointId: number;
1189
1174
  }
1190
1175
 
1191
- declare interface PBAvatarModifierArea {
1192
- area: Vector3_2 | undefined;
1193
- excludeIds: string[];
1194
- modifiers: AvatarModifier[];
1195
- }
1196
-
1197
1176
  declare interface PBAvatarShape {
1198
1177
  id: string;
1199
1178
  name: string;
@@ -1328,65 +1307,6 @@ declare interface PBTextShape {
1328
1307
  textColor: Color3 | undefined;
1329
1308
  }
1330
1309
 
1331
- declare interface PBUiTransform {
1332
- positionType: YGPositionType;
1333
- alignContent: YGAlign;
1334
- alignItems: YGAlign;
1335
- alignSelf: YGAlign;
1336
- flexDirection: YGFlexDirection;
1337
- flexWrap: YGWrap;
1338
- justifyContent: YGJustify;
1339
- overflow: YGOverflow;
1340
- display: YGDisplay;
1341
- direction: YGDirection;
1342
- flex: number;
1343
- flexBasisUnit: YGUnit;
1344
- flexBasis: number;
1345
- flexGrow: number;
1346
- flexShrink: number;
1347
- widthUnit: YGUnit;
1348
- width: number;
1349
- heightUnit: YGUnit;
1350
- height: number;
1351
- minWidthUnit: YGUnit;
1352
- minWidth: number;
1353
- minHeightUnit: YGUnit;
1354
- minHeight: number;
1355
- maxWidthUnit: YGUnit;
1356
- maxWidth: number;
1357
- maxHeightUnit: YGUnit;
1358
- maxHeight: number;
1359
- positionLeftUnit: YGUnit;
1360
- positionLeft: number;
1361
- positionTopUnit: YGUnit;
1362
- positionTop: number;
1363
- positionRightUnit: YGUnit;
1364
- positionRight: number;
1365
- positionBottomUnit: YGUnit;
1366
- positionBottom: number;
1367
- /** margin */
1368
- marginLeftUnit: YGUnit;
1369
- marginLeft: number;
1370
- marginTopUnit: YGUnit;
1371
- marginTop: number;
1372
- marginRightUnit: YGUnit;
1373
- marginRight: number;
1374
- marginBottomUnit: YGUnit;
1375
- marginBottom: number;
1376
- paddingLeftUnit: YGUnit;
1377
- paddingLeft: number;
1378
- paddingTopUnit: YGUnit;
1379
- paddingTop: number;
1380
- paddingRightUnit: YGUnit;
1381
- paddingRight: number;
1382
- paddingBottomUnit: YGUnit;
1383
- paddingBottom: number;
1384
- borderLeft: number;
1385
- borderTop: number;
1386
- borderRight: number;
1387
- borderBottom: number;
1388
- }
1389
-
1390
1310
  /**
1391
1311
  * Represens a plane by the equation ax + by + cz + d = 0
1392
1312
  * @public
@@ -1686,7 +1606,7 @@ export declare type Result<T extends Spec> = ToOptional<{
1686
1606
  /**
1687
1607
  * @public
1688
1608
  */
1689
- export declare type SdkComponetns = ReturnType<typeof defineSdkComponents>;
1609
+ export declare type SdkComponents = ReturnType<typeof defineSdkComponents>;
1690
1610
 
1691
1611
  /**
1692
1612
  * Defines supported spaces
@@ -1982,82 +1902,10 @@ declare namespace WireMessage {
1982
1902
  const HEADER_LENGTH = 8;
1983
1903
  /**
1984
1904
  * Validate if the message incoming is completed
1985
- * @param buf
1905
+ * @param buf - ByteBuffer
1986
1906
  */
1987
1907
  function validate(buf: ByteBuffer): boolean;
1988
1908
  function readHeader(buf: ByteBuffer): Header | null;
1989
1909
  }
1990
1910
 
1991
- declare const enum YGAlign {
1992
- YGAlignAuto = 0,
1993
- YGAlignFlexStart = 1,
1994
- YGAlignCenter = 2,
1995
- YGAlignFlexEnd = 3,
1996
- YGAlignStretch = 4,
1997
- YGAlignBaseline = 5,
1998
- YGAlignSpaceBetween = 6,
1999
- YGAlignSpaceAround = 7,
2000
- UNRECOGNIZED = -1
2001
- }
2002
-
2003
- declare const enum YGDirection {
2004
- YGDirectionInherit = 0,
2005
- YGDirectionLTR = 1,
2006
- YGDirectionRTL = 2,
2007
- UNRECOGNIZED = -1
2008
- }
2009
-
2010
- declare const enum YGDisplay {
2011
- YGDisplayFlex = 0,
2012
- YGDisplayNone = 1,
2013
- UNRECOGNIZED = -1
2014
- }
2015
-
2016
- declare const enum YGFlexDirection {
2017
- YGFlexDirectionColumn = 0,
2018
- YGFlexDirectionColumnReverse = 1,
2019
- YGFlexDirectionRow = 2,
2020
- YGFlexDirectionRowReverse = 3,
2021
- UNRECOGNIZED = -1
2022
- }
2023
-
2024
- declare const enum YGJustify {
2025
- YGJustifyFlexStart = 0,
2026
- YGJustifyCenter = 1,
2027
- YGJustifyFlexEnd = 2,
2028
- YGJustifySpaceBetween = 3,
2029
- YGJustifySpaceAround = 4,
2030
- YGJustifySpaceEvenly = 5,
2031
- UNRECOGNIZED = -1
2032
- }
2033
-
2034
- declare const enum YGOverflow {
2035
- YGOverflowVisible = 0,
2036
- YGOverflowHidden = 1,
2037
- YGOverflowScroll = 2,
2038
- UNRECOGNIZED = -1
2039
- }
2040
-
2041
- declare const enum YGPositionType {
2042
- YGPositionTypeStatic = 0,
2043
- YGPositionTypeRelative = 1,
2044
- YGPositionTypeAbsolute = 2,
2045
- UNRECOGNIZED = -1
2046
- }
2047
-
2048
- declare const enum YGUnit {
2049
- YGUnitUndefined = 0,
2050
- YGUnitPoint = 1,
2051
- YGUnitPercent = 2,
2052
- YGUnitAuto = 3,
2053
- UNRECOGNIZED = -1
2054
- }
2055
-
2056
- declare const enum YGWrap {
2057
- YGWrapNoWrap = 0,
2058
- YGWrapWrap = 1,
2059
- YGWrapWrapReverse = 2,
2060
- UNRECOGNIZED = -1
2061
- }
2062
-
2063
1911
  export { }