@hatiolab/things-scene 3.2.17 → 3.2.19
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/package.json +1 -1
- package/things-scene-ie.js +1 -1
- package/things-scene-min.js +1 -1
- package/things-scene.d.ts +7 -5
- package/things-scene.mjs +1 -1
package/things-scene.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
75
75
|
get ids(): string[]
|
|
76
76
|
add(id: string, target?: any): Promise<Scene & { release: () => void }>
|
|
77
77
|
get(id: string, createIf?: boolean): Promise<Scene & { release: () => void }>
|
|
78
|
+
create(id: string): Promise<Scene & { release: () => void }>
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
type DataSubscriptionProvider = {
|
|
@@ -165,14 +166,15 @@ declare module '@hatiolab/things-scene' {
|
|
|
165
166
|
|
|
166
167
|
function FPS(): number
|
|
167
168
|
|
|
168
|
-
class ReferenceMap {
|
|
169
|
+
class ReferenceMap<T> {
|
|
169
170
|
constructor(
|
|
170
|
-
creator: (boardId: string, resolve:
|
|
171
|
-
disposer: (id: string, ref:
|
|
171
|
+
creator: (boardId: string, resolve: (target: T) => void, reject: (error: any) => void) => Promise<T>,
|
|
172
|
+
disposer: (id: string, ref: T) => Promise<void>
|
|
172
173
|
)
|
|
173
|
-
get(id: string, createIf?: boolean): Promise<
|
|
174
|
+
get(id: string, createIf?: boolean): Promise<T & { release: () => void }>
|
|
174
175
|
get ids(): string[]
|
|
175
|
-
add(id: string, target: any): Promise<
|
|
176
|
+
add(id: string, target: any): Promise<T & { release: () => void }>
|
|
177
|
+
create(id: string): Promise<T & { release: () => void }>
|
|
176
178
|
}
|
|
177
179
|
|
|
178
180
|
class ScriptLoader {
|