@bldrs-ai/conway 0.8.750 → 0.9.789

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 +35 -29
  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 +9 -2
package/README.md CHANGED
@@ -8,52 +8,60 @@ 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:
16
+ 1. Install the `gmake` and `node` dependencies via Homebrew (```brew install gmake node```).
17
+
18
+ ### EMSDK Setup
19
+ 1. Clone the [EMSDK](https://github.com/emscripten-core/emsdk) repo and add it to your path (see their instructions)
20
+ 2. Conway is using `3.1.72`
21
21
  ```
22
- brew install dotnet@6
22
+ > cd $EMSDK
23
+ > ./emsdk install 3.1.72
24
+ > ./emsdk activate 3.1.72
25
+ > cd $CONWAY
26
+ conway> emcc -v
27
+ emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.72 (437140d149d9c977ffc8b09dbaf9b0f5a02db190)
28
+ ...
23
29
  ```
24
30
 
25
31
  ### 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
34
-
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 -
39
32
 
33
+ Clone the Conway repository, then in the root directory of the repository:
34
+ ```
35
+ # Make sure EMSDK environment is set up.
36
+ yarn setup
40
37
  yarn build
41
38
  yarn test
42
39
  ```
43
40
 
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.
41
+ ### Example Uses
42
+ You can now load your IFC files. From the Conway root:
43
+ 1. ```yarn browser model.ifc```
44
+ 2. ```yarn validator model.ifc "IFCWINDOW.OverallHeight <= 1500"```
46
45
 
47
- For the incremental build:
46
+ See the full example docs at [Browser.md](examples/Browser.md) and [Validator.md](examples/Validator.md)
47
+
48
+ ## Development
49
+ Update your client with changes since your last sync:
48
50
  ```
49
- yarn build-incremental
51
+ git pull
52
+ yarn setup
50
53
  ```
51
54
 
52
- For the wasm / typescript build:
55
+ For the full build of both conway (TypeScript) and conway-geom (WASM subproject):
53
56
  ```
54
57
  yarn build
55
58
  ```
56
59
 
60
+ Build just conway, not conway-geom, e.g. for updating just the Conway API or tools:
61
+ ```
62
+ yarn build-incremental
63
+ ```
64
+
57
65
  For a full, clean rebuild:
58
66
  ```
59
67
  yarn build-rebuild
@@ -69,8 +77,6 @@ And finally, using the watch functionality, you can also have the code automatic
69
77
  yarn build-test-watch
70
78
  ```
71
79
 
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
80
  # Production NPM Build
75
81
  ```
76
82
  yarn test