@thatopen/components 2.1.2 → 2.1.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/dist/core/Clipper/index.d.ts +7 -3
- package/dist/core/Clipper/src/simple-plane.d.ts +2 -0
- package/dist/core/Components/index.d.ts +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +326 -317
- package/dist/namespace.d.ts +1925 -1919
- package/package.json +3 -3
|
@@ -94,7 +94,7 @@ export declare class Clipper extends Component implements Createable, Disposable
|
|
|
94
94
|
/** {@link Disposable.dispose} */
|
|
95
95
|
dispose(): void;
|
|
96
96
|
/** {@link Createable.create} */
|
|
97
|
-
create(world: World):
|
|
97
|
+
create(world: World): SimplePlane | null;
|
|
98
98
|
/**
|
|
99
99
|
* Creates a plane in a certain place and with a certain orientation,
|
|
100
100
|
* without the need of the mouse.
|
|
@@ -113,8 +113,12 @@ export declare class Clipper extends Component implements Createable, Disposable
|
|
|
113
113
|
* found under the cursor will be deleted.
|
|
114
114
|
*/
|
|
115
115
|
delete(world: World, plane?: SimplePlane): void;
|
|
116
|
-
/**
|
|
117
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Deletes all the existing clipping planes.
|
|
118
|
+
*
|
|
119
|
+
* @param types - the types of planes to be deleted. If not provided, all planes will be deleted.
|
|
120
|
+
*/
|
|
121
|
+
deleteAll(types?: Set<string>): void;
|
|
118
122
|
private deletePlane;
|
|
119
123
|
private pickPlane;
|
|
120
124
|
private getAllPlaneMeshes;
|
|
@@ -27,6 +27,8 @@ export declare class SimplePlane implements Disposable, Hideable {
|
|
|
27
27
|
components: Components;
|
|
28
28
|
/** The world instance to which this plane belongs. */
|
|
29
29
|
world: World;
|
|
30
|
+
/** A custom string to identify what this plane is used for. */
|
|
31
|
+
type: string;
|
|
30
32
|
protected readonly _helper: THREE.Object3D;
|
|
31
33
|
protected _visible: boolean;
|
|
32
34
|
protected _enabled: boolean;
|
|
@@ -6,7 +6,7 @@ export declare class Components implements Disposable {
|
|
|
6
6
|
/**
|
|
7
7
|
* The version of the @thatopen/components library.
|
|
8
8
|
*/
|
|
9
|
-
static readonly release = "2.1.
|
|
9
|
+
static readonly release = "2.1.3";
|
|
10
10
|
/** {@link Disposable.onDisposed} */
|
|
11
11
|
readonly onDisposed: Event<void>;
|
|
12
12
|
/**
|