@thatopen/components 2.2.11 → 2.2.12
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 +20 -3
- package/dist/index.cjs +13 -13
- package/dist/index.mjs +734 -717
- package/dist/namespace.d.ts +2753 -2736
- 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.2.
|
|
9
|
+
static readonly release = "2.2.12";
|
|
10
10
|
/** {@link Disposable.onDisposed} */
|
|
11
11
|
readonly onDisposed: Event<void>;
|
|
12
12
|
/**
|
|
@@ -20,6 +20,25 @@ export declare class Components implements Disposable {
|
|
|
20
20
|
*/
|
|
21
21
|
enabled: boolean;
|
|
22
22
|
private _clock;
|
|
23
|
+
/**
|
|
24
|
+
* Event that triggers the Components instance is initialized.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* This event is triggered once when the {@link Components.init} method has been called and finish processing.
|
|
28
|
+
* This is useful to set configuration placeholders that need to be executed when the components instance is initialized.
|
|
29
|
+
* For example, enabling and configuring custom effects in a post-production renderer.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* const components = new Components();
|
|
34
|
+
* components.onInit.add(() => {
|
|
35
|
+
* // Enable custom effects in the post-production renderer
|
|
36
|
+
* // or any other operation dependant on the component initialization
|
|
37
|
+
* });
|
|
38
|
+
* components.init();
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
readonly onInit: Event<undefined>;
|
|
23
42
|
/**
|
|
24
43
|
* Adds a component to the list of components.
|
|
25
44
|
* Throws an error if a component with the same UUID already exists.
|
|
@@ -51,8 +70,6 @@ export declare class Components implements Disposable {
|
|
|
51
70
|
* Initializes the Components instance.
|
|
52
71
|
* This method starts the animation loop, sets the enabled flag to true,
|
|
53
72
|
* and calls the update method.
|
|
54
|
-
*
|
|
55
|
-
* @returns {void}
|
|
56
73
|
*/
|
|
57
74
|
init(): void;
|
|
58
75
|
/**
|