Comparing version 0.0.44 to 0.0.45
@@ -6,7 +6,6 @@ /** | ||
export declare enum LogLevel { | ||
LOG_LEVEL_DEBUG = 0, | ||
LOG_LEVEL_INFO = 1, | ||
LOG_LEVEL_WARN = 2, | ||
LOG_LEVEL_ERROR = 3, | ||
LOG_LEVEL_OFF = 4 | ||
LOG_LEVEL_DEBUG = 1, | ||
LOG_LEVEL_WARN = 3, | ||
LOG_LEVEL_ERROR = 4, | ||
LOG_LEVEL_OFF = 6 | ||
} | ||
@@ -18,5 +17,4 @@ export declare abstract class Log { | ||
static debug(msg: string, ...args: any[]): void; | ||
static info(msg: string, ...args: any[]): void; | ||
static warn(msg: string, ...args: any[]): void; | ||
static error(msg: string, ...args: any[]): void; | ||
} |
{ | ||
"name": "web-ifc", | ||
"version": "0.0.44", | ||
"version": "0.0.45", | ||
"description": "ifc loading on the web", | ||
@@ -50,3 +50,3 @@ "module": "./web-ifc-api.js", | ||
"serve-viewer": "npm run build-viewer && cd examples/viewer/ && npm run start", | ||
"dev": "npm run build-viewer && concurrently --kill-others \"npm-watch\" \"cd examples/viewer && npm run start\"", | ||
"dev": "npm run build-viewer && cd examples/viewer && npm run start", | ||
"docker-build": "docker build -t web-ifc .", | ||
@@ -57,10 +57,11 @@ "docker-run": "npm run docker-run-container && npm run docker-get-compiled-files ", | ||
"postversion": "node src/setversion.js", | ||
"benchmark": "ts-node ./tests/benchmark/benchmark.ts", | ||
"regression": "node --max-old-space-size=4096 ./tests/regression/regression.mjs", | ||
"regression-update": "node --max-old-space-size=4096 ./tests/regression/regression.mjs update", | ||
"test": "jest --runInBand ", | ||
"test:unit": "jest --runInBand --testMatch['**/tests/unit/**/*.spec.ts']", | ||
"test:functional": "jest --runInBand --testMatch['**/tests/functional/**/*.spec.ts']", | ||
"regression-test-build": "esbuild tests/regression/src/index.js --bundle --sourcemap --platform=node --outfile=tests/regression/dist/test.js && cd tests/regression && cpy public/*.html dist/ --flat && cpy ../../dist/web-ifc.wasm dist/web-ifc.wasm && cpy ../../dist/web-ifc.js dist/web-ifc.js && cpy ../../dist/web-ifc-mt.wasm dist/web-ifc-mt.wasm && cpy ../../dist/web-ifc-mt.worker.js dist/web-ifc-mt-worker.js && cpy ../../dist/web-ifc-mt.js dist/web-ifc-mt.js", | ||
"regression-test": "npm run regression-test-build && cd tests/regression/dist && ws -p 8080 --cors.opener-policy same-origin --cors.embedder-policy require-corp", | ||
"gen-docs": "typedoc --out dist/docs && cpy ./banner.png ./dist/docs" | ||
}, | ||
"author": "tomvandig", | ||
"author": "web-ifc", | ||
"files": [ | ||
@@ -71,3 +72,2 @@ "web-ifc.wasm", | ||
"web-ifc-api-node.js", | ||
"web-ifc-api-node.mjs", | ||
"web-ifc-api-node.d.ts", | ||
@@ -82,17 +82,15 @@ "web-ifc-api.js", | ||
"devDependencies": { | ||
"@types/jest": "^27.0.3", | ||
"@types/three": "^0.130.1", | ||
"concurrently": "^6.2.0", | ||
"@types/three": "^0.156.0", | ||
"adm-zip": "^0.5.10", | ||
"cpy-cli": "^4.2.0", | ||
"esbuild": "^0.12.15", | ||
"jest": "^27.4.2", | ||
"local-web-server": "^5.2.1", | ||
"make-dir-cli": "^3.0.0", | ||
"npm-watch": "^0.10.0", | ||
"rimraf": "^5.0.0", | ||
"three": "^0.130.1", | ||
"three": "^0.157.0", | ||
"ts-jest": "^27.0.7", | ||
"ts-node": "^10.9.1", | ||
"typedoc": "^0.23.25", | ||
"typescript": "^4.7.0" | ||
"typescript": "^4.7.0", | ||
"vblob": "^1.1.0" | ||
}, | ||
@@ -103,6 +101,3 @@ "browser": { | ||
"fs": false | ||
}, | ||
"dependencies": { | ||
"web-ifc": "^0.0.43" | ||
} | ||
} |
@@ -15,4 +15,2 @@ <p align="center"> | ||
<a href="https://www.npmjs.com/package/web-ifc">npm package</a> | ||
| | ||
<a href="https://airtable.com/appolsrsBWel2m6wr/shr4ybI6JOeHJEqkG">roadmap</a> | ||
</p> | ||
@@ -66,3 +64,3 @@ | ||
The current live build of web-ifc is avaialble [here](https://ifcjs.github.io/web-ifc/build.zip). Using this allows you to test newest fixes before we make a release. If you wish to use this version then download the zip file and place the contents of the dist folder manually into your node_modules/web-ifc folder. I.e if you are using web-ifc-three then it will be node_modules/web-ifc-three/node_modules/web-ifc. Please not you must replace the javascript and the WASM. | ||
The current live build of web-ifc is avaialble [here](https://ifcjs.github.io/web-ifc/build.zip). Using this allows you to test newest fixes before we make a release. If you wish to use this version then download the zip file and place the contents of the dist folder manually into your node_modules/web-ifc folder. I.e if you are using web-ifc-three then it will be node_modules/web-ifc-three/node_modules/web-ifc. Please note you must replace the javascript and the WASM. | ||
@@ -78,2 +76,8 @@ ## Requirements | ||
## Regression Testing | ||
We have a library of test models in the tests/public folder. If you have a model you would like to contribute please open a PR. | ||
You can run regression tests on all these models by running `npm run regression`. It will alert you if any of the sample model geometry has changed. If the change is correct you can refresh the regression tests by running `npm run regression-update`. | ||
## Building WASM module | ||
@@ -105,2 +109,2 @@ | ||
[npm-url]: https://www.npmjs.com/package/web-ifc | ||
[npm-downloads]: https://img.shields.io/npm/dw/web-ifc | ||
[npm-downloads]: https://img.shields.io/npm/dw/web-ifc |
@@ -84,8 +84,2 @@ /** | ||
} | ||
export interface LoaderError { | ||
type: string; | ||
message: string; | ||
expressID: number; | ||
ifcType: number; | ||
} | ||
export interface IfcGeometry { | ||
@@ -224,4 +218,5 @@ GetVertexData(): number; | ||
* @returns Vector containing the list of errors | ||
* @deprecated Log level will not directly effect the logging of errors | ||
*/ | ||
GetAndClearErrors(modelID: number): Vector<LoaderError>; | ||
GetAndClearErrors(_: number): Vector<any>; | ||
/** | ||
@@ -276,3 +271,3 @@ * Creates a new ifc entity | ||
* @param modelID Model handle retrieved by OpenModel | ||
* @param lineObject line object to write | ||
* @param lineObject array of line object to write | ||
*/ | ||
@@ -306,2 +301,8 @@ WriteLines<Type extends IfcLineObject>(modelID: number, lineObjects: Array<Type>): void; | ||
/** | ||
* Writes lines in the model | ||
* @param modelID Model handle retrieved by OpenModel | ||
* @param an array of RawLineData containing the ID, type and arguments of the line | ||
*/ | ||
WriteRawLinesData(modelID: number, data: Array<RawLineData>): void; | ||
/** | ||
* Get all line IDs of a specific ifc type | ||
@@ -308,0 +309,0 @@ * @param modelID model ID |
@@ -84,8 +84,2 @@ /** | ||
} | ||
export interface LoaderError { | ||
type: string; | ||
message: string; | ||
expressID: number; | ||
ifcType: number; | ||
} | ||
export interface IfcGeometry { | ||
@@ -224,4 +218,5 @@ GetVertexData(): number; | ||
* @returns Vector containing the list of errors | ||
* @deprecated Log level will not directly effect the logging of errors | ||
*/ | ||
GetAndClearErrors(modelID: number): Vector<LoaderError>; | ||
GetAndClearErrors(_: number): Vector<any>; | ||
/** | ||
@@ -276,3 +271,3 @@ * Creates a new ifc entity | ||
* @param modelID Model handle retrieved by OpenModel | ||
* @param lineObject line object to write | ||
* @param lineObject array of line object to write | ||
*/ | ||
@@ -306,2 +301,8 @@ WriteLines<Type extends IfcLineObject>(modelID: number, lineObjects: Array<Type>): void; | ||
/** | ||
* Writes lines in the model | ||
* @param modelID Model handle retrieved by OpenModel | ||
* @param an array of RawLineData containing the ID, type and arguments of the line | ||
*/ | ||
WriteRawLinesData(modelID: number, data: Array<RawLineData>): void; | ||
/** | ||
* Get all line IDs of a specific ifc type | ||
@@ -308,0 +309,0 @@ * @param modelID model ID |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15690685
0
13
39230
107
0
- Removedweb-ifc@^0.0.43
- Removedweb-ifc@0.0.43(transitive)