Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

@leafer/layouter

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/layouter - npm Package Compare versions

Comparing version
1.6.2
to
1.6.3
+3
-3
package.json
{
"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"
}
}

@@ -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 @@ }