@jack120/test 0.2.1 → 0.2.2
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.js +1 -2415
- package/package.json +5 -3
- package/types/index.d.ts +67 -0
- package/dist/native-bindings-osx.node +0 -0
- package/dist/native-bindings-win.node +0 -0
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jack120/test",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Adamas Typescript interface",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"compile": "npx cmake-js compile",
|
|
8
8
|
"start": "npx ts-node index.ts",
|
|
9
9
|
"format": "npx prettier . --write",
|
|
10
|
-
"esbuild": "npx esbuild library/index.ts --bundle --format=esm --outfile=dist/index.js --platform=node --external:\"*.node\" --packages=external",
|
|
10
|
+
"esbuild": "npx esbuild library/index.ts --bundle --minify --format=esm --outfile=dist/index.js --platform=node --external:\"*.node\" --packages=external",
|
|
11
11
|
"dts": "npx dts-bundle-generator -o dist/index.d.ts library/index.ts"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
@@ -18,8 +18,10 @@
|
|
|
18
18
|
"bugs": {
|
|
19
19
|
"url": "https://github.com/adamas-vr/prefab-interface/issues"
|
|
20
20
|
},
|
|
21
|
+
"types": "./types/index.d.ts",
|
|
21
22
|
"files": [
|
|
22
|
-
"dist"
|
|
23
|
+
"dist",
|
|
24
|
+
"types"
|
|
23
25
|
],
|
|
24
26
|
"homepage": "https://github.com/adamas-vr/prefab-interface#readme",
|
|
25
27
|
"dependencies": {
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare module "*.mat" {
|
|
2
|
+
type UUID = `${string}-${string}-${string}-${string}-${string}`;
|
|
3
|
+
const value: {
|
|
4
|
+
assetType: "Material";
|
|
5
|
+
|
|
6
|
+
baseMap?: UUID;
|
|
7
|
+
baseColor: { x: number; y: number; z: number; w: number };
|
|
8
|
+
|
|
9
|
+
cutoff: number;
|
|
10
|
+
|
|
11
|
+
smoothness: number;
|
|
12
|
+
smoothnessTextureChannel: number;
|
|
13
|
+
|
|
14
|
+
metallic: number;
|
|
15
|
+
metallicGlossMap?: UUID;
|
|
16
|
+
|
|
17
|
+
specColor: { x: number; y: number; z: number };
|
|
18
|
+
specGlossMap?: UUID;
|
|
19
|
+
|
|
20
|
+
specularHighlights: number;
|
|
21
|
+
environmentReflections: number;
|
|
22
|
+
|
|
23
|
+
bumpScale: number;
|
|
24
|
+
bumpMap?: UUID;
|
|
25
|
+
|
|
26
|
+
parallax: number;
|
|
27
|
+
parallaxMap?: UUID;
|
|
28
|
+
|
|
29
|
+
occlusionStrength: number;
|
|
30
|
+
occlusionMap?: UUID;
|
|
31
|
+
|
|
32
|
+
emissionColor: { x: number; y: number; z: number };
|
|
33
|
+
emissionMap?: UUID;
|
|
34
|
+
|
|
35
|
+
detailMask?: UUID;
|
|
36
|
+
detailAlbedoMapScale: number;
|
|
37
|
+
detailAlbedoMap?: UUID;
|
|
38
|
+
|
|
39
|
+
detailNormalMapScale: number;
|
|
40
|
+
detailNormalMap?: UUID;
|
|
41
|
+
};
|
|
42
|
+
export default value;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare module "*.tex" {
|
|
46
|
+
const value: {
|
|
47
|
+
assetType: "Texture";
|
|
48
|
+
|
|
49
|
+
base64Image: string;
|
|
50
|
+
mineType: string;
|
|
51
|
+
filterMode: number;
|
|
52
|
+
wrapMode: number;
|
|
53
|
+
};
|
|
54
|
+
export default value;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare module "*.mesh" {
|
|
58
|
+
const value: {
|
|
59
|
+
assetType: "Mesh";
|
|
60
|
+
|
|
61
|
+
base64Vertices: string;
|
|
62
|
+
base64Indices: string;
|
|
63
|
+
base64Normals?: string;
|
|
64
|
+
base64Uvs?: string;
|
|
65
|
+
};
|
|
66
|
+
export default value;
|
|
67
|
+
}
|
|
Binary file
|
|
Binary file
|