@snaptrude/plugin-core 0.2.2 → 0.2.4

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 (57) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/index.cjs +17 -2
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.js +15 -2
  5. package/dist/index.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/api/entity/space.ts +120 -12
  8. package/dist/api/core/geom/arc.d.ts +0 -81
  9. package/dist/api/core/geom/arc.d.ts.map +0 -1
  10. package/dist/api/core/geom/curve.d.ts +0 -70
  11. package/dist/api/core/geom/curve.d.ts.map +0 -1
  12. package/dist/api/core/geom/index.d.ts +0 -32
  13. package/dist/api/core/geom/index.d.ts.map +0 -1
  14. package/dist/api/core/geom/line.d.ts +0 -56
  15. package/dist/api/core/geom/line.d.ts.map +0 -1
  16. package/dist/api/core/geom/profile.d.ts +0 -121
  17. package/dist/api/core/geom/profile.d.ts.map +0 -1
  18. package/dist/api/core/index.d.ts +0 -18
  19. package/dist/api/core/index.d.ts.map +0 -1
  20. package/dist/api/core/math/index.d.ts +0 -18
  21. package/dist/api/core/math/index.d.ts.map +0 -1
  22. package/dist/api/core/math/quat.d.ts +0 -187
  23. package/dist/api/core/math/quat.d.ts.map +0 -1
  24. package/dist/api/core/math/vec3.d.ts +0 -156
  25. package/dist/api/core/math/vec3.d.ts.map +0 -1
  26. package/dist/api/entity/buildableEnvelope.d.ts +0 -233
  27. package/dist/api/entity/buildableEnvelope.d.ts.map +0 -1
  28. package/dist/api/entity/department.d.ts +0 -99
  29. package/dist/api/entity/department.d.ts.map +0 -1
  30. package/dist/api/entity/index.d.ts +0 -33
  31. package/dist/api/entity/index.d.ts.map +0 -1
  32. package/dist/api/entity/referenceLine.d.ts +0 -259
  33. package/dist/api/entity/referenceLine.d.ts.map +0 -1
  34. package/dist/api/entity/space.d.ts +0 -613
  35. package/dist/api/entity/space.d.ts.map +0 -1
  36. package/dist/api/entity/story.d.ts +0 -239
  37. package/dist/api/entity/story.d.ts.map +0 -1
  38. package/dist/api/index.d.ts +0 -30
  39. package/dist/api/index.d.ts.map +0 -1
  40. package/dist/api/tools/copy.d.ts +0 -59
  41. package/dist/api/tools/copy.d.ts.map +0 -1
  42. package/dist/api/tools/index.d.ts +0 -29
  43. package/dist/api/tools/index.d.ts.map +0 -1
  44. package/dist/api/tools/offset.d.ts +0 -43
  45. package/dist/api/tools/offset.d.ts.map +0 -1
  46. package/dist/api/tools/selection.d.ts +0 -48
  47. package/dist/api/tools/selection.d.ts.map +0 -1
  48. package/dist/api/tools/transform.d.ts +0 -114
  49. package/dist/api/tools/transform.d.ts.map +0 -1
  50. package/dist/api/units/index.d.ts +0 -163
  51. package/dist/api/units/index.d.ts.map +0 -1
  52. package/dist/host-utils.d.ts +0 -41
  53. package/dist/host-utils.d.ts.map +0 -1
  54. package/dist/index.d.ts +0 -4
  55. package/dist/index.d.ts.map +0 -1
  56. package/dist/types.d.ts +0 -16
  57. package/dist/types.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @snaptrude/plugin-core
2
2
 
3
+ ## 0.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Add inner profile hole support to space creation from profiles.
8
+
9
+ ## 0.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 647466b: fixed merge issues
14
+
3
15
  ## 0.2.2
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -92,6 +92,8 @@ __export(index_exports, {
92
92
  PluginSpaceGetResult: () => PluginSpaceGetResult,
93
93
  PluginSpaceType: () => PluginSpaceType,
94
94
  PluginSpaceUpdateArgs: () => PluginSpaceUpdateArgs,
95
+ PluginSpaceUpdateGeometryFromProfileArgs: () => PluginSpaceUpdateGeometryFromProfileArgs,
96
+ PluginSpaceUpdateGeometryFromProfileResult: () => PluginSpaceUpdateGeometryFromProfileResult,
95
97
  PluginSpaceUpdateResult: () => PluginSpaceUpdateResult,
96
98
  PluginStoryApi: () => PluginStoryApi,
97
99
  PluginStoryCreateArgs: () => PluginStoryCreateArgs,
@@ -836,12 +838,21 @@ var PluginSpaceCreateRectangularResult = z10.object({
836
838
  });
837
839
  var PluginSpaceCreateFromProfileArgs = z10.object({
838
840
  profile: PProfile,
841
+ innerProfiles: z10.array(PProfile).optional(),
839
842
  extrudeHeight: z10.number(),
840
843
  position: PVec3
841
844
  });
842
845
  var PluginSpaceCreateFromProfileResult = z10.object({
843
846
  spaceId: z10.string()
844
847
  });
848
+ var PluginSpaceUpdateGeometryFromProfileArgs = z10.object({
849
+ spaceId: z10.string(),
850
+ profile: PProfile,
851
+ extrudeHeight: z10.number()
852
+ });
853
+ var PluginSpaceUpdateGeometryFromProfileResult = z10.object({
854
+ spaceId: z10.string()
855
+ });
845
856
  var PluginSpaceGetProperty = z10.enum([
846
857
  // Basic
847
858
  "id",
@@ -865,7 +876,8 @@ var PluginSpaceGetProperty = z10.enum([
865
876
  "rotation",
866
877
  "rotationQuaternion",
867
878
  // Derived from brep
868
- "planPoints"
879
+ "planPoints",
880
+ "profile"
869
881
  ]);
870
882
  var PluginSpaceGetArgs = z10.object({
871
883
  spaceId: z10.string(),
@@ -906,7 +918,8 @@ var PluginSpaceGetResult = z10.object({
906
918
  rotation: PVec3,
907
919
  rotationQuaternion: PQuat.nullable(),
908
920
  // Derived from brep
909
- planPoints: z10.array(PVec3)
921
+ planPoints: z10.array(PVec3),
922
+ profile: PProfile
910
923
  }).partial();
911
924
  var PluginSpaceGetAllResult = z10.object({
912
925
  spacesIds: z10.array(z10.string())
@@ -1176,6 +1189,8 @@ var PluginApi = class {
1176
1189
  PluginSpaceGetResult,
1177
1190
  PluginSpaceType,
1178
1191
  PluginSpaceUpdateArgs,
1192
+ PluginSpaceUpdateGeometryFromProfileArgs,
1193
+ PluginSpaceUpdateGeometryFromProfileResult,
1179
1194
  PluginSpaceUpdateResult,
1180
1195
  PluginStoryApi,
1181
1196
  PluginStoryCreateArgs,