@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.
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +17 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/entity/space.ts +120 -12
- package/dist/api/core/geom/arc.d.ts +0 -81
- package/dist/api/core/geom/arc.d.ts.map +0 -1
- package/dist/api/core/geom/curve.d.ts +0 -70
- package/dist/api/core/geom/curve.d.ts.map +0 -1
- package/dist/api/core/geom/index.d.ts +0 -32
- package/dist/api/core/geom/index.d.ts.map +0 -1
- package/dist/api/core/geom/line.d.ts +0 -56
- package/dist/api/core/geom/line.d.ts.map +0 -1
- package/dist/api/core/geom/profile.d.ts +0 -121
- package/dist/api/core/geom/profile.d.ts.map +0 -1
- package/dist/api/core/index.d.ts +0 -18
- package/dist/api/core/index.d.ts.map +0 -1
- package/dist/api/core/math/index.d.ts +0 -18
- package/dist/api/core/math/index.d.ts.map +0 -1
- package/dist/api/core/math/quat.d.ts +0 -187
- package/dist/api/core/math/quat.d.ts.map +0 -1
- package/dist/api/core/math/vec3.d.ts +0 -156
- package/dist/api/core/math/vec3.d.ts.map +0 -1
- package/dist/api/entity/buildableEnvelope.d.ts +0 -233
- package/dist/api/entity/buildableEnvelope.d.ts.map +0 -1
- package/dist/api/entity/department.d.ts +0 -99
- package/dist/api/entity/department.d.ts.map +0 -1
- package/dist/api/entity/index.d.ts +0 -33
- package/dist/api/entity/index.d.ts.map +0 -1
- package/dist/api/entity/referenceLine.d.ts +0 -259
- package/dist/api/entity/referenceLine.d.ts.map +0 -1
- package/dist/api/entity/space.d.ts +0 -613
- package/dist/api/entity/space.d.ts.map +0 -1
- package/dist/api/entity/story.d.ts +0 -239
- package/dist/api/entity/story.d.ts.map +0 -1
- package/dist/api/index.d.ts +0 -30
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/tools/copy.d.ts +0 -59
- package/dist/api/tools/copy.d.ts.map +0 -1
- package/dist/api/tools/index.d.ts +0 -29
- package/dist/api/tools/index.d.ts.map +0 -1
- package/dist/api/tools/offset.d.ts +0 -43
- package/dist/api/tools/offset.d.ts.map +0 -1
- package/dist/api/tools/selection.d.ts +0 -48
- package/dist/api/tools/selection.d.ts.map +0 -1
- package/dist/api/tools/transform.d.ts +0 -114
- package/dist/api/tools/transform.d.ts.map +0 -1
- package/dist/api/units/index.d.ts +0 -163
- package/dist/api/units/index.d.ts.map +0 -1
- package/dist/host-utils.d.ts +0 -41
- package/dist/host-utils.d.ts.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/types.d.ts +0 -16
- package/dist/types.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
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,
|