@thatopen/components 2.1.6 → 2.1.8
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/Components/index.d.ts +1 -1
- package/dist/fragments/FragmentsManager/index.d.ts +15 -0
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +226 -209
- package/dist/namespace.d.ts +1376 -1361
- package/package.json +1 -1
|
@@ -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.8";
|
|
10
10
|
/** {@link Disposable.onDisposed} */
|
|
11
11
|
readonly onDisposed: Event<void>;
|
|
12
12
|
/**
|
|
@@ -108,4 +108,19 @@ export declare class FragmentsManager extends Component implements Disposable {
|
|
|
108
108
|
* If not provided, all models are used.
|
|
109
109
|
*/
|
|
110
110
|
coordinate(models?: FragmentsGroup[]): void;
|
|
111
|
+
/**
|
|
112
|
+
* Applies the base coordinate system to the provided object.
|
|
113
|
+
*
|
|
114
|
+
* This function takes an object and its original coordinate system as input.
|
|
115
|
+
* It then inverts the original coordinate system and applies the base coordinate system
|
|
116
|
+
* to the object. This ensures that the object's position, rotation, and scale are
|
|
117
|
+
* transformed to match the base coordinate system (which is taken from the first model loaded).
|
|
118
|
+
*
|
|
119
|
+
* @param object - The object to which the base coordinate system will be applied.
|
|
120
|
+
* This should be an instance of THREE.Object3D.
|
|
121
|
+
*
|
|
122
|
+
* @param originalCoordinateSystem - The original coordinate system of the object.
|
|
123
|
+
* This should be a THREE.Matrix4 representing the object's transformation matrix.
|
|
124
|
+
*/
|
|
125
|
+
applyBaseCoordinateSystem(object: THREE.Object3D | THREE.Vector3, originalCoordinateSystem: THREE.Matrix4): void;
|
|
111
126
|
}
|