@buerli.io/headless 0.13.1-beta.9 → 1.0.0
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 +24 -26
- package/build/cjs/history.js +2308 -2308
- package/build/cjs/index.js +36 -36
- package/build/cjs/solid.js +479 -479
- package/build/cjs/utils/meshes.js +24 -24
- package/build/cjs/utils/selection.js +32 -32
- package/build/esm/history.js +2303 -2303
- package/build/esm/index.js +8 -8
- package/build/esm/solid.js +473 -473
- package/build/esm/utils/meshes.js +20 -20
- package/build/esm/utils/selection.js +25 -25
- package/build/types/history.d.ts +1852 -1852
- package/build/types/index.d.ts +29 -29
- package/build/types/solid.d.ts +524 -524
- package/build/types/utils/meshes.d.ts +14 -14
- package/build/types/utils/selection.d.ts +4 -4
- package/package.json +2 -2
- package/CHANGELOG.md +0 -38
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ContainerGeometryT, MeshGeometry } from '@buerli.io/core';
|
|
2
|
-
import { Color } from 'three';
|
|
3
|
-
declare type ColorMeshMap = Record<string, {
|
|
4
|
-
meshes: MeshGeometry[];
|
|
5
|
-
color: Color | undefined;
|
|
6
|
-
opacity: number;
|
|
7
|
-
}>;
|
|
8
|
-
/**
|
|
9
|
-
* Get all meshes in a map, sorted by their color / opacity
|
|
10
|
-
* @param entity entity to look for the meshes
|
|
11
|
-
* @returns map (key = color/opacity as string, value = object containing the meshes, color and opacity)
|
|
12
|
-
*/
|
|
13
|
-
export declare const getDifferentColoredMeshesFromEntity: (entity: ContainerGeometryT) => ColorMeshMap;
|
|
14
|
-
export {};
|
|
1
|
+
import { ContainerGeometryT, MeshGeometry } from '@buerli.io/core';
|
|
2
|
+
import { Color } from 'three';
|
|
3
|
+
declare type ColorMeshMap = Record<string, {
|
|
4
|
+
meshes: MeshGeometry[];
|
|
5
|
+
color: Color | undefined;
|
|
6
|
+
opacity: number;
|
|
7
|
+
}>;
|
|
8
|
+
/**
|
|
9
|
+
* Get all meshes in a map, sorted by their color / opacity
|
|
10
|
+
* @param entity entity to look for the meshes
|
|
11
|
+
* @returns map (key = color/opacity as string, value = object containing the meshes, color and opacity)
|
|
12
|
+
*/
|
|
13
|
+
export declare const getDifferentColoredMeshesFromEntity: (entity: ContainerGeometryT) => ColorMeshMap;
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectedItem } from '@buerli.io/core';
|
|
2
|
-
declare type CustomSelect<T> = (resolve: (result: T) => Promise<T>, newItems: SelectedItem[], diff: SelectedItem[]) => void;
|
|
3
|
-
export declare function waitForSelect<T>(length: number, filter: any, onChange: CustomSelect<T>): Promise<SelectedItem<any>[]>;
|
|
4
|
-
export {};
|
|
1
|
+
import { SelectedItem } from '@buerli.io/core';
|
|
2
|
+
declare type CustomSelect<T> = (resolve: (result: T) => Promise<T>, newItems: SelectedItem[], diff: SelectedItem[]) => void;
|
|
3
|
+
export declare function waitForSelect<T>(length: number, filter: any, onChange: CustomSelect<T>): Promise<SelectedItem<any>[]>;
|
|
4
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buerli.io/headless",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"three-stdlib": ">=2.11.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@buerli.io/classcad": "0.
|
|
35
|
+
"@buerli.io/classcad": "1.0.0",
|
|
36
36
|
"flat-promise": "^1.0.3"
|
|
37
37
|
}
|
|
38
38
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# @buerli.io/headless
|
|
2
|
-
|
|
3
|
-
## 0.13.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- - Add new API method `twist()` to create twist feature.
|
|
8
|
-
- Add new API method `getSketch()`to be able to get a sketch by its name from a part or instance.
|
|
9
|
-
- Extended input parameter of methods `extrusion()` and `revolve()`, to be able to use sketch curves,
|
|
10
|
-
sketch regions and composite curves directly, beside sketches which were already possible as input.
|
|
11
|
-
|
|
12
|
-
### Patch Changes
|
|
13
|
-
|
|
14
|
-
- Updated dependencies
|
|
15
|
-
- Updated dependencies
|
|
16
|
-
- Updated dependencies
|
|
17
|
-
- @buerli.io/classcad@0.13.0
|
|
18
|
-
|
|
19
|
-
## 0.12.0
|
|
20
|
-
|
|
21
|
-
### Patch Changes
|
|
22
|
-
|
|
23
|
-
- Updated dependencies
|
|
24
|
-
- @buerli.io/classcad@0.12.0
|
|
25
|
-
|
|
26
|
-
## 0.11.0
|
|
27
|
-
|
|
28
|
-
### Minor Changes
|
|
29
|
-
|
|
30
|
-
- Change type of parameter for API method `addDimensions()` in HistoryAPI. This improves the flexibility of adding different dimensions to the model. This change breaks the API.
|
|
31
|
-
- Add new methods to HistoryAPI and SolidAPI called `getDrawingId()`, `getDrawing()`, `getState()` and `setFacetingParameters()`
|
|
32
|
-
- Fix name of classes `solid` and `history` to upper case naming `Solid` and `History`. Old class names are set as deprecated and will be removed in a future release.
|
|
33
|
-
- Extend `Vec` type in HistoryAPI to allow using expressions (string) as values for x, y, and z. This improves the API methods `extrusion()`, `createWorkAxis()`, `createWorkPoint()`, `createWorkPlane()` and `createWorkCoordSystem()`
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- Updated dependencies
|
|
38
|
-
- @buerli.io/classcad@0.11.0
|