@hatiolab/things-scene 2.7.26 → 2.7.30

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/things-scene.d.ts CHANGED
@@ -71,8 +71,8 @@ declare module '@hatiolab/things-scene' {
71
71
  const TableLayout: LAYOUT
72
72
  const CardLayout: LAYOUT
73
73
  const HTMLAbsoluteLayout: LAYOUT
74
- const LinearHorizontal: LAYOUT
75
- const LinearVertical: LAYOUT
74
+ const LinearHorizontalLayout: LAYOUT
75
+ const LinearVerticalLayout: LAYOUT
76
76
 
77
77
  type AnimationConfig = {
78
78
  duration?: number
@@ -140,6 +140,7 @@ declare module '@hatiolab/things-scene' {
140
140
  class ApplicationContext {
141
141
  readonly refProvider: any
142
142
  readonly isViewMode: boolean
143
+ readonly isEditMode: boolean
143
144
 
144
145
  mode: SCENE_MODE
145
146
  baseUrl: string
@@ -192,7 +193,7 @@ declare module '@hatiolab/things-scene' {
192
193
  on(name: string, callback: Function, context?: any): void
193
194
  off(name: string, callback: Function, context?: any): void
194
195
  once(name: string, callback: Function, context?: any): void
195
- trigger(name: string): void
196
+ trigger(name: string, ...others: any[]): void
196
197
  }
197
198
  } & TBase
198
199
 
@@ -283,6 +284,8 @@ declare module '@hatiolab/things-scene' {
283
284
  findById(id: string): Component | undefined
284
285
  getAt(at: number): Component | undefined
285
286
 
287
+ reflow(): void
288
+
286
289
  add(components: Component[] | Component): Container
287
290
  remove(components: Component[] | Component): Container
288
291
 
@@ -434,13 +437,13 @@ declare module '@hatiolab/things-scene' {
434
437
  * selector에 해당하는 모든 컴포넌트들을 찾는다.
435
438
  * @params selector {string}
436
439
  */
437
- findAll(selector: string): Array<Component>
440
+ findAll(selector: string, component?: Component): Array<Component>
438
441
 
439
442
  /*
440
443
  * selector에 해당하는 첫번째 컴포넌트를 찾는다.
441
444
  * @params selector {string}
442
445
  */
443
- findFirst(selector: string): Component
446
+ findFirst(selector: string, ...others: any[]): Component
444
447
 
445
448
  /*
446
449
  * id를 갖는 컴포넌트를 찾는다.