@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.
@@ -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.0.8";
9
+ static readonly release = "2.0.11";
10
10
  /** {@link Disposable.onDisposed} */
11
11
  readonly onDisposed: Event<void>;
12
12
  /**
@@ -21,30 +21,30 @@ export declare class Components implements Disposable {
21
21
  enabled: boolean;
22
22
  private _clock;
23
23
  /**
24
- * Adds a component to the list of components.
25
- * Throws an error if a component with the same UUID already exists.
26
- *
27
- * @param uuid - The unique identifier of the component.
28
- * @param instance - The instance of the component to be added.
29
- *
30
- * @throws Will throw an error if a component with the same UUID already exists.
31
- *
32
- * @internal
33
- */
24
+ * Adds a component to the list of components.
25
+ * Throws an error if a component with the same UUID already exists.
26
+ *
27
+ * @param uuid - The unique identifier of the component.
28
+ * @param instance - The instance of the component to be added.
29
+ *
30
+ * @throws Will throw an error if a component with the same UUID already exists.
31
+ *
32
+ * @internal
33
+ */
34
34
  add(uuid: string, instance: Component): void;
35
35
  /**
36
- * Retrieves a component instance by its constructor function.
37
- * If the component does not exist in the list, it will be created and added.
38
- *
39
- * @template U - The type of the component to retrieve.
40
- * @param Component - The constructor function of the component to retrieve.
41
- *
42
- * @returns The instance of the requested component.
43
- *
44
- * @throws Will throw an error if a component with the same UUID already exists.
45
- *
46
- * @internal
47
- */
36
+ * Retrieves a component instance by its constructor function.
37
+ * If the component does not exist in the list, it will be created and added.
38
+ *
39
+ * @template U - The type of the component to retrieve.
40
+ * @param Component - The constructor function of the component to retrieve.
41
+ *
42
+ * @returns The instance of the requested component.
43
+ *
44
+ * @throws Will throw an error if a component with the same UUID already exists.
45
+ *
46
+ * @internal
47
+ */
48
48
  get<U extends Component>(Component: new (components: Components) => U): U;
49
49
  constructor();
50
50
  /**