@dcl/playground-assets 7.18.2-21450088960.commit-3c16004 → 7.18.2-21453292414.commit-1da934f
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 +361 -0
- package/dist/beta.d.ts +361 -0
- package/dist/index.bundled.d.ts +361 -0
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +361 -0
- package/etc/playground-assets.api.json +2306 -490
- package/etc/playground-assets.api.md +96 -0
- package/package.json +4 -4
|
@@ -866,6 +866,9 @@ export function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSy
|
|
|
866
866
|
// @public (undocumented)
|
|
867
867
|
export function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
|
|
868
868
|
|
|
869
|
+
// @public
|
|
870
|
+
export function createTimers(targetEngine: IEngine): Timers;
|
|
871
|
+
|
|
869
872
|
// @public (undocumented)
|
|
870
873
|
export function createTweenSystem(engine: IEngine): TweenSystem;
|
|
871
874
|
|
|
@@ -1163,6 +1166,33 @@ export type ExcludeUndefined<T> = {
|
|
|
1163
1166
|
// @public
|
|
1164
1167
|
export const executeTask: (task: Task<unknown>) => void;
|
|
1165
1168
|
|
|
1169
|
+
// @public
|
|
1170
|
+
export interface FlatMaterial {
|
|
1171
|
+
albedoColor: PBColor4 | undefined;
|
|
1172
|
+
alphaTest: number | undefined;
|
|
1173
|
+
readonly alphaTexture: FlatTexture;
|
|
1174
|
+
readonly bumpTexture: FlatTexture | undefined;
|
|
1175
|
+
castShadows: boolean | undefined;
|
|
1176
|
+
diffuseColor: PBColor4 | undefined;
|
|
1177
|
+
directIntensity: number | undefined;
|
|
1178
|
+
emissiveColor: PBColor3 | undefined;
|
|
1179
|
+
emissiveIntensity: number | undefined;
|
|
1180
|
+
readonly emissiveTexture: FlatTexture | undefined;
|
|
1181
|
+
metallic: number | undefined;
|
|
1182
|
+
reflectivityColor: PBColor3 | undefined;
|
|
1183
|
+
roughness: number | undefined;
|
|
1184
|
+
specularIntensity: number | undefined;
|
|
1185
|
+
readonly texture: FlatTexture;
|
|
1186
|
+
transparencyMode: MaterialTransparencyMode | undefined;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
// @public
|
|
1190
|
+
export interface FlatTexture {
|
|
1191
|
+
filterMode: TextureFilterMode | undefined;
|
|
1192
|
+
src: string | undefined;
|
|
1193
|
+
wrapMode: TextureWrapMode | undefined;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1166
1196
|
// @public (undocumented)
|
|
1167
1197
|
export type FlexDirectionType = 'row' | 'column' | 'column-reverse' | 'row-reverse';
|
|
1168
1198
|
|
|
@@ -1195,6 +1225,15 @@ export function getCompositeRootComponent(engine: IEngine): LastWriteWinElementS
|
|
|
1195
1225
|
// @public (undocumented)
|
|
1196
1226
|
export const getDefaultOpts: (opts?: Partial<EventSystemOptions>) => EventSystemOptions;
|
|
1197
1227
|
|
|
1228
|
+
// @public
|
|
1229
|
+
export function getEntitiesWithParent(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema'>, parent: Entity): Entity[];
|
|
1230
|
+
|
|
1231
|
+
// @public
|
|
1232
|
+
export function getWorldPosition(engine: WorldTransformEngine, entity: Entity): Vector3Type;
|
|
1233
|
+
|
|
1234
|
+
// @public
|
|
1235
|
+
export function getWorldRotation(engine: WorldTransformEngine, entity: Entity): QuaternionType;
|
|
1236
|
+
|
|
1198
1237
|
// Warning: (ae-missing-release-tag) "GlobalDirectionRaycastOptions" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1199
1238
|
//
|
|
1200
1239
|
// @public (undocumented)
|
|
@@ -1659,6 +1698,10 @@ export const Material: MaterialComponentDefinitionExtended;
|
|
|
1659
1698
|
|
|
1660
1699
|
// @public (undocumented)
|
|
1661
1700
|
export interface MaterialComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBMaterial> {
|
|
1701
|
+
getFlat: (entity: Entity) => ReadonlyFlatMaterial;
|
|
1702
|
+
getFlatMutable: (entity: Entity) => FlatMaterial;
|
|
1703
|
+
getFlatMutableOrNull: (entity: Entity) => FlatMaterial | null;
|
|
1704
|
+
getFlatOrNull: (entity: Entity) => ReadonlyFlatMaterial | null;
|
|
1662
1705
|
setBasicMaterial: (entity: Entity, material: PBMaterial_UnlitMaterial) => void;
|
|
1663
1706
|
setPbrMaterial: (entity: Entity, material: PBMaterial_PbrMaterial) => void;
|
|
1664
1707
|
Texture: TextureHelper;
|
|
@@ -3940,6 +3983,33 @@ export type ReadonlyComponentSchema<T extends [ComponentDefinition<unknown>, ...
|
|
|
3940
3983
|
[K in keyof T]: T[K] extends ComponentDefinition<unknown> ? ReturnType<T[K]['get']> : never;
|
|
3941
3984
|
};
|
|
3942
3985
|
|
|
3986
|
+
// @public
|
|
3987
|
+
export interface ReadonlyFlatMaterial {
|
|
3988
|
+
readonly albedoColor: PBColor4 | undefined;
|
|
3989
|
+
readonly alphaTest: number | undefined;
|
|
3990
|
+
readonly alphaTexture: ReadonlyFlatTexture;
|
|
3991
|
+
readonly bumpTexture: ReadonlyFlatTexture | undefined;
|
|
3992
|
+
readonly castShadows: boolean | undefined;
|
|
3993
|
+
readonly diffuseColor: PBColor4 | undefined;
|
|
3994
|
+
readonly directIntensity: number | undefined;
|
|
3995
|
+
readonly emissiveColor: PBColor3 | undefined;
|
|
3996
|
+
readonly emissiveIntensity: number | undefined;
|
|
3997
|
+
readonly emissiveTexture: ReadonlyFlatTexture | undefined;
|
|
3998
|
+
readonly metallic: number | undefined;
|
|
3999
|
+
readonly reflectivityColor: PBColor3 | undefined;
|
|
4000
|
+
readonly roughness: number | undefined;
|
|
4001
|
+
readonly specularIntensity: number | undefined;
|
|
4002
|
+
readonly texture: ReadonlyFlatTexture;
|
|
4003
|
+
readonly transparencyMode: MaterialTransparencyMode | undefined;
|
|
4004
|
+
}
|
|
4005
|
+
|
|
4006
|
+
// @public
|
|
4007
|
+
export interface ReadonlyFlatTexture {
|
|
4008
|
+
readonly filterMode: TextureFilterMode | undefined;
|
|
4009
|
+
readonly src: string | undefined;
|
|
4010
|
+
readonly wrapMode: TextureWrapMode | undefined;
|
|
4011
|
+
}
|
|
4012
|
+
|
|
3943
4013
|
// @public (undocumented)
|
|
3944
4014
|
export type ReadOnlyGrowOnlyValueSetComponentDefinition<T> = Omit<GrowOnlyValueSetComponentDefinition<T>, 'addValue'>;
|
|
3945
4015
|
|
|
@@ -4376,6 +4446,29 @@ export const enum TextWrap {
|
|
|
4376
4446
|
TW_WRAP = 0
|
|
4377
4447
|
}
|
|
4378
4448
|
|
|
4449
|
+
// Warning: (ae-missing-release-tag) "TimerCallback" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
4450
|
+
//
|
|
4451
|
+
// @public (undocumented)
|
|
4452
|
+
export type TimerCallback = () => void;
|
|
4453
|
+
|
|
4454
|
+
// Warning: (ae-missing-release-tag) "TimerId" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
4455
|
+
//
|
|
4456
|
+
// @public (undocumented)
|
|
4457
|
+
export type TimerId = number;
|
|
4458
|
+
|
|
4459
|
+
// Warning: (ae-missing-release-tag) "Timers" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
4460
|
+
//
|
|
4461
|
+
// @public (undocumented)
|
|
4462
|
+
export type Timers = {
|
|
4463
|
+
setTimeout(callback: TimerCallback, ms: number): TimerId;
|
|
4464
|
+
clearTimeout(timerId: TimerId): void;
|
|
4465
|
+
setInterval(callback: TimerCallback, ms: number): TimerId;
|
|
4466
|
+
clearInterval(timerId: TimerId): void;
|
|
4467
|
+
};
|
|
4468
|
+
|
|
4469
|
+
// @public
|
|
4470
|
+
export const timers: Timers;
|
|
4471
|
+
|
|
4379
4472
|
// @public
|
|
4380
4473
|
export const ToGammaSpace: number;
|
|
4381
4474
|
|
|
@@ -4916,6 +5009,9 @@ export interface VirtualCameraComponentDefinitionExtended extends LastWriteWinEl
|
|
|
4916
5009
|
// @public (undocumented)
|
|
4917
5010
|
export const VisibilityComponent: LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>;
|
|
4918
5011
|
|
|
5012
|
+
// @public
|
|
5013
|
+
export type WorldTransformEngine = Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema' | 'PlayerEntity'>;
|
|
5014
|
+
|
|
4919
5015
|
// @public (undocumented)
|
|
4920
5016
|
export const enum YGAlign {
|
|
4921
5017
|
// (undocumented)
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.18.2-
|
|
4
|
+
"version": "7.18.2-21453292414.commit-1da934f",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.18.2-
|
|
8
|
-
"@dcl/sdk": "7.18.2-
|
|
7
|
+
"@dcl/js-runtime": "7.18.2-21453292414.commit-1da934f",
|
|
8
|
+
"@dcl/sdk": "7.18.2-21453292414.commit-1da934f"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@microsoft/api-extractor": "^7.33.8"
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
},
|
|
33
33
|
"types": "./dist/index.d.ts",
|
|
34
34
|
"typings": "./dist/index.d.ts",
|
|
35
|
-
"commit": "
|
|
35
|
+
"commit": "1da934f139711792b8d2a7afb0378e8dd70ac44b"
|
|
36
36
|
}
|