bimplus-renderer 1.7.12 → 1.7.14

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.
@@ -0,0 +1,147 @@
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
+ // "bin/**/*.js",
7
+ "src/**/*.js",
8
+ "test/**/*.js",
9
+
10
+ // For testing only specific files/file
11
+ // "test/tests/AmbientOcclusionSettingsTests.js",
12
+ // "test/tests/BackgroundTests.js",
13
+ // "test/tests/BasicTests.js",
14
+ // "test/tests/ClashesTests.js",
15
+ // "test/tests/ClippingBoxTests.js",
16
+ // "test/tests/ClippingPlaneSettingsTests.js",
17
+ // "test/tests/ClippingPlaneSpotTests.js",
18
+ // "test/tests/ClippingPlaneTests.js",
19
+ // "test/tests/ColorizeTests.js",
20
+ // "test/tests/ContentLoaderGLBTests.js",
21
+ // "test/tests/DiagnosticTests.js",
22
+ // "test/tests/DisciplineNodeStoreTests.js",
23
+ // "test/tests/DivisionsTests.js",
24
+ // "test/tests/DrawRangeTests.js",
25
+ // "test/tests/FingerprintCursorTests.js",
26
+ // "test/tests/FileViewTests.js",
27
+ // "test/tests/GLTFLoaderTests.js",
28
+ // "test/tests/GPUPickerTests.js",
29
+ // "test/tests/HideObjectTests.js",
30
+ // "test/tests/HighlightObjectEdgesPollyTests.js",
31
+ // "test/tests/HighlightObjectEdgesTests.js",
32
+ // "test/tests/HoverObjectTests.js",
33
+ // "test/tests/LayersTests.js",
34
+ // "test/tests/LookupTextureTests.js",
35
+ // "test/tests/LookupTextureIndexCounterTests.js",
36
+ // "test/tests/MeshPartSearcher*.js",
37
+ // "test/tests/NavigationMapTests.js",
38
+ // "test/tests/ObjectPreviewTests.js",
39
+ // "test/tests/ObjectsContainerTests.js",
40
+ // "test/tests/OverlayPollyTests.js",
41
+ // "test/tests/OverlayTests.js",
42
+ // "test/tests/PinsTests.js",
43
+ // "test/tests/PollyProjectLoaderTests.js",
44
+ // "test/tests/ProjectContentTests.js",
45
+ // "test/tests/RendererTests.js",
46
+ // "test/tests/RevisionCompareTests.js",
47
+ // "test/tests/RevisionsTests.js",
48
+ // "test/tests/SceneTests.js",
49
+ // "test/tests/SectionCutGeneralTests.js",
50
+ // "test/tests/SectionCutTests.js",
51
+ // "test/tests/SelectionModeTests.js",
52
+ // "test/tests/SelectionTests.js",
53
+ // "test/tests/SlideTests.js",
54
+ // "test/tests/Viewport3dSunCalculationTests.js",
55
+ // "test/tests/Viewport3dTests.js",
56
+ // "test/tests/VisibilityTests.js",
57
+ // "test/tests/VisualObjectStoreTests.js",
58
+ // "test/tests/VisualObjectMeshDataTests.js",
59
+ // "test/tests/VisualObjectTests.js",
60
+ // "test/tests/IfcContentLoaderTests.js",
61
+
62
+ // "test/tests/commands/CommandAddToSetTests.js",
63
+ // "test/tests/commands/CommandColorizeTests.js",
64
+ // "test/tests/commands/CommandHoverTests.js",
65
+ // "test/tests/commands/CommandIsolateHideTests.js",
66
+ // "test/tests/commands/CommandSelectTests.js",
67
+
68
+ // "test/tests/connexis/ConnectionElementTests.js",
69
+
70
+ // "test/tests/parser/DisciplineNodeParserTests.js",
71
+ // "test/tests/parser/SharedGlbProcessorWorkerQueueTests.js",
72
+
73
+ // "test/tests/markups/AnnotationMaterialsTests.js",
74
+ // "test/tests/markups/AnnotationSettingsTests.js",
75
+ // "test/tests/markups/AnnotationTests.js",
76
+ // "test/tests/markups/DimensionAngleTests.js",
77
+ // "test/tests/markups/DimensionEdgeTests.js",
78
+ // "test/tests/markups/DimensionExtensionHelperLineTests.js",
79
+ // "test/tests/markups/DimensionAxesHelperLinesTests.js",
80
+ // "test/tests/markups/DimensionLineTests.js",
81
+ // "test/tests/markups/DimensionPerpendicularLineTests.js",
82
+ // "test/tests/markups/DimensionLocalPointTests.js",
83
+ // "test/tests/markups/DimensionCalibrationPointTests.js",
84
+ // "test/tests/markups/DimensionPointHelperTests.js",
85
+ // "test/tests/markups/DimensionSettingsTests.js",
86
+ // "test/tests/markups/DimensionSlopeTests.js",
87
+ // "test/tests/markups/DimensionTextCreatorTests.js",
88
+ // "test/tests/markups/LocalCoordSystemManagerTests.js",
89
+ // "test/tests/markups/MarkupBaseTests.js",
90
+ // "test/tests/markups/MarkupsContainerTests.js",
91
+ // "test/tests/markups/ObjectPropsTests.js",
92
+
93
+ // "test/tests/interactors/AnnotationInteractorTests*.js",
94
+ // "test/tests/interactors/LaserMeasurementInteractor*.js",
95
+ // "test/tests/interactors/LocalCoordSystemInteractorTests*.js",
96
+ // "test/tests/interactors/InteractorMouseMovePollyTests*.js",
97
+ // "test/tests/interactors/MarkupBaseInteractorTests*.js",
98
+ // "test/tests/interactors/MarkupNoInputInteractorTests*.js",
99
+ // "test/tests/interactors/MeasureAngleInteractorTests*.js",
100
+ // "test/tests/interactors/MeasureAutoEdgesInteractorTests*.js",
101
+ // "test/tests/interactors/MeasureEdgeInteractorTests*.js",
102
+ // "test/tests/interactors/MeasureFreeInteractorTests*.js",
103
+ // "test/tests/interactors/MeasurePerpendicularInteractorTests*.js",
104
+ // "test/tests/interactors/MeasureLocalPointInteractorTests*.js",
105
+ // "test/tests/interactors/MeasureCalibratedPointInteractorTests*.js",
106
+ // "test/tests/interactors/MoveModelInteractorTests*.js",
107
+ // "test/tests/interactors/ObjectPropsInteractorTests*.js",
108
+ // "test/tests/interactors/SectionPlaneInteractorTests*.js",
109
+ // "test/tests/interactors/SelectPointsForOverlayInteractorTests*.js",
110
+ // "test/tests/interactors/ViewportInteractorTests*.js",
111
+
112
+ // "test/tests/utils/AssertUtilsTests.js",
113
+ // "test/tests/utils/BoundingBoxTests.js",
114
+ // "test/tests/utils/CameraUtilsTests.js",
115
+ // "test/tests/utils/EventUtilsTests.js",
116
+ // "test/tests/utils/FrustumVisualizerTests.js",
117
+ // "test/tests/utils/GeometryUtilsTests.js",
118
+ // "test/tests/utils/GeometryUtilsViewportTests.js",
119
+ // "test/tests/utils/GlobalAxesVisualizerTests.js",
120
+ // "test/tests/utils/MeasureUtilsTests.js",
121
+ // "test/tests/utils/ParserUtilsTests.js",
122
+ // "test/tests/utils/RandomGeneratorTests.js",
123
+ // "test/tests/utils/SphereVisualizerTests.js",
124
+ // "test/tests/utils/SunCalculationTests.js",
125
+ // "test/tests/utils/TouchModeHelperTests.js",
126
+ // "test/tests/utils/ValueValidatorTests.js",
127
+
128
+ // "test/tests/frameSelection/FrameSelectionTests.js",
129
+ // "test/tests/frameSelection/FrameSelectionEventCheckerTests.js",
130
+ // "test/tests/frameSelection/EdgesFrustumCheckerTests.js",
131
+ // "test/tests/frameSelection/SelectionBoxTests.js",
132
+ // "test/tests/frameSelection/SelectionHelperTests.js",
133
+ // "test/tests/frameSelection/VerticesFrustumCheckerTests.js",
134
+
135
+ // "test/tests/viewControls/fileViewControlTests.js",
136
+ // "test/tests/viewControls/navigationMapViewControlTests.js",
137
+ // "test/tests/viewControls/orbitViewControlTests.js",
138
+ // "test/tests/viewControls/ViewControlTests.js",
139
+
140
+ // "test/tests/viewers/ProjectViewerTests.js",
141
+ // "test/tests/viewers/ViewStateBuilderTests.js",
142
+
143
+ // "test/performance/CommandColorizeTests.js",
144
+ // "test/performance/DisciplineNodeStoreTests.js",
145
+ // "test/performance/ObjectsContainerTests.js",
146
+ ],
147
+ };
@@ -0,0 +1,66 @@
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
+ }
@@ -0,0 +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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimplus-renderer",
3
- "version": "1.7.12",
3
+ "version": "1.7.14",
4
4
  "description": "bim+ renderer",
