@bldrs-ai/conway 0.8.750 → 0.8.782

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.
Files changed (61) hide show
  1. package/README.md +30 -31
  2. package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmNode.js +1 -1
  3. package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmWeb.js +1 -1
  4. package/compiled/dependencies/conway-geom/interface/conway_geometry.d.ts +19 -0
  5. package/compiled/dependencies/conway-geom/interface/conway_geometry.d.ts.map +1 -1
  6. package/compiled/dependencies/conway-geom/interface/conway_geometry.js +31 -0
  7. package/compiled/dependencies/conway-geom/interface/geometry_object.d.ts +4 -0
  8. package/compiled/dependencies/conway-geom/interface/geometry_object.d.ts.map +1 -1
  9. package/compiled/dependencies/conway-geom/interface/parameters/params_get_boolean_result.d.ts +1 -0
  10. package/compiled/dependencies/conway-geom/interface/parameters/params_get_boolean_result.d.ts.map +1 -1
  11. package/compiled/dependencies/conway-geom/interface/parse_buffer.d.ts +11 -0
  12. package/compiled/dependencies/conway-geom/interface/parse_buffer.d.ts.map +1 -0
  13. package/compiled/dependencies/conway-geom/interface/parse_buffer.js +1 -0
  14. package/compiled/src/AP214E3_2010/ap214_command_line_main.js +11 -13
  15. package/compiled/src/AP214E3_2010/ap214_geometry_extraction.js +0 -1
  16. package/compiled/src/AP214E3_2010/ap214_geometry_extraction.test.js +15 -13
  17. package/compiled/src/AP214E3_2010/ap214_step_model.d.ts.map +1 -1
  18. package/compiled/src/AP214E3_2010/ap214_step_model.test.js +12 -1
  19. package/compiled/src/AP214E3_2010/ap214_step_parser.d.ts.map +1 -1
  20. package/compiled/src/core/canonical_mesh.d.ts +1 -1
  21. package/compiled/src/core/canonical_mesh.d.ts.map +1 -1
  22. package/compiled/src/core/geometry_aggregator.test.js +7 -7
  23. package/compiled/src/core/packed_mesh.test.js +4 -4
  24. package/compiled/src/ifc/ifc_command_line_main.js +17 -16
  25. package/compiled/src/ifc/ifc_geometry_extraction.d.ts +6 -4
  26. package/compiled/src/ifc/ifc_geometry_extraction.d.ts.map +1 -1
  27. package/compiled/src/ifc/ifc_geometry_extraction.js +107 -102
  28. package/compiled/src/ifc/ifc_geometry_extraction.test.js +4 -4
  29. package/compiled/src/ifc/ifc_model_geometry.d.ts +4 -0
  30. package/compiled/src/ifc/ifc_model_geometry.d.ts.map +1 -1
  31. package/compiled/src/ifc/ifc_model_geometry.js +13 -0
  32. package/compiled/src/ifc/ifc_property_extraction.test.js +12 -1
  33. package/compiled/src/ifc/ifc_regression_main.js +5 -3
  34. package/compiled/src/ifc/ifc_scene_builder.test.js +11 -8
  35. package/compiled/src/ifc/ifc_step_model.d.ts +1 -0
  36. package/compiled/src/ifc/ifc_step_model.d.ts.map +1 -1
  37. package/compiled/src/ifc/ifc_step_model.js +1 -0
  38. package/compiled/src/ifc/ifc_step_model.test.js +12 -1
  39. package/compiled/src/ifc/ifc_step_parser.d.ts +1 -0
  40. package/compiled/src/ifc/ifc_step_parser.d.ts.map +1 -1
  41. package/compiled/src/ifc/ifc_step_parser.js +1 -0
  42. package/compiled/src/step/parsing/step_deserialization_functions.d.ts +1 -1
  43. package/compiled/src/step/parsing/step_deserialization_functions.d.ts.map +1 -1
  44. package/compiled/src/step/parsing/step_deserialization_functions.js +1 -1
  45. package/compiled/src/step/parsing/step_parser.d.ts +1 -1
  46. package/compiled/src/step/parsing/step_parser.d.ts.map +1 -1
  47. package/compiled/src/step/parsing/step_parser.js +3 -3
  48. package/compiled/src/step/parsing/step_vtable_builder.d.ts +4 -3
  49. package/compiled/src/step/parsing/step_vtable_builder.d.ts.map +1 -1
  50. package/compiled/src/step/parsing/step_vtable_builder.js +5 -4
  51. package/compiled/src/step/step_entity_base.d.ts +27 -2
  52. package/compiled/src/step/step_entity_base.d.ts.map +1 -1
  53. package/compiled/src/step/step_entity_base.js +77 -15
  54. package/compiled/src/step/step_entity_internal_reference.d.ts +1 -0
  55. package/compiled/src/step/step_entity_internal_reference.d.ts.map +1 -1
  56. package/compiled/src/step/step_external_mapping.test.js +12 -1
  57. package/compiled/src/step/step_model_base.d.ts.map +1 -1
  58. package/compiled/src/step/step_model_base.js +1 -0
  59. package/compiled/src/version/version.js +1 -1
  60. package/compiled/tsconfig.tsbuildinfo +1 -1
  61. package/package.json +8 -1
