bimplus-renderer 1.8.38-updatepackages1.3 → 1.8.38
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/MOMENT_TIMEZONE_INTEGRATION_FOR_TEST.md +7 -14
- package/README.md +73 -5
- package/dist/bimplus-renderer.js +1 -1
- package/package.json +50 -52
- package/eslint.config.mjs +0 -33
- package/karma-files-config.js +0 -161
- package/karma-modelviewer-ddt.conf.js +0 -66
- package/karma-shared-config.js +0 -102
- package/openAllFiles.ps1 +0 -17
- package/stats.json +0 -4
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.38
|
|
9
|
+
"version": "1.8.38",
|
|
10
10
|
"description": "bim+ renderer",
|
|
11
11
|
"types": "types/bimplus-renderer.d.ts",
|
|
12
12
|
"keywords": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"url": "."
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"eslint": "eslint src/**/* test/**/*",
|
|
31
|
+
"eslint": "eslint src/**/* test/**/* modelviewer-data-driven-tests/tests/**/* vitest.config.mjs",
|
|
32
32
|
"build": "npm run build-worker-dev && npm run eslint && webpack --config webpack.dev.js && npm run copy-wasm",
|
|
33
33
|
"build-prod": "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",
|
|
@@ -59,49 +59,56 @@
|
|
|
59
59
|
"npm-pack-lls": "npm run build-prod-lls && npm pack",
|
|
60
60
|
"profile": "webpack --config webpack.prod.js --profile --json > stats.json && webpack-bundle-analyzer stats.json",
|
|
61
61
|
"//=============================================================================================": "",
|
|
62
|
-
"// 1.) TESTS
|
|
62
|
+
"// 1.) JUnit TESTS Scripts starting test runs ": "",
|
|
63
63
|
"//===================================================================================-=-=======": "",
|
|
64
|
-
"test": "npm
|
|
65
|
-
"test-
|
|
66
|
-
"test-
|
|
67
|
-
"
|
|
68
|
-
"test-
|
|
69
|
-
"test-firefox": "npm-run-all -p -r test-polly-listen-task test-
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
64
|
+
"test": "npm run test-firefox-coverage",
|
|
65
|
+
"test-chrome": "npm run test-chrome-headed",
|
|
66
|
+
"test-firefox": "npm run test-firefox-headed",
|
|
67
|
+
"//===================== Test helpers and browser/Polly prerequisites ==========================": "",
|
|
68
|
+
"test-firefox-task": "vitest run --project=firefox --outputFile.junit=test-results/vitest-firefox.xml",
|
|
69
|
+
"test-firefox-headed": "npm-run-all -p -r test-polly-listen-task \"test-firefox-task -- --browser.headless=false\"",
|
|
70
|
+
"test-firefox-headless": "npm-run-all -p -r test-polly-listen-task \"test-firefox-task -- --browser.headless=true\"",
|
|
71
|
+
"test-firefox-watch-task": "vitest --project=firefox --browser.headless=false",
|
|
72
|
+
"test-firefox-watch": "npm-run-all -p -r test-polly-listen-task test-firefox-watch-task",
|
|
73
|
+
"test-firefox-coverage-task": "vitest run --project=firefox --coverage --browser.headless=true --outputFile.junit=test-results/vitest-firefox.xml",
|
|
74
|
+
"test-firefox-coverage": "npm-run-all -p -r test-polly-listen-task test-firefox-coverage-task",
|
|
75
|
+
"test-chrome-task": "vitest run --project=chrome --outputFile.junit=test-results/vitest-chrome.xml",
|
|
76
|
+
"test-chrome-headed": "npm-run-all -p -r test-polly-listen-task \"test-chrome-task -- --browser.headless=false\"",
|
|
77
|
+
"test-chrome-headless": "npm-run-all -p -r test-polly-listen-task \"test-chrome-task -- --browser.headless=true\"",
|
|
78
|
+
"test-chrome-watch-task": "vitest --project=chrome --browser.headless=false",
|
|
79
|
+
"test-chrome-watch": "npm-run-all -p -r test-polly-listen-task test-chrome-watch-task",
|
|
80
|
+
"test-chrome-coverage-task": "vitest run --project=chrome --coverage --browser.headless=true --outputFile.junit=test-results/vitest-chrome.xml",
|
|
81
|
+
"test-chrome-coverage": "npm-run-all -p -r test-polly-listen-task test-chrome-coverage-task",
|
|
82
|
+
"test-vitest-modelviewer-firefox-task": "vitest run --project=modelviewer-firefox --outputFile.junit=test-results/vitest-modelviewer-firefox.xml",
|
|
83
|
+
"test-vitest-modelviewer-chrome-task": "vitest run --project=modelviewer-chrome --outputFile.junit=test-results/vitest-modelviewer-chrome.xml",
|
|
84
|
+
"test-vitest-modelviewer-firefox-watch-task": "vitest --project=modelviewer-firefox",
|
|
85
|
+
"test-vitest-modelviewer-chrome-watch-task": "vitest --project=modelviewer-chrome",
|
|
86
|
+
"test-vitest-modelviewer-firefox": "npm-run-all -p -r test-vitest-modelviewer-firefox-task ddt-server-task",
|
|
87
|
+
"test-vitest-modelviewer-chrome": "npm-run-all -p -r test-vitest-modelviewer-chrome-task ddt-server-task",
|
|
88
|
+
"test-vitest-modelviewer-firefox-watch": "npm-run-all -p -r test-vitest-modelviewer-firefox-watch-task ddt-server-task",
|
|
89
|
+
"test-vitest-modelviewer-chrome-watch": "npm-run-all -p -r test-vitest-modelviewer-chrome-watch-task ddt-server-task",
|
|
90
|
+
"test-vitest-modelviewer-firefox-long-task": "vitest run --project=modelviewer-firefox --outputFile.junit=test-results/vitest-modelviewer-firefox-long.xml",
|
|
91
|
+
"test-vitest-modelviewer-chrome-long-task": "vitest run --project=modelviewer-chrome --outputFile.junit=test-results/vitest-modelviewer-chrome-long.xml",
|
|
92
|
+
"test-vitest-modelviewer-firefox-long": "npm-run-all -p -r test-vitest-modelviewer-firefox-long-task ddt-long-server-task",
|
|
93
|
+
"test-vitest-modelviewer-chrome-long": "npm-run-all -p -r test-vitest-modelviewer-chrome-long-task ddt-long-server-task",
|
|
81
94
|
"test-polly-listen-task": "polly listen",
|
|
82
|
-
"
|
|
83
|
-
"test-
|
|
84
|
-
"test-
|
|
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",
|
|
95
|
+
"//===================== Test helpers to run test for one file ": "",
|
|
96
|
+
"test-one-file-chrome": "npm-run-all -p -r test-polly-listen-task \"test-chrome-watch-task test/tests/OverlayPollyTests.js\"",
|
|
97
|
+
"test-one-file-firefox": "npm-run-all -p -r test-polly-listen-task \"test-firefox-watch-task test/tests/OverlayPollyTests.js\"",
|
|
89
98
|
"//=========================================================================================-===": "",
|
|
90
99
|
"// 2.) DDT TESTS Scripts starting modelviewer-data-driven-tests ": "",
|
|
91
100
|
"//============================================================================================-": "",
|
|
92
|
-
"test-modelviewer-ddt": "npm
|
|
93
|
-
"test-modelviewer-ddt-watch": "npm
|
|
94
|
-
"test-modelviewer-ddt-long": "npm
|
|
95
|
-
"test-modelviewer-ddt-long-watch": "npm-run-all -p -r test-
|
|
96
|
-
"
|
|
97
|
-
"// The next scripts are helpers for the modelviewer-data-driven-tests ": "",
|
|
98
|
-
"// test scripts ": "",
|
|
101
|
+
"test-modelviewer-ddt": "npm run test-vitest-modelviewer-firefox",
|
|
102
|
+
"test-modelviewer-ddt-watch": "npm run test-vitest-modelviewer-firefox-watch",
|
|
103
|
+
"test-modelviewer-ddt-long": "npm run test-vitest-modelviewer-firefox-long",
|
|
104
|
+
"test-modelviewer-ddt-long-watch": "npm-run-all -p -r test-vitest-modelviewer-firefox-watch-task ddt-long-server-task",
|
|
105
|
+
"//===================== DDT Test helpers for the modelviewer-data-driven-tests test scripts ===": "",
|
|
99
106
|
"ddt-server-task": "node ../simple-ddt-server/server --port 3456 --folder modelviewer-data-driven-tests/ddt-test-data",
|
|
100
107
|
"ddt-long-server-task": "node ../simple-ddt-server/server --port 3456 --folder modelviewer-data-driven-tests/ddt-test-data-long",
|
|
101
|
-
"
|
|
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",
|
|
108
|
+
"//=======================================================================================-=====": "",
|
|
103
109
|
"// 2.2) DDT TEST SYNC DATA ": "",
|
|
104
110
|
"// Scripts to download test files for modelviewer-data-driven-tests ": "",
|
|
111
|
+
"//======================================================================================-======": "",
|
|
105
112
|
"sync-modelviewer-ddt": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data",
|
|
106
113
|
"sync-modelviewer-ddt-long": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data-long",
|
|
107
114
|
"//===========================================================================================--": ""
|
|
@@ -118,34 +125,25 @@
|
|
|
118
125
|
"@pollyjs/cli": "^6.0.6",
|
|
119
126
|
"@pollyjs/core": "^6.0.6",
|
|
120
127
|
"@pollyjs/persister-rest": "^6.0.6",
|
|
121
|
-
"
|
|
128
|
+
"@vitest/browser-playwright": "5.0.3",
|
|
129
|
+
"@vitest/coverage-istanbul": "5.0.3",
|
|
122
130
|
"babel-loader": "^10.1.1",
|
|
123
131
|
"bimplus-websdk": "^1.0.69",
|
|
124
132
|
"clean-webpack-plugin": "^4.0.0",
|
|
125
133
|
"copy-webpack-plugin": "^14.0.0",
|
|
126
|
-
"coverage-istanbul-loader": "^3.0.5",
|
|
127
134
|
"cpy-cli": "^7.0.0",
|
|
128
135
|
"documentation": "^14.0.3",
|
|
129
|
-
"eslint": "^10.
|
|
136
|
+
"eslint": "^10.12.0",
|
|
130
137
|
"file-loader": "6.2.0",
|
|
131
|
-
"globals": "17.
|
|
132
|
-
"karma": "^6.4.4",
|
|
133
|
-
"karma-chrome-launcher": "^3.2.0",
|
|
134
|
-
"karma-coverage-istanbul-reporter": "^3.0.2",
|
|
135
|
-
"karma-firefox-launcher": "^2.1.3",
|
|
136
|
-
"karma-host-environment": "^3.0.3",
|
|
137
|
-
"karma-jquery": "^0.2.4",
|
|
138
|
-
"karma-qunit": "^4.2.1",
|
|
139
|
-
"karma-sharding": "^4.4.0",
|
|
140
|
-
"karma-webpack": "^5.0.1",
|
|
138
|
+
"globals": "17.13.0",
|
|
141
139
|
"moment-timezone": "^0.6.4",
|
|
142
140
|
"npm-run-all": "4.1.5",
|
|
143
141
|
"object-hash": "^3.0.0",
|
|
144
|
-
"
|
|
142
|
+
"playwright": "1.64.0",
|
|
145
143
|
"raw-loader": "4.0.2",
|
|
146
144
|
"rimraf": "^6.1.3",
|
|
147
145
|
"shader-loader": "1.3.1",
|
|
148
|
-
"terser-webpack-plugin": "^5.
|
|
146
|
+
"terser-webpack-plugin": "^5.3.16",
|
|
149
147
|
"url-loader": "4.1.1",
|
|
150
148
|
"webpack": "^5.105.0",
|
|
151
149
|
"webpack-bundle-analyzer": "^5.2.0",
|
|
@@ -158,6 +156,6 @@
|
|
|
158
156
|
"dexie": "4.2.1",
|
|
159
157
|
"numeric": "^1.2.6",
|
|
160
158
|
"three": "^0.185.1",
|
|
161
|
-
"web-ifc": "
|
|
159
|
+
"web-ifc": "0.0.77"
|
|
162
160
|
}
|
|
163
161
|
}
|
package/eslint.config.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import globals from "globals";
|
|
2
|
-
import js from "@eslint/js";
|
|
3
|
-
|
|
4
|
-
export default [
|
|
5
|
-
js.configs.recommended,
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
ignores: ["recordings/*", "src/compiledWorkers/*"],
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
files: ["src/**/*", "test/**/*"],
|
|
13
|
-
languageOptions: {
|
|
14
|
-
ecmaVersion: 2022,
|
|
15
|
-
sourceType: "module",
|
|
16
|
-
globals: {
|
|
17
|
-
...globals.browser,
|
|
18
|
-
$: "readonly",
|
|
19
|
-
jQuery: "readonly",
|
|
20
|
-
QUnit: "readonly",
|
|
21
|
-
define: "readonly",
|
|
22
|
-
require: "readonly",
|
|
23
|
-
module: "readonly",
|
|
24
|
-
__dirname: "readonly",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
rules: {
|
|
28
|
-
semi: ["warn", "always"],
|
|
29
|
-
"no-useless-assignment": "off",
|
|
30
|
-
"preserve-caught-error": "off",
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
];
|
package/karma-files-config.js
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// list of files / patterns to load in the browser
|
|
3
|
-
files: [
|
|
4
|
-
{ pattern: "src/wasm/*.wasm", included: false, served: true, type: "wasm" },
|
|
5
|
-
{ pattern: "bin/*.js", included: false, served: true /*, type: 'wasm'*/ },
|
|
6
|
-
{ pattern: 'test/data/*.obj', watched: false, included: false, served: true },
|
|
7
|
-
{ pattern: 'test/data/*.gltf', watched: false, included: false, served: true },
|
|
8
|
-
{ pattern: 'test/data/*.glb', watched: false, included: false, served: true },
|
|
9
|
-
// "bin/**/*.js",
|
|
10
|
-
"src/**/*.js",
|
|
11
|
-
// Load test environment setup (inject moment-timezone for tests)
|
|
12
|
-
"test/setup/momentTimezoneInjector.js",
|
|
13
|
-
// Load custom assertions first (isZeroFloat, floatEqual, etc.)
|
|
14
|
-
"test/customAsserts.js",
|
|
15
|
-
// Load test files
|
|
16
|
-
"test/**/*.js",
|
|
17
|
-
|
|
18
|
-
// For testing only specific files/file
|
|
19
|
-
// "test/tests/AmbientOcclusionSettingsTests.js",
|
|
20
|
-
// "test/tests/BackgroundTests.js",
|
|
21
|
-
// "test/tests/BasicTests.js",
|
|
22
|
-
// "test/tests/ClashesTests.js",
|
|
23
|
-
// "test/tests/ClippingBoxTests.js",
|
|
24
|
-
// "test/tests/ClippingPlaneSettingsTests.js",
|
|
25
|
-
// "test/tests/ClippingPlaneSpotTests.js",
|
|
26
|
-
// "test/tests/ClippingPlaneTests.js",
|
|
27
|
-
// "test/tests/ColorizeTests.js",
|
|
28
|
-
// "test/tests/ContentLoaderGLBTests.js",
|
|
29
|
-
// "test/tests/DiagnosticTests.js",
|
|
30
|
-
// "test/tests/DisciplineNodeStoreTests.js",
|
|
31
|
-
// "test/tests/DivisionsTests.js",
|
|
32
|
-
// "test/tests/DrawRangeTests.js",
|
|
33
|
-
// "test/tests/FingerprintCursorTests.js",
|
|
34
|
-
// "test/tests/FileViewTests.js",
|
|
35
|
-
// "test/tests/GLTFLoaderTests.js",
|
|
36
|
-
// "test/tests/GPUPickerTests.js",
|
|
37
|
-
// "test/tests/HideObjectTests.js",
|
|
38
|
-
// "test/tests/HighlightObjectEdgesPollyTests.js",
|
|
39
|
-
// "test/tests/HighlightObjectEdgesTests.js",
|
|
40
|
-
// "test/tests/HoverObjectTests.js",
|
|
41
|
-
// "test/tests/LayersTests.js",
|
|
42
|
-
// "test/tests/LookupTextureTests.js",
|
|
43
|
-
// "test/tests/LookupTextureIndexCounterTests.js",
|
|
44
|
-
// "test/tests/MeshPartSearcher*.js",
|
|
45
|
-
// "test/tests/NavigationMapTests.js",
|
|
46
|
-
// "test/tests/ObjectPreviewTests.js",
|
|
47
|
-
// "test/tests/ObjectsContainerTests.js",
|
|
48
|
-
// "test/tests/OverlayPollyTests.js",
|
|
49
|
-
// "test/tests/OverlayTests.js",
|
|
50
|
-
// "test/tests/PinsTests.js",
|
|
51
|
-
// "test/tests/PollyProjectLoaderTests.js",
|
|
52
|
-
// "test/tests/ProjectContentTests.js",
|
|
53
|
-
// "test/tests/RendererTests.js",
|
|
54
|
-
// "test/tests/RevisionCompareTests.js",
|
|
55
|
-
// "test/tests/RevisionsTests.js",
|
|
56
|
-
// "test/tests/SceneTests.js",
|
|
57
|
-
// "test/tests/SectionCutGeneralTests.js",
|
|
58
|
-
// "test/tests/SectionCutTests.js",
|
|
59
|
-
// "test/tests/SelectionModeTests.js",
|
|
60
|
-
// "test/tests/SelectionTests.js",
|
|
61
|
-
// "test/tests/SlideTests.js",
|
|
62
|
-
// "test/tests/ThreeContentLoaderTests.js",
|
|
63
|
-
// "test/tests/Viewport3dSunCalculationTests.js",
|
|
64
|
-
// "test/tests/Viewport3dTests.js",
|
|
65
|
-
// "test/tests/VisibilityTests.js",
|
|
66
|
-
// "test/tests/VisualObjectStoreTests.js",
|
|
67
|
-
// "test/tests/VisualObjectMeshDataTests.js",
|
|
68
|
-
// "test/tests/VisualObjectTests.js",
|
|
69
|
-
// "test/tests/IfcContentLoaderTests.js",
|
|
70
|
-
|
|
71
|
-
// "test/tests/commands/CommandAddToSetTests.js",
|
|
72
|
-
// "test/tests/commands/CommandColorizeTests.js",
|
|
73
|
-
// "test/tests/commands/CommandHoverTests.js",
|
|
74
|
-
// "test/tests/commands/CommandIsolateHideTests.js",
|
|
75
|
-
// "test/tests/commands/CommandSelectTests.js",
|
|
76
|
-
|
|
77
|
-
// "test/tests/connexis/ConnectionElementTests.js",
|
|
78
|
-
|
|
79
|
-
// "test/tests/parser/DisciplineNodeParserTests.js",
|
|
80
|
-
// "test/tests/parser/SharedGlbProcessorWorkerQueueTests.js",
|
|
81
|
-
|
|
82
|
-
// "test/tests/markups/AnnotationMaterialsTests.js",
|
|
83
|
-
// "test/tests/markups/AnnotationSettingsTests.js",
|
|
84
|
-
// "test/tests/markups/AnnotationTests.js",
|
|
85
|
-
// "test/tests/markups/DimensionAngleTests.js",
|
|
86
|
-
// "test/tests/markups/DimensionEdgeTests.js",
|
|
87
|
-
// "test/tests/markups/DimensionExtensionHelperLineTests.js",
|
|
88
|
-
// "test/tests/markups/DimensionAxesHelperLinesTests.js",
|
|
89
|
-
// "test/tests/markups/DimensionLineTests.js",
|
|
90
|
-
// "test/tests/markups/DimensionPerpendicularLineTests.js",
|
|
91
|
-
// "test/tests/markups/DimensionLocalPointTests.js",
|
|
92
|
-
// "test/tests/markups/DimensionCalibrationPointTests.js",
|
|
93
|
-
// "test/tests/markups/DimensionPointHelperTests.js",
|
|
94
|
-
// "test/tests/markups/DimensionSettingsTests.js",
|
|
95
|
-
// "test/tests/markups/DimensionSlopeTests.js",
|
|
96
|
-
// "test/tests/markups/DimensionTextCreatorTests.js",
|
|
97
|
-
// "test/tests/markups/LocalCoordSystemManagerTests.js",
|
|
98
|
-
// "test/tests/markups/MarkupBaseTests.js",
|
|
99
|
-
// "test/tests/markups/MarkupsContainerTests.js",
|
|
100
|
-
// "test/tests/markups/ObjectPropsTests.js",
|
|
101
|
-
|
|
102
|
-
// "test/tests/interactors/AnnotationInteractorTests*.js",
|
|
103
|
-
// "test/tests/interactors/LaserMeasurementInteractor*.js",
|
|
104
|
-
// "test/tests/interactors/LocalCoordSystemInteractorTests*.js",
|
|
105
|
-
// "test/tests/interactors/InteractorMouseMovePollyTests*.js",
|
|
106
|
-
// "test/tests/interactors/MarkupBaseInteractorTests*.js",
|
|
107
|
-
// "test/tests/interactors/MarkupNoInputInteractorTests*.js",
|
|
108
|
-
// "test/tests/interactors/MeasureAngleInteractorTests*.js",
|
|
109
|
-
// "test/tests/interactors/MeasureAutoEdgesInteractorTests*.js",
|
|
110
|
-
// "test/tests/interactors/MeasureEdgeInteractorTests*.js",
|
|
111
|
-
// "test/tests/interactors/MeasureFreeInteractorTests*.js",
|
|
112
|
-
// "test/tests/interactors/MeasurePerpendicularInteractorTests*.js",
|
|
113
|
-
// "test/tests/interactors/MeasureLocalPointInteractorTests*.js",
|
|
114
|
-
// "test/tests/interactors/MeasureCalibratedPointInteractorTests*.js",
|
|
115
|
-
// "test/tests/interactors/MoveModelInteractorTests*.js",
|
|
116
|
-
// "test/tests/interactors/ObjectPropsInteractorTests*.js",
|
|
117
|
-
// "test/tests/interactors/SectionPlaneInteractorTests*.js",
|
|
118
|
-
// "test/tests/interactors/SelectPointsForOverlayInteractorTests*.js",
|
|
119
|
-
// "test/tests/interactors/ViewportInteractorTests*.js",
|
|
120
|
-
|
|
121
|
-
// "test/tests/utils/AssertUtilsTests.js",
|
|
122
|
-
// "test/tests/utils/BoundingBoxTests.js",
|
|
123
|
-
// "test/tests/utils/CameraUtilsTests.js",
|
|
124
|
-
// "test/tests/utils/EventUtilsTests.js",
|
|
125
|
-
// "test/tests/utils/FrustumVisualizerTests.js",
|
|
126
|
-
// "test/tests/utils/GeometryUtilsTests.js",
|
|
127
|
-
// "test/tests/utils/GeometryUtilsViewportTests.js",
|
|
128
|
-
// "test/tests/utils/GlobalAxesVisualizerTests.js",
|
|
129
|
-
// "test/tests/utils/MathExtensionsTests.js",
|
|
130
|
-
// "test/tests/utils/MeasureUtilsTests.js",
|
|
131
|
-
// "test/tests/utils/ParserUtilsTests.js",
|
|
132
|
-
// "test/tests/utils/RandomGeneratorTests.js",
|
|
133
|
-
// "test/tests/utils/SphereVisualizerTests.js",
|
|
134
|
-
// "test/tests/utils/SunCalculationTests.js",
|
|
135
|
-
// "test/tests/utils/TouchModeHelperTests.js",
|
|
136
|
-
// "test/tests/utils/ValueValidatorTests.js",
|
|
137
|
-
|
|
138
|
-
// "test/tests/frameSelection/FrameSelectionTests.js",
|
|
139
|
-
// "test/tests/frameSelection/FrameSelectionEventCheckerTests.js",
|
|
140
|
-
// "test/tests/frameSelection/EdgesFrustumCheckerTests.js",
|
|
141
|
-
// "test/tests/frameSelection/SelectionBoxTests.js",
|
|
142
|
-
// "test/tests/frameSelection/SelectionHelperTests.js",
|
|
143
|
-
// "test/tests/frameSelection/VerticesFrustumCheckerTests.js",
|
|
144
|
-
|
|
145
|
-
// "test/tests/overlays/CropBoxTests.js",
|
|
146
|
-
// "test/tests/overlays/UndoRedoManagerTests.js",
|
|
147
|
-
// "test/tests/overlays/ViewportCropBoxTests.js"
|
|
148
|
-
|
|
149
|
-
// "test/tests/viewControls/fileViewControlTests.js",
|
|
150
|
-
// "test/tests/viewControls/navigationMapViewControlTests.js",
|
|
151
|
-
// "test/tests/viewControls/orbitViewControlTests.js",
|
|
152
|
-
// "test/tests/viewControls/ViewControlTests.js",
|
|
153
|
-
|
|
154
|
-
// "test/tests/viewers/ProjectViewerTests.js",
|
|
155
|
-
// "test/tests/viewers/ViewStateBuilderTests.js",
|
|
156
|
-
|
|
157
|
-
// "test/performance/CommandColorizeTests.js",
|
|
158
|
-
// "test/performance/DisciplineNodeStoreTests.js",
|
|
159
|
-
// "test/performance/ObjectsContainerTests.js",
|
|
160
|
-
],
|
|
161
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// Karma configuration
|
|
2
|
-
// http://karma-runner.github.io/4.0/config/configuration-file.html
|
|
3
|
-
|
|
4
|
-
const karmaSharedConfig = require('./karma-shared-config');
|
|
5
|
-
|
|
6
|
-
module.exports = function (config) {
|
|
7
|
-
config.set({
|
|
8
|
-
|
|
9
|
-
// Merge with shared configuration
|
|
10
|
-
...karmaSharedConfig,
|
|
11
|
-
|
|
12
|
-
// list of files / patterns to load in the browser
|
|
13
|
-
files: [
|
|
14
|
-
{pattern: 'src/wasm/*.wasm', included: false, served: true, type: 'wasm'},
|
|
15
|
-
{pattern: 'bin/*.js', included: false, served: true/*, type: 'wasm'*/},
|
|
16
|
-
//'bin/**/*.js',
|
|
17
|
-
'src/**/*.js',
|
|
18
|
-
'modelviewer-data-driven-tests/tests**/*.js',
|
|
19
|
-
],
|
|
20
|
-
|
|
21
|
-
// preprocess matching files before serving them to the browser
|
|
22
|
-
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
|
23
|
-
preprocessors: {
|
|
24
|
-
'src/**/*.js': [ 'webpack', ],
|
|
25
|
-
'modelviewer-data-driven-tests/**/*.js': [ 'webpack', ],
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
// test results reporter to use
|
|
29
|
-
// possible values: 'dots', 'progress'
|
|
30
|
-
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
|
31
|
-
reporters: [
|
|
32
|
-
'progress'
|
|
33
|
-
],
|
|
34
|
-
|
|
35
|
-
// client configuration
|
|
36
|
-
client: {
|
|
37
|
-
clearContext: false,
|
|
38
|
-
// QUnit options for QUnit.config
|
|
39
|
-
// https://api.qunitjs.com/config/QUnit.config
|
|
40
|
-
qunit: {
|
|
41
|
-
// Show list of all running tests in browser
|
|
42
|
-
showUI: true,
|
|
43
|
-
testTimeout: 6000000,
|
|
44
|
-
// requireExpects: true, // The expect() method is optional by default
|
|
45
|
-
fixture: null, // Don't clear the qunit-fixture div after each test - we try to reuse the webgl context
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
// level of logging
|
|
50
|
-
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
|
51
|
-
logLevel: config.LOG_INFO,
|
|
52
|
-
//logLevel: config.LOG_DEBUG,
|
|
53
|
-
|
|
54
|
-
// start these browsers
|
|
55
|
-
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
|
56
|
-
// browsers: ['Chrome'],
|
|
57
|
-
browsers: [
|
|
58
|
-
//'Chrome',
|
|
59
|
-
//'ChromeHeadless', //It is currently not possible to run the tests in headless mode due to random stalls
|
|
60
|
-
// 'Firefox', // Use only one browser for test run to get correct code coverage output
|
|
61
|
-
'Firefox', // this will split tests between browsers
|
|
62
|
-
//'FirefoxHeadless',
|
|
63
|
-
],
|
|
64
|
-
|
|
65
|
-
})
|
|
66
|
-
}
|
package/karma-shared-config.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
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
|
-
// Bypass Firefox GPU blacklist to avoid WebGL context creation errors
|
|
60
|
-
// (e.g. after Firefox 150 update tightened GPU blocklist rules)
|
|
61
|
-
FirefoxWebGL: {
|
|
62
|
-
base: "Firefox",
|
|
63
|
-
prefs: {
|
|
64
|
-
"webgl.force-enabled": true, // bypass GPU blocklist for WebGL context creation
|
|
65
|
-
"webgl.enable-webgl2": true, // WebGL2 gate (independent of force-enabled)
|
|
66
|
-
"layers.acceleration.force-enabled": true, // force HW-accelerated compositing
|
|
67
|
-
"security.sandbox.gpu.level": 0, // disable GPU process sandbox (tightened in FF150)
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
ChromeExt: {
|
|
71
|
-
base: "Chrome",
|
|
72
|
-
flags: [
|
|
73
|
-
"--js-flags=--expose-gc",
|
|
74
|
-
"--disable-extensions",
|
|
75
|
-
"--no-sandbox",
|
|
76
|
-
"--disable-translate",
|
|
77
|
-
"--disable-search-engine-choice-screen",
|
|
78
|
-
],
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
// Continuous Integration mode
|
|
83
|
-
// if true, Karma captures browsers, runs the tests and exits
|
|
84
|
-
singleRun: true,
|
|
85
|
-
|
|
86
|
-
// Concurrency level
|
|
87
|
-
// how many browser should be started simultaneous
|
|
88
|
-
// concurrency: Infinity, // not possible because of WebGL(0000001B0FEA0000)::ForceLoseContext
|
|
89
|
-
concurrency: 1,
|
|
90
|
-
|
|
91
|
-
// webpack-karma docu
|
|
92
|
-
// https://github.com/webpack-contrib/karma-webpack
|
|
93
|
-
webpack: webpackConfig,
|
|
94
|
-
|
|
95
|
-
// For more information of webpack middleware output disable this configuration
|
|
96
|
-
// webpack-dev-middleware configuration
|
|
97
|
-
// https://www.npmjs.com/package/webpack-dev-middleware
|
|
98
|
-
webpackMiddleware: {
|
|
99
|
-
// webpack stats: https://webpack.js.org/configuration/stats/#stats
|
|
100
|
-
stats: "errors-only", // show additional info for webpack build process
|
|
101
|
-
},
|
|
102
|
-
};
|
package/openAllFiles.ps1
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
$files.Count
|
package/stats.json
DELETED