@leafer/layouter
Advanced tools
+3
-3
| { | ||
| "name": "@leafer/layouter", | ||
| "version": "1.6.2", | ||
| "version": "1.6.3", | ||
| "description": "@leafer/layouter", | ||
@@ -25,7 +25,7 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/core": "1.6.2" | ||
| "@leafer/core": "1.6.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.6.2" | ||
| "@leafer/interface": "1.6.3" | ||
| } | ||
| } |
+8
-10
@@ -55,3 +55,3 @@ import { ILayouter, ILeaf, ILayoutBlockData, IEventListenerId, ILayouterConfig, ILeafList } from '@leafer/interface' | ||
| public layout(): void { | ||
| if (!this.running) return | ||
| if (this.layouting || !this.running) return | ||
| const { target } = this | ||
@@ -157,7 +157,4 @@ this.times = 0 | ||
| if (target.isBranch) { | ||
| BranchHelper.updateBounds(target) | ||
| } else { | ||
| LeafHelper.updateBounds(target) | ||
| } | ||
| if (target.isBranch) BranchHelper.updateBounds(target) | ||
| else LeafHelper.updateBounds(target) | ||
@@ -192,7 +189,8 @@ updateAllChange(target) | ||
| protected __listenEvents(): void { | ||
| const { target } = this | ||
| this.__eventIds = [ | ||
| target.on_(LayoutEvent.REQUEST, this.layout, this), | ||
| target.on_(LayoutEvent.AGAIN, this.layoutAgain, this), | ||
| target.on_(WatchEvent.DATA, this.__onReceiveWatchData, this) | ||
| this.target.on_([ | ||
| [LayoutEvent.REQUEST, this.layout, this], | ||
| [LayoutEvent.AGAIN, this.layoutAgain, this], | ||
| [WatchEvent.DATA, this.__onReceiveWatchData, this] | ||
| ]) | ||
| ] | ||
@@ -199,0 +197,0 @@ } |
12226
-0.22%264
-0.75%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated