@thatopen/components 2.0.10 → 2.0.11
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 +23 -23
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +24 -24
- package/dist/namespace.d.ts +765 -765
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2822,16 +2822,16 @@ const Fs = class Fs {
|
|
|
2822
2822
|
this._clock = new O.Clock(), Fs.setupBVH();
|
|
2823
2823
|
}
|
|
2824
2824
|
/**
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2825
|
+
* Adds a component to the list of components.
|
|
2826
|
+
* Throws an error if a component with the same UUID already exists.
|
|
2827
|
+
*
|
|
2828
|
+
* @param uuid - The unique identifier of the component.
|
|
2829
|
+
* @param instance - The instance of the component to be added.
|
|
2830
|
+
*
|
|
2831
|
+
* @throws Will throw an error if a component with the same UUID already exists.
|
|
2832
|
+
*
|
|
2833
|
+
* @internal
|
|
2834
|
+
*/
|
|
2835
2835
|
add(s, t) {
|
|
2836
2836
|
if (this.list.has(s))
|
|
2837
2837
|
throw new Error(
|
|
@@ -2840,18 +2840,18 @@ const Fs = class Fs {
|
|
|
2840
2840
|
ze.validate(s), this.list.set(s, t);
|
|
2841
2841
|
}
|
|
2842
2842
|
/**
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2843
|
+
* Retrieves a component instance by its constructor function.
|
|
2844
|
+
* If the component does not exist in the list, it will be created and added.
|
|
2845
|
+
*
|
|
2846
|
+
* @template U - The type of the component to retrieve.
|
|
2847
|
+
* @param Component - The constructor function of the component to retrieve.
|
|
2848
|
+
*
|
|
2849
|
+
* @returns The instance of the requested component.
|
|
2850
|
+
*
|
|
2851
|
+
* @throws Will throw an error if a component with the same UUID already exists.
|
|
2852
|
+
*
|
|
2853
|
+
* @internal
|
|
2854
|
+
*/
|
|
2855
2855
|
get(s) {
|
|
2856
2856
|
const t = s.uuid;
|
|
2857
2857
|
if (!this.list.has(t)) {
|
|
@@ -2898,7 +2898,7 @@ const Fs = class Fs {
|
|
|
2898
2898
|
/**
|
|
2899
2899
|
* The version of the @thatopen/components library.
|
|
2900
2900
|
*/
|
|
2901
|
-
I(Fs, "release", "2.0.
|
|
2901
|
+
I(Fs, "release", "2.0.11");
|
|
2902
2902
|
let pi = Fs;
|
|
2903
2903
|
class Ar {
|
|
2904
2904
|
constructor(s) {
|
|
@@ -9269,7 +9269,7 @@ const Ge = class Ge extends J {
|
|
|
9269
9269
|
}
|
|
9270
9270
|
async autoSetWasm() {
|
|
9271
9271
|
const t = await fetch(
|
|
9272
|
-
`https://unpkg.com/
|
|
9272
|
+
`https://unpkg.com/@thatopen/components@${pi.release}/package.json`
|
|
9273
9273
|
);
|
|
9274
9274
|
if (!t.ok) {
|
|
9275
9275
|
console.warn(
|