bimplus-renderer 1.8.20-glb-gltf-obj-support-07 → 1.8.20-glb-gltf-obj-support-08
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 +124 -124
- package/bin/README.emcc.md +41 -41
- package/bin/processPartitionVertices.js +4 -4
- package/dist/bimplus-renderer.js +1 -1
- package/eslint.config.mjs +38 -38
- package/karma-files-config.js +159 -159
- package/karma-modelviewer-ddt.conf.js +66 -66
- package/karma-shared-config.js +91 -91
- package/openAllFiles.ps1 +16 -16
- package/package.json +162 -162
- package/types/bimplus-renderer.d.ts +350 -350
package/karma-shared-config.js
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
// Karma configuration
|
|
2
|
-
// http://karma-runner.github.io/4.0/config/configuration-file.html
|
|
3
|
-
|
|
4
|
-
const webpackConfig = require("./karma.webpack");
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
// base path that will be used to resolve all patterns (eg. files, exclude)
|
|
8
|
-
basePath: "",
|
|
9
|
-
|
|
10
|
-
browserConsoleLogOptions: {
|
|
11
|
-
terminal: false, // Turn off logging in console
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
// For firefox we get this error:
|
|
15
|
-
// Firefox was not killed in 2000 ms, sending SIGKILL.
|
|
16
|
-
// Default: 2000
|
|
17
|
-
processKillTimeout: 10000,
|
|
18
|
-
// fix for browser connection timeout error
|
|
19
|
-
captureTimeout: 60000,
|
|
20
|
-
browserDisconnectTimeout: 60000,
|
|
21
|
-
browserDisconnectTolerance: 1,
|
|
22
|
-
browserNoActivityTimeout: 60000, //by default 10000
|
|
23
|
-
|
|
24
|
-
// frameworks to use
|
|
25
|
-
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
|
26
|
-
frameworks: [
|
|
27
|
-
"sharding",
|
|
28
|
-
"qunit",
|
|
29
|
-
"jquery-3.4.0",
|
|
30
|
-
"host-environment",
|
|
31
|
-
"webpack",
|
|
32
|
-
],
|
|
33
|
-
|
|
34
|
-
// Default search path for ifcjs wasm files is root folder but karama serves them in different path -> proxies need to be set up
|
|
35
|
-
proxies: {
|
|
36
|
-
"/web-ifc-mt.wasm": "/base/src/wasm/web-ifc-mt.wasm",
|
|
37
|
-
"/web-ifc.wasm": "/base/src/wasm/web-ifc.wasm",
|
|
38
|
-
'/data/': '/base/test/data/'
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
// list of files / patterns to exclude
|
|
42
|
-
exclude: ["src/vendor/*.js", "src/compiledWorkers/*.js", "src/workers/*.js"],
|
|
43
|
-
|
|
44
|
-
// web server port (we use different ports for renderer, websdk and webclient !)
|
|
45
|
-
port: 9877,
|
|
46
|
-
|
|
47
|
-
// enable / disable colors in the output (reporters and logs)
|
|
48
|
-
colors: true,
|
|
49
|
-
|
|
50
|
-
// enable / disable watching file and executing tests whenever any file changes
|
|
51
|
-
autoWatch: false,
|
|
52
|
-
|
|
53
|
-
// For Firefox headless a Custom Launcher is needed
|
|
54
|
-
customLaunchers: {
|
|
55
|
-
FirefoxHeadless: {
|
|
56
|
-
base: "Firefox",
|
|
57
|
-
flags: ["-headless"],
|
|
58
|
-
},
|
|
59
|
-
ChromeExt: {
|
|
60
|
-
base: "Chrome",
|
|
61
|
-
flags: [
|
|
62
|
-
"--js-flags=--expose-gc",
|
|
63
|
-
"--disable-extensions",
|
|
64
|
-
"--no-sandbox",
|
|
65
|
-
"--disable-translate",
|
|
66
|
-
"--disable-search-engine-choice-screen",
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
// Continuous Integration mode
|
|
72
|
-
// if true, Karma captures browsers, runs the tests and exits
|
|
73
|
-
singleRun: true,
|
|
74
|
-
|
|
75
|
-
// Concurrency level
|
|
76
|
-
// how many browser should be started simultaneous
|
|
77
|
-
// concurrency: Infinity, // not possible because of WebGL(0000001B0FEA0000)::ForceLoseContext
|
|
78
|
-
concurrency: 1,
|
|
79
|
-
|
|
80
|
-
// webpack-karma docu
|
|
81
|
-
// https://github.com/webpack-contrib/karma-webpack
|
|
82
|
-
webpack: webpackConfig,
|
|
83
|
-
|
|
84
|
-
// For more information of webpack middleware output disable this configuration
|
|
85
|
-
// webpack-dev-middleware configuration
|
|
86
|
-
// https://www.npmjs.com/package/webpack-dev-middleware
|
|
87
|
-
webpackMiddleware: {
|
|
88
|
-
// webpack stats: https://webpack.js.org/configuration/stats/#stats
|
|
89
|
-
stats: "errors-only", // show additional info for webpack build process
|
|
90
|
-
},
|
|
91
|
-
};
|
|
1
|
+
// Karma configuration
|
|
2
|
+
// http://karma-runner.github.io/4.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
const webpackConfig = require("./karma.webpack");
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
// base path that will be used to resolve all patterns (eg. files, exclude)
|
|
8
|
+
basePath: "",
|
|
9
|
+
|
|
10
|
+
browserConsoleLogOptions: {
|
|
11
|
+
terminal: false, // Turn off logging in console
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
// For firefox we get this error:
|
|
15
|
+
// Firefox was not killed in 2000 ms, sending SIGKILL.
|
|
16
|
+
// Default: 2000
|
|
17
|
+
processKillTimeout: 10000,
|
|
18
|
+
// fix for browser connection timeout error
|
|
19
|
+
captureTimeout: 60000,
|
|
20
|
+
browserDisconnectTimeout: 60000,
|
|
21
|
+
browserDisconnectTolerance: 1,
|
|
22
|
+
browserNoActivityTimeout: 60000, //by default 10000
|
|
23
|
+
|
|
24
|
+
// frameworks to use
|
|
25
|
+
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
|
26
|
+
frameworks: [
|
|
27
|
+
"sharding",
|
|
28
|
+
"qunit",
|
|
29
|
+
"jquery-3.4.0",
|
|
30
|
+
"host-environment",
|
|
31
|
+
"webpack",
|
|
32
|
+
],
|
|
33
|
+
|
|
34
|
+
// Default search path for ifcjs wasm files is root folder but karama serves them in different path -> proxies need to be set up
|
|
35
|
+
proxies: {
|
|
36
|
+
"/web-ifc-mt.wasm": "/base/src/wasm/web-ifc-mt.wasm",
|
|
37
|
+
"/web-ifc.wasm": "/base/src/wasm/web-ifc.wasm",
|
|
38
|
+
'/data/': '/base/test/data/'
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
// list of files / patterns to exclude
|
|
42
|
+
exclude: ["src/vendor/*.js", "src/compiledWorkers/*.js", "src/workers/*.js"],
|
|
43
|
+
|
|
44
|
+
// web server port (we use different ports for renderer, websdk and webclient !)
|
|
45
|
+
port: 9877,
|
|
46
|
+
|
|
47
|
+
// enable / disable colors in the output (reporters and logs)
|
|
48
|
+
colors: true,
|
|
49
|
+
|
|
50
|
+
// enable / disable watching file and executing tests whenever any file changes
|
|
51
|
+
autoWatch: false,
|
|
52
|
+
|
|
53
|
+
// For Firefox headless a Custom Launcher is needed
|
|
54
|
+
customLaunchers: {
|
|
55
|
+
FirefoxHeadless: {
|
|
56
|
+
base: "Firefox",
|
|
57
|
+
flags: ["-headless"],
|
|
58
|
+
},
|
|
59
|
+
ChromeExt: {
|
|
60
|
+
base: "Chrome",
|
|
61
|
+
flags: [
|
|
62
|
+
"--js-flags=--expose-gc",
|
|
63
|
+
"--disable-extensions",
|
|
64
|
+
"--no-sandbox",
|
|
65
|
+
"--disable-translate",
|
|
66
|
+
"--disable-search-engine-choice-screen",
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
// Continuous Integration mode
|
|
72
|
+
// if true, Karma captures browsers, runs the tests and exits
|
|
73
|
+
singleRun: true,
|
|
74
|
+
|
|
75
|
+
// Concurrency level
|
|
76
|
+
// how many browser should be started simultaneous
|
|
77
|
+
// concurrency: Infinity, // not possible because of WebGL(0000001B0FEA0000)::ForceLoseContext
|
|
78
|
+
concurrency: 1,
|
|
79
|
+
|
|
80
|
+
// webpack-karma docu
|
|
81
|
+
// https://github.com/webpack-contrib/karma-webpack
|
|
82
|
+
webpack: webpackConfig,
|
|
83
|
+
|
|
84
|
+
// For more information of webpack middleware output disable this configuration
|
|
85
|
+
// webpack-dev-middleware configuration
|
|
86
|
+
// https://www.npmjs.com/package/webpack-dev-middleware
|
|
87
|
+
webpackMiddleware: {
|
|
88
|
+
// webpack stats: https://webpack.js.org/configuration/stats/#stats
|
|
89
|
+
stats: "errors-only", // show additional info for webpack build process
|
|
90
|
+
},
|
|
91
|
+
};
|
package/openAllFiles.ps1
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# security warning about running scripts, you need to change the execution policy
|
|
2
|
-
# to allow running scripts. You can do this by running the following command in PowerShell:
|
|
3
|
-
# Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
4
|
-
|
|
5
|
-
# Define the path to the projects directory
|
|
6
|
-
$projectsPath = ".\src"
|
|
7
|
-
|
|
8
|
-
# Get all .ts, .less, and .html files, excluding node_modules and dist directories
|
|
9
|
-
$files = Get-ChildItem -Path $projectsPath -Recurse -Include *.js, *.less, *.html | Where-Object {
|
|
10
|
-
$_.FullName -notmatch '\\node_modules\\' -and $_.FullName -notmatch '\\dist\\'
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
# Open each file in Visual Studio Code
|
|
14
|
-
$files | ForEach-Object { code $_.FullName }
|
|
15
|
-
|
|
16
|
-
# Output the count of opened files
|
|
1
|
+
# security warning about running scripts, you need to change the execution policy
|
|
2
|
+
# to allow running scripts. You can do this by running the following command in PowerShell:
|
|
3
|
+
# Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
4
|
+
|
|
5
|
+
# Define the path to the projects directory
|
|
6
|
+
$projectsPath = ".\src"
|
|
7
|
+
|
|
8
|
+
# Get all .ts, .less, and .html files, excluding node_modules and dist directories
|
|
9
|
+
$files = Get-ChildItem -Path $projectsPath -Recurse -Include *.js, *.less, *.html | Where-Object {
|
|
10
|
+
$_.FullName -notmatch '\\node_modules\\' -and $_.FullName -notmatch '\\dist\\'
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
# Open each file in Visual Studio Code
|
|
14
|
+
$files | ForEach-Object { code $_.FullName }
|
|
15
|
+
|
|
16
|
+
# Output the count of opened files
|
|
17
17
|
$files.Count
|
package/package.json
CHANGED
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "bimplus-renderer",
|
|
3
|
-
"=================================================================================================": "",
|
|
4
|
-
" !!!! When using tagged branch releases which do not satisfy semver range pattern ": "",
|
|
5
|
-
" open ember-cli-build.js in BimExplorer and ": "",
|
|
6
|
-
" set there the full version string! ": "",
|
|
7
|
-
" e.g.: semverRange: '1.8.20-my-tag-name-01' ": "",
|
|
8
|
-
"================================================================================================-": "",
|
|
9
|
-
"version": "1.8.20-glb-gltf-obj-support-
|
|
10
|
-
"description": "bim+ renderer",
|
|
11
|
-
"types": "types/bimplus-renderer.d.ts",
|
|
12
|
-
"keywords": [
|
|
13
|
-
"Allplan",
|
|
14
|
-
"Bimplus",
|
|
15
|
-
"library",
|
|
16
|
-
"javascript",
|
|
17
|
-
"renderer",
|
|
18
|
-
"webgl",
|
|
19
|
-
"three",
|
|
20
|
-
"three.js",
|
|
21
|
-
"threejs",
|
|
22
|
-
"3D"
|
|
23
|
-
],
|
|
24
|
-
"main": "dist/bimplus-renderer.js",
|
|
25
|
-
"license": "MIT",
|
|
26
|
-
"repository": {
|
|
27
|
-
"type": "git",
|
|
28
|
-
"url": "."
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"eslint": "eslint src/**/* test/**/*",
|
|
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",
|
|
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
|
-
"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
|
-
"pub": "npm run build-prod && npm publish",
|
|
37
|
-
"pub-tag": "npm run build-prod && npm publish --tag dev",
|
|
38
|
-
"bump": "npm run bump:patch",
|
|
39
|
-
"bump:patch": "npm version patch --no-git-tag-version",
|
|
40
|
-
"npm-pack": "npm run build-prod && npm pack",
|
|
41
|
-
"lint-doc": "documentation lint ./src/*.js ./src/*/*.js --shallow ",
|
|
42
|
-
"build-doc": "npm run lint-doc && documentation build ./src/*.js ./src/*/*.js -f html --shallow --sort-order alpha -o ./documentation --config doc_config.yml",
|
|
43
|
-
"build-docMd": "npm run lint-doc && documentation build ./src/*.js ./src/*/*.js -f md --shallow --sort-order alpha -o ./documentation/Bimplus_Renderer_doc.md",
|
|
44
|
-
"build-docConf": "npm run build-docMd && cd ./documentation && python convert_to_confluence_md.py",
|
|
45
|
-
"build-docAll": "npm run build-doc && npm run build-docConf",
|
|
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
|
-
"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",
|
|
50
|
-
"code-metrics": "plato -r -d metrics src",
|
|
51
|
-
"copy-compiled-worker": "cpy --flat ./dist/GlbProcessorWorker.bimplus-renderer.worker.js ./src/compiledWorkers",
|
|
52
|
-
"cleanup-compiled-worker": "rimraf ./src/compiledWorkers/GlbProcessorWorker.bimplus-renderer.worker.js",
|
|
53
|
-
"copy-wasm": "cpy ./src/wasm/*.wasm ./dist/",
|
|
54
|
-
"copy-wasm-node-modules": "cpy ./node_modules/web-ifc/web-ifc.wasm ./node_modules/web-ifc/web-ifc-mt.wasm ./src/wasm/ --flat",
|
|
55
|
-
"copy-wasm-lls": "cpy './src/wasm/*.wasm' ./dist/",
|
|
56
|
-
"npm-publish-lls": "npm run build-prod-lls && npm run publish",
|
|
57
|
-
"npm-publish-rc-lls": "npm run build-prod-lls && npm run publish --tag rc",
|
|
58
|
-
"npm-publish-branch-lls": "npm run build-prod-lls && npm run publish --tag",
|
|
59
|
-
"npm-pack-lls": "npm run build-prod-lls && npm pack",
|
|
60
|
-
"profile": "webpack --config webpack.prod.js --profile --json > stats.json && webpack-bundle-analyzer stats.json",
|
|
61
|
-
"//=============================================================================================": "",
|
|
62
|
-
"// 1.) TESTS Scripts starting test runs ": "",
|
|
63
|
-
"//===================================================================================-=-=======": "",
|
|
64
|
-
"test": "npm-run-all -p -r test-polly-listen-task test-karma-task",
|
|
65
|
-
"test-watch": "npm-run-all -p -r test-polly-listen-task test-watch--browser-task",
|
|
66
|
-
"test-watch-firefox": "npm-run-all -p -r test-polly-listen-task test-watch--firefox-task",
|
|
67
|
-
"test-chrome": "npm-run-all -p -r test-polly-listen-task test-chrome-browser-task",
|
|
68
|
-
"test-chrome-headless": "npm-run-all -p -r test-polly-listen-task test-chrome-headlss-task",
|
|
69
|
-
"test-firefox": "npm-run-all -p -r test-polly-listen-task test-firefx-browser-task",
|
|
70
|
-
"// 1.1) TEST HELPERS ":"",
|
|
71
|
-
"// The next scripts are helpers for the test scripts which are needed ":"",
|
|
72
|
-
"// because of usage of npm-run-all ":"",
|
|
73
|
-
"// npm run test runs all test in different browsers as specified ":"",
|
|
74
|
-
"// in karma.conf.js ":"",
|
|
75
|
-
"// npm run test-watch npm run test-watch runs all tests in one browser ":"",
|
|
76
|
-
"// for debugging ":"",
|
|
77
|
-
"// firefox headless cant be used because webgl is not defined ":"",
|
|
78
|
-
"// heap error FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed":"",
|
|
79
|
-
"// process out of memory: increase ":"",
|
|
80
|
-
"// --max_old_space_size=4096 ":"",
|
|
81
|
-
"test-polly-listen-task": "polly listen",
|
|
82
|
-
"test-karma-task": "node --max_old_space_size=8192 node_modules/karma/bin/karma start ",
|
|
83
|
-
"test-watch--browser-task": "npm run test-karma-task -- --single-run=false --browsers=ChromeExt --auto-watch",
|
|
84
|
-
"test-watch--firefox-task": "npm run test-karma-task -- --single-run=false --browsers=Firefox --auto-watch",
|
|
85
|
-
"test-chrome-browser-task": "npm run test-karma-task -- --single-run=true --browsers=ChromeExt",
|
|
86
|
-
"test-chrome-headlss-task": "npm run test-karma-task -- --single-run=true --browsers=ChromeHeadless",
|
|
87
|
-
"test-firefx-browser-task": "npm run test-karma-task -- --single-run=true --browsers=Firefox",
|
|
88
|
-
"test-firefx-headlss-task": "npm run test-karma-task -- --single-run=true --browsers=FirefoxHeadless",
|
|
89
|
-
"//=========================================================================================-===": "",
|
|
90
|
-
"// 2.) DDT TESTS Scripts starting modelviewer-data-driven-tests ": "",
|
|
91
|
-
"//============================================================================================-": "",
|
|
92
|
-
"test-modelviewer-ddt": "npm-run-all -p -r test-karma-modelviewer-ddt-task ddt-server-task",
|
|
93
|
-
"test-modelviewer-ddt-watch": "npm-run-all -p -r test-karma-modelviewer-ddt-task-watch ddt-server-task",
|
|
94
|
-
"test-modelviewer-ddt-long": "npm-run-all -p -r test-karma-modelviewer-ddt-task ddt-long-server-task",
|
|
95
|
-
"test-modelviewer-ddt-long-watch": "npm-run-all -p -r test-karma-modelviewer-ddt-task-watch ddt-long-server-task",
|
|
96
|
-
"// 2.1) DDT TEST HELPERS ": "",
|
|
97
|
-
"// The next scripts are helpers for the modelviewer-data-driven-tests ": "",
|
|
98
|
-
"// test scripts ": "",
|
|
99
|
-
"ddt-server-task": "node ../simple-ddt-server/server --port 3456 --folder modelviewer-data-driven-tests/ddt-test-data",
|
|
100
|
-
"ddt-long-server-task": "node ../simple-ddt-server/server --port 3456 --folder modelviewer-data-driven-tests/ddt-test-data-long",
|
|
101
|
-
"test-karma-modelviewer-ddt-task": "node --max_old_space_size=8192 node_modules/karma/bin/karma start karma-modelviewer-ddt.conf.js",
|
|
102
|
-
"test-karma-modelviewer-ddt-task-watch": "node --max_old_space_size=8192 node_modules/karma/bin/karma start karma-modelviewer-ddt.conf.js --single-run=false --browsers=Firefox --auto-watch",
|
|
103
|
-
"// 2.2) DDT TEST SYNC DATA ": "",
|
|
104
|
-
"// Scripts to download test files for modelviewer-data-driven-tests ": "",
|
|
105
|
-
"sync-modelviewer-ddt": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data",
|
|
106
|
-
"sync-modelviewer-ddt-long": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data-long",
|
|
107
|
-
"//===========================================================================================--": ""
|
|
108
|
-
},
|
|
109
|
-
"devDependencies": {
|
|
110
|
-
"@babel/cli": "^7.28.3",
|
|
111
|
-
"@babel/core": "^7.28.5",
|
|
112
|
-
"@babel/plugin-transform-async-to-generator": "^7.27.1",
|
|
113
|
-
"@babel/plugin-transform-function-name": "^7.25.9",
|
|
114
|
-
"@babel/plugin-transform-runtime": "^7.28.5",
|
|
115
|
-
"@babel/preset-env": "^7.28.5",
|
|
116
|
-
"@pollyjs/adapter-xhr": "^6.0.6",
|
|
117
|
-
"@pollyjs/cli": "^6.0.6",
|
|
118
|
-
"@pollyjs/core": "^6.0.6",
|
|
119
|
-
"@pollyjs/persister-rest": "^6.0.6",
|
|
120
|
-
"arraybuffer-loader": "^1.0.8",
|
|
121
|
-
"babel-loader": "^10.0.0",
|
|
122
|
-
"bimplus-websdk": "^1.0.56",
|
|
123
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
124
|
-
"copy-webpack-plugin": "^13.0.1",
|
|
125
|
-
"coverage-istanbul-loader": "^3.0.5",
|
|
126
|
-
"cpy-cli": "^6.0.0",
|
|
127
|
-
"documentation": "^14.0.3",
|
|
128
|
-
"eslint": "^9.39.1",
|
|
129
|
-
"file-loader": "6.2.0",
|
|
130
|
-
"globals": "16.5.0",
|
|
131
|
-
"karma": "^6.4.4",
|
|
132
|
-
"karma-chrome-launcher": "^3.2.0",
|
|
133
|
-
"karma-coverage-istanbul-reporter": "^3.0.2",
|
|
134
|
-
"karma-firefox-launcher": "^2.1.3",
|
|
135
|
-
"karma-host-environment": "^3.0.3",
|
|
136
|
-
"karma-jquery": "^0.2.4",
|
|
137
|
-
"karma-qunit": "^4.2.1",
|
|
138
|
-
"karma-sharding": "^4.4.0",
|
|
139
|
-
"karma-webpack": "^5.0.1",
|
|
140
|
-
"npm-run-all": "4.1.5",
|
|
141
|
-
"object-hash": "^3.0.0",
|
|
142
|
-
"qunit": "^2.24.2",
|
|
143
|
-
"raw-loader": "4.0.2",
|
|
144
|
-
"rimraf": "^6.1.0",
|
|
145
|
-
"shader-loader": "1.3.1",
|
|
146
|
-
"terser-webpack-plugin": "^5.3.14",
|
|
147
|
-
"url-loader": "4.1.1",
|
|
148
|
-
"webpack": "^5.102.1",
|
|
149
|
-
"webpack-cli": "^6.0.1",
|
|
150
|
-
"webpack-merge": "^6.0.1"
|
|
151
|
-
},
|
|
152
|
-
"dependencies": {
|
|
153
|
-
"@babel/runtime": "^7.28.4",
|
|
154
|
-
"async": "^3.2.6",
|
|
155
|
-
"dexie": "^4.2.1",
|
|
156
|
-
"fit_transform": "^0.0.6",
|
|
157
|
-
"moment-timezone": "^0.6.0",
|
|
158
|
-
"numeric": "^1.2.6",
|
|
159
|
-
"three": "0.180.0",
|
|
160
|
-
"web-ifc": "^0.0.70"
|
|
161
|
-
}
|
|
162
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "bimplus-renderer",
|
|
3
|
+
"=================================================================================================": "",
|
|
4
|
+
" !!!! When using tagged branch releases which do not satisfy semver range pattern ": "",
|
|
5
|
+
" open ember-cli-build.js in BimExplorer and ": "",
|
|
6
|
+
" set there the full version string! ": "",
|
|
7
|
+
" e.g.: semverRange: '1.8.20-my-tag-name-01' ": "",
|
|
8
|
+
"================================================================================================-": "",
|
|
9
|
+
"version": "1.8.20-glb-gltf-obj-support-08",
|
|
10
|
+
"description": "bim+ renderer",
|
|
11
|
+
"types": "types/bimplus-renderer.d.ts",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"Allplan",
|
|
14
|
+
"Bimplus",
|
|
15
|
+
"library",
|
|
16
|
+
"javascript",
|
|
17
|
+
"renderer",
|
|
18
|
+
"webgl",
|
|
19
|
+
"three",
|
|
20
|
+
"three.js",
|
|
21
|
+
"threejs",
|
|
22
|
+
"3D"
|
|
23
|
+
],
|
|
24
|
+
"main": "dist/bimplus-renderer.js",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "."
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"eslint": "eslint src/**/* test/**/*",
|
|
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",
|
|
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
|
+
"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
|
+
"pub": "npm run build-prod && npm publish",
|
|
37
|
+
"pub-tag": "npm run build-prod && npm publish --tag dev",
|
|
38
|
+
"bump": "npm run bump:patch",
|
|
39
|
+
"bump:patch": "npm version patch --no-git-tag-version",
|
|
40
|
+
"npm-pack": "npm run build-prod && npm pack",
|
|
41
|
+
"lint-doc": "documentation lint ./src/*.js ./src/*/*.js --shallow ",
|
|
42
|
+
"build-doc": "npm run lint-doc && documentation build ./src/*.js ./src/*/*.js -f html --shallow --sort-order alpha -o ./documentation --config doc_config.yml",
|
|
43
|
+
"build-docMd": "npm run lint-doc && documentation build ./src/*.js ./src/*/*.js -f md --shallow --sort-order alpha -o ./documentation/Bimplus_Renderer_doc.md",
|
|
44
|
+
"build-docConf": "npm run build-docMd && cd ./documentation && python convert_to_confluence_md.py",
|
|
45
|
+
"build-docAll": "npm run build-doc && npm run build-docConf",
|
|
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
|
+
"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",
|
|
50
|
+
"code-metrics": "plato -r -d metrics src",
|
|
51
|
+
"copy-compiled-worker": "cpy --flat ./dist/GlbProcessorWorker.bimplus-renderer.worker.js ./src/compiledWorkers",
|
|
52
|
+
"cleanup-compiled-worker": "rimraf ./src/compiledWorkers/GlbProcessorWorker.bimplus-renderer.worker.js",
|
|
53
|
+
"copy-wasm": "cpy ./src/wasm/*.wasm ./dist/",
|
|
54
|
+
"copy-wasm-node-modules": "cpy ./node_modules/web-ifc/web-ifc.wasm ./node_modules/web-ifc/web-ifc-mt.wasm ./src/wasm/ --flat",
|
|
55
|
+
"copy-wasm-lls": "cpy './src/wasm/*.wasm' ./dist/",
|
|
56
|
+
"npm-publish-lls": "npm run build-prod-lls && npm run publish",
|
|
57
|
+
"npm-publish-rc-lls": "npm run build-prod-lls && npm run publish --tag rc",
|
|
58
|
+
"npm-publish-branch-lls": "npm run build-prod-lls && npm run publish --tag",
|
|
59
|
+
"npm-pack-lls": "npm run build-prod-lls && npm pack",
|
|
60
|
+
"profile": "webpack --config webpack.prod.js --profile --json > stats.json && webpack-bundle-analyzer stats.json",
|
|
61
|
+
"//=============================================================================================": "",
|
|
62
|
+
"// 1.) TESTS Scripts starting test runs ": "",
|
|
63
|
+
"//===================================================================================-=-=======": "",
|
|
64
|
+
"test": "npm-run-all -p -r test-polly-listen-task test-karma-task",
|
|
65
|
+
"test-watch": "npm-run-all -p -r test-polly-listen-task test-watch--browser-task",
|
|
66
|
+
"test-watch-firefox": "npm-run-all -p -r test-polly-listen-task test-watch--firefox-task",
|
|
67
|
+
"test-chrome": "npm-run-all -p -r test-polly-listen-task test-chrome-browser-task",
|
|
68
|
+
"test-chrome-headless": "npm-run-all -p -r test-polly-listen-task test-chrome-headlss-task",
|
|
69
|
+
"test-firefox": "npm-run-all -p -r test-polly-listen-task test-firefx-browser-task",
|
|
70
|
+
"// 1.1) TEST HELPERS ":"",
|
|
71
|
+
"// The next scripts are helpers for the test scripts which are needed ":"",
|
|
72
|
+
"// because of usage of npm-run-all ":"",
|
|
73
|
+
"// npm run test runs all test in different browsers as specified ":"",
|
|
74
|
+
"// in karma.conf.js ":"",
|
|
75
|
+
"// npm run test-watch npm run test-watch runs all tests in one browser ":"",
|
|
76
|
+
"// for debugging ":"",
|
|
77
|
+
"// firefox headless cant be used because webgl is not defined ":"",
|
|
78
|
+
"// heap error FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed":"",
|
|
79
|
+
"// process out of memory: increase ":"",
|
|
80
|
+
"// --max_old_space_size=4096 ":"",
|
|
81
|
+
"test-polly-listen-task": "polly listen",
|
|
82
|
+
"test-karma-task": "node --max_old_space_size=8192 node_modules/karma/bin/karma start ",
|
|
83
|
+
"test-watch--browser-task": "npm run test-karma-task -- --single-run=false --browsers=ChromeExt --auto-watch",
|
|
84
|
+
"test-watch--firefox-task": "npm run test-karma-task -- --single-run=false --browsers=Firefox --auto-watch",
|
|
85
|
+
"test-chrome-browser-task": "npm run test-karma-task -- --single-run=true --browsers=ChromeExt",
|
|
86
|
+
"test-chrome-headlss-task": "npm run test-karma-task -- --single-run=true --browsers=ChromeHeadless",
|
|
87
|
+
"test-firefx-browser-task": "npm run test-karma-task -- --single-run=true --browsers=Firefox",
|
|
88
|
+
"test-firefx-headlss-task": "npm run test-karma-task -- --single-run=true --browsers=FirefoxHeadless",
|
|
89
|
+
"//=========================================================================================-===": "",
|
|
90
|
+
"// 2.) DDT TESTS Scripts starting modelviewer-data-driven-tests ": "",
|
|
91
|
+
"//============================================================================================-": "",
|
|
92
|
+
"test-modelviewer-ddt": "npm-run-all -p -r test-karma-modelviewer-ddt-task ddt-server-task",
|
|
93
|
+
"test-modelviewer-ddt-watch": "npm-run-all -p -r test-karma-modelviewer-ddt-task-watch ddt-server-task",
|
|
94
|
+
"test-modelviewer-ddt-long": "npm-run-all -p -r test-karma-modelviewer-ddt-task ddt-long-server-task",
|
|
95
|
+
"test-modelviewer-ddt-long-watch": "npm-run-all -p -r test-karma-modelviewer-ddt-task-watch ddt-long-server-task",
|
|
96
|
+
"// 2.1) DDT TEST HELPERS ": "",
|
|
97
|
+
"// The next scripts are helpers for the modelviewer-data-driven-tests ": "",
|
|
98
|
+
"// test scripts ": "",
|
|
99
|
+
"ddt-server-task": "node ../simple-ddt-server/server --port 3456 --folder modelviewer-data-driven-tests/ddt-test-data",
|
|
100
|
+
"ddt-long-server-task": "node ../simple-ddt-server/server --port 3456 --folder modelviewer-data-driven-tests/ddt-test-data-long",
|
|
101
|
+
"test-karma-modelviewer-ddt-task": "node --max_old_space_size=8192 node_modules/karma/bin/karma start karma-modelviewer-ddt.conf.js",
|
|
102
|
+
"test-karma-modelviewer-ddt-task-watch": "node --max_old_space_size=8192 node_modules/karma/bin/karma start karma-modelviewer-ddt.conf.js --single-run=false --browsers=Firefox --auto-watch",
|
|
103
|
+
"// 2.2) DDT TEST SYNC DATA ": "",
|
|
104
|
+
"// Scripts to download test files for modelviewer-data-driven-tests ": "",
|
|
105
|
+
"sync-modelviewer-ddt": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data",
|
|
106
|
+
"sync-modelviewer-ddt-long": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data-long",
|
|
107
|
+
"//===========================================================================================--": ""
|
|
108
|
+
},
|
|
109
|
+
"devDependencies": {
|
|
110
|
+
"@babel/cli": "^7.28.3",
|
|
111
|
+
"@babel/core": "^7.28.5",
|
|
112
|
+
"@babel/plugin-transform-async-to-generator": "^7.27.1",
|
|
113
|
+
"@babel/plugin-transform-function-name": "^7.25.9",
|
|
114
|
+
"@babel/plugin-transform-runtime": "^7.28.5",
|
|
115
|
+
"@babel/preset-env": "^7.28.5",
|
|
116
|
+
"@pollyjs/adapter-xhr": "^6.0.6",
|
|
117
|
+
"@pollyjs/cli": "^6.0.6",
|
|
118
|
+
"@pollyjs/core": "^6.0.6",
|
|
119
|
+
"@pollyjs/persister-rest": "^6.0.6",
|
|
120
|
+
"arraybuffer-loader": "^1.0.8",
|
|
121
|
+
"babel-loader": "^10.0.0",
|
|
122
|
+
"bimplus-websdk": "^1.0.56",
|
|
123
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
124
|
+
"copy-webpack-plugin": "^13.0.1",
|
|
125
|
+
"coverage-istanbul-loader": "^3.0.5",
|
|
126
|
+
"cpy-cli": "^6.0.0",
|
|
127
|
+
"documentation": "^14.0.3",
|
|
128
|
+
"eslint": "^9.39.1",
|
|
129
|
+
"file-loader": "6.2.0",
|
|
130
|
+
"globals": "16.5.0",
|
|
131
|
+
"karma": "^6.4.4",
|
|
132
|
+
"karma-chrome-launcher": "^3.2.0",
|
|
133
|
+
"karma-coverage-istanbul-reporter": "^3.0.2",
|
|
134
|
+
"karma-firefox-launcher": "^2.1.3",
|
|
135
|
+
"karma-host-environment": "^3.0.3",
|
|
136
|
+
"karma-jquery": "^0.2.4",
|
|
137
|
+
"karma-qunit": "^4.2.1",
|
|
138
|
+
"karma-sharding": "^4.4.0",
|
|
139
|
+
"karma-webpack": "^5.0.1",
|
|
140
|
+
"npm-run-all": "4.1.5",
|
|
141
|
+
"object-hash": "^3.0.0",
|
|
142
|
+
"qunit": "^2.24.2",
|
|
143
|
+
"raw-loader": "4.0.2",
|
|
144
|
+
"rimraf": "^6.1.0",
|
|
145
|
+
"shader-loader": "1.3.1",
|
|
146
|
+
"terser-webpack-plugin": "^5.3.14",
|
|
147
|
+
"url-loader": "4.1.1",
|
|
148
|
+
"webpack": "^5.102.1",
|
|
149
|
+
"webpack-cli": "^6.0.1",
|
|
150
|
+
"webpack-merge": "^6.0.1"
|
|
151
|
+
},
|
|
152
|
+
"dependencies": {
|
|
153
|
+
"@babel/runtime": "^7.28.4",
|
|
154
|
+
"async": "^3.2.6",
|
|
155
|
+
"dexie": "^4.2.1",
|
|
156
|
+
"fit_transform": "^0.0.6",
|
|
157
|
+
"moment-timezone": "^0.6.0",
|
|
158
|
+
"numeric": "^1.2.6",
|
|
159
|
+
"three": "0.180.0",
|
|
160
|
+
"web-ifc": "^0.0.70"
|
|
161
|
+
}
|
|
162
|
+
}
|