package/README.md CHANGED
@@ -8,52 +8,53 @@ Conway includes two major subcomponents:
8
8
 
9
9
  ## Getting Started
10
10
 
11
- ### Deps
12
- Conway generates a lot of code. To run code-generation, you'll need to install version 6.0 of the .NET framework.
11
+ ### Windows Setup
12
+ 1. [Install MinGW-64](https://github.com/msys2/msys2-installer/releases/download/2022-06-03/msys2-x86_64-20220603.exe) and add ```g++.exe``` location to your PATH variable.
13
13
 
14
- On a Ubuntu or Debian style distribution, you can install it like so:
15
- ```
16
- sudo apt-get update && \
17
- sudo apt-get install -y dotnet-sdk-6.0
18
- ```
14
+ ### MacOS Setup
19
15
 
20
- On macOS, it should be installable with brew using:
21
- ```
22
- brew install dotnet@6
23
- ```
16
+ 1. Install the `gmake` and `node` dependencies via Homebrew (```brew install gmake node```).
24
17
 
25
- ### Initial Build
26
-
27
- Clone the repository, then in the root directory of the repository, run the yarn install, followed by using yarn to initialise the IFC-gen submodule:
28
- ```
29
- # 1) Setup your EMSDK environment
30
- # 2) Make sure you're in main repo, not fork
31
- git pull # if you get an error about a submodule not found, run yarn submodule-update here and then pull again
32
- yarn install
33
- yarn submodule-update
18
+ ### EMSDK Setup
19
+ 1. [Install EMSDK](https://github.com/emscripten-core/emsdk). Install version 3.1.72 or higher. ```git checkout 3.1.72```
20
+ 2. Add EMSDK environment variable to your terminal.
21
+ - Windows: ```EMSDK=C:\path\to\emsdk```
22
+ - MacOS: ```export EMSDK=/path/to/emsdk```
34
23
 
35
- cd dependencies/conway-geom/dependencies/wasm/
36
- # Answer yes or all to replace files if they've already been unzipped before
37
- unzip dependencies.zip
38
- cd -
24
+ ### Initial Build
39
25
 
26
+ Clone the Conway repository, then in the root directory of the repository:
27
+ ```
28
+ # Make sure EMSDK environment is set up.
29
+ yarn setup
40
30
  yarn build
41
31
  yarn test
42
32
  ```
43
33
 
44
- ### Pulling in Updated Source Changes
45
- After this, you can build using either an incremental build (which will rebuild the typescript only and will lead to the fastest build times), a yarn build (will recompile the wasm module and build the typescript source), or a full rebuild, which will clean all build artefacts and perform code-gen, before running a build.
34
+ ### Example Uses
35
+ You can now load your IFC files. From the Conway root:
36
+ 1. ```yarn browser model.ifc```
37
+ 2. ```yarn validator model.ifc "IFCWINDOW.OverallHeight <= 1500"```
38
+
39
+ See the full example docs at [Browser.md](examples/Browser.md) and [Validator.md](examples/Validator.md)
46
40
 
47
- For the incremental build:
41
+ ## Development
42
+ Update your client with changes since your last sync:
48
43
  ```
49
- yarn build-incremental
44
+ git pull
45
+ yarn setup
50
46
  ```
51
47
 
52
- For the wasm / typescript build:
48
+ For the full build of both conway (TypeScript) and conway-geom (WASM subproject):
53
49
  ```
54
50
  yarn build
55
51
  ```
56
52
 
53
+ Build just conway, not conway-geom, e.g. for updating just the Conway API or tools:
54
+ ```
55
+ yarn build-incremental
56
+ ```
57
+
57
58
  For a full, clean rebuild:
58
59
  ```
59
60
  yarn build-rebuild
@@ -69,8 +70,6 @@ And finally, using the watch functionality, you can also have the code automatic
69
70
  yarn build-test-watch
70
71
  ```
71
72
 
72
- If you have Visual Studio Code, Conway also comes with a Visual Studio Code workspace to add IDE accessability to these features, and also let you edit the IFC-gen C# code in place.
73
-
74
73
  # Production NPM Build
75
74
  ```
76
75
  yarn test