@hatiolab/things-scene 3.3.1 → 3.3.3

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
@@ -178,7 +178,7 @@ declare module '@hatiolab/things-scene' {
178
178
 
179
179
  class EventMap {
180
180
  static get(name: string): any
181
- static register(name: string, EventMap: any)
181
+ static register(name: string, EventMap: any): void
182
182
  static unregister(name: string): void
183
183
  }
184
184
 
@@ -433,6 +433,7 @@ declare module '@hatiolab/things-scene' {
433
433
  drawStroke(context: CanvasRenderingContext2D, override?: { [prop: string]: any }): void
434
434
  drawFill(context: CanvasRenderingContext2D, override?: { [prop: string]: any }): void
435
435
  drawText(context: CanvasRenderingContext2D): void
436
+ move({ x: number, y: number }, absolutely?: boolean): void
436
437
 
437
438
  ondblclick(e: MouseEvent): void
438
439
 
@@ -495,6 +496,7 @@ declare module '@hatiolab/things-scene' {
495
496
 
496
497
  class Scene {
497
498
  static readonly residents: WeakSet<Scene>
499
+ static readonly DPPX: number
498
500
 
499
501
  /**
500
502
  * scene에 컴포넌트를 추가한다.
@@ -603,7 +605,7 @@ declare module '@hatiolab/things-scene' {
603
605
  * scene이 그리고 있는 컴포넌트 모델정보
604
606
  * @type {object}
605
607
  */
606
- model: Component
608
+ model: Model
607
609
 
608
610
  /*
609
611
  * root는 모델의 최상위 컨테이너인 모델레이어를 의미한다.
@@ -639,7 +641,7 @@ declare module '@hatiolab/things-scene' {
639
641
 
640
642
  toDataURL(): string
641
643
 
642
- fit(type: FITMODE): void
644
+ fit(type?: FITMODE): void
643
645
 
644
646
  readonly fitMode: FITMODE
645
647
  readonly ids: { [id: string]: any }[]