@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.
@@ -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
  }