@leafer-ui/app 1.0.0-alpha.7 → 1.0.0-alpha.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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/Leafer.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/app",
3
- "version": "1.0.0-alpha.7",
3
+ "version": "1.0.0-alpha.9",
4
4
  "description": "@leafer-ui/app",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -19,11 +19,11 @@
19
19
  "leaferjs"
20
20
  ],
21
21
  "dependencies": {
22
- "@leafer/core": "1.0.0-alpha.7",
23
- "@leafer-ui/display": "1.0.0-alpha.7"
22
+ "@leafer/core": "1.0.0-alpha.9",
23
+ "@leafer-ui/display": "1.0.0-alpha.9"
24
24
  },
25
25
  "devDependencies": {
26
- "@leafer/interface": "1.0.0-alpha.7",
27
- "@leafer-ui/interface": "1.0.0-alpha.7"
26
+ "@leafer/interface": "1.0.0-alpha.9",
27
+ "@leafer-ui/interface": "1.0.0-alpha.9"
28
28
  }
29
29
  }
package/src/Leafer.ts CHANGED
@@ -159,8 +159,8 @@ export class Leafer extends Group implements ILeafer {
159
159
  if (move) {
160
160
  const { MOVE } = MoveEvent
161
161
  const { ZOOM } = ZoomEvent
162
- if (!this.hasEvent(MOVE)) this.__eventIds.push(this.on__(MOVE, (e: MoveEvent) => { LeafHelper.moveByWorld(this, e.moveX, e.moveY) }))
163
- if (zoom && !this.hasEvent(ZOOM)) this.__eventIds.push(this.on__(ZOOM, (e: ZoomEvent) => { LeafHelper.zoomByWorld(this, e.scale, e) }))
162
+ if (!this.hasEvent(MOVE)) this.__eventIds.push(this.on__(MOVE, (e: MoveEvent) => { LeafHelper.moveOfWorld(this, e.moveX, e.moveY) }))
163
+ if (zoom && !this.hasEvent(ZOOM)) this.__eventIds.push(this.on__(ZOOM, (e: ZoomEvent) => { LeafHelper.zoomOfWorld(this, e.scale, e) }))
164
164
  }
165
165
  }
166
166