@dcl/schemas 5.2.0 → 5.2.1-20220704194929.commit-3e5354c
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.
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export * from './preview-camera';
|
|
2
2
|
export * from './preview-config';
|
|
3
|
-
export * from './preview-
|
|
3
|
+
export * from './preview-controller';
|
|
4
4
|
export * from './preview-emote';
|
|
5
5
|
export * from './preview-env';
|
|
6
6
|
export * from './preview-message';
|
|
7
|
+
export * from './preview-metrics';
|
|
7
8
|
export * from './preview-options';
|
|
8
9
|
export * from './preview-type';
|
|
9
10
|
export * from './representation-definition';
|
|
11
|
+
export * from './representation-with-blobs';
|
|
10
12
|
export * from './wearable-definition';
|
|
13
|
+
export * from './wearable-with-blobs';
|
|
11
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dapps/preview/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dapps/preview/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA"}
|
|
@@ -16,12 +16,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./preview-camera"), exports);
|
|
18
18
|
__exportStar(require("./preview-config"), exports);
|
|
19
|
-
__exportStar(require("./preview-
|
|
19
|
+
__exportStar(require("./preview-controller"), exports);
|
|
20
20
|
__exportStar(require("./preview-emote"), exports);
|
|
21
21
|
__exportStar(require("./preview-env"), exports);
|
|
22
22
|
__exportStar(require("./preview-message"), exports);
|
|
23
|
+
__exportStar(require("./preview-metrics"), exports);
|
|
23
24
|
__exportStar(require("./preview-options"), exports);
|
|
24
25
|
__exportStar(require("./preview-type"), exports);
|
|
25
26
|
__exportStar(require("./representation-definition"), exports);
|
|
27
|
+
__exportStar(require("./representation-with-blobs"), exports);
|
|
26
28
|
__exportStar(require("./wearable-definition"), exports);
|
|
29
|
+
__exportStar(require("./wearable-with-blobs"), exports);
|
|
27
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dapps/preview/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,mDAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dapps/preview/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,mDAAgC;AAChC,uDAAoC;AACpC,kDAA+B;AAC/B,gDAA6B;AAC7B,oDAAiC;AACjC,oDAAiC;AACjC,oDAAiC;AACjC,iDAA8B;AAC9B,8DAA2C;AAC3C,8DAA2C;AAC3C,wDAAqC;AACrC,wDAAqC"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -604,6 +604,15 @@ export declare namespace I18N {
|
|
|
604
604
|
const validate: ValidateFunction<I18N>;
|
|
605
605
|
}
|
|
606
606
|
|
|
607
|
+
export declare interface IEmoteController {
|
|
608
|
+
getLength(): number;
|
|
609
|
+
isPlaying(): boolean;
|
|
610
|
+
goTo(seconds: number): void;
|
|
611
|
+
play(): void;
|
|
612
|
+
pause(): void;
|
|
613
|
+
stop(): void;
|
|
614
|
+
}
|
|
615
|
+
|
|
607
616
|
/**
|
|
608
617
|
* @public
|
|
609
618
|
*/
|
|
@@ -633,6 +642,16 @@ export declare namespace IPFSv2 {
|
|
|
633
642
|
const validate: ValidateFunction<IPFSv2>;
|
|
634
643
|
}
|
|
635
644
|
|
|
645
|
+
export declare interface IPreviewController {
|
|
646
|
+
scene: ISceneController;
|
|
647
|
+
emote: IEmoteController;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
export declare interface ISceneController {
|
|
651
|
+
getScreenshot(width: number, height: number): Promise<string>;
|
|
652
|
+
getMetrics(): PreviewSceneMetrics;
|
|
653
|
+
}
|
|
654
|
+
|
|
636
655
|
/**
|
|
637
656
|
* Check if is inside World Limits
|
|
638
657
|
* @alpha
|
|
@@ -1117,6 +1136,13 @@ export declare type PreviewOptions = {
|
|
|
1117
1136
|
env?: PreviewEnv | null;
|
|
1118
1137
|
};
|
|
1119
1138
|
|
|
1139
|
+
export declare type PreviewSceneMetrics = {
|
|
1140
|
+
triangles: number;
|
|
1141
|
+
materials: number;
|
|
1142
|
+
meshes: number;
|
|
1143
|
+
textures: number;
|
|
1144
|
+
};
|
|
1145
|
+
|
|
1120
1146
|
/** @alpha */
|
|
1121
1147
|
export declare enum PreviewType {
|
|
1122
1148
|
TEXTURE = "texture",
|
|
@@ -1208,7 +1234,7 @@ export declare type RepresentationDefinition = Omit<WearableRepresentation, 'con
|
|
|
1208
1234
|
};
|
|
1209
1235
|
|
|
1210
1236
|
/** @alpha */
|
|
1211
|
-
declare type RepresentationWithBlobs = Omit<RepresentationDefinition, 'contents'> & {
|
|
1237
|
+
export declare type RepresentationWithBlobs = Omit<RepresentationDefinition, 'contents'> & {
|
|
1212
1238
|
contents: {
|
|
1213
1239
|
key: string;
|
|
1214
1240
|
blob: Blob;
|
|
@@ -1574,7 +1600,7 @@ export declare namespace WearableRepresentation {
|
|
|
1574
1600
|
}
|
|
1575
1601
|
|
|
1576
1602
|
/** @alpha */
|
|
1577
|
-
declare type WearableWithBlobs = Omit<WearableDefinition, 'data'> & {
|
|
1603
|
+
export declare type WearableWithBlobs = Omit<WearableDefinition, 'data'> & {
|
|
1578
1604
|
data: Omit<WearableDefinition['data'], 'representations'> & {
|
|
1579
1605
|
representations: RepresentationWithBlobs[];
|
|
1580
1606
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.2.
|
|
2
|
+
"version": "5.2.1-20220704194929.commit-3e5354c",
|
|
3
3
|
"name": "@dcl/schemas",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "./dist/index.d.ts",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"files": [
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
|
-
"commit": "
|
|
35
|
+
"commit": "3e5354c51ee761bfb9531020a64b1fa45ef006a0"
|
|
36
36
|
}
|