@hatiolab/things-scene 3.0.18 → 3.0.21
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/db.sqlite +0 -0
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +9 -9
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +9 -59
- package/logs/application-2022-07-24-14.log +4 -0
- package/logs/application-2022-07-24-16.log +8 -0
- package/logs/application-2022-07-24-21.log +4 -0
- package/logs/connections-2022-07-24-14.log +35 -0
- package/logs/connections-2022-07-24-16.log +70 -0
- package/logs/connections-2022-07-24-21.log +35 -0
- package/package.json +3 -3
- package/things-scene-ie.js +1 -1
- package/things-scene-min.js +1 -1
- package/things-scene.d.ts +15 -5
- package/things-scene.mjs +1 -1
- package/logs/application-2022-07-02-17.log +0 -4
- package/logs/application-2022-07-03-12.log +0 -4
- package/logs/application-2022-07-03-15.log +0 -4
- package/logs/connections-2022-06-22-13.log +0 -70
- package/logs/connections-2022-06-22-14.log +0 -35
- package/logs/connections-2022-06-22-15.log +0 -35
- package/logs/connections-2022-06-22-17.log +0 -105
- package/logs/connections-2022-06-22-18.log +0 -35
- package/logs/connections-2022-06-22-19.log +0 -105
- package/logs/connections-2022-06-22-20.log +0 -35
- package/logs/connections-2022-06-30-21.log +0 -35
- package/logs/connections-2022-06-30-22.log +0 -35
- package/logs/connections-2022-07-01-01.log +0 -35
- package/logs/connections-2022-07-02-17.log +0 -35
- package/logs/connections-2022-07-03-12.log +0 -35
- package/logs/connections-2022-07-03-15.log +0 -35
package/things-scene.d.ts
CHANGED
|
@@ -143,6 +143,16 @@ declare module '@hatiolab/things-scene' {
|
|
|
143
143
|
function warn(...args: any[]): void
|
|
144
144
|
function debug(...args: any[]): void
|
|
145
145
|
|
|
146
|
+
class ReferenceMap {
|
|
147
|
+
constructor(
|
|
148
|
+
creator: (boardId: string, resolve: any, reject: any) => Promise<any>,
|
|
149
|
+
disposer: (id: string, ref: any) => Promise<void>
|
|
150
|
+
)
|
|
151
|
+
get(id: string, createIf?: boolean): Promise<any>
|
|
152
|
+
get ids(): string[]
|
|
153
|
+
add(id: string, target: any): Promise<any>
|
|
154
|
+
}
|
|
155
|
+
|
|
146
156
|
class ScriptLoader {
|
|
147
157
|
static load(scripts: string | Array<string>, styles?: string | Array<string>): Promise<void>
|
|
148
158
|
}
|
|
@@ -322,16 +332,16 @@ declare module '@hatiolab/things-scene' {
|
|
|
322
332
|
class ContainerAbstract extends MoveHandle(RectPath(Component)) {
|
|
323
333
|
indexOf(component: Component): number
|
|
324
334
|
size(): number
|
|
325
|
-
addComponent(target: Component): void
|
|
326
|
-
removeComponent(target: Component): void
|
|
327
|
-
insertComponentAt(target: Component, idx: number): void
|
|
335
|
+
addComponent(target: Component, ghost?: boolean): void
|
|
336
|
+
removeComponent(target: Component, ghost?: boolean): void
|
|
337
|
+
insertComponentAt(target: Component, idx: number, ghost?: boolean): void
|
|
328
338
|
findById(id: string): Component | undefined
|
|
329
339
|
getAt(at: number): Component | undefined
|
|
330
340
|
|
|
331
341
|
reflow(): void
|
|
332
342
|
|
|
333
|
-
add(components: Component[] | Component): Container
|
|
334
|
-
remove(components: Component[] | Component): Container
|
|
343
|
+
add(components: Component[] | Component, ghost?: boolean): Container
|
|
344
|
+
remove(components: Component[] | Component, ghost?: boolean): Container
|
|
335
345
|
|
|
336
346
|
components: Component[]
|
|
337
347
|
}
|