@hatiolab/things-scene 3.0.19 → 3.0.22
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 +7 -7
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +4 -9
- package/logs/application-2022-08-11-22.log +1 -0
- package/logs/application-2022-08-12-17.log +4 -0
- package/logs/connections-2022-07-24-21.log +35 -0
- package/logs/connections-2022-08-12-17.log +35 -0
- package/package.json +3 -3
- package/things-scene-ie.js +2 -1
- package/things-scene-ie.js.LICENSE.txt +1 -0
- package/things-scene-min.js +2 -1
- package/things-scene-min.js.LICENSE.txt +1 -0
- package/things-scene.d.ts +18 -5
- package/things-scene.mjs +1 -1
- package/logs/application-2022-07-24-14.log +0 -4
- package/logs/application-2022-07-24-16.log +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
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
|
}
|
|
@@ -256,6 +266,9 @@ declare module '@hatiolab/things-scene' {
|
|
|
256
266
|
get data(): any
|
|
257
267
|
set data(data: any)
|
|
258
268
|
|
|
269
|
+
get value(): any
|
|
270
|
+
set value(value: any)
|
|
271
|
+
|
|
259
272
|
get text(): string
|
|
260
273
|
set text(text: string)
|
|
261
274
|
|
|
@@ -322,16 +335,16 @@ declare module '@hatiolab/things-scene' {
|
|
|
322
335
|
class ContainerAbstract extends MoveHandle(RectPath(Component)) {
|
|
323
336
|
indexOf(component: Component): number
|
|
324
337
|
size(): number
|
|
325
|
-
addComponent(target: Component): void
|
|
326
|
-
removeComponent(target: Component): void
|
|
327
|
-
insertComponentAt(target: Component, idx: number): void
|
|
338
|
+
addComponent(target: Component, ghost?: boolean): void
|
|
339
|
+
removeComponent(target: Component, ghost?: boolean): void
|
|
340
|
+
insertComponentAt(target: Component, idx: number, ghost?: boolean): void
|
|
328
341
|
findById(id: string): Component | undefined
|
|
329
342
|
getAt(at: number): Component | undefined
|
|
330
343
|
|
|
331
344
|
reflow(): void
|
|
332
345
|
|
|
333
|
-
add(components: Component[] | Component): Container
|
|
334
|
-
remove(components: Component[] | Component): Container
|
|
346
|
+
add(components: Component[] | Component, ghost?: boolean): Container
|
|
347
|
+
remove(components: Component[] | Component, ghost?: boolean): Container
|
|
335
348
|
|
|
336
349
|
components: Component[]
|
|
337
350
|
}
|