bimplus-renderer 1.7.15 → 1.7.17
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/.sonarlint/connectedMode.json +3 -3
- package/README.md +124 -124
- package/bin/README.emcc.md +41 -41
- package/bin/processPartitionVertices.js +2 -2
- package/dist/bimplus-renderer.js +1 -1
- package/dist/bimplus-renderer.js.LICENSE.txt +1 -1
- package/dist/web-ifc-mt.wasm +0 -0
- package/dist/web-ifc.wasm +0 -0
- package/eslint.config.mjs +38 -38
- package/karma-files-config.js +147 -147
- package/karma-modelviewer-ddt.conf.js +66 -66
- package/karma-shared-config.js +90 -90
- package/openAllFiles.ps1 +16 -16
- package/package.json +141 -141
- package/types/bimplus-renderer.d.ts +341 -341
package/karma-shared-config.js
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
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
|
-
},
|
|
39
|
-
|
|
40
|
-
// list of files / patterns to exclude
|
|
41
|
-
exclude: ["src/vendor/*.js", "src/compiledWorkers/*.js", "src/workers/*.js"],
|
|
42
|
-
|
|
43
|
-
// web server port (we use different ports for renderer, websdk and webclient !)
|
|
44
|
-
port: 9877,
|
|
45
|
-
|
|
46
|
-
// enable / disable colors in the output (reporters and logs)
|
|
47
|
-
colors: true,
|
|
48
|
-
|
|
49
|
-
// enable / disable watching file and executing tests whenever any file changes
|
|
50
|
-
autoWatch: false,
|
|
51
|
-
|
|
52
|
-
// For Firefox headless a Custom Launcher is needed
|
|
53
|
-
customLaunchers: {
|
|
54
|
-
FirefoxHeadless: {
|
|
55
|
-
base: "Firefox",
|
|
56
|
-
flags: ["-headless"],
|
|
57
|
-
},
|
|
58
|
-
ChromeExt: {
|
|
59
|
-
base: "Chrome",
|
|
60
|
-
flags: [
|
|
61
|
-
"--js-flags=--expose-gc",
|
|
62
|
-
"--disable-extensions",
|
|
63
|
-
"--no-sandbox",
|
|
64
|
-
"--disable-translate",
|
|
65
|
-
"--disable-search-engine-choice-screen",
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
// Continuous Integration mode
|
|
71
|
-
// if true, Karma captures browsers, runs the tests and exits
|
|
72
|
-
singleRun: true,
|
|
73
|
-
|
|
74
|
-
// Concurrency level
|
|
75
|
-
// how many browser should be started simultaneous
|
|
76
|
-
// concurrency: Infinity, // not possible because of WebGL(0000001B0FEA0000)::ForceLoseContext
|
|
77
|
-
concurrency: 1,
|
|
78
|
-
|
|
79
|
-
// webpack-karma docu
|
|
80
|
-
// https://github.com/webpack-contrib/karma-webpack
|
|
81
|
-
webpack: webpackConfig,
|
|
82
|
-
|
|
83
|
-
// For more information of webpack middleware output disable this configuration
|
|
84
|
-
// webpack-dev-middleware configuration
|
|
85
|
-
// https://www.npmjs.com/package/webpack-dev-middleware
|
|
86
|
-
webpackMiddleware: {
|
|
87
|
-
// webpack stats: https://webpack.js.org/configuration/stats/#stats
|
|
88
|
-
stats: "errors-only", // show additional info for webpack build process
|
|
89
|
-
},
|
|
90
|
-
};
|
|
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
|
+
},
|
|
39
|
+
|
|
40
|
+
// list of files / patterns to exclude
|
|
41
|
+
exclude: ["src/vendor/*.js", "src/compiledWorkers/*.js", "src/workers/*.js"],
|
|
42
|
+
|
|
43
|
+
// web server port (we use different ports for renderer, websdk and webclient !)
|
|
44
|
+
port: 9877,
|
|
45
|
+
|
|
46
|
+
// enable / disable colors in the output (reporters and logs)
|
|
47
|
+
colors: true,
|
|
48
|
+
|
|
49
|
+
// enable / disable watching file and executing tests whenever any file changes
|
|
50
|
+
autoWatch: false,
|
|
51
|
+
|
|
52
|
+
// For Firefox headless a Custom Launcher is needed
|
|
53
|
+
customLaunchers: {
|
|
54
|
+
FirefoxHeadless: {
|
|
55
|
+
base: "Firefox",
|
|
56
|
+
flags: ["-headless"],
|
|
57
|
+
},
|
|
58
|
+
ChromeExt: {
|
|
59
|
+
base: "Chrome",
|
|
60
|
+
flags: [
|
|
61
|
+
"--js-flags=--expose-gc",
|
|
62
|
+
"--disable-extensions",
|
|
63
|
+
"--no-sandbox",
|
|
64
|
+
"--disable-translate",
|
|
65
|
+
"--disable-search-engine-choice-screen",
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
// Continuous Integration mode
|
|
71
|
+
// if true, Karma captures browsers, runs the tests and exits
|
|
72
|
+
singleRun: true,
|
|
73
|
+
|
|
74
|
+
// Concurrency level
|
|
75
|
+
// how many browser should be started simultaneous
|
|
76
|
+
// concurrency: Infinity, // not possible because of WebGL(0000001B0FEA0000)::ForceLoseContext
|
|
77
|
+
concurrency: 1,
|
|
78
|
+
|
|
79
|
+
// webpack-karma docu
|
|
80
|
+
// https://github.com/webpack-contrib/karma-webpack
|
|
81
|
+
webpack: webpackConfig,
|
|
82
|
+
|
|
83
|
+
// For more information of webpack middleware output disable this configuration
|
|
84
|
+
// webpack-dev-middleware configuration
|
|
85
|
+
// https://www.npmjs.com/package/webpack-dev-middleware
|
|
86
|
+
webpackMiddleware: {
|
|
87
|
+
// webpack stats: https://webpack.js.org/configuration/stats/#stats
|
|
88
|
+
stats: "errors-only", // show additional info for webpack build process
|
|
89
|
+
},
|
|
90
|
+
};
|
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,141 +1,141 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "bimplus-renderer",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "bim+ renderer",
|
|
5
|
-
"types": "types/bimplus-renderer.d.ts",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"Allplan",
|
|
8
|
-
"Bimplus",
|
|
9
|
-
"library",
|
|
10
|
-
"javascript",
|
|
11
|
-
"renderer",
|
|
12
|
-
"webgl",
|
|
13
|
-
"three",
|
|
14
|
-
"three.js",
|
|
15
|
-
"threejs",
|
|
16
|
-
"3D"
|
|
17
|
-
],
|
|
18
|
-
"main": "dist/bimplus-renderer.js",
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "."
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"eslint": "eslint src/**/* test/**/*",
|
|
26
|
-
"build": "npm run build-worker-dev && npm run eslint && webpack --config webpack.dev.js && npm run copy-wasm",
|
|
27
|
-
"build-prod": "npm run build-worker-prod && npm run eslint && webpack --config webpack.prod.js && npm run copy-wasm",
|
|
28
|
-
"build-worker-dev": "npm run cleanup-compiled-worker && npm run build-wasm && webpack --config webpack.compile.worker.js && npm run copy-compiled-worker",
|
|
29
|
-
"build-worker-prod": "npm run cleanup-compiled-worker && npm run build-wasm-prod && webpack --config webpack.compile.worker.js && npm run copy-compiled-worker",
|
|
30
|
-
"pub": "npm run build-prod && npm publish",
|
|
31
|
-
"pub-tag": "npm run build-prod && npm publish --tag dev",
|
|
32
|
-
"bump": "npm run bump:patch",
|
|
33
|
-
"bump:patch": "npm version patch --no-git-tag-version",
|
|
34
|
-
"npm-pack": "npm run build-prod && npm pack",
|
|
35
|
-
"lint-doc": "documentation lint ./src/*.js ./src/*/*.js --shallow ",
|
|
36
|
-
"build-doc": "npm run lint-doc && documentation build ./src/*.js ./src/*/*.js -f html --shallow --sort-order alpha -o ./documentation --config doc_config.yml",
|
|
37
|
-
"build-docMd": "npm run lint-doc && documentation build ./src/*.js ./src/*/*.js -f md --shallow --sort-order alpha -o ./documentation/Bimplus_Renderer_doc.md",
|
|
38
|
-
"build-docConf": "npm run build-docMd && cd ./documentation && python convert_to_confluence_md.py",
|
|
39
|
-
"build-docAll": "npm run build-doc && npm run build-docConf",
|
|
40
|
-
"// TEST ": "Scripts starting test runs",
|
|
41
|
-
"test": "npm-run-all -p -r test-polly-listen-task test-karma-task",
|
|
42
|
-
"test-watch": "npm-run-all -p -r test-polly-listen-task test-watch--browser-task",
|
|
43
|
-
"test-watch-firefox": "npm-run-all -p -r test-polly-listen-task test-watch--firefox-task",
|
|
44
|
-
"test-chrome": "npm-run-all -p -r test-polly-listen-task test-chrome-browser-task",
|
|
45
|
-
"test-chrome-headless": "npm-run-all -p -r test-polly-listen-task test-chrome-headlss-task",
|
|
46
|
-
"test-firefox": "npm-run-all -p -r test-polly-listen-task test-firefx-browser-task",
|
|
47
|
-
"// TEST HELPERS ": "The next scripts are helpers for the test scripts which are needed because of usage of npm-run-all",
|
|
48
|
-
"// npm run test ": "runs all test in different browsers as specified in karma.conf.js",
|
|
49
|
-
"// npm run test-watch": "npm run test-watch runs all tests in one browser for debugging",
|
|
50
|
-
"// firefox headless ": "cant be used because webgl is not defined",
|
|
51
|
-
"// heap error ": "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory: increase --max_old_space_size=4096",
|
|
52
|
-
"test-polly-listen-task": "polly listen",
|
|
53
|
-
"test-karma-task": "node --max_old_space_size=8192 node_modules/karma/bin/karma start ",
|
|
54
|
-
"test-watch--browser-task": "npm run test-karma-task -- --single-run=false --browsers=ChromeExt --auto-watch",
|
|
55
|
-
"test-watch--firefox-task": "npm run test-karma-task -- --single-run=false --browsers=Firefox --auto-watch",
|
|
56
|
-
"test-chrome-browser-task": "npm run test-karma-task -- --single-run=true --browsers=ChromeExt",
|
|
57
|
-
"test-chrome-headlss-task": "npm run test-karma-task -- --single-run=true --browsers=ChromeHeadless",
|
|
58
|
-
"test-firefx-browser-task": "npm run test-karma-task -- --single-run=true --browsers=Firefox",
|
|
59
|
-
"test-firefx-headlss-task": "npm run test-karma-task -- --single-run=true --browsers=FirefoxHeadless",
|
|
60
|
-
"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",
|
|
61
|
-
"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",
|
|
62
|
-
"code-metrics": "plato -r -d metrics src",
|
|
63
|
-
"copy-compiled-worker": "cpy --flat ./dist/GlbProcessorWorker.bimplus-renderer.worker.js ./src/compiledWorkers",
|
|
64
|
-
"cleanup-compiled-worker": "rimraf ./src/compiledWorkers/GlbProcessorWorker.bimplus-renderer.worker.js",
|
|
65
|
-
"copy-wasm": "cpy ./src/wasm/*.wasm ./dist/",
|
|
66
|
-
"eslint-lls": "eslint 'src/**/*.js' 'test/**'",
|
|
67
|
-
"build-lls": "npm run build-worker-dev && npm run eslint-lls && webpack --config webpack.dev.js && npm run copy-wasm-lls",
|
|
68
|
-
"build-prod-lls": "npm run build-worker-prod && npm run eslint-lls && webpack --config webpack.prod.js && npm run copy-wasm-lls",
|
|
69
|
-
"npm-publish-lls": "npm run build-prod-lls && npm run publish",
|
|
70
|
-
"npm-publish-rc-lls": "npm run build-prod-lls && npm run publish --tag rc",
|
|
71
|
-
"npm-publish-branch-lls": "npm run build-prod-lls && npm run publish --tag",
|
|
72
|
-
"npm-pack-lls": "npm run build-prod-lls && npm pack",
|
|
73
|
-
"copy-wasm-lls": "cpy './src/wasm/*.wasm' ./dist/",
|
|
74
|
-
"// DDT TESTS ": "Scripts for starting modelviewer-data-driven-tests",
|
|
75
|
-
"test-modelviewer-ddt": "npm-run-all -p -r test-karma-modelviewer-ddt-task ddt-server-task",
|
|
76
|
-
"test-modelviewer-ddt-watch": "npm-run-all -p -r test-karma-modelviewer-ddt-task-watch ddt-server-task",
|
|
77
|
-
"test-modelviewer-ddt-long": "npm-run-all -p -r test-karma-modelviewer-ddt-task ddt-long-server-task",
|
|
78
|
-
"test-modelviewer-ddt-long-watch": "npm-run-all -p -r test-karma-modelviewer-ddt-task-watch ddt-long-server-task",
|
|
79
|
-
"// DDT TEST HELPERS ": "The next scripts are helpers for the modelviewer-data-driven-tests test scripts",
|
|
80
|
-
"ddt-server-task": "node ../simple-ddt-server/server --port 3456 --folder modelviewer-data-driven-tests/ddt-test-data",
|
|
81
|
-
"ddt-long-server-task": "node ../simple-ddt-server/server --port 3456 --folder modelviewer-data-driven-tests/ddt-test-data-long",
|
|
82
|
-
"test-karma-modelviewer-ddt-task": "node --max_old_space_size=8192 node_modules/karma/bin/karma start karma-modelviewer-ddt.conf.js",
|
|
83
|
-
"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",
|
|
84
|
-
"// DDT TEST SYNC DATA ": "Scripts to download test files for modelviewer-data-driven-tests",
|
|
85
|
-
"sync-modelviewer-ddt": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data",
|
|
86
|
-
"sync-modelviewer-ddt-long": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data-long"
|
|
87
|
-
},
|
|
88
|
-
"devDependencies": {
|
|
89
|
-
"@babel/cli": "^7.
|
|
90
|
-
"@babel/core": "^7.26.
|
|
91
|
-
"@babel/plugin-transform-async-to-generator": "^7.25.9",
|
|
92
|
-
"@babel/plugin-transform-function-name": "^7.25.9",
|
|
93
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
94
|
-
"@babel/preset-env": "^7.26.
|
|
95
|
-
"@pollyjs/adapter-xhr": "^6.0.6",
|
|
96
|
-
"@pollyjs/cli": "^6.0.6",
|
|
97
|
-
"@pollyjs/core": "^6.0.6",
|
|
98
|
-
"@pollyjs/persister-rest": "^6.0.6",
|
|
99
|
-
"arraybuffer-loader": "^1.0.8",
|
|
100
|
-
"babel-loader": "^
|
|
101
|
-
"bimplus-websdk": "^1.0.
|
|
102
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
103
|
-
"copy-webpack-plugin": "^
|
|
104
|
-
"coverage-istanbul-loader": "^3.0.5",
|
|
105
|
-
"cpy-cli": "^5.0.0",
|
|
106
|
-
"documentation": "^14.0.3",
|
|
107
|
-
"eslint": "^9.
|
|
108
|
-
"file-loader": "6.2.0",
|
|
109
|
-
"globals": "
|
|
110
|
-
"karma": "^6.4.4",
|
|
111
|
-
"karma-chrome-launcher": "^3.2.0",
|
|
112
|
-
"karma-coverage-istanbul-reporter": "^3.0.2",
|
|
113
|
-
"karma-firefox-launcher": "^2.1.3",
|
|
114
|
-
"karma-host-environment": "^3.0.3",
|
|
115
|
-
"karma-jquery": "^0.2.4",
|
|
116
|
-
"karma-qunit": "^4.2.1",
|
|
117
|
-
"karma-sharding": "^4.4.0",
|
|
118
|
-
"karma-webpack": "^5.0.1",
|
|
119
|
-
"npm-run-all": "4.1.5",
|
|
120
|
-
"object-hash": "^3.0.0",
|
|
121
|
-
"qunit": "^2.24.1",
|
|
122
|
-
"raw-loader": "4.0.2",
|
|
123
|
-
"rimraf": "^6.0.1",
|
|
124
|
-
"shader-loader": "1.3.1",
|
|
125
|
-
"terser-webpack-plugin": "^5.3.
|
|
126
|
-
"url-loader": "4.1.1",
|
|
127
|
-
"webpack": "^5.
|
|
128
|
-
"webpack-cli": "^6.0.1",
|
|
129
|
-
"webpack-merge": "^6.0.1"
|
|
130
|
-
},
|
|
131
|
-
"dependencies": {
|
|
132
|
-
"@babel/runtime": "^7.
|
|
133
|
-
"async": "^3.2.6",
|
|
134
|
-
"dexie": "^4.0.11",
|
|
135
|
-
"fit_transform": "^0.0.6",
|
|
136
|
-
"moment-timezone": "^0.5.
|
|
137
|
-
"numeric": "^1.2.6",
|
|
138
|
-
"three": "0.
|
|
139
|
-
"web-ifc": "0.0.
|
|
140
|
-
}
|
|
141
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "bimplus-renderer",
|
|
3
|
+
"version": "1.7.17",
|
|
4
|
+
"description": "bim+ renderer",
|
|
5
|
+
"types": "types/bimplus-renderer.d.ts",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"Allplan",
|
|
8
|
+
"Bimplus",
|
|
9
|
+
"library",
|
|
10
|
+
"javascript",
|
|
11
|
+
"renderer",
|
|
12
|
+
"webgl",
|
|
13
|
+
"three",
|
|
14
|
+
"three.js",
|
|
15
|
+
"threejs",
|
|
16
|
+
"3D"
|
|
17
|
+
],
|
|
18
|
+
"main": "dist/bimplus-renderer.js",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "."
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"eslint": "eslint src/**/* test/**/*",
|
|
26
|
+
"build": "npm run build-worker-dev && npm run eslint && webpack --config webpack.dev.js && npm run copy-wasm",
|
|
27
|
+
"build-prod": "npm run build-worker-prod && npm run eslint && webpack --config webpack.prod.js && npm run copy-wasm",
|
|
28
|
+
"build-worker-dev": "npm run cleanup-compiled-worker && npm run build-wasm && webpack --config webpack.compile.worker.js && npm run copy-compiled-worker",
|
|
29
|
+
"build-worker-prod": "npm run cleanup-compiled-worker && npm run build-wasm-prod && webpack --config webpack.compile.worker.js && npm run copy-compiled-worker",
|
|
30
|
+
"pub": "npm run build-prod && npm publish",
|
|
31
|
+
"pub-tag": "npm run build-prod && npm publish --tag dev",
|
|
32
|
+
"bump": "npm run bump:patch",
|
|
33
|
+
"bump:patch": "npm version patch --no-git-tag-version",
|
|
34
|
+
"npm-pack": "npm run build-prod && npm pack",
|
|
35
|
+
"lint-doc": "documentation lint ./src/*.js ./src/*/*.js --shallow ",
|
|
36
|
+
"build-doc": "npm run lint-doc && documentation build ./src/*.js ./src/*/*.js -f html --shallow --sort-order alpha -o ./documentation --config doc_config.yml",
|
|
37
|
+
"build-docMd": "npm run lint-doc && documentation build ./src/*.js ./src/*/*.js -f md --shallow --sort-order alpha -o ./documentation/Bimplus_Renderer_doc.md",
|
|
38
|
+
"build-docConf": "npm run build-docMd && cd ./documentation && python convert_to_confluence_md.py",
|
|
39
|
+
"build-docAll": "npm run build-doc && npm run build-docConf",
|
|
40
|
+
"// TEST ": "Scripts starting test runs",
|
|
41
|
+
"test": "npm-run-all -p -r test-polly-listen-task test-karma-task",
|
|
42
|
+
"test-watch": "npm-run-all -p -r test-polly-listen-task test-watch--browser-task",
|
|
43
|
+
"test-watch-firefox": "npm-run-all -p -r test-polly-listen-task test-watch--firefox-task",
|
|
44
|
+
"test-chrome": "npm-run-all -p -r test-polly-listen-task test-chrome-browser-task",
|
|
45
|
+
"test-chrome-headless": "npm-run-all -p -r test-polly-listen-task test-chrome-headlss-task",
|
|
46
|
+
"test-firefox": "npm-run-all -p -r test-polly-listen-task test-firefx-browser-task",
|
|
47
|
+
"// TEST HELPERS ": "The next scripts are helpers for the test scripts which are needed because of usage of npm-run-all",
|
|
48
|
+
"// npm run test ": "runs all test in different browsers as specified in karma.conf.js",
|
|
49
|
+
"// npm run test-watch": "npm run test-watch runs all tests in one browser for debugging",
|
|
50
|
+
"// firefox headless ": "cant be used because webgl is not defined",
|
|
51
|
+
"// heap error ": "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory: increase --max_old_space_size=4096",
|
|
52
|
+
"test-polly-listen-task": "polly listen",
|
|
53
|
+
"test-karma-task": "node --max_old_space_size=8192 node_modules/karma/bin/karma start ",
|
|
54
|
+
"test-watch--browser-task": "npm run test-karma-task -- --single-run=false --browsers=ChromeExt --auto-watch",
|
|
55
|
+
"test-watch--firefox-task": "npm run test-karma-task -- --single-run=false --browsers=Firefox --auto-watch",
|
|
56
|
+
"test-chrome-browser-task": "npm run test-karma-task -- --single-run=true --browsers=ChromeExt",
|
|
57
|
+
"test-chrome-headlss-task": "npm run test-karma-task -- --single-run=true --browsers=ChromeHeadless",
|
|
58
|
+
"test-firefx-browser-task": "npm run test-karma-task -- --single-run=true --browsers=Firefox",
|
|
59
|
+
"test-firefx-headlss-task": "npm run test-karma-task -- --single-run=true --browsers=FirefoxHeadless",
|
|
60
|
+
"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",
|
|
61
|
+
"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",
|
|
62
|
+
"code-metrics": "plato -r -d metrics src",
|
|
63
|
+
"copy-compiled-worker": "cpy --flat ./dist/GlbProcessorWorker.bimplus-renderer.worker.js ./src/compiledWorkers",
|
|
64
|
+
"cleanup-compiled-worker": "rimraf ./src/compiledWorkers/GlbProcessorWorker.bimplus-renderer.worker.js",
|
|
65
|
+
"copy-wasm": "cpy ./src/wasm/*.wasm ./dist/",
|
|
66
|
+
"eslint-lls": "eslint 'src/**/*.js' 'test/**'",
|
|
67
|
+
"build-lls": "npm run build-worker-dev && npm run eslint-lls && webpack --config webpack.dev.js && npm run copy-wasm-lls",
|
|
68
|
+
"build-prod-lls": "npm run build-worker-prod && npm run eslint-lls && webpack --config webpack.prod.js && npm run copy-wasm-lls",
|
|
69
|
+
"npm-publish-lls": "npm run build-prod-lls && npm run publish",
|
|
70
|
+
"npm-publish-rc-lls": "npm run build-prod-lls && npm run publish --tag rc",
|
|
71
|
+
"npm-publish-branch-lls": "npm run build-prod-lls && npm run publish --tag",
|
|
72
|
+
"npm-pack-lls": "npm run build-prod-lls && npm pack",
|
|
73
|
+
"copy-wasm-lls": "cpy './src/wasm/*.wasm' ./dist/",
|
|
74
|
+
"// DDT TESTS ": "Scripts for starting modelviewer-data-driven-tests",
|
|
75
|
+
"test-modelviewer-ddt": "npm-run-all -p -r test-karma-modelviewer-ddt-task ddt-server-task",
|
|
76
|
+
"test-modelviewer-ddt-watch": "npm-run-all -p -r test-karma-modelviewer-ddt-task-watch ddt-server-task",
|
|
77
|
+
"test-modelviewer-ddt-long": "npm-run-all -p -r test-karma-modelviewer-ddt-task ddt-long-server-task",
|
|
78
|
+
"test-modelviewer-ddt-long-watch": "npm-run-all -p -r test-karma-modelviewer-ddt-task-watch ddt-long-server-task",
|
|
79
|
+
"// DDT TEST HELPERS ": "The next scripts are helpers for the modelviewer-data-driven-tests test scripts",
|
|
80
|
+
"ddt-server-task": "node ../simple-ddt-server/server --port 3456 --folder modelviewer-data-driven-tests/ddt-test-data",
|
|
81
|
+
"ddt-long-server-task": "node ../simple-ddt-server/server --port 3456 --folder modelviewer-data-driven-tests/ddt-test-data-long",
|
|
82
|
+
"test-karma-modelviewer-ddt-task": "node --max_old_space_size=8192 node_modules/karma/bin/karma start karma-modelviewer-ddt.conf.js",
|
|
83
|
+
"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",
|
|
84
|
+
"// DDT TEST SYNC DATA ": "Scripts to download test files for modelviewer-data-driven-tests",
|
|
85
|
+
"sync-modelviewer-ddt": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data",
|
|
86
|
+
"sync-modelviewer-ddt-long": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data-long"
|
|
87
|
+
},
|
|
88
|
+
"devDependencies": {
|
|
89
|
+
"@babel/cli": "^7.27.0",
|
|
90
|
+
"@babel/core": "^7.26.10",
|
|
91
|
+
"@babel/plugin-transform-async-to-generator": "^7.25.9",
|
|
92
|
+
"@babel/plugin-transform-function-name": "^7.25.9",
|
|
93
|
+
"@babel/plugin-transform-runtime": "^7.26.10",
|
|
94
|
+
"@babel/preset-env": "^7.26.9",
|
|
95
|
+
"@pollyjs/adapter-xhr": "^6.0.6",
|
|
96
|
+
"@pollyjs/cli": "^6.0.6",
|
|
97
|
+
"@pollyjs/core": "^6.0.6",
|
|
98
|
+
"@pollyjs/persister-rest": "^6.0.6",
|
|
99
|
+
"arraybuffer-loader": "^1.0.8",
|
|
100
|
+
"babel-loader": "^10.0.0",
|
|
101
|
+
"bimplus-websdk": "^1.0.47",
|
|
102
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
103
|
+
"copy-webpack-plugin": "^13.0.0",
|
|
104
|
+
"coverage-istanbul-loader": "^3.0.5",
|
|
105
|
+
"cpy-cli": "^5.0.0",
|
|
106
|
+
"documentation": "^14.0.3",
|
|
107
|
+
"eslint": "^9.24.0",
|
|
108
|
+
"file-loader": "6.2.0",
|
|
109
|
+
"globals": "16.0.0",
|
|
110
|
+
"karma": "^6.4.4",
|
|
111
|
+
"karma-chrome-launcher": "^3.2.0",
|
|
112
|
+
"karma-coverage-istanbul-reporter": "^3.0.2",
|
|
113
|
+
"karma-firefox-launcher": "^2.1.3",
|
|
114
|
+
"karma-host-environment": "^3.0.3",
|
|
115
|
+
"karma-jquery": "^0.2.4",
|
|
116
|
+
"karma-qunit": "^4.2.1",
|
|
117
|
+
"karma-sharding": "^4.4.0",
|
|
118
|
+
"karma-webpack": "^5.0.1",
|
|
119
|
+
"npm-run-all": "4.1.5",
|
|
120
|
+
"object-hash": "^3.0.0",
|
|
121
|
+
"qunit": "^2.24.1",
|
|
122
|
+
"raw-loader": "4.0.2",
|
|
123
|
+
"rimraf": "^6.0.1",
|
|
124
|
+
"shader-loader": "1.3.1",
|
|
125
|
+
"terser-webpack-plugin": "^5.3.14",
|
|
126
|
+
"url-loader": "4.1.1",
|
|
127
|
+
"webpack": "^5.99.5",
|
|
128
|
+
"webpack-cli": "^6.0.1",
|
|
129
|
+
"webpack-merge": "^6.0.1"
|
|
130
|
+
},
|
|
131
|
+
"dependencies": {
|
|
132
|
+
"@babel/runtime": "^7.27.0",
|
|
133
|
+
"async": "^3.2.6",
|
|
134
|
+
"dexie": "^4.0.11",
|
|
135
|
+
"fit_transform": "^0.0.6",
|
|
136
|
+
"moment-timezone": "^0.5.48",
|
|
137
|
+
"numeric": "^1.2.6",
|
|
138
|
+
"three": "0.175.0",
|
|
139
|
+
"web-ifc": "^0.0.68"
|
|
140
|
+
}
|
|
141
|
+
}
|