@sw-file-lib/three 0.1.0 → 0.2.1

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/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # @sw-file-lib/three
2
+
3
+ TypeScript libraries for reading, writing **Stormworks** files.
4
+
5
+ This package includes three.js helpers including coordinate conversion, mesh creation, and materials. For other packages, see [GitHub Repository](https://github.com/Teinishi/sw-file-lib).
6
+
7
+ [Get Started](https://teinishi.github.io/sw-file-lib/guide/threejs-integration.html)
8
+
9
+ ## Documentation
10
+
11
+ - [Docs](https://teinishi.github.io/sw-file-lib/)
12
+ - [API Reference](https://teinishi.github.io/sw-file-lib/api/@sw-file-lib/three/)
package/dist/index.mjs CHANGED
@@ -1002,7 +1002,7 @@ async function assemblePaintableSign(componentInstance, definition) {
1002
1002
  objects.push(new THREE.Mesh(geom2, additiveMaterial));
1003
1003
  }
1004
1004
  return {
1005
- surfaces,
1005
+ ...surfaces ? { surfaces } : {},
1006
1006
  objects
1007
1007
  };
1008
1008
  }
package/package.json CHANGED
@@ -1,17 +1,23 @@
1
1
  {
2
2
  "name": "@sw-file-lib/three",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Stormworks-style materials and geometry conversion for three.js.",
5
5
  "keywords": [],
6
+ "homepage": "https://teinishi.github.io/sw-file-lib/",
6
7
  "license": "MIT",
7
8
  "author": "Teinishi",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/Teinishi/sw-file-lib.git",
12
+ "directory": "packages/three"
13
+ },
8
14
  "files": [
9
15
  "dist"
10
16
  ],
11
17
  "type": "module",
12
18
  "exports": {
13
19
  ".": {
14
- "development": "./src/index.ts",
20
+ "sw-file-lib-dev": "./src/index.ts",
15
21
  "types": "./dist/index.d.mts",
16
22
  "import": "./dist/index.mjs"
17
23
  },
@@ -21,9 +27,9 @@
21
27
  "access": "public"
22
28
  },
23
29
  "dependencies": {
24
- "@sw-file-lib/core": "0.1.0",
25
- "@sw-file-lib/geometry": "0.1.0",
26
- "@sw-file-lib/xml": "0.1.0"
30
+ "@sw-file-lib/core": "0.2.1",
31
+ "@sw-file-lib/geometry": "0.2.1",
32
+ "@sw-file-lib/xml": "0.2.1"
27
33
  },
28
34
  "peerDependencies": {
29
35
  "three": "^0.185.1"