@leafer/interface 1.0.0-beta.8 → 1.0.0-beta.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/interface",
3
- "version": "1.0.0-beta.8",
3
+ "version": "1.0.0-beta.9",
4
4
  "description": "@leafer/interface",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -63,7 +63,6 @@ export interface ILeafer extends IZoomView, IControl {
63
63
  forceFullRender(): void
64
64
  resize(size: IScreenSizeData): void
65
65
  waitViewLoaded(fun: IFunction): void
66
- receiveEvent(event: IObject): void
67
66
  }
68
67
 
69
68
  export interface ILeaferTypeCreator {
@@ -6,5 +6,5 @@ export interface ICanvasManager {
6
6
  recycle(old: ILeaferCanvas): void
7
7
  clearRecycled(): void
8
8
  clear(): void
9
- destory(): void
9
+ destroy(): void
10
10
  }
@@ -6,5 +6,5 @@ import { IHitCanvas } from './ILeaferCanvas'
6
6
  export interface IHitCanvasManager extends ICanvasManager {
7
7
  getPathType(leaf: ILeaf): IHitCanvas
8
8
  getImageType(leaf: ILeaf, size: IScreenSizeData): IHitCanvas
9
- destory(): void
9
+ destroy(): void
10
10
  }
@@ -6,5 +6,5 @@ export interface IImageManager {
6
6
  tasker: ITaskProcessor
7
7
  get(config: ILeaferImageConfig): ILeaferImage
8
8
  load(image: ILeaferImage, onSuccess: IFunction, onError: IFunction): void
9
- destory(): void
9
+ destroy(): void
10
10
  }
@@ -8,6 +8,7 @@ import { IBounds } from '../math/IMath'
8
8
  import { IControl } from '../control/IControl'
9
9
  import { IKeepTouchData } from '../event/IEvent'
10
10
  import { ILeaferCanvas } from '../canvas/ILeaferCanvas'
11
+ import { IObject } from '../data/IData'
11
12
 
12
13
  export interface IInteraction extends IControl {
13
14
  target: ILeaf
@@ -51,6 +52,7 @@ export interface IInteractionConfig {
51
52
  pointer?: IPointerConfig
52
53
  zoom?: IZoomConfig
53
54
  move?: IMoveConfig
55
+ eventer?: IObject
54
56
  }
55
57
 
56
58
  export interface IZoomConfig {
@@ -24,5 +24,5 @@ export interface ITaskProcessor {
24
24
  add(taskCallback: IFunction, taskTime?: number): void
25
25
  addParallel(taskCallback: IFunction, taskTime?: number): void
26
26
  addEmpty(callback?: IFunction): void
27
- destory(): void
27
+ destroy(): void
28
28
  }