5
5
  "types": "types/bimplus-renderer.d.ts",
6
6
  "keywords": [
@@ -27,15 +27,16 @@
27
27
  "build-prod": "npm run build-worker-prod && npm run eslint && webpack --config webpack.prod.js && npm run copy-wasm",
28
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
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
- "yarn-publish": "npm run build-prod && yarn publish",
31
- "yarn-publish-rc": "npm run build-prod && yarn publish --tag rc",
32
- "yarn-publish-branch": "npm run build-prod && yarn publish --tag",
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",
33
34
  "npm-pack": "npm run build-prod && npm pack",
34
35
  "lint-doc": "documentation lint ./src/*.js ./src/*/*.js --shallow ",
35
- "build-doc": "yarn lint-doc && documentation build ./src/*.js ./src/*/*.js -f html --shallow --sort-order alpha -o ./documentation --config doc_config.yml",
36
- "build-docMd": "yarn lint-doc && documentation build ./src/*.js ./src/*/*.js -f md --shallow --sort-order alpha -o ./documentation/Bimplus_Renderer_doc.md",
37
- "build-docConf": "yarn build-docMd && cd ./documentation && python convert_to_confluence_md.py",
38
- "build-docAll": "yarn build-doc && yarn build-docConf",
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",
39
40
  "// TEST ": "Scripts starting test runs",
40
41
  "test": "npm-run-all -p -r test-polly-listen-task test-karma-task",
41
42
  "test-watch": "npm-run-all -p -r test-polly-listen-task test-watch--browser-task",
@@ -65,9 +66,9 @@
65
66
  "eslint-lls": "eslint 'src/**/*.js' 'test/**'",
66
67
  "build-lls": "npm run build-worker-dev && npm run eslint-lls && webpack --config webpack.dev.js && npm run copy-wasm-lls",
67
68
  "build-prod-lls": "npm run build-worker-prod && npm run eslint-lls && webpack --config webpack.prod.js && npm run copy-wasm-lls",
68
- "yarn-publish-lls": "npm run build-prod-lls && yarn publish",
69
- "yarn-publish-rc-lls": "npm run build-prod-lls && yarn publish --tag rc",
70
- "yarn-publish-branch-lls": "npm run build-prod-lls && yarn publish --tag",
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",
71
72
  "npm-pack-lls": "npm run build-prod-lls && npm pack",
72
73
  "copy-wasm-lls": "cpy './src/wasm/*.wasm' ./dist/",
73
74
  "// DDT TESTS ": "Scripts for starting modelviewer-data-driven-tests",