@thatopen/components 2.1.2 → 2.1.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.
@@ -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): void;
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
- /** Deletes all the existing clipping planes. */
117
- deleteAll(): void;
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.2";
9
+ static readonly release = "2.1.4";
10
10
  /** {@link Disposable.onDisposed} */
11
11
  readonly onDisposed: Event<void>;
12
12
  /**
@@ -36,6 +36,7 @@ export declare class FragmentsManager extends Component implements Disposable {
36
36
  */
37
37
  readonly groups: Map<string, FragmentsGroup>;
38
38
  baseCoordinationModel: string;
39
+ baseCoordinationMatrix: THREE.Matrix4;
39
40
  /** {@link Component.enabled} */
40
41
  enabled: boolean;
41
42
  private _loader;
@@ -104,9 +105,7 @@ export declare class FragmentsManager extends Component implements Disposable {
104
105
  * All other models are then transformed to match the base model's coordinate system.
105
106
  *
106
107
  * @param models - The models to apply coordinate transformation to.
107
- * If not provided, all groups are used.
108
- *
109
- * @returns {void}
108
+ * If not provided, all models are used.
110
109
  */
111
110
  coordinate(models?: FragmentsGroup[]): void;
112
111
  }