bimplus-renderer 1.8.40-webifc1.1 → 1.8.40-webifc1.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/README.md +6 -0
- package/dist/web-ifc-mt.wasm +0 -0
- package/dist/web-ifc.wasm +0 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -41,6 +41,12 @@ To build a prod version - uglified, minified run:
|
|
|
41
41
|
|
|
42
42
|
npm run build-prod
|
|
43
43
|
|
|
44
|
+
All renderer build variants refresh `src/wasm/web-ifc.wasm` and
|
|
45
|
+
`src/wasm/web-ifc-mt.wasm` from the installed `web-ifc` dependency before building,
|
|
46
|
+
then copy them into `dist`. This keeps the packaged WASM binaries matched to the
|
|
47
|
+
bundled JavaScript API. After updating `web-ifc`, commit both refreshed binaries.
|
|
48
|
+
To refresh them without rebuilding, run `npm run copy-wasm-node-modules`.
|
|
49
|
+
|
|
44
50
|
Pulish new release to npm (Hint: Before doing this npm login needs to be done and the package version adjusted) :
|
|
45
51
|
|
|
46
52
|
npm run npm-publish
|
package/dist/web-ifc-mt.wasm
CHANGED
|
Binary file
|
package/dist/web-ifc.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
" set there the full version string! ": "",
|
|
7
7
|
" e.g.: semverRange: '1.8.20-my-tag-name-01' ": "",
|
|
8
8
|
"================================================================================================-": "",
|
|
9
|
-
"version": "1.8.40-webifc1.
|
|
9
|
+
"version": "1.8.40-webifc1.2",
|
|
10
10
|
"description": "bim+ renderer",
|
|
11
11
|
"types": "types/bimplus-renderer.d.ts",
|
|
12
12
|
"keywords": [
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"eslint": "eslint src/**/* test/**/* modelviewer-data-driven-tests/tests/**/* modelviewer-data-driven-tests/playwright vitest.config.mjs playwright.config.mjs",
|
|
32
|
-
"build": "npm run build-worker-dev && npm run eslint && webpack --config webpack.dev.js && npm run copy-wasm",
|
|
33
|
-
"build-prod": "npm run build-worker-prod && npm run eslint && webpack --config webpack.prod.js && npm run copy-wasm",
|
|
32
|
+
"build": "npm run copy-wasm-node-modules && npm run build-worker-dev && npm run eslint && webpack --config webpack.dev.js && npm run copy-wasm",
|
|
33
|
+
"build-prod": "npm run copy-wasm-node-modules && npm run build-worker-prod && npm run eslint && webpack --config webpack.prod.js && npm run copy-wasm",
|
|
34
34
|
"build-worker-dev": "npm run cleanup-compiled-worker && npm run build-wasm && webpack --config webpack.compile.worker.js && npm run copy-compiled-worker",
|
|
35
35
|
"build-worker-prod": "npm run cleanup-compiled-worker && npm run build-wasm-prod && webpack --config webpack.compile.worker.js && npm run copy-compiled-worker",
|
|
36
36
|
"pub": "npm run build-prod && npm publish",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"build-docAll": "npm run build-doc && npm run build-docConf",
|
|
46
46
|
"build-wasm": "emcc -O3 ./src/assembly/process_partition_vertices.cpp -s EXPORT_ES6=1 -s MODULARIZE=1 -s USE_ES6_IMPORT_META=0 -s ENVIRONMENT='worker' -s SINGLE_FILE=1 -s INITIAL_MEMORY=64MB -s ALLOW_MEMORY_GROWTH=1 -s EXTRA_EXPORTED_RUNTIME_METHODS=['ccall'] -s EXPORTED_FUNCTIONS=['_process_vertices','_inplace_transform_vertices','_malloc','_free'] -o ./bin/processPartitionVertices.js",
|
|
47
47
|
"build-wasm-prod": "emcc -O3 ./src/assembly/process_partition_vertices.cpp -s EXPORT_ES6=1 -s MODULARIZE=1 -s USE_ES6_IMPORT_META=0 -s ENVIRONMENT='worker' -s SINGLE_FILE=1 -s INITIAL_MEMORY=64MB -s ALLOW_MEMORY_GROWTH=1 -s EXTRA_EXPORTED_RUNTIME_METHODS=['ccall'] -s EXPORTED_FUNCTIONS=['_process_vertices','_inplace_transform_vertices','_malloc','_free'] -o ./bin/processPartitionVertices.js",
|
|
48
|
-
"build-lls": "npm run build-worker-dev && npm run eslint && webpack --config webpack.dev.js && npm run copy-wasm-lls",
|
|
49
|
-
"build-prod-lls": "npm run build-worker-prod && npm run eslint && webpack --config webpack.prod.js && npm run copy-wasm-lls",
|
|
48
|
+
"build-lls": "npm run copy-wasm-node-modules && npm run build-worker-dev && npm run eslint && webpack --config webpack.dev.js && npm run copy-wasm-lls",
|
|
49
|
+
"build-prod-lls": "npm run copy-wasm-node-modules && npm run build-worker-prod && npm run eslint && webpack --config webpack.prod.js && npm run copy-wasm-lls",
|
|
50
50
|
"code-metrics": "plato -r -d metrics src",
|
|
51
51
|
"copy-compiled-worker": "cpy --flat ./dist/GlbProcessorWorker.bimplus-renderer.worker.js ./src/compiledWorkers",
|
|
52
52
|
"cleanup-compiled-worker": "rimraf ./src/compiledWorkers/GlbProcessorWorker.bimplus-renderer.worker.js",
|