Comparing version 0.0.12 to 0.0.13
{ | ||
"name": "web-ifc", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "ifc loading on the web", | ||
@@ -5,0 +5,0 @@ "main": "web-ifc-api.js", |
@@ -13,6 +13,2 @@ # web-ifc | ||
## Installing the library as a C++ dependency | ||
The library is header only, the files in `web-ifc-cpp` can be trivially included in any project. The library depends on [GLM](https://github.com/g-truc/glm) and [earcut](https://github.com/mapbox/earcut.hpp). | ||
## Using the library | ||
@@ -25,3 +21,2 @@ | ||
```JavaScript | ||
const WebIFCWasm = require("web-ifc/web-ifc.js"); | ||
const WebIFC = require("web-ifc/web-ifc-api.js"); | ||
@@ -32,4 +27,4 @@ | ||
// load model data as a string | ||
await ifcApi.InjectWasmModule(WebIFCWasm); | ||
// initialize the library | ||
await ifcApi.Init(); | ||
@@ -66,1 +61,5 @@ // open a model from data | ||
Compiling the library to a standalone executable requires use of CMAKE. For visual studio code, the easiest way is by installing [cmake-tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools). | ||
## Using the library as a C++ dependency | ||
The library is header only, the files in `web-ifc-cpp` can be trivially included in any project. The library depends on [GLM](https://github.com/g-truc/glm) and [earcut](https://github.com/mapbox/earcut.hpp). |
@@ -31,3 +31,3 @@ export interface Vector<T> { | ||
*/ | ||
InjectWasmModule(WebIFCWasm: any): Promise<void>; | ||
Init(): Promise<void>; | ||
/** | ||
@@ -34,0 +34,0 @@ * Opens a model and returns a modelID number |
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
619447
5358
61
3
11