@leafer/display-module 1.9.12 → 1.10.1

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/display-module",
3
- "version": "1.9.12",
3
+ "version": "1.10.1",
4
4
  "description": "@leafer/display-module",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,13 +22,13 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/helper": "1.9.12",
26
- "@leafer/event": "1.9.12",
27
- "@leafer/math": "1.9.12",
28
- "@leafer/data": "1.9.12",
29
- "@leafer/debug": "1.9.12"
25
+ "@leafer/helper": "1.10.1",
26
+ "@leafer/event": "1.10.1",
27
+ "@leafer/math": "1.10.1",
28
+ "@leafer/data": "1.10.1",
29
+ "@leafer/debug": "1.10.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@leafer/interface": "1.9.12"
32
+ "@leafer/interface": "1.10.1"
33
33
  }
34
34
  }
package/src/LeafBounds.ts CHANGED
@@ -15,14 +15,13 @@ export const LeafBounds: ILeafBoundsModule = {
15
15
 
16
16
  __updateWorldBounds(): void {
17
17
 
18
- const layout = this.__layout
19
-
20
- toOuterOf(layout.renderBounds, this.__world, this.__world)
18
+ const { __layout, __world } = this
19
+ toOuterOf(__layout.renderBounds, __world, __world)
21
20
 
22
- if (layout.resized) {
23
- if (layout.resized === 'inner') this.__onUpdateSize() // scale变化不用更新
21
+ if (__layout.resized) {
22
+ if (__layout.resized === 'inner') this.__onUpdateSize() // scale变化不用更新
24
23
  if (this.__hasLocalEvent) BoundsEvent.emitLocal(this)
25
- layout.resized = undefined
24
+ __layout.resized = undefined
26
25
  }
27
26
 
28
27
  if (this.__hasWorldEvent) BoundsEvent.emitWorld(this)