Script to update draco.

This commit is contained in:
kovacsv 2021-11-11 08:45:12 +01:00
parent 2f1bceabb1
commit b5d0ac9ca0
4 changed files with 124 additions and 52 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -25,6 +25,7 @@
},
"dependencies": {
"@simonwep/pickr": "1.8.2",
"draco3d": "1.4.3",
"fflate": "0.7.1",
"jquery": "3.5.1",
"rhino3dm": "7.7.0",

View File

@ -29,6 +29,11 @@ threeJsFileMap = [
[os.path.join ('three', 'examples', 'js', 'loaders', 'VRMLLoader.js'), os.path.join ('three_loaders', 'VRMLLoader.js')]
]
dracoFileMap = [
[os.path.join ('draco3d', 'draco_decoder_nodejs.js'), os.path.join ('loaders', 'draco_decoder.js')],
[os.path.join ('draco3d', 'draco_decoder.wasm'), os.path.join ('loaders', 'draco_decoder.wasm')],
]
rhino3dmFileMap = [
[os.path.join ('rhino3dm', 'rhino3dm.js'), os.path.join ('loaders', 'rhino3dm.min.js')],
[os.path.join ('rhino3dm', 'rhino3dm.wasm'), os.path.join ('loaders', 'rhino3dm.wasm')],
@ -63,6 +68,7 @@ def Main (argv):
UpdateModule (jqueryFileMap, nodeModulesDir, libsDir)
UpdateModule (pickrFileMap, nodeModulesDir, libsDir)
UpdateModule (threeJsFileMap, nodeModulesDir, libsDir)
UpdateModule (dracoFileMap, nodeModulesDir, libsDir)
UpdateModule (rhino3dmFileMap, nodeModulesDir, libsDir)
UpdateModule (fflateFileMap, nodeModulesDir, libsDir)