@hatiolab/things-scene 3.0.3 → 3.0.4

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
@@ -12,11 +12,13 @@ declare module '@hatiolab/things-scene' {
12
12
  const MODE_VIEW = 0
13
13
  const MODE_EDIT = 1
14
14
  const MODE_SHIFT = 2
15
+ const MODE_ADD = 3
15
16
 
16
17
  enum SCENE_MODE {
17
18
  VIEW = 0,
18
19
  EDIT = 1,
19
- SHIFT = 2
20
+ SHIFT = 2,
21
+ ADD = 3
20
22
  }
21
23
 
22
24
  type FITMODE = 'both' | 'ratio' | 'width' | 'height' | 'center' | 'none'
@@ -379,6 +381,12 @@ declare module '@hatiolab/things-scene' {
379
381
  onto?: string
380
382
  ): Component
381
383
 
384
+ /**
385
+ * scene에 컴포넌트를 추가하는 모드를 시작한다.
386
+ * @param models {object} - Component Model Object
387
+ */
388
+ startAddMode(models: Model): void
389
+
382
390
  /**
383
391
  * scene의 컴포넌트를 복제한다.
384
392
  * 현재 선택되어있는 컴포넌트가 복제되므로, 컴포넌트를 복제하기 위해서는