You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@leafer/selector

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/selector - npm Package Compare versions

Comparing version
1.0.0-alpha.10
to
1.0.0-alpha.21
+5
-5
package.json
{
"name": "@leafer/selector",
"version": "1.0.0-alpha.10",
"version": "1.0.0-alpha.21",
"description": "@leafer/selector",

@@ -22,9 +22,9 @@ "author": "Chao (Leafer) Wan",

"dependencies": {
"@leafer/event": "1.0.0-alpha.10",
"@leafer/math": "1.0.0-alpha.10",
"@leafer/list": "1.0.0-alpha.10"
"@leafer/event": "1.0.0-alpha.21",
"@leafer/math": "1.0.0-alpha.21",
"@leafer/list": "1.0.0-alpha.21"
},
"devDependencies": {
"@leafer/interface": "1.0.0-alpha.10"
"@leafer/interface": "1.0.0-alpha.21"
}
}

@@ -72,13 +72,10 @@ import { ILeaf, ILeafList, IPointData, IRadiusPointData, ISelectPathResult, ISelectPathOptions, ISelector } from '@leafer/interface'

child = children[i]
if (child.__interactionOff) continue
if (child.__.hittable) {
if (hitRadiusPoint(child.__world, point)) {
if (child.__isBranch && child.__.hitChildren) this.eachThroughFind(child.children)
if (hitRadiusPoint(child.__world, point)) {
if (child.__isBranch) {
child.__childrenInteractionOff || this.eachThroughFind(child.children)
if (this.exclude && this.exclude.has(child)) continue
if (child.__hitWorld(point)) this.throughPath.push(child)
}
if (this.exclude && this.exclude.has(child)) continue
if (child.__hitWorld(point)) this.throughPath.push(child)
}
}

@@ -92,19 +89,19 @@ }

child = children[i]
if (child.__interactionOff) continue
if (child.__.hittable) {
if (hitRadiusPoint(child.__world, point)) {
if (child.__isBranch) {
if (hitRadiusPoint(child.__world, point)) {
if (child.__isBranch) {
if (child.__.hitChildren) this.eachFind(child.children)
child.__childrenInteractionOff || this.eachFind(child.children)
if (child.__isBranchLeaf) { // 填充了背景色的Group, 如画板/Frame元素
if (!this.isStop) this.hitChild(child, point)
}
if (child.__isBranchLeaf) { // 填充了背景色的Group, 如画板/Frame元素
if (!this.isStop) this.hitChild(child, point)
} else {
this.hitChild(child, point)
}
}
} else {
this.hitChild(child, point)
}
if (this.isStop) break
}
if (this.isStop) break
}

@@ -111,0 +108,0 @@ }