Comparing version 0.0.25 to 0.0.26
{ | ||
"name": "web-ifc", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "ifc loading on the web", | ||
@@ -27,4 +27,4 @@ "main": "web-ifc-api.js", | ||
"release_publish": "npm run build-release && cd dist && npm publish", | ||
"build-wasm-debug": "em++ --bind -O3 -gsource-map -std=c++17 --source-map-base http://localhost:5000/web-ifc-js/wasm-lib/ -flto -fno-exceptions ./src/wasm/web-ifc-api.cpp -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -s ASSERTIONS=1 -s FORCE_FILESYSTEM=1 -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -s EXPORTED_RUNTIME_METHODS=[\"FS\"] -O3 -o dist/web-ifc.js", | ||
"build-wasm-release": "em++ --bind -O3 -std=c++17 -flto -fno-exceptions ./src/wasm/web-ifc-api.cpp -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -s FORCE_FILESYSTEM=1 -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -s EXPORTED_RUNTIME_METHODS=[\"FS\"] -O3 -o dist/web-ifc.js", | ||
"build-wasm-debug": "em++ --bind -O3 -gsource-map -std=c++17 --source-map-base http://localhost:5000/web-ifc-js/wasm-lib/ -flto -fno-exceptions./src/wasm/web-ifc-api.cpp -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -s ASSERTIONS=1 -s FORCE_FILESYSTEM=1 -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -s EXPORTED_RUNTIME_METHODS=[\"FS\"] -O3 -o dist/web-ifc.js", | ||
"build-wasm-release": "em++ --bind -O3 -std=c++17 -flto --define-macro=REAL_T_IS_DOUBLE -I ./src/wasm/deps/godot-csg/ -I ./src/wasm/deps/godot-csg/platform/javascript/ ./src/wasm/web-ifc-api.cpp ./src/wasm/deps/godot-csg/csg.cpp ./src/wasm/deps/godot-csg/core/math/aabb.cpp ./src/wasm/deps/godot-csg/core/math/basis.cpp ./src/wasm/deps/godot-csg/core/math/math_funcs.cpp ./src/wasm/deps/godot-csg/core/os/memory.cpp ./src/wasm/deps/godot-csg/core/os/mutex.cpp ./src/wasm/deps/godot-csg/thirdparty/misc/pcg.cpp ./src/wasm/deps/godot-csg/core/math/plane.cpp ./src/wasm/deps/godot-csg/core/math/quaternion.cpp ./src/wasm/deps/godot-csg/core/math/random_pcg.cpp ./src/wasm/deps/godot-csg/core/math/transform_3d.cpp ./src/wasm/deps/godot-csg/core/math/vector2.cpp ./src/wasm/deps/godot-csg/core/math/vector3.cpp -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -s FORCE_FILESYSTEM=1 -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -s EXPORTED_RUNTIME_METHODS=[\"FS\"] -O3 -o dist/web-ifc.js", | ||
"build-api": "cpy src/*.ts dist && npm run build-ts-api && npm run build-web-ifc-api-mjs && npm run build-web-ifc-api-node && npm run copy-to-dist", | ||
@@ -41,3 +41,5 @@ "build-ts-api": "tsc --emitDeclarationOnly && cpy dist/web-ifc-api.d.ts dist && cpy dist/web-ifc-api.d.ts dist --rename=web-ifc-api-node.d.ts", | ||
"docker-build": "docker build -t web-ifc .", | ||
"docker-run": "docker run --rm -p 3000:5000 --name web-ifc-container web-ifc" | ||
"docker-run": "npm run docker-run-container && npm run docker-get-compiled-files ", | ||
"docker-run-container": "docker run --rm -d -p 3000:5000 --name web-ifc-container web-ifc", | ||
"docker-get-compiled-files": "docker cp web-ifc-container:/web-ifc-app/dist ." | ||
}, | ||
@@ -57,9 +59,10 @@ "author": "tomvandig", | ||
"concurrently": "^6.2.0", | ||
"cpy": "^8.1.2", | ||
"cpy-cli": "^3.1.1", | ||
"esbuild": "^0.12.15", | ||
"monaco-editor": "^0.26.1", | ||
"npm-watch": "^0.10.0", | ||
"serve": "^12.0.0", | ||
"three": "^0.130.1", | ||
"typescript": "^4.3.5", | ||
"monaco-editor": "^0.26.1" | ||
"typescript": "^4.3.5" | ||
}, | ||
@@ -66,0 +69,0 @@ "browser": { |
@@ -58,2 +58,3 @@ export * from "./ifc2x4"; | ||
export declare function ms(): number; | ||
export declare type LocateFileHandlerFn = (path: string, prefix: string) => string; | ||
export declare class IfcAPI { | ||
@@ -63,6 +64,10 @@ wasmModule: undefined | any; | ||
wasmPath: string; | ||
ifcGuidMap: Map<number, Map<string | number, string | number>>; | ||
/** | ||
* Initializes the WASM module (WebIFCWasm), required before using any other functionality | ||
*/ | ||
Init(): Promise<void>; | ||
* Initializes the WASM module (WebIFCWasm), required before using any other functionality. | ||
* | ||
* @param customLocateFileHandler An optional locateFile function that let's | ||
* you override the path from which the wasm module is loaded. | ||
*/ | ||
Init(customLocateFileHandler?: LocateFileHandlerFn): Promise<void>; | ||
/** | ||
@@ -121,3 +126,9 @@ * Opens a model and returns a modelID number | ||
GetFlatMesh(modelID: number, expressID: number): FlatMesh; | ||
/** | ||
* Creates a map between element ExpressIDs and GlobalIDs. | ||
* Each element has two entries, (ExpressID -> GlobalID) and (GlobalID -> ExpressID). | ||
* @modelID Model handle retrieved by OpenModel | ||
*/ | ||
CreateIfcGuidToExpressIdMapping(modelID: number): void; | ||
SetWasmPath(path: string): void; | ||
} |
@@ -58,2 +58,3 @@ export * from "./ifc2x4"; | ||
export declare function ms(): number; | ||
export declare type LocateFileHandlerFn = (path: string, prefix: string) => string; | ||
export declare class IfcAPI { | ||
@@ -63,6 +64,10 @@ wasmModule: undefined | any; | ||
wasmPath: string; | ||
ifcGuidMap: Map<number, Map<string | number, string | number>>; | ||
/** | ||
* Initializes the WASM module (WebIFCWasm), required before using any other functionality | ||
*/ | ||
Init(): Promise<void>; | ||
* Initializes the WASM module (WebIFCWasm), required before using any other functionality. | ||
* | ||
* @param customLocateFileHandler An optional locateFile function that let's | ||
* you override the path from which the wasm module is loaded. | ||
*/ | ||
Init(customLocateFileHandler?: LocateFileHandlerFn): Promise<void>; | ||
/** | ||
@@ -121,3 +126,9 @@ * Opens a model and returns a modelID number | ||
GetFlatMesh(modelID: number, expressID: number): FlatMesh; | ||
/** | ||
* Creates a map between element ExpressIDs and GlobalIDs. | ||
* Each element has two entries, (ExpressID -> GlobalID) and (GlobalID -> ExpressID). | ||
* @modelID Model handle retrieved by OpenModel | ||
*/ | ||
CreateIfcGuidToExpressIdMapping(modelID: number): void; | ||
SetWasmPath(path: string): void; | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4447046
113508
10