@jdultra/threedtiles 7.0.2 → 8.0.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/.babelrc +8 -0
- package/README.md +45 -20
- package/package.json +8 -7
- package/src/decoder/B3DMDecoder.js +82 -203
- package/src/index.js +71 -31
- package/src/tileset/OGC3DTile.js +30 -25
- package/src/tileset/TileLoader.js +44 -10
- package/src/tileset/instanced/InstancedTile.js +1 -1
- package/src/tileset/instanced/InstancedTileLoader.js +85 -51
- package/threedtiles.js +80023 -20211
- package/threedtiles.js.map +1 -1
- package/webpack.config.js +17 -16
package/webpack.config.js
CHANGED
|
@@ -42,20 +42,7 @@ module.exports = {
|
|
|
42
42
|
|
|
43
43
|
module: {
|
|
44
44
|
rules: [
|
|
45
|
-
|
|
46
|
-
test: /.(js)$/,
|
|
47
|
-
include: [sourceDir],
|
|
48
|
-
loader: "babel-loader",
|
|
49
|
-
options: {
|
|
50
|
-
cacheDirectory: true,
|
|
51
|
-
presets: [
|
|
52
|
-
["@babel/preset-env", {
|
|
53
|
-
"useBuiltIns": "entry",
|
|
54
|
-
"corejs": 3
|
|
55
|
-
}]
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
},
|
|
45
|
+
|
|
59
46
|
{
|
|
60
47
|
test: /\.s[ac]ss$/,
|
|
61
48
|
use: [
|
|
@@ -101,6 +88,18 @@ module.exports = {
|
|
|
101
88
|
test: /\.(png|svg|jpg|jpeg|gif)$/i,
|
|
102
89
|
type: 'asset/resource',
|
|
103
90
|
},
|
|
91
|
+
{
|
|
92
|
+
test: /\.js$/,
|
|
93
|
+
exclude: /node_modules/,
|
|
94
|
+
use: {
|
|
95
|
+
loader: "babel-loader",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
{
|
|
100
|
+
test: /\.wasm$/,
|
|
101
|
+
type: "webassembly/async",
|
|
102
|
+
},
|
|
104
103
|
],
|
|
105
104
|
},
|
|
106
105
|
optimization: {
|
|
@@ -136,6 +135,8 @@ module.exports = {
|
|
|
136
135
|
"fs": false,
|
|
137
136
|
"path": require.resolve("path-browserify")
|
|
138
137
|
}
|
|
139
|
-
}
|
|
140
|
-
|
|
138
|
+
},
|
|
139
|
+
experiments: {
|
|
140
|
+
asyncWebAssembly: true,
|
|
141
|
+
},
|
|
141
142
|
};
|