@dcl/playground-assets 7.1.4-4502579506.commit-4147243 → 7.1.4-4534422922.commit-5d83e9a
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/alpha.d.ts +56 -23
- package/dist/beta.d.ts +56 -23
- package/dist/index.bundled.d.ts +56 -23
- package/dist/index.js +200 -190
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +56 -23
- package/etc/playground-assets.api.json +470 -276
- package/etc/playground-assets.api.md +34 -33
- package/package.json +3 -3
package/dist/alpha.d.ts
CHANGED
|
@@ -1169,10 +1169,36 @@ export declare const enum ComponentType {
|
|
|
1169
1169
|
|
|
1170
1170
|
/**
|
|
1171
1171
|
* @public
|
|
1172
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1172
1173
|
*/
|
|
1173
|
-
export declare
|
|
1174
|
-
|
|
1175
|
-
|
|
1174
|
+
export declare type Composite = CompositeDefinition;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* @public
|
|
1178
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1179
|
+
*/
|
|
1180
|
+
export declare namespace Composite {
|
|
1181
|
+
/** @public */
|
|
1182
|
+
export type Type = CompositeDefinition;
|
|
1183
|
+
/** @public */
|
|
1184
|
+
export type Provider = CompositeProvider;
|
|
1185
|
+
/** @public */
|
|
1186
|
+
export function fromJson(object: any): Composite.Type;
|
|
1187
|
+
/** @public */
|
|
1188
|
+
export function fromBinary(buffer: Uint8Array): Composite.Type;
|
|
1189
|
+
/** @public */
|
|
1190
|
+
export function toJson(composite: Composite.Type): any;
|
|
1191
|
+
/** @public */
|
|
1192
|
+
export function toBinary(composite: Composite.Type): Uint8Array;
|
|
1193
|
+
/**
|
|
1194
|
+
* Instance a composite and returns its root entity
|
|
1195
|
+
* @param compositeData - state serialized by the CRDT protocol
|
|
1196
|
+
* @param getNextAvailableEntity - function that gives unused entities
|
|
1197
|
+
* @param rootEntity - (optional) suggested mapped rootEntity for the composite
|
|
1198
|
+
*
|
|
1199
|
+
* @public
|
|
1200
|
+
*/
|
|
1201
|
+
export function instance(engine: IEngine, compositeData: Composite.Type, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): void;
|
|
1176
1202
|
}
|
|
1177
1203
|
|
|
1178
1204
|
/**
|
|
@@ -1192,21 +1218,32 @@ export declare interface CompositeComponent_DataEntry {
|
|
|
1192
1218
|
value: ComponentData | undefined;
|
|
1193
1219
|
}
|
|
1194
1220
|
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1221
|
+
/**
|
|
1222
|
+
* @public
|
|
1223
|
+
*/
|
|
1224
|
+
export declare interface CompositeDefinition {
|
|
1225
|
+
id: string;
|
|
1226
|
+
components: CompositeComponent[];
|
|
1227
|
+
}
|
|
1198
1228
|
|
|
1199
1229
|
/**
|
|
1200
1230
|
* @public
|
|
1201
|
-
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1202
1231
|
*/
|
|
1203
1232
|
export declare type CompositeProvider = {
|
|
1204
|
-
getCompositeOrNull
|
|
1233
|
+
getCompositeOrNull(id: string): CompositeDefinition | null;
|
|
1205
1234
|
};
|
|
1206
1235
|
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1236
|
+
/**
|
|
1237
|
+
* @public
|
|
1238
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1239
|
+
*/
|
|
1240
|
+
export declare type CompositeRootType = {
|
|
1241
|
+
id: string;
|
|
1242
|
+
entities: {
|
|
1243
|
+
src: Entity;
|
|
1244
|
+
dest: Entity;
|
|
1245
|
+
}[];
|
|
1246
|
+
};
|
|
1210
1247
|
|
|
1211
1248
|
/**
|
|
1212
1249
|
* A conflict resolution message is the response to an outdated or invalid state
|
|
@@ -1489,6 +1526,7 @@ export declare type EntityContainer = {
|
|
|
1489
1526
|
updateUsedEntity(entity: Entity): boolean;
|
|
1490
1527
|
};
|
|
1491
1528
|
|
|
1529
|
+
/** @public */
|
|
1492
1530
|
export declare enum EntityMappingMode {
|
|
1493
1531
|
EMM_NONE = 0,
|
|
1494
1532
|
EMM_NEXT_AVAILABLE = 1,
|
|
@@ -1584,6 +1622,12 @@ export declare const enum Font {
|
|
|
1584
1622
|
F_MONOSPACE = 2
|
|
1585
1623
|
}
|
|
1586
1624
|
|
|
1625
|
+
/**
|
|
1626
|
+
* @public
|
|
1627
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1628
|
+
*/
|
|
1629
|
+
export declare function getCompositeRootComponent(engine: IEngine): LastWriteWinElementSetComponentDefinition<CompositeRootType>;
|
|
1630
|
+
|
|
1587
1631
|
export declare type GizmoDragEndEvent = {
|
|
1588
1632
|
type: 'gizmoDragEnded';
|
|
1589
1633
|
transforms: Array<{
|
|
@@ -2055,18 +2099,7 @@ export declare type InputEventResult = {
|
|
|
2055
2099
|
*/
|
|
2056
2100
|
export declare const inputSystem: IInputSystem;
|
|
2057
2101
|
|
|
2058
|
-
/**
|
|
2059
|
-
* Instance a composite and returns its root entity
|
|
2060
|
-
* @param compositeData state serialized by the CRDT protocol
|
|
2061
|
-
* @param getNextAvailableEntity function that gives unused entities
|
|
2062
|
-
* @param rootEntity (optional) suggested mapped rootEntity for the composite
|
|
2063
|
-
*
|
|
2064
|
-
* @public
|
|
2065
|
-
* @deprecated composite is not being supported so far, please do not use this feature
|
|
2066
|
-
*
|
|
2067
|
-
*/
|
|
2068
|
-
export declare function instanceComposite(engine: IEngine, compositeData: Composite, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
2069
|
-
|
|
2102
|
+
/** @public */
|
|
2070
2103
|
export declare type InstanceCompositeOptions = {
|
|
2071
2104
|
entityMapping?: {
|
|
2072
2105
|
type: EntityMappingMode.EMM_NEXT_AVAILABLE;
|
package/dist/beta.d.ts
CHANGED
|
@@ -1169,10 +1169,36 @@ export declare const enum ComponentType {
|
|
|
1169
1169
|
|
|
1170
1170
|
/**
|
|
1171
1171
|
* @public
|
|
1172
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1172
1173
|
*/
|
|
1173
|
-
export declare
|
|
1174
|
-
|
|
1175
|
-
|
|
1174
|
+
export declare type Composite = CompositeDefinition;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* @public
|
|
1178
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1179
|
+
*/
|
|
1180
|
+
export declare namespace Composite {
|
|
1181
|
+
/** @public */
|
|
1182
|
+
export type Type = CompositeDefinition;
|
|
1183
|
+
/** @public */
|
|
1184
|
+
export type Provider = CompositeProvider;
|
|
1185
|
+
/** @public */
|
|
1186
|
+
export function fromJson(object: any): Composite.Type;
|
|
1187
|
+
/** @public */
|
|
1188
|
+
export function fromBinary(buffer: Uint8Array): Composite.Type;
|
|
1189
|
+
/** @public */
|
|
1190
|
+
export function toJson(composite: Composite.Type): any;
|
|
1191
|
+
/** @public */
|
|
1192
|
+
export function toBinary(composite: Composite.Type): Uint8Array;
|
|
1193
|
+
/**
|
|
1194
|
+
* Instance a composite and returns its root entity
|
|
1195
|
+
* @param compositeData - state serialized by the CRDT protocol
|
|
1196
|
+
* @param getNextAvailableEntity - function that gives unused entities
|
|
1197
|
+
* @param rootEntity - (optional) suggested mapped rootEntity for the composite
|
|
1198
|
+
*
|
|
1199
|
+
* @public
|
|
1200
|
+
*/
|
|
1201
|
+
export function instance(engine: IEngine, compositeData: Composite.Type, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): void;
|
|
1176
1202
|
}
|
|
1177
1203
|
|
|
1178
1204
|
/**
|
|
@@ -1192,21 +1218,32 @@ export declare interface CompositeComponent_DataEntry {
|
|
|
1192
1218
|
value: ComponentData | undefined;
|
|
1193
1219
|
}
|
|
1194
1220
|
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1221
|
+
/**
|
|
1222
|
+
* @public
|
|
1223
|
+
*/
|
|
1224
|
+
export declare interface CompositeDefinition {
|
|
1225
|
+
id: string;
|
|
1226
|
+
components: CompositeComponent[];
|
|
1227
|
+
}
|
|
1198
1228
|
|
|
1199
1229
|
/**
|
|
1200
1230
|
* @public
|
|
1201
|
-
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1202
1231
|
*/
|
|
1203
1232
|
export declare type CompositeProvider = {
|
|
1204
|
-
getCompositeOrNull
|
|
1233
|
+
getCompositeOrNull(id: string): CompositeDefinition | null;
|
|
1205
1234
|
};
|
|
1206
1235
|
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1236
|
+
/**
|
|
1237
|
+
* @public
|
|
1238
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1239
|
+
*/
|
|
1240
|
+
export declare type CompositeRootType = {
|
|
1241
|
+
id: string;
|
|
1242
|
+
entities: {
|
|
1243
|
+
src: Entity;
|
|
1244
|
+
dest: Entity;
|
|
1245
|
+
}[];
|
|
1246
|
+
};
|
|
1210
1247
|
|
|
1211
1248
|
/**
|
|
1212
1249
|
* A conflict resolution message is the response to an outdated or invalid state
|
|
@@ -1489,6 +1526,7 @@ export declare type EntityContainer = {
|
|
|
1489
1526
|
updateUsedEntity(entity: Entity): boolean;
|
|
1490
1527
|
};
|
|
1491
1528
|
|
|
1529
|
+
/** @public */
|
|
1492
1530
|
export declare enum EntityMappingMode {
|
|
1493
1531
|
EMM_NONE = 0,
|
|
1494
1532
|
EMM_NEXT_AVAILABLE = 1,
|
|
@@ -1584,6 +1622,12 @@ export declare const enum Font {
|
|
|
1584
1622
|
F_MONOSPACE = 2
|
|
1585
1623
|
}
|
|
1586
1624
|
|
|
1625
|
+
/**
|
|
1626
|
+
* @public
|
|
1627
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1628
|
+
*/
|
|
1629
|
+
export declare function getCompositeRootComponent(engine: IEngine): LastWriteWinElementSetComponentDefinition<CompositeRootType>;
|
|
1630
|
+
|
|
1587
1631
|
export declare type GizmoDragEndEvent = {
|
|
1588
1632
|
type: 'gizmoDragEnded';
|
|
1589
1633
|
transforms: Array<{
|
|
@@ -2051,18 +2095,7 @@ export declare type InputEventResult = {
|
|
|
2051
2095
|
*/
|
|
2052
2096
|
export declare const inputSystem: IInputSystem;
|
|
2053
2097
|
|
|
2054
|
-
/**
|
|
2055
|
-
* Instance a composite and returns its root entity
|
|
2056
|
-
* @param compositeData state serialized by the CRDT protocol
|
|
2057
|
-
* @param getNextAvailableEntity function that gives unused entities
|
|
2058
|
-
* @param rootEntity (optional) suggested mapped rootEntity for the composite
|
|
2059
|
-
*
|
|
2060
|
-
* @public
|
|
2061
|
-
* @deprecated composite is not being supported so far, please do not use this feature
|
|
2062
|
-
*
|
|
2063
|
-
*/
|
|
2064
|
-
export declare function instanceComposite(engine: IEngine, compositeData: Composite, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
2065
|
-
|
|
2098
|
+
/** @public */
|
|
2066
2099
|
export declare type InstanceCompositeOptions = {
|
|
2067
2100
|
entityMapping?: {
|
|
2068
2101
|
type: EntityMappingMode.EMM_NEXT_AVAILABLE;
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -1169,10 +1169,36 @@ export declare const enum ComponentType {
|
|
|
1169
1169
|
|
|
1170
1170
|
/**
|
|
1171
1171
|
* @public
|
|
1172
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1172
1173
|
*/
|
|
1173
|
-
export declare
|
|
1174
|
-
|
|
1175
|
-
|
|
1174
|
+
export declare type Composite = CompositeDefinition;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* @public
|
|
1178
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1179
|
+
*/
|
|
1180
|
+
export declare namespace Composite {
|
|
1181
|
+
/** @public */
|
|
1182
|
+
export type Type = CompositeDefinition;
|
|
1183
|
+
/** @public */
|
|
1184
|
+
export type Provider = CompositeProvider;
|
|
1185
|
+
/** @public */
|
|
1186
|
+
export function fromJson(object: any): Composite.Type;
|
|
1187
|
+
/** @public */
|
|
1188
|
+
export function fromBinary(buffer: Uint8Array): Composite.Type;
|
|
1189
|
+
/** @public */
|
|
1190
|
+
export function toJson(composite: Composite.Type): any;
|
|
1191
|
+
/** @public */
|
|
1192
|
+
export function toBinary(composite: Composite.Type): Uint8Array;
|
|
1193
|
+
/**
|
|
1194
|
+
* Instance a composite and returns its root entity
|
|
1195
|
+
* @param compositeData - state serialized by the CRDT protocol
|
|
1196
|
+
* @param getNextAvailableEntity - function that gives unused entities
|
|
1197
|
+
* @param rootEntity - (optional) suggested mapped rootEntity for the composite
|
|
1198
|
+
*
|
|
1199
|
+
* @public
|
|
1200
|
+
*/
|
|
1201
|
+
export function instance(engine: IEngine, compositeData: Composite.Type, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): void;
|
|
1176
1202
|
}
|
|
1177
1203
|
|
|
1178
1204
|
/**
|
|
@@ -1192,21 +1218,32 @@ export declare interface CompositeComponent_DataEntry {
|
|
|
1192
1218
|
value: ComponentData | undefined;
|
|
1193
1219
|
}
|
|
1194
1220
|
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1221
|
+
/**
|
|
1222
|
+
* @public
|
|
1223
|
+
*/
|
|
1224
|
+
export declare interface CompositeDefinition {
|
|
1225
|
+
id: string;
|
|
1226
|
+
components: CompositeComponent[];
|
|
1227
|
+
}
|
|
1198
1228
|
|
|
1199
1229
|
/**
|
|
1200
1230
|
* @public
|
|
1201
|
-
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1202
1231
|
*/
|
|
1203
1232
|
export declare type CompositeProvider = {
|
|
1204
|
-
getCompositeOrNull
|
|
1233
|
+
getCompositeOrNull(id: string): CompositeDefinition | null;
|
|
1205
1234
|
};
|
|
1206
1235
|
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1236
|
+
/**
|
|
1237
|
+
* @public
|
|
1238
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1239
|
+
*/
|
|
1240
|
+
export declare type CompositeRootType = {
|
|
1241
|
+
id: string;
|
|
1242
|
+
entities: {
|
|
1243
|
+
src: Entity;
|
|
1244
|
+
dest: Entity;
|
|
1245
|
+
}[];
|
|
1246
|
+
};
|
|
1210
1247
|
|
|
1211
1248
|
/**
|
|
1212
1249
|
* A conflict resolution message is the response to an outdated or invalid state
|
|
@@ -1489,6 +1526,7 @@ export declare type EntityContainer = {
|
|
|
1489
1526
|
updateUsedEntity(entity: Entity): boolean;
|
|
1490
1527
|
};
|
|
1491
1528
|
|
|
1529
|
+
/** @public */
|
|
1492
1530
|
export declare enum EntityMappingMode {
|
|
1493
1531
|
EMM_NONE = 0,
|
|
1494
1532
|
EMM_NEXT_AVAILABLE = 1,
|
|
@@ -1584,6 +1622,12 @@ export declare const enum Font {
|
|
|
1584
1622
|
F_MONOSPACE = 2
|
|
1585
1623
|
}
|
|
1586
1624
|
|
|
1625
|
+
/**
|
|
1626
|
+
* @public
|
|
1627
|
+
* @deprecated composite is not being supported so far, please do not use this feature
|
|
1628
|
+
*/
|
|
1629
|
+
export declare function getCompositeRootComponent(engine: IEngine): LastWriteWinElementSetComponentDefinition<CompositeRootType>;
|
|
1630
|
+
|
|
1587
1631
|
export declare type GizmoDragEndEvent = {
|
|
1588
1632
|
type: 'gizmoDragEnded';
|
|
1589
1633
|
transforms: Array<{
|
|
@@ -2051,18 +2095,7 @@ export declare type InputEventResult = {
|
|
|
2051
2095
|
*/
|
|
2052
2096
|
export declare const inputSystem: IInputSystem;
|
|
2053
2097
|
|
|
2054
|
-
/**
|
|
2055
|
-
* Instance a composite and returns its root entity
|
|
2056
|
-
* @param compositeData state serialized by the CRDT protocol
|
|
2057
|
-
* @param getNextAvailableEntity function that gives unused entities
|
|
2058
|
-
* @param rootEntity (optional) suggested mapped rootEntity for the composite
|
|
2059
|
-
*
|
|
2060
|
-
* @public
|
|
2061
|
-
* @deprecated composite is not being supported so far, please do not use this feature
|
|
2062
|
-
*
|
|
2063
|
-
*/
|
|
2064
|
-
export declare function instanceComposite(engine: IEngine, compositeData: Composite, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
2065
|
-
|
|
2098
|
+
/** @public */
|
|
2066
2099
|
export declare type InstanceCompositeOptions = {
|
|
2067
2100
|
entityMapping?: {
|
|
2068
2101
|
type: EntityMappingMode.EMM_NEXT_AVAILABLE;
|