@buerli.io/headless 0.5.0-beta.2 → 0.5.0-beta.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.
@@ -7,11 +7,18 @@ export { solid, history, createPolyline };
7
7
  *
8
8
  * Please have a look at https://github.com/awv-informatik/buerli/pull/129 for more information.
9
9
  */
10
- import { ApiHistory as ApiHistory1, ConstraintType as ConstraintType1, Transform as Transform1, DimensionType as DimensionType1 } from './history';
10
+ import { ApiHistory as ApiHistory1, ConstraintType as ConstraintType1, Transform as Transform1, DimensionType as DimensionType1, FastenedOriginConstraintType as FastenedOriginConstraintType1, FastenedConstraintType as FastenedConstraintType1, RevoluteConstraintType as RevoluteConstraintType1, SliderConstraintType as SliderConstraintType1, PlanarConstraintType as PlanarConstraintType1, ParallelConstraintType as ParallelConstraintType1, CylindricalConstraintType as CylindricalConstraintType1 } from './history';
11
11
  export declare type ApiHistory = ApiHistory1;
12
12
  export declare type ConstraintType = ConstraintType1;
13
13
  export declare type Transform = Transform1;
14
14
  export declare type DimensionType = DimensionType1;
15
+ export declare type FastenedOriginConstraintType = FastenedOriginConstraintType1;
16
+ export declare type FastenedConstraintType = FastenedConstraintType1;
17
+ export declare type RevoluteConstraintType = RevoluteConstraintType1;
18
+ export declare type SliderConstraintType = SliderConstraintType1;
19
+ export declare type PlanarConstraintType = PlanarConstraintType1;
20
+ export declare type ParallelConstraintType = ParallelConstraintType1;
21
+ export declare type CylindricalConstraintType = CylindricalConstraintType1;
15
22
  import { ApiNoHistory as ApiNoHistory1, FilletPoint as FilletPoint1, Polyline as Polyline1 } from './solid';
16
23
  export declare type ApiNoHistory = ApiNoHistory1;
17
24
  export declare type Polyline = Polyline1;
@@ -96,12 +96,22 @@ export declare type ApiNoHistory = {
96
96
  */
97
97
  createBufferGeometry: (solidId: VID) => Promise<BufferGeometry | undefined>;
98
98
  /**
99
- * Creates ThreeJS scene from solid.
100
- * @param solidId id of the solid to create scene from
99
+ * Creates ThreeJS scene from the given solids.
100
+ * @param solids ids of the solids to create scene from
101
+ * @param options optional object to define different settings.
102
+ * @param meshPerGeometry boolean flag to define if the solids will have a mesh for each geometry element
103
+ * or if the geometries will be combined to one mesh
101
104
  * @example // tbd
102
105
  * @image // tbd
103
106
  */
104
- createScene: (solid: VID) => Promise<Scene>;
107
+ createScene: (solids: VID[], options?: {
108
+ meshPerGeometry?: boolean;
109
+ }) => Promise<{
110
+ scene: Scene;
111
+ part: THREE.Group;
112
+ solids: THREE.Group[];
113
+ meshes: THREE.Mesh[];
114
+ }>;
105
115
  /**
106
116
  * Creates a simple cylinder.
107
117
  * @param height height of the cylinder (z-axis)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buerli.io/headless",
3
- "version": "0.5.0-beta.2",
3
+ "version": "0.5.0-beta.4",
4
4
  "description": "A non-manifold CAD workflow for the web",
5
5
  "author": "AWV Informatik AG <info@awv-informatik.ch>",
6
6
  "license": "ISC",
@@ -30,7 +30,7 @@
30
30
  "three": ">=0.138"
31
31
  },
32
32
  "dependencies": {
33
- "@buerli.io/classcad": "0.5.0-beta.2",
33
+ "@buerli.io/classcad": "0.5.0-beta.4",
34
34
  "flat-promise": "^1.0.3"
35
35
  }
36
36
  }