opengeometry 2.0.2 → 2.0.3
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/README.md +1 -1
- package/index.d.ts +12 -0
- package/index.js +683 -283
- package/index.js.map +1 -1
- package/opengeometry/pkg/opengeometry.d.ts +207 -197
- package/opengeometry/pkg/opengeometry.js +76 -14
- package/opengeometry/pkg/opengeometry_bg.wasm +0 -0
- package/opengeometry/pkg/opengeometry_bg.wasm.d.ts +202 -197
- package/opengeometry_bg.wasm +0 -0
- package/opengeometry_bg.wasm.d.ts +202 -197
- package/package.json +1 -1
- package/src/base-types.d.ts +7 -1
- package/src/editor/freeform.d.ts +63 -0
- package/src/editor/index.d.ts +3 -0
- package/src/editor/parametric.d.ts +10 -0
- package/src/editor/types.d.ts +72 -0
- package/src/freeform/geometry.d.ts +59 -0
- package/src/freeform/index.d.ts +3 -0
- package/src/freeform/types.d.ts +12 -0
- package/src/operations/boolean.d.ts +15 -0
- package/src/operations/extrude.d.ts +9 -0
- package/src/operations/index.d.ts +1 -0
- package/src/primitives/arc.d.ts +15 -0
- package/src/primitives/curve.d.ts +18 -0
- package/src/primitives/line.d.ts +15 -0
- package/src/primitives/polyline.d.ts +18 -0
- package/src/primitives/rectangle.d.ts +18 -0
- package/src/shapes/boolean-subtract.d.ts +9 -0
- package/src/shapes/cuboid.d.ts +15 -0
- package/src/shapes/cylinder.d.ts +15 -0
- package/src/shapes/extrusion.d.ts +64 -0
- package/src/shapes/index.d.ts +1 -0
- package/src/shapes/opening.d.ts +15 -0
- package/src/shapes/outline-utils.d.ts +21 -0
- package/src/shapes/polygon.d.ts +30 -3
- package/src/shapes/solid.d.ts +111 -0
- package/src/shapes/sphere.d.ts +15 -0
- package/src/shapes/sweep.d.ts +15 -0
- package/src/shapes/wedge.d.ts +15 -0
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
-
> **Actively
|
|
27
|
+
> **Actively maintained and growing.** We're building OpenGeometry in the open. APIs, examples, and package structure are evolving, we are actively improving and expanding the project. Star the repo to follow along. If you have questions or want to get involved, join the [Discord](https://discord.com/invite/cZY2Vm6E) or check out the [issues](https://github.com/OpenGeometry-io/OpenGeometry/issues)
|
|
28
28
|
|
|
29
29
|
---
|
|
30
30
|
|
package/index.d.ts
CHANGED
|
@@ -6,18 +6,30 @@ import { OGSceneManager, Vector3 } from "./opengeometry/pkg/opengeometry.js";
|
|
|
6
6
|
import { SpotLabel } from "./src/markup/spotMarker.js";
|
|
7
7
|
import { OpenGeometryOptions } from "./src/base-types.js";
|
|
8
8
|
export type OUTLINE_TYPE = "front" | "side" | "top";
|
|
9
|
+
/**
|
|
10
|
+
* Binary STL export payload returned by export helpers.
|
|
11
|
+
*/
|
|
9
12
|
export interface OGStlExportResult {
|
|
10
13
|
bytes: Uint8Array;
|
|
11
14
|
reportJson: string;
|
|
12
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* STEP text export payload returned by export helpers.
|
|
18
|
+
*/
|
|
13
19
|
export interface OGStepExportResult {
|
|
14
20
|
text: string;
|
|
15
21
|
reportJson: string;
|
|
16
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* IFC text export payload returned by export helpers.
|
|
25
|
+
*/
|
|
17
26
|
export interface OGIfcExportResult {
|
|
18
27
|
text: string;
|
|
19
28
|
reportJson: string;
|
|
20
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Shared runtime entrypoint used to initialize the OpenGeometry wasm module.
|
|
32
|
+
*/
|
|
21
33
|
export declare class OpenGeometry {
|
|
22
34
|
static version: string;
|
|
23
35
|
static instance: OpenGeometry | null;
|